background image

If the 

Telegram-Info-Byte

 is 04h, an additional offset is entered. Otherwise there is no

Offset in the telegram. Calculating the Offset with fragmented transfer:

Data_Offset = (Fragment_c 1) × (IO_Size-1) -7 + Offset

n

Data_Offset:

Offset of the data in the input area

n

Fragment_counter:

Absolute number of fragments

n

IO_Size:

Number of used bytes in the address area

n

Offset:

Offset value in the telegram

Here the received user data of the serial communication may be found.

Bit 3...0

Reserved for sending

Bit 7...4

n

8h: Acknowledgement: Idle state

n

Ah: Acknowledgement: input area free for new data

n

Bh: Command: Execute a reset on the CP

4.3.3  Examples

IO-Size = 60byte, length = 40byte

Host system

 

CP

Byte

Function

 

Byte

Function

0

0Ah Command

u

 

 

1

00h Telegram-Info

 

 

2

00h Length high byte

 

 

3

28h Length low byte

 

 

4...43

User data byte 0...39

 

 

44...59

is not used

 

 

 

 

 

 

 

 

 

t

0

A0h Acknowledgement

IO-Size = 16byte, length = 50byte

Header Host system

 

CP

Byte

Function

 

Byte

Function

0

09h Command

u

 

 

1

00h Telegram-Info

 

 

2

00h Length high byte

 

 

3

28h Length low byte

 

 

Offset

User data

Acknowledgement

Send data without frag-

mentation

Send data with fragmenta-

tion

VIPA System SLIO

Deployment

Principal communication via back plane bus > Examples

HB300 | CP | 040-1CA00 | en | 18-28

 

49

Summary of Contents for 040-1CA00

Page 1: ...CP 040 1CA00 Manual HB300 CP 040 1CA00 en 18 28 VIPA System SLIO CP 040 RS422 485 www vipa com en service support manuals ...

Page 2: ...040 1CA00_000_CP040 RS422 485 4 EN 2018 VIPA GmbH Ohmstr 4 91074 Herzogenaurach Telephone 09132 744 0 Fax 09132 744 1864 Email info vipa com Internet www vipa com ...

Page 3: ...3 3 2 Structure 34 3 3 Technical data 38 3 3 1 Technical data protocols 39 4 Deployment 41 4 1 Fast introduction 41 4 2 In Output area 42 4 3 Principal communication via back plane bus 43 4 3 1 Sending data 43 4 3 2 Receiving data 46 4 3 3 Examples 49 4 4 Communication via handling blocks 52 4 4 1 Overview 52 4 4 2 VIPA Lib 53 4 5 Diagnostic data 54 5 Serial communication protocols 57 5 1 Overview...

Page 4: ...arameter data of Modbus 74 5 6 Deployment Modbus 79 5 6 1 Modbus Overview 79 5 6 2 Modbus Access to multiple slaves 81 5 6 3 Modbus Function codes 82 5 6 4 Modbus Error messages 86 VIPA System SLIO Table of contents HB300 CP 040 1CA00 en 18 28 4 ...

Page 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...

Page 6: ...It contains a description of the structure project engineering and deployment Product Order number as of state HW FW CP 040 RS422 485 040 1CA00 01 V1 0 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 overall t...

Page 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...

Page 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...

Page 9: ...lexity is low because the supply of the DC 24V power section is integrated to the backplane bus and defective modules may be replaced with standing wiring By deployment of the power modules in contrasting colors within the system further isolated areas may be defined for the DC 24V power section supply respectively the electronic power supply may be extended with 2A VIPA System SLIO Basics and mou...

Page 10: ...ctrically connected this means these are assigned to the back plane bus the electronic modules are power supplied and each periphery module is con nected to the DC 24V power section supply With this CPU 01x the CPU electronic and power supply are integrated to one casing As head module via the integrated power module for power supply CPU electronic and the electronic of the connected periphery mod...

Page 11: ...wer module may not be separated Here you may only exchange the electronic module In the System SLIO there is the possibility to place up to 64 modules in on line By means of the line extension you can divide this line into several lines Here you have to place a line extension master at each end of a line and the subsequent line has to start with a line extension slave Master and slave are to be co...

Page 12: ...exchanged for a functional module with standing installation At the front side there are LEDs for status indication For simple wiring each module shows a corre sponding connection diagram at the front and at the side 2 2 3 Accessories The shield bus carrier order no 000 0AB00 serves to carry the shield bus 10mm x 3mm to connect cable shields Shield bus carriers shield bus and shield fixings are no...

Page 13: ...ility to fix the assignment of electronic and terminal module Here coding pins order number 000 0AC00 from VIPA can be used The coding pin consists of a coding jack and a coding plug By combining electronic and terminal module with coding pin the coding jack remains in the electronic module and the coding plug in the terminal module This ensures that after replacing the electronics module just ano...

Page 14: ...Dimensions CPU 01x Dimensions bus coupler and line extension slave VIPA System SLIO Basics and mounting Dimensions HB300 CP 040 1CA00 en 18 28 14 ...

Page 15: ...Dimensions in mm Dimensions line extension master Dimension periphery module Dimensions electronic module VIPA System SLIO Basics and mounting Dimensions HB300 CP 040 1CA00 en 18 28 15 ...

Page 16: ...ocking lever is opened The modules are each installed on a mounting rail The electronic and power section supply are connected via the backplane bus Up to 64 modules may be mounted Please consider here that the sum current of the electronic power supply does not exceed the maximum value of 3A By means of the power module 007 1AB10 the current of the electronic power supply may be expanded accordin...

Page 17: ...sible combinations for coding with the use of both coding sockets 1 Plug according to your coding 2 coding jacks in the coding sockets of your elec tronic module until they lock 2 Now plug the according coding plugs into the coding jacks 3 To fix the coding put both the electronic and terminal module together until they lock CAUTION Please consider that when replacing an already coded electronic m...

Page 18: ...er at the right side of the Head module by pulling it forward Keep the cover for later mounting 4 For mounting turn the locking lever of the module upward until it engages 5 For mounting place the module to the module installed before and push the module to the mounting rail guided by the strips at the upper and lower side of the module 6 Turn the locking lever of the periphery module downward aga...

Page 19: ...cted to the corresponding terminal module With wiring the terminal modules terminals with spring clamp technology are used for wiring The spring clamp technology allows quick and easy connection of your signal and supply lines In contrast to screw terminal connections this type of connection is vibration proof Umax 240V AC 30V DC Imax 10A Cross section 0 08 1 5mm2 AWG 28 16 Stripping length 10mm 1...

Page 20: ... mounting of shield bus carriers are necessary The shield bus carrier available as accessory serves to carry the shield bus to connect cable shields 1 Each System SLIO module has a carrier hole for the shield bus carrier Push the shield bus carrier until they engage into the module With a flat mounting rail for adaptation to a flat mounting rail you may remove the spacer of the shield bus car rier...

Page 21: ...mm2 AWG 28 16 Stripping length 10mm 1 Pin number at the connector 2 Opening for screwdriver 3 Connection hole for wire 1 Insert a suited screwdriver at an angel into the square opening as shown Press and hold the screwdriver in the opposite direction to open the contact spring 2 Insert the stripped end of wire into the round opening You can use wires with a cross section of 0 08mm2 up to 1 5mm2 3 ...

Page 22: ...supply 8 Sys 0V I GND for electronic section supply I Input CAUTION Since the power section supply is not internally protected it is to be exter nally protected with a fuse which corresponds to the maximum current This means max 10A is to be protected by a 10A fuse fast respectively by a line circuit breaker 10A characteristics Z The electronic power section supply is internally protected against ...

Page 23: ...activated Here the power module with the order number 007 1AB10 is to be placed between the peripheral modules n If the 10A for the power section supply is no longer sufficient you may use the power module from VIPA with the order number 007 1AB00 So you have also the possibility to define isolated groups n The power module with the order number 007 1AB10 is to be used if the 3A for the electronic...

Page 24: ...e necessary The shield bus carrier available as accessory serves to carry the shield bus to connect cable shields 1 Each System SLIO module has a carrier hole for the shield bus carrier Push the shield bus carrier until they engage into the module With a flat mounting rail for adaptation to a flat mounting rail you may remove the spacer of the shield bus car rier 2 Put your shield bus into the shi...

Page 25: ...l this engages to the terminal module ð Now you can bring your system back into operation 1 Power off your system 2 Remove if exists the wiring of the module 3 For demounting and exchange of a head module or a group of modules due to mounting reasons you always have to remove the electronic module right beside After mounting it may be plugged again Press the unlocking lever at the lower side of th...

Page 26: ...before 10 Wire your module ð Now you can bring your system back into operation 1 Power off your system 2 Remove if exists the wiring of the module group 3 For demounting and exchange of a head module or a group of modules due to mounting reasons you always have to remove the electronic module right beside After mounting it may be plugged again Press the unlocking lever at the lower side of the jus...

Page 27: ...odule group put it to the gap between the both modules and push it guided by the stripes at both sides to the mounting rail 8 Turn all the locking lever downward again 9 Plug again the electronic module which you have removed before 10 Wire your module group ð Now you can bring your system back into operation VIPA System SLIO Basics and mounting Demounting periphery modules HB300 CP 040 1CA00 en 1...

Page 28: ...g power modules on page 21 Behaviour After PowerON the MF LED of one module respectively more modules flashes The RUN LED remains off Reason At this position a module is placed which does not correspond to the configured module Remedy Match configuration and hardware structure Behaviour After PowerON all of the RUN LEDs up to the defective module are flashing With all following modules the MF LED ...

Page 29: ...to the interference 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 t...

Page 30: ...th conductor 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 isol...

Page 31: ...sulation 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 55 C Vertical installation EN 61131 2 0 50 C Air humidity EN 60068 2 30 RH1 without c...

Page 32: ...y 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 like c...

Page 33: ... master slave with ASCII and RTU short long with a telegram length of 250byte n Up to 250 telegrams 1024byte receive and send buffer n Character delay time ZVZ parameterizable in ms steps n Configured by parameter data Type Order number Description CP 040 RS422 485 040 1CA00 Communication processor RS422 485 isolated ASCII STX ETX 3964 R Modbus master slave short long Features Order data VIPA Syst...

Page 34: ...s communication is OK Module status reports an error Bus communication is not possible Module status reports an error Error at bus power supply X 2Hz Error in configuration Ä Chapter 2 8 Trouble shooting LEDs on page 28 TxD green Transmit data RxD green Receive data IF 2Hz Modbus internal error Other protocols error indicator for open circuit lines overflow parity or framing errors not relevant X ...

Page 35: ...d Receive data RS485 7 GND_ISO O Signal ground isolated 8 TERM I Terminating resistor A bridge between the two TERM inputs activates a terminal resistance of 120Ω on the receiver side between RxD P Pin 2 and RxD N Pin 6 I Input O Output n Logical conditions as voltage difference between 2 twisted lines n Serial bus connection full duplex RS422 four wire operation half duplex RS485 two wire operati...

Page 36: ... connection A bridge between the two TERM inputs activates a terminal resistance of 120Ω on the receiver side between RxD P Pin 2 and RxD N Pin 6 VIPA System SLIO Hardware description Structure HB300 CP 040 1CA00 en 18 28 36 ...

Page 37: ...iving lines This setting only makes sense with bus capable special drivers Signal R A 5V Break evaluation Signal R B 0V 01h With this preassignment break detection is possible at fullduplex operation RS422 Signal R A 0V Signal R B 5V 02h This preassignment corresponds to the idle state no sender is activated at halfduplex operation at RS485 Here wire break recognition is not possible Defined stati...

Page 38: ...cs information read out possible Supply voltage display green LED Group error display red LED Channel error display red LED Point to point communication PtP communication ü Interface isolated ü RS232 interface RS422 interface ü RS485 interface ü Connector Terminal module Transmission speed min 150 bit s Transmission speed max 115 2 kbit s Cable length max 1200 m Point to point protocol ASCII proto...

Page 39: ...on yes 3 3 1 Technical data protocols ASCII Telegram length max 1024 byte Baud rate 150 300 600 1200 1800 2400 4800 7200 9600 14400 19200 38400 57600 76800 109700 115200 Baud Character delay time ZVZ 0 65535 in ms steps with 0 triple character time is used Flow control none hardware XON XOFF Number of telegrams to buffer max 250 End recognition of a telegram after character delay time ZVZ STX ETX ...

Page 40: ...only 3964R Priority low high Character delay time ZVZ 0 255 in 20ms steps with 0 triple character time is used Acknowledgment delay time QVZ 0 255 in 20ms steps with 0 triple character time is used Number of connection attempts 0 255 Number of transfer attempts 1 255 Modbus Telegram length max 258 byte Addressable range each 1024 byte Baud rate 150 300 600 1200 1800 2400 4800 7200 9600 14400 19200...

Page 41: ...4 R n Modbus master slave When you send data which are written by a host system via the back plane bus to the corresponding output area to the send buffer these are sent by the interface If the communication processor receives data from its interface the data are stored in a circular buffer and transmitted via the back plane bus to the input area of the host system Please consider that the size of...

Page 42: ...your bus coupler Addr Name Bytes Function IX 5450h SX 0 CP_IN_STS 1 Status byte s 1 01h 1 CP_IN_1 1 Input byte 1 s 2 02h 2 CP_IN_2 1 Input byte 2 s 3 03h n 1 CP_IN_n 1 1 Input byte n 1 s m mh This parameter contains information about the fragmentation of the data in the receive buffer The content of these data depends on the structure of the data in the receive buffer For more information see the ...

Page 43: ... fragments With the fragmented transmission each fragment is acknowledged by the CP Host system CP Byte Function Byte Function 0 Control Byte u 1 Telegram Info Byte 2 Length High Byte 3 Length Low Byte 4 n 1 User data Byte 0 n 5 t 0 Acknowledgement Status with n number of used bytes in the address area IO Size Bit 3 0 n 8h Idle state no data available n Ah Start transfer without fragmentation n Bh...

Page 44: ...ending back a status message via this byte n Write 1 telegram n Write fragments n Write last fragment Host system CP Byte Function Byte Function 0 Control Byte u 1 Telegram Info Byte 2 Length high byte 3 Length low byte 4 n 1 User data byte 0 n 5 t 0 Acknowledgement Status with n number of used bytes in the address area IO Size Bit 3 0 n 8h Idle state no data available n 9h Start transfer with fra...

Page 45: ...address area IO Size Bit 3 0 n 0h 7h Fragment number n 8h Idle state no data available n Bh Execute a reset on the CP Bit 7 4 Reserved for receipt Enter here the user data for the serial communication Bit 3 0 Reserved for receipt Bit 7 4 n 0h 7h Acknowledgement Fragment number n 8h Acknowledgement Idle state n Ch Status Reset was executed on the CP n Dh Status The entered length is not valid n Eh ...

Page 46: ...ceiving data from the CP the data are automatically transferred to the input area of the host system Depending on the length of the received data the telegram is transferred to the host system as one fragment or with multiple fragments The fragmented transfer is started by copying bit 3 0 of byte 0 of the input area to bit 7 4 of byte 0 of the output area Possible errors during the transfer may be...

Page 47: ... Info Byte is 04h an additional offset is entered Otherwise there is no Offset in the telegram 0517h Length is not valid Length 0 or Length 1024 080Ah A free receive buffer is not available 080Ch Character with error received character frame or parity error Here the received user data of the serial communication may be found After you have processed accordingly the data in your master system you h...

Page 48: ...8h Idle state no data available 9h Data were transferred with fragmentation Ah Data were transferred without fragmentation Bit 7 4 Reserved for sending 00h The telegram does not contain any additional offset information 04h The telegram contains additional offset data which are located as word after Length With this offset the position of the user data in the input area is defined Length of user d...

Page 49: ...owledgement Idle state n Ah Acknowledgement input area free for new data n Bh Command Execute a reset on the CP 4 3 3 Examples IO Size 60byte length 40byte Host system CP Byte Function Byte Function 0 0Ah Command u 1 00h Telegram Info 2 00h Length high byte 3 28h Length low byte 4 43 User data byte 0 39 44 59 is not used t 0 A0h Acknowledgement IO Size 16byte length 50byte Header Host system CP By...

Page 50: ...ment u 1 15 User data byte 27 41 t 0 10h Acknowledgement Last fragment Host system CP Byte Function Byte Function 0 0Ah Command u 1 8 User data byte 42 49 11 15 is not used t 0 A0h Acknowledgement IO Size 60byte Length 40byte Host system CP Byte Function Byte Function t 0 0Ah Fragment Info 1 00h Telegram Info Byte 2 00h Length high byte Receive data without frag mentation VIPA System SLIO Deployme...

Page 51: ... t 0 09h Fragment Info 1 00h Telegram Info Byte 2 00h Length high byte 3 2Ah Length low byte 2byte 4 00h Return Value high byte 5 00h Return Value low byte 6 15 User data byte 0 9 0 90h Acknowledgement u 0 1 Fragment Host system CP Byte Function Byte Function t 0 00h Fragment Info 1 15 User data byte 10 24 0 00h Acknowledgement u 0 Receive data with frag mentation VIPA System SLIO Deployment Princ...

Page 52: ...otocols to the communication partner takes place which may be configured by the hardware configuration n A telegram to be sent is divided into blocks in the CPU depending on the IO size and transferred via the data channel to the CP In the CP these blocks are assembled in the send buffer and when the telegram is complete the telegram is sent by the serial interface n The exchange of received teleg...

Page 53: ...024byte CONTROL Software handshake via CONTROL block For recognizing a signal change a minimum pulse time is necessary The decisive factors are CPU cycle time the refresh time on the CP and the response time of the communication partner 4 4 2 VIPA Lib More information about the usage of these blocks can be found in the manual Serial Communication SW90GS0MA at www vipa com in the Service Support ar...

Page 54: ... IX 2F00h SX Subindex for access via EtherCAT with Index 5005h More can be found in the according manual of your bus coupler Name Bytes Function Default DS IX SX ERR_A 1 Diagnostic 00h 01h 2F01h 02h MODTYP 1 Module information 1Ch 03h ERR_C 1 reserved 00h 04h ERR_D 1 Diagnostic 00h 05h CHTYP 1 Channel type 60h 06h NUMBIT 1 Number diagnostic bits per channel 08h 07h NUMCH 1 Number channels of the m...

Page 55: ... Bit 7 0 0 Number of diagnostic bits of the module per channel here 08h Byte Bit 7 0 0 Number of channels of the module here 01h Byte Bit 7 0 0 n Bit 0 set at error in channel group 0 n Bit 7 1 reserved Byte Bit 7 0 0 n Bit 3 0 reserved n Bit 4 Wire break only possible with RS422 n Bit 7 5 reserved Byte Bit 7 0 0 Bit 7 0 reserved MODTYP Modul informa tion ERR_D Diagnostic CHTYP Channel type NUMBIT...

Page 56: ...of the diagnostic µs ticker In the SLIO module there is a timer µs ticker With PowerON the timer starts counting with 0 After 232 1µs the timer starts with 0 again DIAG_US µs ticker VIPA System SLIO Deployment Diagnostic data HB300 CP 040 1CA00 en 18 28 56 ...

Page 57: ...h character to be transferred is preceded by a synchronizing pulse as start bit The end of the transferred character is formed by the stop bit Beside the start and stop bit there are further parameterizable agreements between the communication partners necessary for serial data transfer This character frame consists of the following elements n Transfer speed Baud rate n Character and acknowledgeme...

Page 58: ... may no longer be detected 5 2 2 Parameter data of ASCII DS Record set for access via CPU PROFIBUS and PROFINET IX Index for access via CANopen SX Subindex for access via EtherCAT with Index 3100h EtherCAT Slot More can be found in the according manual of your bus coupler Name Bytes Function Default DS IX SX PII_L 1 Length process image input data 1 2 02h 3100h 01h PIQ_L 1 Length process image out...

Page 59: ...values Hex Baud Hex Baud Hex Baud 00 9600 06 2400 0C 38400 01 150 07 4800 0D 57600 02 300 08 7200 0F 76800 03 600 09 9600 0E 115200 04 1200 0A 14400 10 109700 05 1800 0B 19200 n Default 00h 9600Baud Protocol which is to be used This setting influences the structure For the ASCII protocol enter 01h DIAG_EN Diagnostic interrupt BAUD Transfer rate PROTOCOL VIPA System SLIO Serial communication protoc...

Page 60: ...he data transfer when the transmitting station sends the data faster than it can be processed by the receiving station Flow control can be hardware or software based XON XOFF Hardware flow control employs the RTS and CTS lines and these must therefore be wired accordingly Software flow control employs the control characters XON 11h and XOFF 13h Please remember that your data must not contain these...

Page 61: ...tion at a time In half duplex operation therefore at any one time data is being either sent or received 01h Full duplex Four wire operation RS422 Data is exchanged between the communication partners in both directions simultaneously In full duplex operation therefore data may be sent and received at the same time Each communication partner must operate simultaneously a receipt line Range of values...

Page 62: ...n 02h Signal R A 0V Signal R B 5V This pre assignment corresponds to the idle state no sender is activated at half duplex operation with RS485 Wire break recog nition is not possible here Range of values 00h none 01h R A 5Volt R B 0Volt 02h R A 0Volt R B 5Volt n Default 00h VIPA System SLIO Serial communication protocols ASCII Parameter data of ASCII HB300 CP 040 1CA00 en 18 28 62 ...

Page 63: ...BUS and PROFINET IX Index for access via CANopen SX Subindex for access via EtherCAT with Index 3100h EtherCAT Slot More can be found in the according manual of your bus coupler Name Bytes Function Default DS IX SX PII_L 1 Length process image input data 1 2 02h 3100h 01h PIQ_L 1 Length process image output data 1 2 02h 3101h 02h DIAG_EN 1 Diagnostic interrupt 1 00h 00h 3102h 03h BAUD 1 Baud rate ...

Page 64: ...0h Speed of the data transfer in bit s baud There are the following range of values other values are not permitted Range of values Hex Baud Hex Baud Hex Baud 00 9600 06 2400 0C 38400 01 150 07 4800 0D 57600 02 300 08 7200 0F 76800 03 600 09 9600 0E 115200 04 1200 0A 14400 10 109700 05 1800 0B 19200 n Default 00h 9600Baud Protocol which is to be used This setting influences the structure For the ST...

Page 65: ...nism that synchronizes the data transfer when the transmitting station sends the data faster than it can be processed by the receiving station Flow control can be hardware or software based XON XOFF Hardware flow control employs the RTS and CTS lines and these must therefore be wired accordingly Software flow control employs the control characters XON 11h and XOFF 13h Please remember that your dat...

Page 66: ... 2 at Number end identifications End identification 1 2 Range 0 255 n End identification 1 Default 3 n End identification 2 Default 0 Via the Operating mode you may specify if the interface is operated in half duplex RS485 or full duplex RS422 operation At half duplex parameterization with RS485 software data flow control is not possible Value Description 00h Half duplex Two wire operation RS485 D...

Page 67: ...kes sense with bus capable special drivers 01h Signal R A 5V Break evaluation Signal R B 0V With this pre assignment break detection is with RS422 possible at full duplex operation 02h Signal R A 0V Signal R B 5V This pre assignment corresponds to the idle state no sender is activated at half duplex operation with RS485 Wire break recog nition is not possible here Range of values 00h none 01h R A ...

Page 68: ...y 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 other c...

Page 69: ...of 3964 R DS Record set for access via CPU PROFIBUS and PROFINET IX Index for access via CANopen SX Subindex for access via EtherCAT with Index 3100h EtherCAT Slot More can be found in the according manual of your bus coupler Name Bytes Function Default DS IX SX PII_L 1 Length process image input data 1 2 02h 3100h 01h PIQ_L 1 Length process image output data 1 2 02h 3101h 02h DIAG_EN 1 Diagnostic...

Page 70: ...d of the data transfer in bit s baud There are the following range of values other values are not permitted Range of values Hex Baud Hex Baud Hex Baud 00 9600 06 2400 0C 38400 01 150 07 4800 0D 57600 02 300 08 7200 0F 76800 03 600 09 9600 0E 115200 04 1200 0A 14400 10 109700 05 1800 0B 19200 n Default 00h 9600Baud Protocol which is to be used This setting influences the structure Range of values 0...

Page 71: ...e delay time that must expire before a command is executed The ZNA is specified in units of 20ms Range of values 0 255 n Default 0 The character delay time ZVZ defines the maximum time that may expire between two characters of a single telegram during the reception of the telegram The ZVZ is specified in units of 20ms When the ZVZ 0 the character delay time ZVZ will be calculated automatically abo...

Page 72: ...tings Range of values 00h low Range of values 01h high n Default 0 Via the Operating mode you may specify if the interface is operated in half duplex RS485 or full duplex RS422 operation At half duplex parameterization with RS485 software data flow control is not possible Value Description 00h Half duplex Two wire operation RS485 Data is exchanged between the communication partners but only in one...

Page 73: ...t 02h R A 0Volt R B 5Volt n Default 00h 5 5 Modbus 5 5 1 Basics Modbus The Modbus protocol is a communication protocol that defines a hierarchic structure between a master and several slaves Physically Modbus transmits via a serial half duplex connection as point to point connection with RS232 or as multi point connection with RS485 There are no bus conflicts for the master because the master can ...

Page 74: ... user data with one telegram In Modbus Slave short operation the CP communicates with a Modbus Master Depending on the function code the CP receives data from the Modbus Master or serves for data for him The data handling on slave side automatically takes place This opera tion mode is especially convenient for the fast transfer of small volumes of data via Modbus In Modbus Slave long operation onl...

Page 75: ...nt 00h 80h 3112h 13h 1 This record set may only be transferred at STOP state 2 Value depends on the host system Here you activate respectively deactivate the diagnostic function Byte Bit 7 0 0 n Range of values 00h deactivate 40h activate n Default 00h Speed of the data transfer in bit s baud There are the following range of values other values are not permitted Range of values Hex Baud Hex Baud H...

Page 76: ...purposes of the parity check the information bits are expanded by the parity bit The value of the parity bit 0 or 1 completes the value of all the bits to obtain a pre arranged state If the parity was not specified the parity bit is set to 1 but it is not evalu ated The stop bits are appended to each character and signify the end of the character Enter in the Modbus slave protocol an address for t...

Page 77: ...ion partners but only in one direction at a time In half duplex operation therefore at any one time data is being either sent or received 01h Full duplex Four wire operation RS422 Data is exchanged between the communication partners in both directions simultaneously In full duplex operation therefore data may be sent and received at the same time Each communication partner must operate simultaneou...

Page 78: ...eak detection is with RS422 possible at full duplex operation 02h Signal R A 0V Signal R B 5V This pre assignment corresponds to the idle state no sender is activated at half duplex operation with RS485 Wire break recog nition is not possible here Range of values 00h none 01h R A 5Volt R B 0Volt 02h R A 0Volt R B 5Volt n Default 00h VIPA System SLIO Serial communication protocols Modbus Parameter ...

Page 79: ...ifications n Transfer your project to the PLC Except of the Modbus Slave short the communication always requires a PLC applica tion For this the communication happens via handling blocks that you may include into your configuration tool by means of the VIPA library Fx000011_Vxxx zip The library is available at the service area of www vipa com 5 6 1 1 Communication options The following text descri...

Page 80: ...Enter here the start address for the in and output area from where on depending on the IO Size the input and output data are stored in the CPU Modbus Master The communication in master mode happens via data blocks deploying the CP 040 han dling blocks FB 60 SEND and FB 61 RECEIVE or FB 65 SEND_RECV Here you can transfer up to 250byte user data Modbus Slave long In the Modbus Slave long mode only a...

Page 81: ...t occur bus conflict errors because the master may only communicate with one slave at a time The master sends a command telegram to the slave specified via the address and waits for a certain time where within the slave may send its respond telegram During the latency the communi cation with another slave is not possible For the communication with multiple slaves every slave needs a SEND data bloc...

Page 82: ... Input Register and word outputs as Holding Reg ister Normally the access at Modbus happens by means of the ranges 0x 1x 3x and 4x 0x and 1x gives you access to digital bit areas and 3x and 4x to analog word areas For the CPs from VIPA is not differentiating digital and analog data the following assign ment is valid 0x Bit area for master output data Access via function code 01h 05h 0Fh 1x Bit are...

Page 83: ...d n words Read n words master input area 3x 05h Write 1 bit Write 1 bit to master output area 0x 06h Write 1 word Write 1 word to master output area 4x 0Fh Write n bits Write n bits to master output area 0x 10h Write n words Write n words to master output area 4x Point of View of Input and Output data The description always takes place from the point of view of the master Here data which were sent...

Page 84: ...Command telegram Slave address Function code Address 1 bit Number of bits Check sum CRC LRC 1byte 1byte 1word 1word 1word Respond telegram Slave address Function code Number of read bytes Data 1 byte Data 2 byte Check sum CRC LRC 1byte 1byte 1byte 1byte 1byte 1word max 250byte 03h Read n words of master output area 4x 04h Read n words master input area 3x Command telegram Slave address Function co...

Page 85: ...RC LRC 1byte 1byte 1word 1word 1word Respond telegram Slave address Function code Address bit Status bit Check sum CRC LRC 1byte 1byte 1word 1word 1word Code 06h Write 1 word to master output area 4x Command telegram Slave address Function code Address word Value word Check sum CRC LRC 1byte 1byte 1word 1word 1word Respond telegram Slave address Function code Address word Value word Check sum CRC ...

Page 86: ... Number of bytes Data 1 word Data 2 word Check sum CRC LRC 1byte 1byte 1word 1word 1byte 1word 1word 1word 1word max 125words Respond telegram Slave address Function code Address 1 word Number of words Check sum CRC LRC 1byte 1byte 1word 1word 1word 5 6 4 Modbus Error messages At the communication with Modbus there are 2 error types n Master doesn t receive valid data n Slave responds with error m...

Page 87: ... been received ERROR05 F FAULT Error frame fault The check sum of the telegram is faulty ERROR06 F START Error frame start The start bit it wrong this error may only occur with Modbus ASCII If the slave answers with an error the function code is sent back like shown below marked as or with 80h DB11 DBD 0 DW 16 05900000 with 05 Respond telegram Slave address 05h 90 Function code 90h error message f...

Reviews: