DEUTSCHMANN AUTOMATION UNIGATE RS232/422 Instruction Manual Download Page 1

User manual

Universal Fieldbus-Gateway

UNIGATE

®

UNIGATE RS232/485 - ProfibusDP
UNIGATE RS232/422 - ProfibusDP
UNIGATE SC232/485 - ProfibusDP
UNIGATE SC232/422 - ProfibusDP

V2381E

Deutschmann Automation GmbH & Co. KG   Carl-Zeiss-Str. 8   D-65520 Bad Camberg

Tel:+49-(0)6434-9433-0  Hotline: +49-(0)6434-9433-33  Fax: +49-(0)6434-9433-40

Internet: http://www.deutschmann.de

Summary of Contents for UNIGATE RS232/422

Page 1: ...busDP UNIGATE RS232 422 ProfibusDP UNIGATE SC232 485 ProfibusDP UNIGATE SC232 422 ProfibusDP V2381E Deutschmann Automation GmbH Co KG Carl Zeiss Str 8 D 65520 Bad Camberg Tel 49 0 6434 9433 0 Hotline 49 0 6434 9433 33 Fax 49 0 6434 9433 40 Internet http www deutschmann de ...

Page 2: ......

Page 3: ... 3 Data exchange mode 15 5 RS interface 16 5 1 Framing Check only for UNIGATE RS 16 5 2 RS interface at the UNIGATE SC 16 5 3 Buffer size at the UNIGATE SC 16 6 Mode of operation of the system 17 6 1 General explanation 17 6 2 Interfaces 17 6 3 Data exchange 17 6 4 Possible data lengths 17 6 5 Run up phase 18 6 6 The trigger byte only at UNIGATE RS 18 6 7 The length byte only at UNIGATE RS 18 7 Tr...

Page 4: ...rotocol 25 9 4 1 Operating sequence of the data transmission 26 9 5 MODBUS RTU 26 9 5 1 Notes 26 9 5 2 UNIGATE as MODBUS Master 26 9 5 2 1 Preparation 26 9 5 2 2 Data structure 27 9 5 2 3 Communication sequence 27 9 5 3 UNIGATE as MODBUS Slave 27 9 5 3 1 Preparation 27 9 5 3 2 Data structure 28 9 5 3 3 Communication sequence 28 9 5 3 4 Status report 28 9 5 4 UNIGATE as Modbus ASCII Master 28 10 Ge...

Page 5: ...6 4 Slide switch RS485 RS232 interface 38 11 6 5 Slide switch RS485 RS422 termination 38 11 7 Special features of the Debug version 38 11 8 The Debug cable for UNIGATE SC 38 12 Error handling 39 12 1 Error handling at UNIGATE RS 39 12 2 Error handling at UNIGATE SC 39 13 Housing variations 41 13 1 Main operational fields for housings 41 13 2 Mounting instruction 41 14 Installation guidelines 43 14...

Page 6: ...onal drawing DIN rail mounting 56 17 5 Commissioning 56 17 6 Setting the Profibus address 56 17 7 Profibus connection 57 17 8 Connection to the process device 57 17 9 Connecting the supply voltage 57 17 10 Shield connection 57 17 11 Project planning 57 17 12 Literature 57 18 Servicing 58 18 1 Returning a device 58 18 2 Downloading PC software and GSD files etc 58 19 Annex 59 19 1 Explanations of t...

Page 7: ...blication 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 2011 All rights reserved This document may not be passed on nor duplicated nor may its contents be used or disclosed unless expressly permitted Violations of t...

Page 8: ...requirements 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 ...

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

Page 10: ...s of character delay time Start End character Constant data lengths Transparent mode Customized protocols These protocol variants will probably support most applications The module RS or SC essentially consists of the following hardware components Electrically isolated RS485 interface to the ProfibusDP Profibus ASIC Microprocessor 89C51RD2 RAM and EPROM Optionally electrically isolated Serial inte...

Page 11: ... 3 1 UNIGATE RS software flow chart The following graph shows a typical application flow of a UNIGATE fieldbus module j Testmode Switch EE Start test msg Testmode n j Konfigmode Switch FF Start konfig msg Read write konfig data n HW Reset Init RAM test Fieldbus ASIC test Test Debugmode Debugmode Appl j n ...

Page 12: ...Introduction Deutschmann Automation GmbH Co KG 12 UNIGATE fieldbus gateway for ProfibusDP V 4 7 29 4 11 3 2 UNIGATE SC software flow chart ...

