background image

CP | 341-1CH01 | Manual

HB130 | CP | 341-1CH01 | en | 18-40

VIPA System 300S

CP 341 RS422/485

www.vipa.com/en/service-support/manuals

Содержание CP 341

Страница 1: ...CP 341 1CH01 Manual HB130 CP 341 1CH01 en 18 40 VIPA System 300S CP 341 RS422 485 www vipa com en service support manuals ...

Страница 2: ...341 1CH01_000_CP 341 RS422 485 1 EN 2018 VIPA GmbH Ohmstr 4 91074 Herzogenaurach Telephone 49 9132 744 0 Fax 49 9132 744 1864 Email info vipa com Internet www vipa com ...

Страница 3: ... 33 5 4 1 Firmware update with Siemens parameterization tool 33 5 4 2 Firmware update at deployment of a SPEED7 CPU 34 5 4 3 Show CP firmware version 35 6 Communication protocols 36 6 1 Overview 36 6 2 ASCII 37 6 2 1 ASCII Parameter 38 6 3 3964 R 42 6 3 1 Basics 3964 R 42 6 3 2 Proceeding 43 6 3 3 3964 R Parameter 44 6 4 Modbus 48 6 4 1 Basics Modbus 48 6 4 2 Modbus Master Parameter 49 6 4 3 Modbu...

Страница 4: ...7 3 Diagnostics via diagnostic buffer 103 7 4 Diagnostics by diagnostics interrupt 104 VIPA System 300S Table of contents HB130 CP 341 1CH01 en 18 40 4 ...

Страница 5: ...s may be included for units which are not present at the customer site The exact scope of delivery is described in the respective purchase contract Hereby VIPA GmbH declares that the products and systems are in compliance with the essential requirements and other relevant provisions Conformity is indicated by the CE marking affixed to the product For more information regarding CE marking and Decla...

Страница 6: ...ontains a description of the construction project implementation and usage Product Order number as of state CP HW CP FW CP 341 RS422 485 341 1CH01 01 V1 3 1 The manual is targeted at users who have a background in automation technology The manual consists of chapters Every chapter provides a self contained description of a specific topic The following guides are available in the manual n An overal...

Страница 7: ...nnel in the n project design department n installation department n commissioning n operation CAUTION The following conditions must be met before using or commis sioning the components described in this manual Hardware modifications to the process control system should only be carried out when the system has been disconnected from power Installation and hardware modifications only by properly trai...

Страница 8: ... that have been damaged by electrostatic discharges can fail after a temperature change mechanical shock or changes in the electrical load Only the consequent implementation of protection devices and meticulous attention to the applicable rules and regulations for handling the respective equipment can prevent failures of electrostatic sensitive modules Modules must be shipped in the original packi...

Страница 9: ...layer performs error checking functions for bit strings transferred between two com municating partners This includes the recognition and correction or flagging of communi cation errors and flow control functions The security layer data link layer converts raw communication data into a sequence of frames This is where frame limits are inserted on the transmitting side and where the receiving side ...

Страница 10: ...ion decompression and encrypting decrypting tasks are processed This layer is also called interpreter A typical use of this layer is the terminal emulation The application layer is the link between the user application and the network The tasks of the application layer include the network services like file print message data base and application services as well as the according rules This layer ...

Страница 11: ...nce Insulation voltage to reference earth Inputs outputs AC DC 50V test voltage AC 500V Protective measures against short circuit Environmental conditions to EN 61131 2 Climatic Storage transport EN 60068 2 14 25 70 C Operation Horizontal installation hanging EN 61131 2 0 60 C Horizontal installation lying EN 61131 2 0 40 C Vertical installation EN 61131 2 0 40 C Air humidity EN 60068 2 30 RH1 wit...

Страница 12: ...everity 2 EN 61000 4 3 HF field immunity casing 80MHz 1000MHz 10V m 80 AM 1kHz 1 4GHz 2 0GHz 3V m 80 AM 1kHz 2GHz 2 7GHz 1V m 80 AM 1kHz EN 61000 4 6 HF conducted 150kHz 80MHz 10V 80 AM 1kHz EN 61000 4 4 Burst degree of severity 3 EN 61000 4 5 Surge degree of severity 3 Due to the high energetic single pulses with Surge an appropriate external protective circuit with lightning protection elements ...

Страница 13: ... 3 1 Installation dimensions 1tier width WxHxD in mm 40 x 125 x 120 Dimensions Basic enclo sure Dimensions Installation dimensions VIPA System 300S Assembly and installation guidelines Installation dimensions HB130 CP 341 1CH01 en 18 40 13 ...

Страница 14: ...160 140 10 390 1AE80 482 466 8 3 390 1AF30 530 500 15 390 1AJ30 830 800 15 390 9BC00 2000 Drillings only left 15 Unit pack 10 pieces Measures in mm For the communication between the modules the System 300S uses a backplane bus connector Backplane bus connectors are included in the delivering of the peripheral modules and are clipped at the module from the backside before installing it to the profi...

Страница 15: ...tion of the cable to the protected earth conductor has to be 10mm2 5 Stick the power supply to the profile rail and pull it to the left side to the grounding bolt of the profile rail 6 Fix the power supply by screwing 7 Take a backplane bus connector and click it at the CPU from the backside like shown in the picture 8 Stick the CPU to the profile rail right from the power supply and pull it to th...

Страница 16: ...nterference cause interferences to your control occur by means of different coupling mechanisms There are n galvanic coupling n capacitive coupling n inductive coupling n radiant coupling In the most times it is enough to take care of some elementary rules to guarantee the EMC Please regard the following basic rules when installing your PLC n Take care of a correct area wide grounding of the inact...

Страница 17: ...tor is impedance low because otherwise the interference currents may appear as interference cause When isolating cables you have to regard the following n If possible use only cables with isolation tangle n The hiding power of the isolation should be higher than 80 n Normally you should always lay the isolation of cables on both sides Only by means of the both sided connection of the isolation you...

Страница 18: ...ation CP 341 via the parameterization package from Siemens CP 341 Point to Point is parameterized as of V 5 0 n Up to 250 telegrams within the 1024byte sized receive and send buffer n Baud rate parameterizable up to 76 8kbit s n Power supply via back plane bus Type Order No Description CP 341 RS422 485 341 1CH01 CP 341 with RS422 485 interface Protocols ASCII 3964 R Modbus Master ASCII RTU Modbus ...

Страница 19: ...conditions as voltage difference between 2 twisted lines n Serial bus connection Full duplex Four wire operation RS422 Half duplex Two wire operation RS485 n Line length 1200m at 19 2kbit s 500m at 38 4kbit s 250m at 76 8kbit s n Data transfer rate up to 76 8kbit s CP 341 1CH01 RS422 485 interface VIPA System 300S Hardware description Structure HB130 CP 341 1CH01 en 18 40 19 ...

Страница 20: ...eive data four wire R A T A Input Output Receive Send data two wire 9 n c Never connect the shield of the cable with GND_ISO as this could destroy the interface Pin 6 P5V of the isolated interfaces carries the isolated 5V supply with the respective ground GND on pin 5 M5V You may use this isolated voltage to provide defined static voltage levels on the signaling lines by means of resistors and ens...

Страница 21: ...ating resistor of approxi mately 330Ω on the receiver for data free traffic For a connection with minimum reflections and the wire break recognition at RS422 485 operation the lines may be preset with defined static voltage levels At the CP interface the wiring of the receiver is realized as follows RS485 cabling RS422 cabling Defined static voltage levels by parameters VIPA System 300S Hardware d...

Страница 22: ...umber of LEDs that are available for diagnostic purposes on the bus and for displaying the local status Dependent on the mode of operation these give information according to the following pattern over the operating condition of the CP Name Color Description PWR green Indicates that power is available SF red Group alarm or re parameterization in progress n Group alarm lights up at Hardware fault F...

Страница 23: ...t possible Supply voltage display yes Group error display red SF LED Channel error display none Functionality Sub D interfaces Type X2 Type of interface RS422 485 Connector Sub D 9 pin female Electrically isolated ü MPI MP I MPI RS232 Point to point interface ü 5V DC Power supply max 90mA isolated 24V DC Power supply Type Type of interface Connector Electrically isolated MPI MP I MPI RS232 Point t...

Страница 24: ...ü RK512 protocol USS master protocol Modbus master protocol ü Modbus slave protocol ü Special protocols Datasizes Input bytes 16 Output bytes 16 Parameter bytes 16 106 Diagnostic bytes 4 Housing Material PPE Mounting Rail System 300 Mechanical data Dimensions WxHxD 40 mm x 125 mm x 120 mm Net weight 170 g Weight including accessories Gross weight Environmental conditions Operating temperature 0 C ...

Страница 25: ...Order no 341 1CH01 UL certification yes KC certification yes VIPA System 300S Hardware description Technical data HB130 CP 341 1CH01 en 18 40 25 ...

Страница 26: ... online connection to the CPU More about this may be found in the manual of the CPU 1 For hardware configuration jump within your project to the hardware configurator of the Siemens SIMATIC manager 2 Place a profile rail with the corresponding CPU and its modules 3 Engineer in duty of the CP 341 1CH01 from VIPA the Siemens CP with the order number 6ES7 341 1CH01 0AE0 to the corresponding slot 4 Ad...

Страница 27: ...munication happens by means of the handling blocks FB 7 and FB 8 which were installed together with the parameter plugin n By a cyclic call of these blocks data may be sent and received by the CP The conver sion of the transfer protocols to the communication partner happens at the CP n For each of these FBs an instance DB is necessary This is to be indicated at the call of the corresponding FB The...

Страница 28: ...rdware catalog to the project window 4 Project the CPU and the corresponding modules Place the corresponding modules via drag drop from the hardware catalog to the corresponding slot of the profile rail 5 To project the VIPA CP 341 1CH01 the Siemens CP 341 6ES7 341 1CH01 0AE0 at the according slot is to be used 6 Adjust via the CP properties the transmission protocol and the protocol specific para...

Страница 29: ...ng of the address area of the CPU may be determined which is mapped by the CP Here the CP occupies for input and output 16byte each This value is necessary for integration in the user program Please note with the CP that the base address for input and output are identical n Process image With the process image a consistent image of the process signal may be accessed during the program cycle If the...

Страница 30: ...otocols page 36 5 Store the protocol specific parameters after changing them There is the possibility to extend the number of protocols of the parameter plugin by means of loadable protocol drivers More may be found at the description of the corre sponding protocol Ä Chap 6 Communication protocols page 36 1 After adjusting the protocol specific parameters the parameters should be stored with File ...

Страница 31: ...y be found in the manual SPEED7 Operation List from VIPA With the Modbus Slave protocol the communication FB 80 MODB_341 is used Within the FB 80 the blocks FB 7 and FB 8 are called More about installation and deployment of the FB 80 may be found at Modbus Slave in Chapter Communication protocols Ä Chap 6 4 7 1 Send data FB 80 MODB_341 page 74 The function blocks are online available from Siemens ...

Страница 32: ...ed NDR 1 After that the receive DB should be blocked EN_R 0 as long as the data were treated By a cyclic call of FB 7 and FB 8 data may be cyclic sent and received by the CP On the CP the transmission of the communication protocols to the communication partner takes place which may be configured by the hardware configuration More information about the usage of these blocks may be found in the manu...

Страница 33: ...Options è Firmware Update ð As soon as the CP is reachable the current CP firmware is displayed at Current module firmware status If no firmware version may be determined CP is off line is displayed 4 Choose with the button Find file the firmware to be loaded The current CP firm ware may be found in the service area of www vipa com 5 Please regard the firmware consists of 3 files Here choose the f...

Страница 34: ...ivate the PG OP channel you have to enter according IP parameters This can be made in Siemens SIMATIC manager either by a hardware configuration loaded by MMC respectively MPI or via Ethernet by means of the MAC address with PLC è Assign Ethernet Address ð After that you may access the PG OP channel with a web browser via the IP address of the project engineering More detailed information may be f...

Страница 35: ... MMC If so again the LEDs SF and FRCE flash after a short start up period Continue with point 3 ð The update is successful finished when the LEDs PWR STOP SF FRCE and MCC are on 5 4 3 Show CP firmware version There is the possibility to display the current release of hard and software of the CP by means of the module information of the Siemens SIMATIC manager 1 Here go online to the corresponding ...

Страница 36: ...n the communication partners nec essary for serial data transfer This character frame consists of the following elements n Speed Baud rate n Character and acknowledgement delay time n Parity n Number of data bits n Number of stop bits The CP serves for an automatic serial data transfer To do this the CP is equipped with drivers for the following protocols n ASCII n 3964 R Please regard the compute...

Страница 37: ... data protection the data transfer is very efficiently however not secured With the parity the inversion of one bit within a character may be secured If two or more bits of a character are inverted this error may no longer be detected 1 The parameter plugin Point to Point Communication Parameter Assignment is started from the properties dialog of the CP by the button Parameter 2 Here the parameter...

Страница 38: ...unt of time permitted between two incoming characters within a message frame Parameter Description Default value Character delay time ZVZ The shortest character delay time ZVZ depends on the baud rate 4ms Baud rate Bit s ZVZ ms 300 130 600 65 1200 32 2400 16 4800 8 9600 4 19200 57600 76800 2 n Range of values 2ms 65535ms in 1ms steps Message frame length When the end criterion is fixed message fra...

Страница 39: ...r and the transmission may be checked for errors Please regard that all the following parameters must have the same set tings on every communication partner Parameter Description Default value Data bits Number of bits onto which a character is mapped n Range of values 7 8 8 Stop bits When data is transmitted stop bits are appended to each character to be sent in order to signal the end of a char a...

Страница 40: ...PU n Range of values activated deactivated activated Here it is to specify if the interface is operated in half RS485 or full duplex RS422 operation n Full duplex RS422 Four wire operation default value active Data is exchanged between the communication partners in both directions simul taneously In full duplex operation therefore data may be sent and received at the same time Each communication p...

Страница 41: ...olt Signal R A 5Volt Break evaluation With this pre assignment break detection is possible at full duplex operation RS422 Parameter Description Signal R B 5Volt Signal R A 0Volt default value not activated This pre assignment corresponds to the idle state no sender is activated at half duplex operation at RS485 Here wire break recognition is not possible Wiring receiver VIPA System 300S Communicat...

Страница 42: ...mally transfer 250byte per telegram The QVZ is monitored between STX and DLE and between BCC and DLE ZVZ is moni tored for the entire period of receiving the telegram When the QVZ expires after an STX the STX is repeated This process is repeated 5 times after which the attempt to establish a connection is terminated by the transmission of a NAK The same sequence is com pleted when a NAK or any oth...

Страница 43: ...saved as a single DLE in the buffer The telegram always terminates with the sequence DLE ETX BCC only for 3964R The control codes n 02h STX n 03h ETX n 10h DLE n 15h NAK 6 3 2 Proceeding 1 The parameter plugin Point to Point Communication Parameter Assignment is started from the properties dialog of the CP by the button Parameter 2 Here the parameters for transfer protocol data receipt and interfa...

Страница 44: ...ta integrity is increased by the addition sending of a Block Check Character BCC If the CP 341 1CH01 recognizes the string DLE ETX BCC it stops receiving The CP compares the received block check character BCC with the longitudinal parity calculated internally If the BCC is correct and no other receive errors have occurred the CP sends the code DLE to the communica tion partner In the event of an e...

Страница 45: ...ues 20 65535ms in 10ms steps Setup attempts This parameter defines the maximum number of attempts the CP is allowed in order to establish a connection After an unsuccessful attempt the procedure will be aborted and the error displayed in the STATUS output of the FB n Range of values 1 255 6 Transmission attempts This parameter defines the maximum number of attempts the CP is allowed in order to tr...

Страница 46: ...ust set a lower priority at one communication partner and a higher one at the other high n Delete CP receive buffer on startup Default value Delete CP receive buffer at startup deactivated n This parameter may not be activated n The receive buffer of the CP 341 1CH01 is not deleted when the CPU status goes from STOP to RUN CPU startup With the protocol 3964 R is the operating mode Full duplex oper...

Страница 47: ...cial drivers Parameter Description Signal R B 0Volt Signal R A 5Volt Break evaluation With this preassignment wire break evaluation is pos sible at full duplex operation with RS422 Parameter Description Signal R B 5Volt Signal R A 0Volt Default value not activated No wire break detection is possible here Wiring receiver VIPA System 300S Communication protocols 3964 R 3964 R Parameter HB130 CP 341 ...

Страница 48: ...e Start ID Slave address Function code Data Flow control End ID A request may be addressed to a certain slave or sent as broadcast telegram to all slaves For identifying a broadcast telegram the slave address 0 is set Only write com mands may be sent as broadcast Modbus supports two different transmission modes n ASCII mode Every byte is transferred in 2 character ASCII code A start and an end ID ...

Страница 49: ...alog of the CP by the button Parameter 3 Here the parameters for transfer protocol data receipt and interface may be adjusted 4 Set at Protocol the Modbus protocol you want n Modbus Master RTU MODBUS Master n Modbus Master ASCII MODBUS ASCII Master 5 For parameterization of the protocol click at ð In the following these parameters are described Information about this may also be found in the onlin...

Страница 50: ...l the following parameters must have the same set tings on every communication partner Parameter Description Default value Data bits Number of bits that are displayed on a character On Modbus RTU protocol 8 data bits are preset n Range of values 8 fix 8 Stop bits When data is transmitted stop bits are appended to each character to be sent in order to signal the end of a char acter n Range of value...

Страница 51: ...operating mode Interference suppression transmis sion errors and breaks are ignored when the driver is in idle mode If the driver leaves the idle mode transmission error and break will result in error handling n Range Normal operation Interference suppression Normal operation Multiplier character delay time If one communication partner cannot meet the time requirements set by the Modbus specificat...

Страница 52: ...ll the following parameters must have the same set tings on every communication partner Parameter Description Default value Data bits Number of bits that are displayed on a character On Modbus RTU protocol 8 data bits are preset n Range of values 8 fix 8 Stop bits When data is transmitted stop bits are appended to each character to be sent in order to signal the end of a char acter n Range of valu...

Страница 53: ...tion every recognized transmission error and break will result in error handling even if the driver is in idle mode In the operating mode Interference suppression transmis sion errors and breaks are ignored when the driver is in idle mode If the driver leaves the idle mode transmission error and break will result in error handling Range of values Normal operation Interference suppres sion Normal O...

Страница 54: ...ial state of the receive lines For a connection with minimum reflections and the break evaluation at RS422 485 operation the lines may be preset with defined static voltage levels At the CP interface the wiring of the receiver is realized as follows Parameter Description None default value not activated No pre assignment of the receiving lines This setting only makes sense with bus capable spe cia...

Страница 55: ...ion codes are supported by the driver FC Function Action in the PLC 01 Read coil status read in bits memory bits M read in bits outputs Q read in bits 16bit grid timer T read in bits 16bit grid counter C 02 Read input status read in bits memory bits M read in bits inputs I 03 Read holding registers read in words data block DB 04 Read input registers read in words data block DB 05 Force single coil...

Страница 56: ... is no error the function code is replied On recognition of an error in the request message the slave sets the highest value bit in the function code function code OR 80h of the reply message This is followed by trans mission of one byte of error code Slave answer n OK Function code n Error Function code OR 80h error code Error code Meaning according to Modbus specification Cause 1 Illegal functio...

Страница 57: ...D_RK are used for communication between CPU CP and a communication partner More information about the usage of these blocks may be found in the manual SPEED7 Operation List from VIPA Communication with the user program VIPA System 300S Communication protocols Modbus Modbus Master Functionality HB130 CP 341 1CH01 en 18 40 57 ...

Страница 58: ... read in bits inputs I 03 Read holding registers read in words data block DB 04 Read input registers read in words data block DB 05 Force single coil write in bits memory bits M write in bits outputs Q 06 Preset single register write in words 07 Read exception status read in bits event 08 Loop back test 11 Fetch communication event counter read status word and event counter status event 12 Fetch c...

Страница 59: ...state of the 6 bit This serves for master information which data size to be handled Please also regard to activate 32bit access in the slave too 6 4 4 1 FC 01 Read Coil Status This function serves to read individual bits of the output area of the slave DB SEND source Address Name Type Comment 0 0 ADDR BYTE Slave address 1 0 FUNC BYTE Function code 2 0 start_addr WORD Bit start address 4 0 bit_numb...

Страница 60: ...addr WORD Bit start address 4 0 bit_number INT Amount of bits n start_addr start_addr is not checked by the driver and is sent unchanged n bit_number Any value between 1 2040 ASCII 1 2008 is permitted as bit_number DB RCV destination Address Name Type Comment 0 0 data 1 WORD Data 2 0 data 2 WORD Data n The driver enters the data of the reply message into the destination DB word by word n The 1 rec...

Страница 61: ...read DB RCV destination Address Name Type Comment 0 0 data 1 WORD Data 2 0 data 2 WORD Data 6 4 4 4 FC 04 Read Input Registers This function serves to read individual registers of the input area of the slave DB SEND source Address Name Type Comment 0 0 ADDR BYTE Slave address 1 0 FUNC BYTE Function code 2 0 start_register WORD Register start address 4 0 register_number INT Amount of registers n st...

Страница 62: ... is not checked by the driver and is sent unchanged The following two values are valid at the coil_state 0000h Bit 0 FF00h Bit 1 6 4 4 6 FC 06 Preset Single Register This command serves to overwrite a slave register with a new value DB SEND source Address Name Type Comment 0 0 ADDR BYTE Slave address 1 0 FUNC BYTE Function code 2 0 start_register WORD Register address 4 0 register_value WORD Regis...

Страница 63: ... des tination DB data 1 n The low byte of data 1 remains unchanged 6 4 4 8 FC 08 Loop Back Diagnostic Test n This function serves to check the communications connection n The slave must return the request message to the master unchanged n The reply message is not entered in the RCV destination DB DB SEND source Address Name Type Comment 0 0 ADDR BYTE Slave address 1 0 FUNC BYTE Function code 2 0 d...

Страница 64: ... function code serves to read the system words Status word Event counter and Message counter as well as 64byte Event byte of the slave n Here also information may be found in the description of the Gould Modbus Pro tocol DB SEND source Address Name Type Comment 0 0 ADDR BYTE Slave address 1 0 FUNC BYTE Function code DB RCV destination Address Name Type Comment 0 0 data 1 WORD Status word 2 0 data ...

Страница 65: ...4 4 12 FC 16 Preset Multiple Registers This function code serves to overwrite up to 127 ASCII 123 registers in the slave with one request message DB SEND source Address Name Type Comment 0 0 ADDR BYTE Slave address 1 0 FUNC BYTE Function code 2 0 start_register WORD Register bit start address 4 0 register_number INT Register amount of bits 6 0 data 1 WORD Register data 8 0 data 2 WORD Register dat...

Страница 66: ...t is started from the properties dialog of the CP by the button Parameter 3 Here the parameters for transfer protocol data receipt and interface may be adjusted 4 Set at Protocol the Modbus Slave protocol you want 5 For parameterization of the protocol click at ð In the following these parameters are described Information about this may also be found in the online help of the parameter plugin n Th...

Страница 67: ...the following parameters must have the same set tings on every communication partner Parameter Description Default value Data bits Number of bits that are displayed on a character On Modbus RTU protocol 8 data bits are preset n Range of values 8 fix 8 Stop bits When data is transmitted stop bits are appended to each character to be sent in order to signal the end of a char acter n Range of values ...

Страница 68: ...PU may be accessed by means of this function codes With timer and counters the reading access is only possible with function code FC 01 n With FC 02 a Modbus address area is assigned to bit memory and input area of the CPU which is accessed by reading n The data blocks of the CPU may be accessed R W by the register oriented function codes FC 03 06 and 16 Here you can indicate starting from which D...

Страница 69: ...tial state of the receive lines For a connection with minimum reflections and the break evaluation at RS422 485 operation the lines may be preset with defined static voltage levels At the CP interface the wiring of the receiver is realized as follows Parameter Description None default value not activated No pre assignment of the receiving lines This setting only makes sense with bus capable spe ci...

Страница 70: ...ange 1 255 With slave address 0 Broadcast Message every slave at the bus is addressed by the master This is only permitted in conjunction with the writing function codes Here the message is not applied by the slave The function code defines the meaning as well as the structure of a message The fol lowing function codes are supported by the Modbus slave driver FC Function Action in the PLC 01 Read ...

Страница 71: ...the time period for the transmission of 3 5 times character delay time This Time_Out for message end is therefore dependent on the transmission rate Baud rate in baud Time_Out in ms 76800 0 5 38400 1 19200 2 9600 4 300 128 For the byte sequence in the word is valid word high byte low byte If there is no error the function code is replied On recognition of an error in the request message the slave ...

Страница 72: ... Slave has illegal data address 3 Illegal data value Slave has illegal data value 4 Failure in associated device Slave has internal error 5 Acknowledge Function is carried out 6 Busy rejected message Slave is not ready to receive 7 Negative Acknowledgement Function cannot be carried out Error codes VIPA System 300S Communication protocols Modbus Modbus Slave Functionality HB130 CP 341 1CH01 en 18 ...

Страница 73: ...nager start the installation file of the driver and follow the instructions 3 FB 80 MODB_341 may be found in the block library after installation 4 The library may be opened in the Siemens SIMATIC manager by File è Open è Libraries and here Modbus n By a cyclic call of the FB 80 MODB_341 request telegrams from the master may be received and data may be sent with the slave CP n The conversion of th...

Страница 74: ...FO Input Output WORD Error addition information n LADDR Here type in the logical basic address of the CP This corresponds to the address of the hardware configuration of the CP n START_TIMER START_TIME After PowerON the CP needs several seconds to get operational Initialization attempts of the FB during this time are completed with error Because of this the FB repeats its initialization job severa...

Страница 75: ...ers assigned on this interface Check whether the ID specified on the communi cations FB is correct Analyze ERROR_INFO n Error during processing of a function code Error numbers 10 19 indicate an error during processing of a function code The CP transmitted an illegal processing job to the communication FB The error is also reported to the driver and subsequent processing jobs continue to be proces...

Страница 76: ...odbus Start Address and or access length in Modbus master system 16 Timers T End address n Attempted access to memory area Timers in excess of range end Attention Range length in CPU is CPU type dependent Remedy Reduce Modbus Start Address and or access length in Modbus master system 17 Counters C End address n Attempted access to memory area Counters in excess of range end Attention Range length ...

Страница 77: ...Remedy analyze FB7 STATUS OB 100 UN M 100 0 set CP_START S M 100 0 U M 100 1 reset CP_START_FM R M 100 1 OB 1 Call FB 80 DB80 Modbus slave CP341 FB LADDR 256 Basic address of CP START_TIMER T120 Timer startup START_TIME S5T 5S Time value startup OB_MASK TRUE Mask access errors CP_START M100 0 Initialization START CP_START_FM M100 1 Edge trigger flag CP_NDR M100 2 New write job CP CP_START_OK M100 ...

Страница 78: ...essed by the user program at the same time n Access to the CPU memory area is carried out while the user program is running whenever the FB 7 P_RCV_RK is passed n If data consistency is required when reading writing registers or bits the amount of data transferred by a single message must be limited to 32byte n For example a maximum of 16 registers with FC 03 04 16 or a maximum of 256bits with FC ...

Страница 79: ...puts I 03 Read holding registers read in words Data block DB 04 Read input registers read in words Data block DB 05 Force single coil write in bits Memory bits M write in bits Outputs Q 06 Preset single register write in words Data block DB 08 Loop back test 15 Force multiple coils write in bits 1 2040bits Memory bits M write in bits 1 2040bits Outputs Q 16 Preset multiple registers write in words...

Страница 80: ...the output area Rest bit number start_addr Param start address 8 Modulo 8 n Word address start_addr Param start address 16 PLC area With the address calculation it must be possible to divide the result start_addr Param start address by 16 without having a left over value Word by word access may only start from word limit n Values between 1 and 2040 are permitted as bit_number n This number of bits...

Страница 81: ...080 Counters 4080 4064 16 200 C 201 1000h 4096 Counters 4096 4064 16 200 C 202 6 4 8 2 FC 02 Read Input Status This function enables the Modbus master to read individual bits from the input area of the CPU Request message ADDR FUNC start_addr bit_number CRC Reply message ADDR FUNC byte_count n n byte data CRC n The Modbus bit address start_addr contains the start of the area of the CPU which is be...

Страница 82: ...dressing for FC 02 Modbus address in the transmission message Param start address SIMATIC memory area PLC area from 0 1023 Memory commence at M 1000 0 from 1024 2047 Inputs commence at I 100 0 start_addr Access Calculation Area in PLC hex decimal 0000h 0 Memory 0 0 8 1000 M 1000 0 0001h 1 Memory 1 0 8 1000 M 1000 1 01F1h 497 Memory 497 0 8 1000 M 1062 1 0400h 1024 Input 1024 1024 8 100 I 100 0 040...

Страница 83: ...signed to a Base DB Number in the SIMATIC memory area n Data block DB Base DB Number start_register offset_DB_no n Data word DBW start_register word_no x 2 Providing the resulting DB and the corresponding DBW to be read from is known start_register may be calculated with the following formula n start_register DB Base DB Number x 512 DBW 2 Please regard for DBW it is only allowed to use even number...

Страница 84: ...00h 0 0 000h 0 800 800 0 01FAh 500 0 1F4h 500 800 800 1000 0384h 900 1 184h 388 800 801 776 03FFh 1023 1 1FFh 511 800 801 1022 6 4 8 4 FC 04 Read Input Registers n This function is identical to FC 03 n The corresponding address allocation of the CPU memory area are established by the properties of FC 04 in the parameterization of the CP Here the fixed Modbus address in transmission message 0 may b...

Страница 85: ...ss the relevant bit within the bit memory area respectively the input area Rest bit number coil_addr Param start address 8 Modulo 8 n The following values are valid for Data_on off FF00h set bit 0000h delete bit Conversion Modbus addressing for FC 01 05 15 Modbus address in the transmission message Param start address SIMATIC memory area PLC area from 0 1023 Memory commence at M 1000 0 from 1024 2...

Страница 86: ...ister n The corresponding address allocation of the CPU memory area are established by the properties of FC 03 06 16 in the parameterization of the CP Here the fixed Modbus address in transmission message 0 may be assigned to a Base DB Number in the SIMATIC memory area n Data block DB Base DB Number start_register offset_DB_no n Data word DBW start_register word_no x 2 Providing the resulting DB a...

Страница 87: ...t_register word no 50h n Data block DB Base DB Number start_register offset_DB_no Data block DB 800 0 800 n Data word DBW start_register word no x 2 Data word DBW 80 x 2 160 start_register offset_DB_no word_no Base DB Number DB DBW hex decimal decimal hex decimal decimal decimal decimal 0000h 0 0 000h 0 800 800 0 01FAh 500 0 1F4h 500 800 800 1000 0384h 900 1 184h 388 800 801 776 03FFh 1023 1 1FFh ...

Страница 88: ...ntly returned to the master by the driver Request message ADDR FUNC diagnostic_code High Low test_data CRC Reply message ADDR FUNC diagnostic_code High Low test_data CRC Only diagnostic_code 0000 is supported by the driver Any 16bit value diagnostic_code test_data VIPA System 300S Communication protocols Modbus Modbus Slave Function codes HB130 CP 341 1CH01 en 18 40 88 ...

Страница 89: ...in the parameterization of the CP Here the Modbus address in transmission message briefly Param start address may be assigned to a SIMATIC memory area briefly PLC area n Byte address start_addr Param start address 8 PLC area n When accessing bit memories respectively outputs of the CPU the remaining Rest bit number is calculated and used to address the relevant bit within the bit memory area respe...

Страница 90: ...of the CPU memory area are established by the properties of FC 03 06 16 in the parameterization of the CP Here the fixed Modbus address in transmission message 0 may be assigned to a Base DB Number in the SIMATIC memory area n Data block DB Base DB Number start_register offset_DB_no n Data word DBW start_register word_no x 2 Providing the resulting DB and the corresponding DBW to be read from is k...

Страница 91: ...B_no 00h start_register word no 50h n Data block DB Base DB Number start_register offset_DB_no Data block DB 800 0 800 n Data word DBW start_register word no x 2 Data word DBW 80 x 2 160 start_register offset_DB_no word_no Base DB number DB DBW hex decimal decimal hex decimal decimal decimal decimal 0000h 0 0 000h 0 800 800 0 01FAh 500 0 1F4h 500 800 800 1000 0384h 900 1 184h 388 800 801 776 03FFh...

Страница 92: ...ents on STATUS are also entered in the diagnostics buffer of the CP Every CP error is entered in the diagnostic buffer of the CP In the same way as with the diagnostic buffer of the CPU you can also use the PLC functions to display the informa tion of the CP diagnostic buffer An error message is only output if the ERROR bit request completed with error is set In all other cases the STATUS word is ...

Страница 93: ...ing system EPROM of CP Remedy CP defective and must be replaced 01 02h RAM test of CP faulty Remedy CP defective and must be replaced 01 03h Request interface of CP defective Remedy CP defective and must be replaced 01 10h Fault in CP firmware Remedy Switch CP off and on again If necessary replace CP Event class 02h Initialization error Event class number Description 02 0Fh Invalid parameterizatio...

Страница 94: ...uring data transmission between CPU and CP reception n CPU is temporarily overloaded request queued for repetition Remedy Reduce number of communication calls n CPU data area temporarily unavailable for access for example because receive block is called too infrequently Remedy Call the receive block more frequently n CPU data area temporarily unavailable for access for example because receive bloc...

Страница 95: ...edy A repetition is not an error but it can be an indication that there are disturbances on the transmission line or that the partner device is behaving incorrectly If the message frame still has not been transmitted after the maximum number of repetitions an error number describing the first error that occurred is output 07 02h With 3964 R only Error during connection setup after STX was send NAK...

Страница 96: ...exceeded Remedy Check the interface cable or the transmission parameters Also check that receive function between CPU and CP is correctly parameterized at the partner device 07 0Ah The data could not be transmitted The permitted number of transfer attempts was exceeded Remedy Check the interface cable or the transmission parameters Event class 08h Receive error Event class number Description 08 01...

Страница 97: ...ion line 08 0Ah There is no free input buffer available Remedy The FB P_RCV_RK must be called more frequently 08 0Ch Transmission error n Transmission error parity error stop bit error or overflow error detected With 3964 R only n If faulty character is received in idle mode the error is reported immediately so that distur bances on the transmission line can be detected early n If this occurs duri...

Страница 98: ...value for the reply monitoring time set with PtP_PARAM is big enough Check if the specified slave address exists 08 31h With Modbus Master RTU only The first character in the reply message from the slave is different from the slave address sent in the request message for operating mode normal Remedy The wrong slave has replied Check if the transmission line is interrupted interface analyzer may be...

Страница 99: ...gth is required for the transferred function code Remedy The minimum length for this function code is 6bytes 0E 42h With Modbus master only Transferred function code is illegal Remedy The only function codes which are permitted are those listed in the chapter Function codes Ä Chap 6 4 4 Modbus Master Function codes page 58 0E 43h With Modbus master only Slave Address 0 Broadcast not permitted with...

Страница 100: ...ource DB 0E 4Fh With Modbus master only The R_TYP specified for SFB SEND RK is illegal with this driver Remedy X has not to be entered as R_TYP 0E 50h With Modbus master only Slave address incorrect The received slave address is different from the sent slave address Remedy The wrong slave has replied Check if the transmission line is interrupted interface analyzer may be required 0E 51h With Modbu...

Страница 101: ... in ASCII mode and not RTU 0E 61h With Modbus master only Reply message with Exception Code 01 Illegal Function Remedy See manual of slave device 0E 62h With Modbus master only Reply message with Exception Code 02 Illegal Data Address Remedy See manual of slave device 0E 63h With Modbus master only Reply message with Exception Code 03 Illegal Data Value Remedy See manual of slave device 0E 64h Wit...

Страница 102: ...in SFCERR variable in instance DB Remedy Load SFCERR variable from instance DB 1E 0Fh Static error when the SFC 58 WD REC Write Data Return value RET_VAL of SFC is available for evaluation in SFCERR variable in instance DB Remedy Load SFCERR variable from instance DB 1E 41h Number of bytes set in LEN parameter of FBs illegal Remedy Keep to the value range of 1 to 1024bytes VIPA System 300S Diagnos...

Страница 103: ...tions The access takes place with the following pro ceeding 1 Start the Siemens SIMATIC manager with your project 2 Select the station and open the hardware object via the hardware configurator 3 Select the CP and choose PLC è Module ð The Module Information dialog box of the CP appears 4 Select the Diagnostic Buffer register ð Here the most recent diagnostic events of the CP are displayed n Addit...

Страница 104: ...U diagnos tics buffer may be read with the PC by means of the PLC functions When a diagnostics interrupt occurs the SF LED lights up and the OB 82 is called n As soon as an error occurs the OB 82 is called with the diagnostics data as start up information Here you have the possibility to react on the diagnostics by means of a corresponding programming n If you have no OB 82 programmed the CPU auto...

Отзывы: