Instruction Manual
Universal Fieldbus-Gateway
UNIGATE
®
CL - MPI
Deutschmann Automation GmbH & Co. KG
www.deutschmann.com | wiki.deutschmann.de
Страница 1: ...Instruction Manual Universal Fieldbus Gateway UNIGATE CL MPI Deutschmann Automation GmbH Co KG www deutschmann com wiki deutschmann de ...
Страница 2: ...Manual Art No V3583E ...
Страница 3: ...RS interfaces at the UNIGATE CL 15 5 2 Buffer sizes at the UNIGATE CL 15 5 3 Framing Check 15 6 SSI interface 16 6 1 Initiation of the SSI interface 16 6 2 Parameter 16 6 2 1 Resolution 16 6 2 2 SSI Encoder Type 16 6 2 3 Parameter sample frequency Clock stretch 16 6 2 4 Parameter Encoder monitoring Check Encoder 17 6 3 Hardware wiring 17 7 The Debug interface 18 7 1 Overview of the Debug interface...
Страница 4: ...ister FC4 Read Input Register 26 10 3 1 3 Example Write Single Coil FC5 27 10 3 1 4 Example Write Single Register FC6 28 10 3 1 5 Example Force multiple coils FC 15 29 10 3 1 6 Example Preset multiple register FC16 30 10 4 Protocol Universal Modbus RTU Master 31 10 4 1 Data structure Fieldbus side e g PROFIBUS 31 10 4 2 Data structure Application side 31 10 4 3 Configuration via Wingate since wcf ...
Страница 5: ...llation of the module 46 13 1 1 Mounting 46 13 1 2 Removal 46 13 2 Wiring 46 13 2 1 Connection systems 46 13 2 1 1 Power supply 46 13 2 1 2 Equipotential bonding connection 47 13 2 2 MPI bus communication interface 47 13 2 2 1 Bus line with copper cable 47 13 2 3 Line routing shield and measures to combat interference voltage 47 13 2 4 General information on line routing 47 13 2 4 1 Shielding of l...
Страница 6: ...KG 6 UNIGATE Fieldbus Gateway UNIGATE CL MPI V 3 1 29 6 20 16 11 Literature 53 17 Servicing 54 17 1 Returning a device 54 17 2 Downloading PC software 54 18 Annex 55 18 1 Explanations of the abbreviations 55 18 2 Hexadecimal table 56 ...
Страница 7: ... the publication is however reviewed regularly Necessary amendments are incorporated in the following editions We would be pleased to receive any improvement proposals which you may have Copyright Copyright C Deutschmann Automation GmbH Co KG 1997 2020 All rights reserved This document may not be passed on nor duplicated nor may its contents be used or disclosed unless expressly permitted Violatio...
Страница 8: ...nts if you 1 comply with the installation guidelines described in the User Manual when installing and oper ating the module 2 also follow the rules below on installation of the equipment and on working on switch cabinets 1 4 Installation of the unit Modules must be installed in electrical equipment rooms areas or in enclosed housings e g switch boxes made of metal or plastic Moreover you must eart...
Страница 9: ...e Consequently the module does not have a Declaration of Conformity in relation to the EU Machinery Directive 2 2 EU Machinery Directive The EU Machinery Directive stipulates the requirements applicable to a machine The term machine is taken to mean a totality of connected parts or fixtures see also EN 292 1 Para graph 3 1 The module is a part of the electrical equipment of the machine and must th...
Страница 10: ... a Gateway and operates as MPI master or slave optionally adjustable via Script It is in the position to communicate with any MPI device e g S7 300 The module CL MPI essentially consists of the following hardware components Electrically isolated RS485 interface to the MPI bus ASIC MPI 12x Microprocessor 89C51RD2 RAM and EPROM Optionally electrically isolated Serial interface RS232 RS485 and RS422 ...
Страница 11: ...29 6 20 UNIGATE Fieldbus Gateway UNIGATE CL MPI V 3 1 11 Deutschmann Automation GmbH Co KG Introduction 3 1 UNIGATE CL software flow chart ...
Страница 12: ...mbH Co KG 12 UNIGATE Fieldbus Gateway UNIGATE CL MPI V 3 1 29 6 20 3 2 UNIGATE block diagram The following picture shows a typical UNIGATE module design 3 3 UNIGATE application diagram The following graph shows a typical connection scheme ...
Страница 13: ...deration for the setting of the test mode Now the Gateway has to be restarted with these settings by a short disconnection from the power supply In the test mode the Gateway always operates with the settings 9600 baud no parity 8 databits and 1 stopbit The test mode may be helpful to integrate the Gateway in the relevant environment for instance to test the parameters of the RS interfaces In the t...
Страница 14: ...a exchange mode The Gateway has to be in the data exchange mode so that a data exchange between the RS side of the Gateway and the fieldbus is possible As long as the Gateway is not in the config uration mode or the test mode the data exchange mode is active In the data exchange mode the Gateway will execute the downloaded Script ...
Страница 15: ...apable for Script For it please check in the Protocol Developer under Device Control Hardware 5 3 Framing Check The length of the stop bit received by the Gateway is checked through the function Framing Check Here the stop bit generated by the Gateway is always long enough so that connected participants can evaluate the stop bit Please be aware that the function Framing Check becomes effective onl...
Страница 16: ...mpling frequency For this purpose a Stretch value is passed that inserts a waiting period after each clock edge If a 0 is passed there is no waiting time Thus the following SSI sample frequencies may vary slightly Waiting time 0 SSI Clock 333kHz No Stretch Waiting time 1 SSI Clock 185kHz Waiting time 2 SSI Clock 150kHz Waiting time 3 SSI Clock 125kHz Waiting time 4 SSI Clock 110kHz Waiting time 5 ...
Страница 17: ...r at least one bit If the UNIGATE does NOT detect this bit on Low error 12 is issued For example it can detect a cable break or a not connected encoder However it can also be a misconfigured bit length or a too slow read out clock 6 3 Hardware wiring The clock wires of the SSI interface are placed onto the Tx wires of the RS422 interface and the data wires onto the Rx wires at the UNIGATE CL X1 3p...
Страница 18: ...rating with 9600 baud no parity 8 data bit 1 stop bit It is not possible to change this parameter in the Protocol Developer Please consider the fact that these settings have to be in accordance with those of the PC COM interface and that the flow control protocol has to be set on none there 7 4 Possibilities with the Debug interface Usually the PROTOCL DEVELOPER is connected to the Debug interface...
Страница 19: ...the RS232 RS422 and RS485 interfaces 8 3 Data exchange All data is transferred by the Gateway in dependence of the downloaded Script 8 4 Possible data lengths The table below shows the maximum transferable Fieldbus data Supported are Reading and writing accesses on DB markers inputs and outputs as well as passive accesses on markers and DB 8 5 Run up phase In the run up phase the Gateway programs ...
Страница 20: ...up of commands deals with the communication in general This group s commands enable the Gate way to send and receive data on the serial side as well as on the bus side 9 4 Independence of buses Basically the Scripts do not depend on the bus they are supposed to operate on It means that a Script which was developed on a PROFIBUS Gateway can also be operated on an Interbus with out changes since the...
Страница 21: ...ommands can also be modified 9 7 Accuracies of the baud rates The baud rate of the serial interface is derived from the processor s crystal frequency Meanwhile all Script Gateways are working with a crystal frequency of 40 MHz You can enter any desired integer baud rate into the Script After that the firmware adjusts the baud rate that can be derived the most precisely from the crystal frequency T...
Страница 22: ...has been started on the PC Sending and receiving data at the RS interface Sending and receiving data at the Fieldbus interface Tasks controlled via internal clock 1 ms e g flashing of an LED Processing of the Script From experience approximately 0 5 ms can be calculated for each Script line This value confir med itself again and again in many projects as a standard value He is always quite right i...
Страница 23: ...ed out it is possible depending on the firmware version of the UNIGATE that the Universal Script will get lost and must be played in again If you no longer have the compiled script a corresponding request must be sent to Deutschmann Support https www deutschmann de en support enquiry 10 1 Protokoll Transparent The data is transferred bidirectional from the UNIGATE 10 1 1 Data structure 10 2 Protoc...
Страница 24: ... Timeout is selected as end character then this byte has no signifi cance 10 2 3 3 Timeout If the end character is set to FF the value that was set in the RX_Timeout parameter is acti vated and the time entered there is waited for with serial reception or triggered for new charac ters If the set time is exceeded without an event the end criterion is reached and the characters are copied onto the b...
Страница 25: ...n operation at the RS interface 10 3 Protocol Universal Modbus RTU Slave The UNIGATE is a Modbus slave on the application side The slave ID is set with the rotary coding switches S4 S5 S4 High S5 Low 10 3 1 Data structure on the fieldbus side e g PROFIBUS Applies to In and Out 1 Byte trigger byte optional see chapter 10 7 The trigger byte 2 Byte fieldbus length byte optional see chapter 10 8 The l...
Страница 26: ...C2 Read Input Status 01 02 00 07 00 50 c9 f7 UNIGATE sends response via RS232 485 01 02 0a 02 03 04 05 06 07 08 00 00 00 8f 7a 10 3 1 2 Example FC3 Read Holding Register FC4 Read Input Register Fieldbus sends to the UNIGATE 00 30 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 20 20 20 The configuration is Data exchange On Trigger with an additonal 1 control byte in the ...
Страница 27: ...7 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 20 20 20 1 Byte Fieldbus length byte The following 7 byte are stored in the UNIGATE the rest is not overwritten With FC1 and the coil length 80 10 Bytes a Modbus Master reads out the following data The fieldbus output data is only updated if it s triggered via a write command from the RS side For example via FC 5 Address 0002 stays unchang...
Страница 28: ...e number of usable characters followed by the payload The user data internal buffer is no bigger than1024 byte In the following example the Bit Coil in Address 0002 is set to High 1 The fieldbus data is updated 1F 03 02 03 04 05 06 07 00 00 00 00 00 The internal buffer reserves this value which means it can be read back by the Master via FC1 Read Coil status 10 3 1 4 Example Write Single Register ...
Страница 29: ...ster some Master pull System one as offset This leads to the Byte Offset for the fieldbus output data 14 You start counting with the first process data value with Index NULL 1F 03 02 1 process value fieldbus length byte 10 3 1 5 Example Force multiple coils FC 15 Note The address can only be passed in multiples of 8 incl Null Also 0 8 16 Here you also have to keep in mind the offset of 1 Example S...
Страница 30: ...tiple register FC16 Only the content of the register address 0005 and 0006 was changed The 1st row shows the fieldbus BEFORE the request 1F 0E FF 03 04 05 06 07 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1F 0E FF 03 04 05 06 07 FF 12 05 12 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 The 2nd row shows the fieldbus data content AFTER the update ...
Страница 31: ...ructure Application side According to Modbus RTU Master definition Supported functions Read coil status FC1 No of Points Bit Read input status FC2 No of Points Bit Read multiple register FC3 No of Points Word Read input registers FC4 No of Points Word Force single coil FC5 No of Points not used fix 1 Bit Preset single register FC6 No of Points not used fix 1 Word Force multiple coils FC15 No of Po...
Страница 32: ...d up behind the other Up to 24 requests can be configured Additional configuration possibilities in the setting Req Modbus Function jump to Req 1 jump to 1 request entry disable this Req skip this request and perform the next request entry 10ms adjustable in 10ms steps hex Enter in hexadecimal style dec Enter in decimal style Byte Counting in bytes starting at the position Null Attention For read ...
Страница 33: ...7 00 00 00 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 0 1 Byte Trigger byte value 0x66 2 Byte Fieldbus length byte value 0x07 3 Byte Fieldbus Map Adr 0 value 0x00 4 Byte Fieldbus Map Adr 1 value 0x00 5 Byte Fieldbus Map Adr 2 value 0x00 6 Byte Fieldbus Map Adr 3 value 0x00 7 Byte Fieldbus Map Adr 4 value 0x00 8 Byte Fieldbus Map Adr 5 value 0x00 9 Byte Fieldbus Map Adr 6 value 0x01 see configura...
Страница 34: ...be seen here 9 Byte Fieldbus Map Adr 6 Wert 0x01 0x03 A modification of address 7 in the Modbus slave has no consequences to the fieldbus output side because No Of Points 2 is set in the configuration The value stays unchanged on 0x03 1F 07 00 00 00 00 00 00 03 00 00 00 0 10 4 3 2 Example Read input status FC2 The following example shows the content of address 10007 10009 is mapped copied into the...
Страница 35: ... 2 fieldbus byte at 0x0A increases by 1 Byte 10 4 3 3 Example Read multiple register FC3 RX Poll Delay 0 is automatically set to 1 by the firmware Modbus Request The CRC value is automatically calculated by the UNIGATE The UNIGATE sends out the request RX Poll Retry 0 one time via the RS interface and waits a maxi mum of 250 ms Modbus Timeout 25 on the response Fieldbus Map Adr 0 not activ Byte 1 ...
Страница 36: ...s from Fieldbus Map Adr Byte 0 on Fieldbus data from UNIGATE SPS 51 13 02 02 03 03 30 04 01 00 01 00 00 00 02 57 00 01 03 00 00 00 00 00 00 00 Byte 0 Trigger Byte 0x51 Byte 1 Fieldbus length byte 0x13 Byte 2 Process value High from StartAdr 0x02 Byte 3 Process value Low from StartAdr 0x02 Byte 4 Process value High from StartAdr 1 0x03 Byte 5 Prozess value Low from StartAdr 1 0x03 10 4 3 4 Example ...
Страница 37: ...0 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 UNIGATE sends Modbus RTU request 01 06 00 05 ff 23 99 e2 Modbus Slave sends response 01 06 00 05 ff 23 99 e2 Storage content of Modbus Slave after Response 10 4 3 7 Example Force multiple coils FC15 Configuration Fieldbus Master sends 0E 00 FF 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 UNIGATE sends request 01 0f 00 ...
Страница 38: ...ress 0011 is written at the value 0x05 Address 0013 would already be bit No 11 which is not transmitted anymore 10 4 3 8 Example Preset multiple register FC16 Configuration Fieldbus Master sends BA 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 UNIGATE sends Request 01 10 00 02 00 0a 14 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 3d e4 Modbus Slave sends Respo...
Страница 39: ... there is actually no need to send new data to the master The other way round when it comes to a cyclical query of the gateway a connected master has to be in the position to distinguish whether the application constantly provides identical data or if no new data were provided by the application for a longer period For this reason the user can set control of transmission via a trigger byte data ex...
Страница 40: ...ut it does not affect the device s function or quality It can be put in again without problems 11 2 Connectors 11 2 1 Connector to the external device RS interface The serial interface is available at the plug accessible on the upper side of the device Pin assignment X1 3 pole and 4 pole screw type plug connector Pin No Name Function 1 Rx 232 Receive signal 2 Tx 232 Transmit signal 3 AP GND Applic...
Страница 41: ...be powered with 10 33 VDC The voltage supply is made through the 4 pole screw plug connector at the device s bottom side Please note that the devices of the series UNIGATE should not be operated with AC voltage 11 3 LEDs The Gateway UNIGATE CL MPI features 9 LEDs with the following significance Pin No Name Function 1 UB Pwr 10 33 V supply voltage DC 2 0 V Pwr 0 V supply voltage DC 3 Rx Debug Recei...
Страница 42: ...rial interface i e configmode Termination MPI switchable MPI bus terminating resistor Rotary coding switch High MPI bus ID high byte Rotary coding switch Low MPI bus ID low byte 11 4 1 Termination Rx 422 Tx 422 serial interface If the Gateway is operated as the physically first or last device in an RS485 bus or as 422 there must be a bus termination at this Gateway In order to do this the terminat...
Страница 43: ...ere must be a bus termination at this Gateway In order to do this either a bus terminating resistor must be acti vated in the connector or the resistor 220 integrated in the Gateway must be activated In order to do this slide the slide switch to position ON In all other cases the slide switch must remain in position OFF Note To activate or deactivate the bus termination please remove the BUS conne...
Страница 44: ...utomatically reset If such warnings occur frequently please inform After Sales Service For user defined errors the flash frequency is 0 5 hertz The error is displayed as long as defined by Set Warning Time In the configuration mode these displays are not valid and only meant for internal use Table 1 Error handling at UNIGATE CL system error LED8 LED4 LED2 LED1 Error no resp ID Error description 0 ...
Страница 45: ...us RTU Slave Timeout at Response transmis sion 3964 R Timeout no response from Par ticipant 1 0 1 1 11 Universal 232 with 232 Checksum Checksum of reception does not match the calculated one Modbus RTU Slave Universal Modbus RTU Slave Unknown error after response transmission 3964 R Error at data exchange e g Checksum error 1 1 0 0 12 Universal Modbus RTU Master Error in Response of Func tioncode ...
Страница 46: ...annel may also be mounted vertically so that the module is mounted turned through 90 13 2 Wiring 13 2 1 Connection systems The following connection systems must resp may be used when wiring the module Standard screw type plug connection power supply RS 9 pin D SUB plug connector MPI bus a In the case of standard screw type terminals one lead can be clamped per connection point It is best to then u...
Страница 47: ...upply lines with the aim of ensuring an EMC compliant design of your system 13 2 4 General information on line routing Inside and outside of cabinets In order to achieve EMC compliant routing of the lines it is advisable to split the lines into the fol lowing line groups and to lay these groups separately Group A shielded bus and data lines e g for MPI bus RS232C and printers etc shielded analogue...
Страница 48: ...pression in the higher frequency band is by connecting the shields at both ends The shield may also be connected at one end only in exceptional cases However this then achieves only an attenuation of the lower frequencies Connecting the shield at one end may be more favorable if it is not possible to lay an equipotential bonding line analogue signals a few mV resp mA are to be transmitted foil shi...
Страница 49: ...ce e g S7 300 can exchange data with the Gateway It is also possible to use very simple master connections owing to the data structure 14 1 Data exchange After the SPS detects that a bus participant is ready for data exchange data can be exchanged The data in the input output are determined by the Gateway It has to fetch or retrieve the data using specific functional modules ...
Страница 50: ... Operating temperature 40ºC 85ºC 9 Storage transport temperature 40 ºC 85 ºC 10 Atmospheric pressure during operation during transport 795 hPa 1080 hPa 660 hPa 1080 hPa 11 Installation altitude 2000 m 4000 m Unrestricted Restricted Ambient temperature 40ºC 12 Relative humidity Max 80 No condensation no corrosive atmosphere 14 External power supply 10 33 V DC Standard power supply unit to DIN 19240...
Страница 51: ...ter slave Master slave 4 Number of users Transmitters Receivers 32 32 1 1 32 32 5 Cable length Baud rate dependent 187 5 kBd 1000 m 15 m no 1200 m 93 75 kBd 1200 m 312 kBd 500 m 625 kBd 250 m 6 Bus topology Line Point to point Line 7 Data rate Maximum standard values 12 Mbit s 9 6 kBit s 19 2 kBit s 93 75 kBit s 187 5 kBit s standard 500 kBit s 1 5 Mbit s 3 MBit s 6 MBit s 12 Mbit s 120 kBit s 2 4...
Страница 52: ...connection to the Gateway MPI bus cable cable this cable is generally already installed on site 10 33 V DC power supply DIN 19240 The instruction manual can be downloaded free of charge from our website at www deutsch mann de 16 3 Installation The UNIGATE CL MPI module features protection type IP20 and is thus suitable for switch cabinet use The device is designed for snapping onto a 35 mm DIN rai...
Страница 53: ...e set MPI bus address only once It is read in only on power up of the Gateway 16 7 MPI bus connection Connect the device to the MPI bus at the interface labelled MPI 16 8 Connection to the process device Please also read the manual for the process device when commissioning the process device 16 9 Connecting the supply voltage Please connect 10 33 DC voltage to the terminals provided for this 16 10...
Страница 54: ...ay and from 1 pm to 4 pm Friday from 8 am to midday CET Deutschmann Automation GmbH Co KG Carl Zeiss Straße 8 D 65520 Bad Camberg Germany Central office and sales department 49 6434 9433 0 Technical support 49 6434 9433 33 Fax sales department 49 6434 9433 40 Fax technical support 49 6434 9433 44 E mail technical support support deutschmann de 17 1 Returning a device If you return a device we requ...
Страница 55: ...il module and without housing cover PD Board only without DIN rail module and with housing cover AG Gateway installed in a die cast aluminum housing EG Gateway installed in a stainless steel housing IC Product group IC IC design DIL32 IC2 Product group IC2 IC design DIL32 IO8 Option I O8 16 Script memory expanded to 16KB 5V Operating voltage 5V 3 3V Operating voltage 3 3V Fieldbus CO CANopen C4 CA...
Страница 56: ...version X see comparison table UNIGATE IC for the respective product PBDPV0 ProfibusDPV0 PBDPV1 ProfibusDPV1 RS Serial RS232 485 422 18 2 Hexadecimal table Hex Decimal Binary 0 0 0000 1 1 0001 2 2 0010 3 3 0011 4 4 0100 5 5 0101 6 6 0110 7 7 0111 8 8 1000 9 9 1001 A 10 1010 B 11 1011 C 12 1100 D 13 1101 E 14 1110 F 15 1111 ...
Страница 57: ......
Страница 58: ......