Page 13: ...ProfibusDP V 4 7 13 Deutschmann Automation GmbH Co KG Introduction 3 3 UNIGATE block diagram The following picture shows a typical UNIGATE module design 3 4 UNIGATE application diagram The following graph shows a typical connection scheme ...

Page 14: ...S State LED will always be flashing red the Error No Select ID LEDs are of no account for the user All software revisions contain the configuration mode Connection cable from the gateway to the PC The cable is supposed to look as follows Connection table 5pin screw plug connector PC 4 2 Test mode Setting of the test mode The test mode is set by bringing the switches S4 and S5 in position E Beyond ...

Page 15: ...te LED on the RS side will be flashing red the Error No Select ID LEDs will be displaying the value in a binary way that is issued that moment Additionally each character that is received at one of the interfaces will also be output at the same interface as a local echo On the fielbus side only the first byte will be used for the local echo that means on receiving as well as on transmitting only t...

Page 16: ...Check is enabled 5 2 RS interface at the UNIGATE SC On principle the hardware cannot be distinguished from the standard gateway In addition to the regular hardware a special hardware version is available which however is only required for the generation of a script Due to technical reasons this advanced hardware is not available for all buses a development can be made on another than the target ha...

Page 17: ...rnal device in accordance with the selected protocol The external device responds in accordance with the protocol conventions The data received from the external device is written by the gateway into the internal RAM of the SPC3 The updated data is then transferred on the next poll cycle with the gateway At the UNIGATE RS the data exchange via the RS interface can be programmed as follows Cyclic O...

Page 18: ...t be used as the criterion e g when ever the same data is to be sent For this reason the user can set control of transmission via a trigger byte In this mode the gateway always sends and only sends when the trigger byte is changed Accordingly the application program in the control in Normal mode cannot detect whether the gateway has received several identical telegrams If Trigger Byte mode is acti...

Page 19: ...ta is transferred transparently with no timeout monitoring functions whatsoever The user presets the data on the Master This data is then forwarded to the external device with no timeout monitoring functions whatsoever A response from the external device is also forwarded to the Master with no changes Any security mechanisms must be encrypted by the user in the net data ...

Page 20: ...t UNIGATE RS The Character delay time mode is not a protocol but a special variant of the Universal 232 pro tocol see corresponding chapter 8 1 Receive direction Data received is entered in the transmit buffer until the character delay time expires after recep tion of the last character This time can be configured Transmit direction The data is transmitted transparently ...

Page 21: ...ster With it the parameters configurable with WINGATE trigger byte and length byte are included The length of the receive buffers and transmission buffers depends on the projected GSD file in the Profibus 9 1 1 1 Broadcast In case the destination address equals 0 the data are sent to each ARCNET participant 9 1 2 Data structure 9 1 2 1 Trigger byte See The trigger byte only at UNIGATE RS chapter 6...

Page 22: ... this character is defined the gateway evaluates only the data at the RS232 interface following this start character Each transmission from the gateway via the RS232 interface is initiated with the start character in this case 9 2 3 2 Length 232 If this byte is activated the gateway at the receive end awaits as many bytes of useful data without checksum as specified in this byte by the RS232 trans...

Page 23: ...ogether with a check sum should be avoided as a check sum that exactly corresponds with the end char acter might be the result In such a case a misinterpretation and follow ing a checksum error is the result 9 2 4 Communication sequence The useful data data area arriving via the fieldbus is copied in accordance with chapter 9 2 1 transparently into the RS232 data field and transferred via the RS i...

Page 24: ...eout times are preset by the definition of the 3964R protocol and cannot be overwritten tq acknowledgement timeout time 2 s The acknowledgement timeout time is started after transmission of control character STX If no positive acknowledgement arrives within the acknowledgement timeout time the job is repeated max 2 x If it has not been possible to complete the job positively after two repetitions ...

Page 25: ...f necessary reply data are handled directly by the fieldbus master But UNIGATE supports a simple kind of the RK512 protocols whereas the data exchange is restricted to one word fixed though UNIGATE reduces larger data lengths to one word on the part of the RS side For this the end user does not have to care about the problems of quasi full duplex operation since he receives a fixed reply to any co...

Page 26: ...W7 with 1234H Data to UNIGATE C1H 44H 03H 07H 12H 34H xxH xxH Toggle bit command 1 if it was 0 before The UNIGATE replies Data to the PLC 1xH xxH xxH xxH xxH xxH 00H 00H Toggle bit reply 1 if it was 0 before Examples 2 RS device gets the data word from DB2 DW9 from PLC it says 4711H there Data to the PLC C5H 44H 02H 09H xxH xxH Toggle bit command 1 if it was 0 before The PLC replies Data to the UN...

Page 27: ... this trigger byte and sends data to the Modbus only when this byte has changed In the reverse direction to the fieldbus the gateway transfers the number of received Modbus data records in this byte i e this byte is incremented by the gateway after each data record If the Length byte is activated see chapter 6 7 the gateway transfers only the number of bytes specified there The number of received ...

Page 28: ...us address 1st Byte which is sent out by the Modbus Master is identical with the address set on the gateway the gateway sends the received data without Modbus address and CRC check sum to the fieldbus master look picture above With it the gateway optionally com pletes as an introduction a Trigger byte and a Length byte The fieldbus master detects when it has to analyse a record via the Trigger byt...

Page 29: ...asses or groups A group 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 10 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...

Page 30: ...o be modified 10 7 Accuracies of the baud rates at UNIGATE SC The baud rate of the serial interface is derived from the processor s crystal frequency Meanwhile all Script gateways except for the MPI Gateways 20 MHz are working with a crys tal 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 pr...

Page 31: ... Developer 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 con firmed itself again and again in many projects as a standard value He is always qu...

Page 32: ... switches and LEDs Deutschmann Automation GmbH Co KG 32 UNIGATE fieldbus gateway for ProfibusDP V 4 7 29 4 11 11 Hardware ports switches and LEDs 11 1 Drawing of the unit 11 1 1 Model UNIGATE RS SC 232 485 ProfibusDP ...

Page 33: ...re WINGATE that comes along with the gateway is meant for For the configuration the gateway has to be brought to the configuration mode For that reason the switches S4 and S5 have to be set to the position F each and the interface switch has to be set to 232 Consequently a connection to the PC has to be established and the gateway has to be started once more The program WINGATE automatically selec...

Page 34: ...th GSD file Diagnostic data Max 8 bytes see chapter Error handling Baud rate Automatic detection up to 12 MBaud Sync Supported Freeze Supported Ident No 0x2079 11 3 2 RS232 RS485 RS422 Start bit 1 Data bits 8 Stop bit 1 Parity None Baud rate 9600 Baud The supplied WINGATE software can be used to change this configuration Likewise it can be used to select customized protocols ...

Page 35: ...in assignment and also a customized configuration is possible Attention In case the RS interface is NOT potentially divided GND and supply 0V are connected internally Attention In case RS422 is selected then the termination switch has to be set to ON in order to avoid communication errors Pin No Name Function 1 10 8 30 V DC power supply Power supply 2 0 V power supply Power supply 3 RX RS485 RS485...

Page 36: ...e shield signal of the electronic circuitry for reasons relating to interfer ence immunity 11 5 LEDs The gateway features 9 LEDs with the following significance In the configuration mode these displays are not valid and only meant for internal use The gateway UNIGATE SC has also 9 LEDs available with the following significance Pin No Name Function 1 10 8 30 V DC 10 8 30 V supply voltage 2 0 V DC 0...

Page 37: ...nctions Rotary coding switch Profibus High ProfibusDP ID High Byte Rotary coding switch Profibus Low ProfibusDP ID Low Byte Slide switch Termination Switchable ProfibusDP terminating resistor Rotary coding switch S4 RS485 ID High Byte Rotary coding switch S5 RS485 ID Low Byte Slide switch Interface Selector switch for RS485 or RS232 interface Slide switch Termination Switchable RS485 terminating r...

Page 38: ...ce 11 6 5 Slide switch RS485 RS422 termination If the gateway is operated as the first or last physical device in the RS485 bus there must be a bus termination at this gateway In order to do this either a bus terminating resistor in the con nector or the resistor 150 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 s...

Page 39: ... means of LEDs Error No as shown in the table below In addition this error number is transferred as an external diagnostic byte via the Profibus to the Master A distinction can be made between two error categories Serious errors 1 5 In this case the gateway must be switched off and switched back on again If the error occurs again the gateway must be exchanged and returned for repair Warnings 6 15 ...

Page 40: ... description 0 0 0 0 0 Reserved 0 0 0 1 1 Hardware fault 0 0 1 0 2 EEROM error 0 0 1 1 3 Internal memory error 0 1 0 0 4 Fieldbus hardware fault or wrong fieldbus ID 0 1 0 1 5 Script error 0 1 1 0 6 Reserved 0 1 1 1 7 RS transmit buffer overflow 1 0 0 0 8 RS receive buffer overflow 1 0 0 1 9 RS time out 1 0 1 0 10 General fieldbus error 1 0 1 1 11 Parity or frame check error 1 1 0 0 12 Reserved 1 ...

Page 41: ...n operational fields for housings Main operational fields of aluminium housings with protection type IP 66 Machines control and plant manufacturing In aggressive and rough environmental conditions e g sea water field on ships Electrical and building installation engineering Measuring switching and controlling technique EMC Directives relevant fields Heating air conditioning and ventilation techniq...

Page 42: ...for ProfibusDP V 4 7 29 4 11 The fieldbus leadings have to go through the PG screwing without connecting the shield with the housing The shield of the fieldbus cable have to be put exclusive on the D sub plug Except for the DeviceNet gateway Here the shield is put on the PG screwing ...

Page 43: ...2 Removal First disconnect the power supply and signal lines Then push the module up and swivel it out of the DIN rail Vertical installation The standard mounting channel may also be mounted vertically so that the module is mounted turned through 90 14 2 Wiring 14 2 1 Connection systems The following connection systems must resp may be used when wiring the module Standard screw type plug connectio...

Page 44: ...bus cable is connected to the equipotential bonding system via an RC snubber circuit This means that there are two electrically isolated shields in the device This guarantees higher interference immunity of the module since the cable shield current which may be up to a few Amperes owing to potential differences between two bus users is not discharged via the device If the device is subject to high...

Page 45: ...ssis or housing A low impedance connection to the PE wire is particularly important in order to prevent these interference currents themselves becoming an interference source Wherever possible use only lines with braided shield The coverage density of the shield should exceed 80 Avoid lines with foil shield since the foil can be damaged very easily as the result of tensile and compressive stress o...

Page 46: ...gain at this point Shielded data lines and unshielded power supply lines 60 V DC are routed to and connected to the module All cable shields must be earthed at both ends in order for the module to comply with all required EMC limits Downstream of the entry point into the switch cabinet the ProfibusDP cable shield must be connected to the equipotential bonding strip You must earth the shielded RS23...

Page 47: ...d parameterization since it is determined in Octet 8 of the parameterization telegram whether it is a DPV0 or a DPV1 Slave A DPV1 Slave can also be operated at a DPV0 Master if the DPV1 functions remain turned off 15 1 2 DPV2 Die DPV2 enlargement consists of the following functions 1 Isochron Mode IsoM It means the clock synchronous behavior of a bus system This function is optional for a DPV2 Sla...

Page 48: ...n be combined in one octet Otherwise you must use as many octets as the number of different bytes words you wish to use and which cannot be combined in one octet If the module detects during the check that the maximum permitted input output data lengths have been exceeded it signals incorrect configuration to the Master during a subsequent diag nostic scan It is then not ready for useful data comm...

Page 49: ...lt Configuration data does not correspond Diag ext_diag Slave has external diagnostic data Diag not supported Requested function is not supported in the Slave Diag invalid_slave_response sets Slave permanently to 0 Diag prm_fault Incorrect programming identification number etc Diag master_lock sets Master Slave has been programmed by another Master Octet 2 0 Diag Prm_req Slave must be reprogrammed...

Page 50: ...or message in order to be compatible with DPV1 masters With it a DPV1 master identifies our gateway s error as status message now This results in a different representation of our gateway error in Profibus At DPV0 the error num ber is transmitted in unmodified form as 1 byte external diagnosis In case DPV1 has been acti vated in the gateway through the GSD file the error number occurs as 1 byte st...

Page 51: ...sis with 4 bytes see above at which point the 4th byte contains the error number and the preceding 3 bytes 0x81 0x00 0x00 can be ignored 15 3 Data exchange After the Master in the diagnostic detects that the Slave is ready for data exchange it sends data exchange telegrams Either the Master stores the data in the input output direction in the address area specified during project planning or the c...

Page 52: ... C 9 Storage transport tem perature 40 ºC 70 ºC 40 C 70 C 10 Atmospheric pressure during operation during transport 795 hPa 1080 hPa 660 hPa 1080 hPa 11 Installation altitude 2000 m 4000 m Not applicable Unrestricted Restricted Ambient temperature 40 ºC 12 Relative humidity Max 80 Max 100 No condensation no corrosive atmosphere 14 External power supply 10 8 30 V DC 24 V 20 Standard power supply un...

Page 53: ...nu soidal Acceleration 15g 150 m s2 Shock duration 11 ms 3 shocks in direction in x y z IEC 68 2 27 Ea 3 ESD 8 kV discharge in air 4 kV contact discharge 8 kV discharge in air 4 kV contact discharge EN 50082 2 4 Electromagnetic fields 10 V m 80 MHz 1GHz 10V m EN 50082 2 5 BURST 2 kV 5 kHz supply voltage 1 kV 5 kHz data lines 2 kV 5 kHz supply voltage 1 kV 5 kHz data lines EN 50082 2 6 Emitted inte...

Page 54: ...umber of users Transmitters Receivers 32 32 1 1 32 32 5 Cable length Maximum Baud rate dependent 1200 m 93 75 kBd 1200 m 187 5 kBd 1000 m 500 kBd 400 m 1 5 MBd 200 m 1 5 MBd 100 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 500 kBit s 1 5 Mbit s 3 M...

Page 55: ...mm 1 4404 316L Polycarbonat thermoplasti cally splashed Protection type IP 66 EN 60529 IP 66 EN 60529 IP 66 EN 60529 Impact strength 7 Nm EN 50014 30 kv mm Temperature resistance 40 bis 90 C 60 C bis 130 C 40 bis 100 Seals Polyurethane seal compact porosity foamed Polyurethane seal compact porosity foamed Spring groove system Surface coating Powder mold coating color RAL 7001 silvery gray Polished...

Page 56: ...ruction manual a sample GSD file as well as the instruction manual can be ordered separately or downloaded free of charge from our homepage at www deutschmann de 17 3 Installation The UNIGATE PB module features enclosure IP 20 and is thus suitable for switch cabinet use The device is designed for snapping onto a 35 mm DIN rail 17 4 Dimensional drawing DIN rail mounting 17 5 Commissioning It is ess...

Page 57: ...ddress set must correspond to the planned address under COM Profibus It is read in only on power up of the gateway 17 7 Profibus connection Connect the device to the Profibus at the interface labelled ProfibusDP 17 8 Connection to the process device Please also read the User Manual provided for the process device when commissioning the pro cess device 17 9 Connecting the supply voltage Please conn...

Page 58: ... 0 6434 9433 0 Technical hotline 49 0 6434 9433 33 Fax sales department 49 0 6434 9433 40 Fax technical hotline 49 0 6434 9433 44 E mail technical hotline hotline deutschmann de 18 1 Returning a device If you return a device we require as comprehensive a fault error description as possible We require the following information in particular What error number was displayed What is the supply voltage...

Page 59: ...ed in a die cast aluminum housing EG Gateway installed in a stainless steel housing IC Product group IC IC design DIL32 16 Script memory expanded to 16KB 5V Operating voltage 5V 3 3V Operating voltage 3 3V Fieldbus ASI AS Interface AS i CO CANopen C4 CANopen V4 C4X CANopen V4 version X see comparison table UNIGATE IC for the respective product DN DeviceNet EC EtherCAT EI Ethernet IP FE Ethernet 10...

Page 60: ...UNIGATE fieldbus gateway for ProfibusDP V 4 7 29 4 11 19 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 ...

Page 61: ...29 4 11 UNIGATE fieldbus gateway for ProfibusDP V 4 7 61 Deutschmann Automation GmbH Co KG Drilling templates 20 Drilling templates The following drawings are not true to scale 20 1 Aluminium housing ...

Page 62: ...Drilling templates Deutschmann Automation GmbH Co KG 62 UNIGATE fieldbus gateway for ProfibusDP V 4 7 29 4 11 20 2 High grade steel housing ...

Page 63: ...29 4 11 UNIGATE fieldbus gateway for ProfibusDP V 4 7 63 Deutschmann Automation GmbH Co KG Drilling templates 20 3 Polycarbonate housing Supplied until January 2006 ...

Page 64: ...x Planck Straße 21 D 65520 Bad Camberg Tel 49 0 6434 9433 0 Fax 49 0 6434 9433 40 declare that the product mentioned afterwards was developed produced and issued in accordance with the above mentioned EG guideline Product Gateway Model name UNIGATE RS ProfibusDP Used norms EN61000 6 2 Interference immunity EN61000 4 2 ESD EN61000 4 3 Insolation E field EN61000 4 4 Burst EN61000 4 6 Induction EN550...

Page 65: ...V 4 7 65 Deutschmann Automation GmbH Co KG Declaration of conformity and certificates 21 2 Certificate Germanischer Lloyd A device certified by the Germanischen Lloyd in compliance with the certificate no 42407 01 HH is available by the Cert no V3073 ...

Page 66: ...Declaration of conformity and certificates Deutschmann Automation GmbH Co KG 66 UNIGATE fieldbus gateway for ProfibusDP V 4 7 29 4 11 ...

Page 67: ...29 4 11 UNIGATE fieldbus gateway for ProfibusDP V 4 7 67 Deutschmann Automation GmbH Co KG Declaration of conformity and certificates ...

Reviews: