Home
        User manual Universal Fieldbus-Gateway UNIGATE
         Contents
1.            15  4 1 Configuration mode  config mode              e        15   4 2 The Debug cable for UNIGATESC                      16   A  TEst M  Ode ss  ca aa a A a a 16   4 4 Data exchange Mode  ta a ee EA  SaE eed 17   5 SIRS Interface    sos aon raoi irren 18  5 1 Framing Check   only for UNIGATERS     2    2 2 nn nn 18   5 2  RS interface atthe UNIGATESC                  04  18   6 Mode of operation of the system                      19  6 1 General explanation             o    e    o    19   6 27 Interfaces    ia a GEA A A A ne  AO 19   6 3 Data exchange DeviceNet            mn nn 19  6 3411 PORNOS 2  in a E De A a ee en 2A 19   6 32    Bil  Strobe    sata 5  ar aa ae eee Ae A a ak V a 19   6 3 3 Changeofstate   2 2  22 Homme 19   6 4 Data exchange RS232 RS485              0 00000 2 eee 19   6 5 The trigger byte   only at UNIGATERS                   20   6 6 The length byte   only atUNIGATERS                   20   7 Transparent mode   only at UNIGATERS                 21  8 Character Delay Time mode   only at UNIGATERS           22  8 1 Receive direction               o    e    eo    22   9 Implemented protocols in UNIGATERS                 23  9 1 Universal 232 protocol   lt a 2 844 re rar 23  91 1    Data str  ct  re z ana wa ar a Re A A En 23   9 1 2 Fieldbus parameters              000000522 eae 23   9 1 3 RS232 parameter table                 a 23   9 1 3 1 Starticharacter  sa sa coesa bea a ee ER ROE ee a 23       21 4 11 UNIGATE fieldbus gateway for DeviceNet
2.           21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 11    Introduction Deutschmann Automation GmbH  amp  Co  KG       3 4 UNIGATE RS software flow chart  The following graph shows a typical application flow of a UNIGATE fieldbus module         Start konfig msg     Readwrite konfig data                 12 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG    Introduction       3 5 UNIGATE SC software flow chart    RAM test    Fieldbus ASIC test              Konfigmode  Switch  FF          Start konfig msg    Read write konfig data          Test  Debugmode    Debugmode       21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2    13    Introduction Deutschmann Automation GmbH  amp  Co  KG       3 6 UNIGATE block diagram  The following graph shows a typical UNIGATE module design     ES Configuration FB Configuration    LED                        Fieldbus  Connector          LED s  0  seme Moo E     E  ES O Minus Isolation  Vee GHD O  Connector             Fieldbus  Electronics  ASIC  CPU  ete                            3 7 UNIGATE application diagram    The following graph shows a typical connection scheme     zei    ES 232 UNIGATE fieldbus  485    422       14 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Operation modes of the gateway       4 Operation modes of the gateway    4 1 Configuration mode  config mode     The configuration mode serves to configure the gatew
3.         42 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Installation guidelines       14 Installation guidelines    14 1 Installation of the module    The module of size  90 x 127 x 55 mm W x H x D  has been developed for switch cabinet use   IP 20  and can thus be mounted only on a standard mounting channel  deep top hat rail to  EN 50022      14 1 1 Mounting    e Engage the module from the top in the top hat rail and swivel it down so that the module  engages in position    e Other modules may be rowed up to the left and right of the module    e There must be at least 5 cm clearance for heat dissipation above and below the module    e The standard mounting channel must be connected to the equipotential bonding strip of the  switch cabinet  The connection wire must feature a cross section of at least 10 mm        An earthing terminal must be positioned next to the module so as to allow the shield connection  on the device to be implemented as short as possible with a flexible wire  1 5 mm        14 1 2 Removal    e First disconnect the power supply and signal lines   e Then push the module up and swivel it out of the top hat 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    e Standard screw type plug co
4.      In addition  a  Response time  which corresponds to the maximum time up to which the Mod   bus slave responds after a request must be set        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 27    Implemented protocols in UNIGATE RS Deutschmann Automation GmbH  amp  Co  KG       Since the Modbus operates with a variable data format   dependent on the required function and  data length   but since the fieldbus requires a fixed data length  this must be preset by means of    the configuration with WINGATE    This length should be selected by the user such that the lon   gest Modbus request resp  response can be processed  If a Modbus response is longer than the  preset fieldbus length  the gateway signals an  Rx buffer overflow        The user can choose whether the fieldbus requests are forwarded to the Modbus cyclically  in the  event of a change  or on request  If he chooses cyclic mode  the next request follows directly  after a response of the Modbus slave     In  Change  mode  detection of a change is based on the fact that the fieldbus data are  transferred only in case of an Poll request via the Modbus     The third mode  Modus request on request  necessitates the first byte in the fieldbus containing a  trigger byte  see chapter 6 5   This byte is not transferred to the Modbus and serves only to start  a Modbus transmission  For this purpose  the gateway constantly monitors this trigger byte and  sends data to the Modbus only when this byte has changed  In
5.     IP 66  EN 60529       Impact strength     gt  7 Nm  EN 50014     gt  30 kv mm          porosity  foamed    porosity  foamed    Temperature   40  to   90  C  60  C to   130  C  40  to   100    resistance  Seals Polyurethan seal  compact  Polyurethan seal  compact  Spring groove system       Surface coating    Powder mold coating  color  RAL 7001 silvery gray    Polished grain 240    Tinted RAL 7035       Outside dimen   sion    160 x 160 x 90 cm    150 x 150 x 78 cm    120 x 122 x 85 cm                         Weight  with 2 05 kg 1 60 kg 0 45 kg  gateway   50 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11       Deutschmann Automation GmbH  amp  Co  KG Commissioning guide       16 Commissioning guide  16 1 Note    Only trained personnel following the safety regulations may commission the UNIGATE     16 2 Components    You will require the following components to commission the UNIGATE   e UNIGATE   e Connection cable from gateway to the process   e Connector for DeviceNet connection to the gateway   e DeviceNet cable  this cable is generally already installed on site     e 10 8  30 V DC power supply  DIN 19240     16 3 Installation    The UNIGATE module features enclosure IP 20 and is thus suitable for switch cabinet use  The  device is designed for snapping onto a 35 mm top hat rail     16 4 Dimensional drawing DIN rail mounting  126 2                 107 3       103 6       SANS INCA TAS a pe  AMAIA   I TARMA RAR OTTER at  IE Mg Eher hehe ILL   egal AA A RR  Di et
6.   18 Annex   18 1 Explanations of the abbreviations   General   CL   Product group CL  Compact Line    CX   Product group CX   GT   Galvanic separation RS side   GY   Housing color gray   RS   Product group RS   SC Product group SC  Script    232 485   Interface RS232 and RS485 switchable   232 422   Interface RS232 and RS422 switchable   DB   Additional RS232 DEBUG interface   D9   Connection of the RS through 9 pin D SUB instead of 5 pin screw plug connector   PL   Board only without DIN rail 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    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   El    Ethernet IP   FE   Ethernet 10 100 MBit   FEX Ethernet 10 100 MBit version X  see comparison table UNIGATE   IC for the  respective product    IB    Interbus   IBL    Interbus   LN62   LONWorks62   LN512   LONWorks512   MPI   Siemens MPI     PL   Powerlink   PN    Profinet lO   PBDP   ProfibusDP   PBDPL ProfibusDP version L  see comparison table UNIGATE   IC for the respective  product    PBDPX    ProfibusDP version X  see comparison table UNIGA
7.   As defined by EG EMV guideline  92 31 EWG     Herewith we     company Deutschmann Automation GmbH  Max 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  Gatew ay  Model name  UNIGA TE RS DeviceNet  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    EN55011 A Emissi  EN55011 A Interference voltage  EN55011 A Interference radiation    Bad Camberg  05 05 2003    ba lk    Gunther Lawaczeck Michael M  Reiter       21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 59    Declaration of conformity and certificates Deutschmann Automation GmbH  amp  Co  KG       20 2 Certificate Germanischer Lloyd    E            This is to certify that the undemoted product s  has have been tested in accordance with  the relevant requirements of the GL Type Approval System     Certificate No 42 407   01 HH    Company Deutschmann Automation GmbH  Max Planck Stra  lo 21  D 65520 Bad Camberg                   Universal fieldbus gateways        Unigate RS232 485 AG   CO V3028    ON V3029    IBIV3030    PB V3031          Power supply  24 VDC  Componentry for interfacing RS232 R5485 R5422 link with fieldbus     Supported serial communication protocols   optional potential free     MODBUS RTU  3964R  contro  of chara
8.   Co  KG Operation modes of the gateway       Mode of operation of the test mode   After the restart in the test mode the gateway will be sending the values 0 15 in hexadecimal rep   resentation   0    F   in ASCII coding with the current settings for the Baud rate  Parity  Start    Data   and Stopbits on the serial side every second  Simultaneously the same values are issued  binary on the fieldbus interface provided that this is possible on the fieldbus at the moment  In  case the fieldbus has a data width of more than 1 byte  all characters of the fieldbus will be set to  the current test character     In this mode the State LED on the RS side will be flashing red green  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 the first byte of the bus data is looked at  the other bus  data do not change compared to the last data     4 4 Data 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 configu   ration mode or the test mode  the data exchange mode is active  In the data exchange mode the  gateway will carry out the set prot
9.   copying 1000 bytes   Consequently  for one thing the  processing time differs due to the kind of Sript command  But the processing time of the Script  commands is considerably more determined by the processor time that is available for this pro   cess  Since the processor has to carry out several tasks simultaneously  multitasking system   only a part of the processor s capacity is available for the Script processing  The following tasks    in the order of priority   are executed on the processor     e Sending and receiving data at the Debug interface  provided that the Protocol Developer has  been started on the PC    e Sending and receiving data at the RS interface   e Sending and receiving data at the Fieldbus interface   e Tasks controlled via internal clock  1 ms   e  g  flashing of an LED    e 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 quite right if the  processor has enough time available for the Script processing    By means of the tasks mentioned above  the following recommendation can be formulated in  order to receive a rather fast Script processing     e Deactivate the Debug interface  it is the normal case in the serial use    e Keep the data length at the RS interface as small as possible  The baud rate is not the problem  here  but the amount of characters which are transfered per second    e Do not u
10.  12 Addressing error of the RS485 RS232 interface  1 1 0 1 13 Fieldbus error  e  g  no connection   1 1 1 0 14 General error of the RS485 RS232 interface  1 1 1 1 15 Internal error          Table 1  Error handling at UNIGATE RS       21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2    39    Error handling Deutschmann Automation GmbH  amp  Co  KG       12 2 Error handling at the UNIGATE SC                                                       Fehlernr   LED8  LED4  LED2  LED1  bzw  ID Fehlerbeschreibung  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 1 0 1 13 Reserved  1 1 1 0 14 Fieldbus buffer overflow  1 1 1 1 15 Reserved                            Table 2  Error handling at UNIGATE SC       The system error 10 is always displayed when one of the following errors appears                                               Error Error value  DUP_MAC_ERROR 0x0001  RX_QUEUE_OVERRUN 0x0002  TX_QUEUE_OVERRUN 0x0004  IO_SEND_ERROR 0x0008  CAN_BUS_OFF 0x0010  CAN_OVERRUN 0x0020  EXPL_CNXN_TIMEOUT 1  0x0040  IO_CNXN_TIMEOUT 0x0080  IO_CNXN_DELETE 0x0100  DNS_RESET 0x0200  DNS_BUS_SENSE_ERROR 0x0400          1  Timeout   Expected Packe
11.  80 MHz  1GHz  10V m EN 50082 2  netic fields  5 IBURST 2 kV   5 kHz supply voltage 2 kV   5 kHz supply voltage  EN 50082 2  1 kV 5 kHz data lines 1 kV  5 kHz data lines  6  Emitted inter   Limit value class A Wire bound  EN 55011  ference 10 KHz   150 KHz  120 dBuV     69 dBuV  150 KHz   1 5 MHz  79 dBuV     63dBuV  1 5 MHz  30 MHz  63 dBuV  Radiation   150 KHz  30 MHz  80  dBuV  50dBuV  30 MHz   100 MHz  60  dBuV   54dBuV  100 MHZ   1GHz  54 dBuV  156 MHZ   165 MHz  24  dBuV  7  Approvals CE mark GL  gt  Certificate of  Conformity  Table  Tests  standards and regulations  48 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11       Deutschmann Automation GmbH  amp  Co  KG    Technical data       15 1 1    Interface data    The table below lists the technical data of the interfaces and ports on the device  The data has  been taken from the corresponding Standards                                                        Table  Technical data of the interfaces and ports on the module       Interface designation DeviceNet RS232 C RS485 RS422  No   Physical interface RS232 C RS485 RS422  1  Standard CiA DS 102 DIN 66020 EIA Standard  2  Transmission mode Symmetrical Asymmetrical  Symmetrical  asynchronous asynchronous  asynchronous  serial serial serial  half duplex full duplex half duplex  full duplex at RS422   gt  Difference signal      Level     Difference signal  3   Transmission method Master   slave Master   slave  Master   slave  4  Number of users    Transmitters 32 1 3
12.  Connecting the shield at one end may be  more favorable if   e it is not possible to lay an equipotential bonding line   e analogue signals  a few mV resp  mA  are to be transmitted   e foil shields  static shields  are used     In the case of data lines for serial couplings  always use metallic or metallized plugs and connec   tors  Attach the shield of the data line to the plug or connector housing  Do not connect the shield  to one Pin of the multipole connector     If there are potential differences between the earthing points  a compensating current may flow  via the shield connected at both ends  In this case  you should lay an additional equipotential  bonding line        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 45    Installation guidelines Deutschmann Automation GmbH  amp  Co  KG       Please note the following points when shielding    e Use metal cable clips to secure the shield braiding  The clips must surround the shield over a  large area and must have good contact      Downstream of the entry point of the line into the cabinet  connect the shield to a shielding bus   Continue the shield as far as the module  but do not connect it again at this point     Shielded data lines and unshielded power supply lines   lt  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     e Downstream of the entry point into the switch cabinet  the DeviceNet c
13.  SC as well  unless differences are explicitly pointed  out        3 1 The product code    Up to the software revision V2 0x of the Unigate RS DeviceNet the product features the product  code 2242 dez   From software revision V2 1 on the product code of the device is an integer  value  UINT  with values between 0 and 65535  The high byte of the product code represents the  produced size of the Unigate and the low byte the consumed size     Example    The Product code might be 1288  dez    0508 hex   i  e  the high byte equals 5 and the low byte  equals 8  As a result the produced size   5 bytes and the consumed size of the Unigate   8 byte   In first authority  01 hex  of the identity object  01 hex  the product code is contained in attribute  3  0003 hex         10 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Introduction       3 2 EDS file    In order to use a device with the set values in a DeviceNet network  a corresponding EDS file has  to be integrated into the configuration tool  This file can be generated automatically through the    software WINGATE    For this please use the configuration of the Unigate RS DeviceNet with the  corresponding settings select the menu  Options Generate EDS FILE   An EDS file with the  appropriate settings for the device is generated  The file name is made up according to the fol   lowing scheme   P     ProducedSize     C     ConsumedSize     EDS   The EDS file is gener   ated from the
14.  TORE  ero a ae ee  A barrres TF Ge RER RR ee  Y RR    any EZ on  ng A                ES  ns   O ARE   O  p      At  RE              ri FR  GET            16 5 Commissioning   It is essential that you perform the following steps during commissioning in order to ensure that  the module operates correctly    16 6 Setting the DeviceNet address and Baud rate    Set the DeviceNet address and the Baud rate at the fieldbus end of the module on the  DIP switch        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 51    Commissioning guide Deutschmann Automation GmbH  amp  Co  KG       Attention    The DeviceNet MAC ID must correspond to the planned address   All users in the DeviceNet have to use the same Baud rate   These values are read in only on power up of the gateway        16 7 DeviceNet connection    Connect the device to the DeviceNet at the interface labelled  DeviceNet      16 8 Connection to the process device    Please also read the User Manual provided for the process device when commissioning the pro   cess device     16 9 Connecting the supply voltage  Please connect 10 8   30 DC voltage to the terminals provided for this     16 10 Shield connection    Connect the PE wire at the terminal provided for this  Earth the top hat rail onto which the mod   ule has been snapped        52 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Servicing       17 Servicing    Should questions which are not covered in this Manual 
15.  V  4 2 3    Deutschmann Automation GmbH  amp  Co  KG       91 32 Length 232 u    3 2 seed uns ls do ac EN Mae hae od at died et en Gd God at       919 8 DEE Sr els ee de oy Ota ae ofl veut Sat os dace  ke  ot aed aed edad hah  oe bs    Ou 2374  Dala aca Ss A a ee aes ER E Sons  9 1 3 5  5 CHECKSUM  tia de Hoss Gets es Genet Ses te Ge Tar ohn Sep a n ge  EGS Bites eh be  9 1 3 6     End characte su    van wor Be oe as we bh wee teed A as ad  9 1 4 Communication sequence             a eee ee ee    9 2    9 2 1    The 3964 Rprotocol                    2 2 2 2 222   Data structure 3964R      2    a a a u a a e a eia da a a A    9 2 2 Protocol definitions                                    9 2 3  Data Communications  siss se  isa er ee ee rei GS    9 2 3 1 Initiation of data communication by the low priority user    2  2222er  9 2 3 2   GONflicis  Na E a a a ae Sale Eee es    9 23 93  THIMeOUtTIMES cous cb 2 03 a2 Boe re ee Eo EE aaa ea    9 2 3 4  FREIES u  0 oe tae ek coh ee tg te A ate  el hes ahem evn Weta ok Es  9 2 3 5 Initiation of data communication by the high priority user                    9 2 4 State of the 3964R communication                            9 3    9 3 1    9 4    9 4 1    THE  ARS12 BIOJOBDIE sc eee  ee A Gora ae Ark ita G  Operating sequence of the datatransmission                   Modbus RTU              a  NOTES bbc ta tec i od ils ede eee od te kn ee i ae Re a    9 4 2 UNIGATE as Modbus master              2 000002 eee eee  94 21      Pr  paration  
16.  data exchange is commenced  the parameters  Trigger byte  and  Length byte    Baud  rate    Parity    Start bits    Stop bits  and  Data bits  must be set        28 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Implemented protocols in UNIGATE RS       In addition  a  Response time  which corresponds to the maximum time up to which the field   bus master responds after a request must be set and at the rotary switch on the RS side the  Modbus ID has to be set  under which the gateway is addressed in the Modbus     Since the Modbus operates with a variable data format   dependent on the required function and  data length   but since the fieldbus requires a fixed data length  this must be preset by means of    WINGATE    This length should be selected by the user such that the longest Modbus request  resp  response can be processed  If a fieldbus telegram is longer than the preset fieldbus length   the gateway signals an  Rx buffer overflow        9 4 3 2 Data structure    l 4    9 4 3 3 Communication sequence    The gateway always acts as the slave with respect to the fieldbus and also acts as slave at the  Modbus end  A data exchange is always initiated by the Modbus master via the RS interface  If  the Modbus 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 
17.  debug interface itself is always operated with 9600 baud  no parity  8 data bits and 1 stop  bit  Apart from that there are no further differences  neither in the software nor in the hardware        18 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Mode of operation of the system       6 Mode of operation of the system    6 1 General explanation    Communication can be split into seven layers  Layer 1 to Layer 7  in accordance with the  ISO OSI Model    The DEUTSCHMANN AUTOMATION gateways convert Layers 1 and 2 of the customized bus  system  RS485   RS232  to the corresponding fieldbus system  Layers 3 to 6 are blank  and  Layer 7 is forwarded transparently on the standard gateways  However  customized adaptations  are also possible here  e g  adaptations to existing profiles of the fieldbus systems     The gateway can be configured through the software WINGATE   that is also supplied  see also  chapter 11 1 2      6 2 Interfaces    The gateway features the RS232 and RS485 interfaces  Switchover is performed by means of a  slide switch accessible for the customer  The DeviceNet gateway thus allows access to all  devices connected to the RS485 bus via one single MAC ID resp  access to the device con   nected to the RS232 interface     6 3 Data exchange DeviceNet    In the DeviceNet the gateway acts as a  Group 2 Only Slave   The access methods  Polling     Bit Strobe  and  Change of state  are supported  They are described be
18.  do this  slide the slide switch to the posi   tion labelled    on       e If the module is not located at the start or at the end  you must set the slide switch to position   off      14 2 2 2 Power supply  The device must be powered with 10 8   30 V DC     e Connect the supply voltage to the 5 pin or optional 2 pin plug in screw terminal in accordance  with the labelling on the front panel of the device     14 2 2 3 Shield connection    The module features two contact points for equipotential bonding and the shield of the RS end   The shield of the DeviceNet 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 mechanical or chemical stress  it is advisable to use a tin plated  top hat rail in order to ensure greater contact stability of the shield connection     14 2 2 4 Equipotential bonding connection    e Fit an earthing terminal to the top hat rail directly next to the module  The earthing terminal  automatically establishes an electrical connection to the top hat rail    e Connect the shield connection terminal to the earthing terminal using a flexible wire with a  diameter of 1 5 mm  which should be as short as possibl
19.  laying instructions as a function of the combination of line groups    1  Lines may be laid in common bunches or cable ducts    2  Lines must be laid in separate bunches or cable ducts  without minimum clearance     3  Lines must be laid in separate bunches or cable ducts inside cabinets but on separate cable  racks with at least 10 cm clearance outside of cabinets but inside buildings     14 2 4 1 Shielding of lines    Shielding is intended to weaken  attenuate  magnetic  electrical or electromagnetic interference  fields    Interference currents on cable shields are discharged to earth via the shielding bus which is con   nected conductively to the chassis 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 on attachment  The consequence is a reduction in the shielding  effect    In general  you should always connect the shields of cables at both ends  The only way of  achieving good interference suppression 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 
20.  on ships  e Electrical  and building installation engineering   e Measuring   switching  and controlling technique   e EMC Directives   relevant fields   e Heating   air conditioning  and ventilation technique and   e Medical field    Main operational fields of high grade steel housings with protection type IP 66  e Aggressive and rough environmental conditions e  g  sea water field      In fields with highest purity and cleanness  e  g  food field    e EMC Directives applications    13 2 Mounting instruction    Mounting instruction of the aluminium housing  The assemble with the dimensions  160x160x90 BxHxT  is developed for wall mounting     Mounting   1  Using the drill template  see chapter 19  Drilling templates  and mark the four holes  the mea   sures can also be taken from the reverse side of the housing     2  Unscrew the cover and fix the housing with four screws  max M6  in the marked holes     3  The housing have to be fixed on a grounded mounting place   4  Under the housing must be 5 cm place for the insertion of the cable        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 41    Housing variations Deutschmann Automation GmbH  amp  Co  KG       Attention  All leads have to be shielded     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
21.  template  Stub EDS   that is copied into the WINGATE directory during the  installation of WINGATE     3 3 DeviceNet    information    General information   In the DeviceNet network the Unigate RS DeviceNet operates as a Class 2 Slave  The device  supports Poll connections  Change Of State messages and Bit Strobe of the predefined master  Slave Connection Set  The device does not support  Explicit Unconnected Message Manager    UCMM      The device purely supports all combinations of Consumed Size and Produced Size between 1  and 255 bytes  The sizes can be chosen as desired                 Message Types   As group 2 slaves  the device supports the following message types   CAN Identifier Group 2 Message Type   10xxxxxx111 Duplicate MAC ID Check Message  10xxxxxx110 Unconnected Explicit Request Message  10xxxxxx101 Master I O Poll Command Request  10xxxxxx100 Master Explicit Request Message             xxxxxx   Node Address    Class Services  As Group 2 Slave the Unigate RS DeviceNet supports the following class services and instance  services                          Service Code  hex  Group 2 Message Type   OE Get Attribute Single   10 Set Attribute Single   4B Allocate predefined master slave Connection Set  4C Release predefined master slave Connection Set    Object Classes  The Unigate RS DeviceNet the following object classes                    Class  hex  Group 2 Message Type  01 Identity   03 DeviceNet   05 Connection   64 Consumed Data   65 Produced Data            
22.  the reverse direction  to the field   bus   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 6   the gateway transfers only the number of bytes  specified there  The number of received Modbus data items is saved in the direction of the field   bus master  The length always refers to bytes  Address  to  Dat n   inclusive in each case    always without CRC checksum    As the gateway determines the data length independently by means of the Modbus function  the  length byte is not required     9 4 2 2 Data structure   optional   optional     4 y 4    9 4 2 3 Communication sequence    The gateway always acts as the slave with respect to the fieldbus and always acts as the master  at the Modbus end  Thus  data exchange must always be started by the fieldbus master  The  gateway fetches this data which must be structured in accordance with Chapter  Data structure      from the fieldbus master  determines the valid length of the Modbus data if the length byte is not  activated  adds the CRC checksum and sends this data record as a request on the Modbus     The response of the selected slave is then sent to the fieldbus master by the gateway   without  CRC checksum  If no response occurs within the stipulated  Response time   the gateway sig   nals a  TIMEOUT ERROR      9 4 3 UNIGATE as Modbus slave    9 4 3 1 Preparation    Before
23.  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 earth the unit and the switch box   metal box  or at least the top hat rail  plastic box  onto which the module has been snapped     1 5 Working on switch cabinets    In order to protect the modules against static electrical discharge  the personnel must discharge  themselves electrostatically before opening switch cabinets or switch boxes        8 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Information for the machine manufacturer       2 Information for the machine manufacturer    2 1 Introduction    The UNIGATE does not constitute a machine as defined by the EU  Machinery    Directive   Consequently  the module does not have a Declaration of Conformity in relation to the EU  Machinery Directive      2 2 EU Machinery Directive 89 392 EEC    The EU Machinery Directive 89 392 EEC 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   Paragraph 3 1    The module is a part of the electrical equipment of the machine and must thus be included 
24. 00   No condensation   no corrosive atmosphere  14  External power supply 10 8   30 VDC 24 V   20  Standard power supply unit to  DIN 19240  15  Current consumption at  Typ  120 mA  Max  150 mA At 10 8V  typ  350 mA  24V DC max 150 mA  16  Reverse voltage protec   Yes Yes But does not function   tion  17  Short circuit protection Yes Yes  18  Overload protection Poly switch Poly switch Thermal fuse  19  Undervoltage detection   lt 9V DC     USP        20  Emergency power supply   gt  5 ms                     Device fully operable       Table  Technical data of the module       21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2    47       Technical data    Deutschmann Automation GmbH  amp  Co  KG       The table below lists all tests  standards and regulations on the basis of which the module has  been tested                                                  No   Parameter Data GL certified design Explanations  1  Vibration test  5 Hz  lt f  lt 26 Hz  amplitude   0 75  2Hz lt f  lt 25Hz  1 6 mm   IEC 68 2 6Fc  mm 25 Hz  lt f  lt  100 Hz  4 g sinusoidal   26 Hz  lt  f  lt  500 Hz  acceleration    20 m s       Frequency sweep   1 octave min       10 frequency sweeps each in x   y  Z  2  Shock test Shock waveform   semi sinusoidal     IEC 68 2 27 Ea   Acceleration   15g  150 m s    Shock duration   11 ms   gt  3 shocks in     direction in x  y  z  3  ESD 8 kV discharge in air 8 kV discharge in air EN 50082 2  4 kV contact discharge 4 kV contact discharge  4  Electromag  10 V m
25. 11 5 1   e Poll data length  1 Byte in both directions   e Vendor ID  272    e Device Type  12  Communication adapter   e Product Code  See chapter 11 5 1       34 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG    Hardware ports  switches and LEDs       11 2 2 RS232 RS485 RS422    e Start bit  1   e Data bits  8   e Stop bit  1   e Parity  None   e Baud rate  9600 Baud    The supplied WINGATE   software can be used to change this configuration  Likewise  it can be  used to select customized protocols  A description is given below     11 3 Connectors    11 3 1 Connector to the external device  RS interface   The connection cable to the external device must be plugged in at the connector accessible on    the underside of the device     Pin assignment  5 pin screw type plug connector  not available for RS422                             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 B  Receive signal   4 TX   RS485   RS485 A  Transmit signal   5 GND Reference for PIN 3   4          Pin assignment  9 pin Sub D  plug      Standard for the RS232 422 model  optional for the RS232 485 model                                                        Pin No  Name Function  1 Shield  Rx Receive signal  2 RS485  Transmit receive signal  RS422   Tx  Transmit signal  Tx Transmit signal  3 RS485  Transmit receive signal  RS422   Tx  Receive signal  4  5 GND Ground connec
26. 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 19    Mode of operation of the system Deutschmann Automation GmbH  amp  Co  KG       All data is transferred consistently by the gateway in both directions     Structure of the data              Trigger byte See  The trigger byte   only at UNIGATE RS   chapter 6 5  on page 20  Length byte See  The length byte   only at UNIGATE RS   chapter 6 6  on page 20  User data                Trigger byte and length byte are contained only if configured accordingly     6 5 The trigger byte   only at UNIGATE RS    In case data is transferred cyclically via DeviceNet  normally that is not the case   the gateway  must detect when the user wishes to send new data via the serial port  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    If Trigger Byte mode is activated  the gateway increments the trigger byte each time a telegram  has been received    The first byte in the DeviceNet input output data buffer is used as the trigger byte if this mode is  activated     6 6 The length byte   only at UNIGATE RS    The user can configure whether the transmit length is also to be stored as a byte in the input out   put data area  In transmit direction  as many bytes as specified in this byte are sent  On reception  of atelegram  the gateway enters the number of characters received        20 UNIGATE fieldbus gateway for DeviceNet V  4 
27. 2    Receivers 32 1 32  5     Cable length    Maximum 500 m 15m 1200 m    Baud rate dependent  125kB gt 500m  no  lt 93 75 kBd  gt  1200 m  250 kB  gt  250 m 312  kBd  gt  500 m  500 kB  gt  100 m 625 kBd  gt  250 m  6   Bus topology Line Point to point  Line  7  Data rate    Maximum 500 kBit s 120 kBit s 625 kBaud  2 4 k B 2 4 kBit s    Standard values 125kB 4 8 k B 4 8 kBit s  250 kB 9 6 kBit s 9 6 kBit s  500 kB 19 2 kBit s 19 2 kBit s  38 4 kBit s 57 6 kB  57 6 kBit s 312 5 kB  625 kB  8   Transmitter    Load 54 Q 3   7 KQ 540    Maximum voltage  7V   12V  25V  7V   12V    Signal  unloaded  5V  15V  5V    Signal  loaded  1 5V  5V  1 5V  9   Receiver    Input resistance 120 3  70 120    Max  input signal  7V  12V  15V  7V   12V    Sensitivity  0 2V  3V  0 2V  10  Transmit range  SPACE      Voltage level  0 5    0 05 V  3   15V   0 2   0 2V    Logic level 0 0 0  11  Transmit pause  MARK      Voltage level  1 5   3V  3   15V  1 5   5V    Logic level 1 1 1       21 4 11    UNIGATE fieldbus gateway for DeviceNet V  4 2    49       Technical data    Deutschmann Automation GmbH  amp  Co  KG       15 2 Housing data    The table below lists the technical data of the different housing variations        Aluminium housing    High grade steel housing    Polycarbonat housing   supplied until January 2006        Material    AISi12  DIN 1725    High grade steel 1 25 mm   1 4404 316L    Polycarbonat  thermoplasti   cally splashed       Protection type    IP 66  EN 60529    IP 66  EN 60529
28. 2  REMOVAL    ru  d s a ra ae Ee A he en ee a 43   14 2   WINNG oe sa he eee ne Wd le dota he de he A A 43  14 2 1 Connection systems            a 43  14 2 2 DeviceNet communication interface                                  44  14 2 2 1 Bus line with copper Cable              2    0000 2 eee ee ee 44   14 2 2 2  Powersupply    ea Sect Sapa PE al ea a a 44   14 2 2 3 Shield connection    2 2 22  e gn nn 44   14 2 2 4 Equipotential bonding connection        2 2 2m nn nn rn 44   14 2 3 Line routing  shield and measures to combat interference voltage               44   14 2 4 General information on line routing        22 2  nn nen 44  14 2 4 1 Shielding oflines     2 2  2  2 Cm n nn 45   15 Technical data      ios a a re ri ee ae 47  15 1 Device data             n nn 47  15 1 1 Interface data       2222 Common nn 49   19 2  IOUSING datas azo  3   ea a dg  Ra rr ae ie 50   16 Commissioning guide              nn nn 51  16 1  NOE Barren ES a a ale ue We a dere AEs 51  16 2 Components    rare rn dy Re Gece eee 51  16 3  Installations so AS ae ee to A a Oh ea od 51       21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 5    Deutschmann Automation GmbH  amp  Co  KG          16 4 Dimensional drawing DIN rail mounting                     51  16 5     COMMISSIONING   e ocs s 3 258 2 a are    ule Grd ee ab west 2 B28 are 51  16 6 Setting the DeviceNet address and Baudrate                51  16 7 DeviceNet connection               0 0002 eee eee 52  16 8 Connection to the process devi
29. 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Transparent mode   only at UNIGATE RS       7 Transparent mode   only at UNIGATE RS    The data 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        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 21    Character Delay Time mode   only at UNIGATE RS Deutschmann Automation GmbH  amp  Co  KG       8 Character Delay Time mode   only at 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        22 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Implemented protocols in UNIGATE RS       9 Implemented protocols in UNIGATE RS    9 1 Universal 232 protocol    9 1 1 Data structure    Data structure  Universal 232 protocol    tt    i Perca E    9 1 2 Fieldbus parameters    Trigger byte  See  The trigger b
30. 2 22 eee BG ee eee a RR we ene Gere  9 4 2 2   Data str  cl  re sed e a Ba SaaS eee oe Sad oe Sha ee ee oe  9 4 2 3 Communication sequence           nn   9 4 3 UNIGATE as Modbus slave            20 000 eee ee es  9 4  321 Preparation    u 22    here ae Re ae ae Ee ae Wa eb  94 32   gt  Data Struct  r en 2  ar 2 doe a Ku Don an ee A ee an  9 4 3 3 Communication sequence          2  na 2 nn  9 4 3 4 Statusreport  22  ka a h aaa a a een    10 1  10 2  10 3  10 4  10 5  10 6  10 7  10 8    Memory efficiency of the programs      a  aooaa o           What can you do with a script device                      Independence of buses                e     Further settings at the gateway                              The use of the Protocol Developer                        Accuracies of the baud rates at UNIGATESC                 Script processing times                           2          11 Hardware ports  switches and LEDS                       11 1    Drawing of the unit     eee arte o ar e    11 1 1 Model UNIGATE RS   SC 232 485 DeviceNet                    11 1 2 Model UNIGATE RS   SC 232 422 DeviceNet                       11 2    Configuration of the UNIGATERS                  04     4122 A DeviceNet Muero aria as rel Aen  amp  A bie aie ante ap  11 2 2 RS232 RS485 RS422   2    aaa a a a a    11 3    COMECON o is esi era A amas it ee a ee       UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG       11 3 1 Connector to the external de
31. 3 5 Checksum    At the universal 232 protocol the following checksums can be selected   XOR  bytewise sum  XOR with negated result and bytewise sum with negated result        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 23    Implemented protocols in UNIGATE RS Deutschmann Automation GmbH  amp  Co  KG       The checksum is always generated on the basis of bytes  Length232    ID    and  Data area    if  present  The checksum is generated by the gateway at the transmit end independently  On  reception from the RS232 interface  the gateway checks the checksum and then transfers the  useful data  without checksum  to the fieldbus buffer if no checksum errors have been detected   Otherwise  a local error message issued     9 1 3 6 End character    If this character is defined  the gateway receives data from the RS232 interface up to this charac   ter  The  Timeout  criterion can be defined as a special case  In this case  the gateway continues  to receive characters until a defined pause occurs  In the special case  Timeout  the  Length  232 byte  has no significance  At the transmit end  the gateway inserts the end character  if  defined  as the last character of a transmission     Attention    The configuration of an end character together 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 1 4 Communication 
32. Deutschmann Automation   Cam Controls 1 Fieldbus Gateways   Industrial Ethernet Products     User manual  Universal Fieldbus Gateway  UNIGATE         UNIGATE RS232 485   DeviceNet  UNIGATE RS232 422   DeviceNet  UNIGATE SC232 485   DeviceNet  UNIGATE SC232 422   DeviceNet    V2701E  Deutschmann Automation GmbH 8 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    Deutschmann Automation GmbH  amp  Co  KG       1 Information on CE marking of the module                  8  At  EU Directive EMG c a a a de a ea eae ele Kok 8   1 2 Scope of application     44  re dd a a 8   1 3 Note installation guidelines                           8   1 4 Installation of the unit       oaoa aa     o  8   1 5 Working on switch cabinets                      a 8   2 Information for the machine manufacturer                 9  21d    Introd  cti  n  4 iia ads O wets A ar in Aes 9   2 2 EU Machinery Directive 89 392 EEC                  00 4 9   3    INIFOQUCHON     i  cde e a re ee 10  3 1  Theproductcode   2 2222 2 En o nn 10   32  EEN y td o aia Be er dd EN RE 11   3 3  DeviceNet   M information    22 22  Emm nn 11   3 4 UNIGATE RS software flow chart     2 22 2 Co a 12   3 5 UNIGATE SC software flow chart     2  22 2 Co on 13   3 6 UNIGATE block diagram      2    2  20 Ow Be Od age 14   3 7 UNIGATE application diagram                 02202004 14   4 Operation modes of the gateway           
33. KG       11 1 2 Model UNIGATE RS   SC 232 422 DeviceNet                                                                              125 kBd      250 kBd       500 kBd      125 kBd          ES     o   os 3   Als     c  w   of a    DeviceNet          Deutschmann Automation  GmbH       Termination Interface    On Cal off   232 M  422  KEERE  wae                   Error No   Select ID  8421                                                                                                                                        11 2 Configuration of the UNIGATE RS    The gateway is delivered by the manufacturer with the following configuration     Transparent data transmission  i  e  Layer 7 is transferred unchanged    The configuration of the gateway can be changed by the customer  That is what the software  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 selects the interface parameters  correctly  For the operation of WINGATE   please take a look at the WINGATE   Online help     11 2 1 DeviceNet    e Baud rate  According to the setting DIP switch  see chapter 11 5 1   e MAC ID  According to the setting DIP switch  see chapter 
34. LED    Bus State       This LED operates as combined  Module Network Status LED  according to DeviceNet Specifi   cation                    Lights green Gateway connected to master   Blinks green No connection to DeviceNet master   Blinks red Errors that can be removed  e  g  Timeout   Lights red Serious error  e  g  double MAC ID    Blinks red green Communication error                11 4 3 LED    Power       This LED is connected directly to the  optionally also electrically isolated  supply voltage of the  RS485 RS232 end     11 4 4 LED    State       Lights green  only RS  Data exchange active via RS485 RS232   Flashes green  only RS  RS485 RS232 ok but no permanent data exchange  Flashes green red  only RS  No data exchange since switching on   Lights red General gateway error  see LEDs Error No    Flashes red  only RS  UNIGATE is in the configuration mode    11 4 5 LEDs    Error No    Select ID    at the UNIGATE RS    If these 4 LEDs flash and LED    State    simultaneously lights red  the error number is displayed in  binary notation  conversion table  see Annex  in accordance with the table in Chapter  Error han   dling   Otherwise  the address with which communication is currently running via the RS485  interface is displayed  also in binary notation     11 5 Switches    The gateway features 6 switches with the following functions                             DIP switch MAC ID  NA   Node Address  and Baud rate  DR   Data Rate   Slide switch    Termination    Switchabl
35. MSB  of the  first byte  the bytes 1 to 6 have to be evaluated  When it comes to a change of bit 4  the bytes 7  and 8 have to be evaluated    These bits can be used as toggle bits  as in the first byte only the commands 41H  45H and 4FH  are possible  Thus the bits 4 and 7 are not used     Examples 1    PLC will describe DB3  DW7 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 UNIGATE   1xH xxH xxH xxH xxH xxH 47H 11H    Toggle bit reply   1  if it was O before    9 4 Modbus RTU   9 4 1 Notes    gt  For reasons of simplicity   Modbus RTU  is referred to as  Modbus  in the text below    gt   Modbus ASCII  is currently not supported      gt  The terms  input and  output    are always viewed from the gateway   s point of view   i  e  fieldbus input data is the data sent by the fieldbus master to the gateway     9 4 2 UNIGATE as Modbus master    9 4 2 1 Preparation   Before data exchange is commenced  the  Baud rate  and  Parity  parameters and  if applicable   the  Trigger byte  and the  Length byte  must be set  The number of  Start bits    Stop bits  and   Data bits  are permanently preset
36. 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  the  high priority device nevertheless attempts to establish contact with the low priority partner by  transmitting STX  cycle corresponds to tq      tz   character timeout time   200 ms    If the 3964 R driver receives data  it monitors arrival of the individual characters within period tz   If no character is received within the timeout time  the protocol terminates transfer  No  acknowledgement is sent to the coupling partner     9 2 3 4 Retries    In the event of negative acknowledgement or timeout  a telegram transmitted by the high priority  user is repeated twice  After this  the gateway signals communication as disturbed but still  attempts to re establish the connection     9 2 3 5 Initiation of data communication by the high priority user    In the case of a negative acknowledgement or timeout  a telegram transmitted by the external  device is repeated twice before a fault is signalled        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 25    Implemented protocols in UNIGATE RS Deutschmann Automation GmbH  amp  Co  KG       9 2 4 State of the 3964R communication    The current state of the 3964R communication will be mapped in the fieldbus  if the parameter  3964R is activated in WINGATE  The states can be taken from the below table  This parameter  takes effe
37. TE   IC for the respective  product    PBDPVO   ProfibusDPVO   PBDPV1   ProfibusDPV1   RS Serial RS232 485 422   54 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG    Annex       18 2 Hexadecimal table       Hex    Decimal Binary       0000       0001       0010       0011       0100       0101       0110             0111       oISNSI O J O  PIOID      O    1000       o    1001       ER  o    1010               1011       4  N    1100       4  wo    1101       a4   gt     1110       n m o lo u  gt   co O N  o oO  as wo  mM       o          e  al       Je Jel                 21 4 11    UNIGATE fieldbus gateway for DeviceNet V  4 2    55    Drilling templates Deutschmann Automation GmbH  amp  Co  KG       19 Drilling templates     X  The following drawings are not true to scale     19 1 Aluminium housing          56 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG    Drillingtemplates       19 2 High grade steel housing          21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2    57    Drilling templates Deutschmann Automation GmbH  amp  Co  KG       19 3 Polycarbonate housing    Supplied until January 2006            58 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Declaration of conformity and certificates       20 Declaration of conformity and certificates  20 1 EG Certificate of conformance    EG Conformity Certification
38. able shield must be con   nected to the equipotential bonding strip     e You must earth the shielded RS232C connection cable via the shield terminal on the module  using a flexible wire with a cross section of at least 1 5 mm  which is as short as possible     e You must also earth the other end of the cable shield of the RS232C connection cable    see also chapter 14 2 2 3        46 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG    Technical data       15 Technical data    15 1 Device data    The technical data of the module is given in the table below                                                     No   Parameter Data GL certified Explanations  design  1  Location Switch cabinet On ships Top hat rail mounting  2   Enclosure IP24   IP66 IP 66 Protection against foreign  bodies and water to IEC 529   DIN 40050   4  Service life 10 years 10 years  5   Housing size 90 x 127 x 55 mm 120 x 122x80 mm  WxHxD  6   Installation position Any Any  7  Weight 0 3 kg 1 15 kg  8  Operating temperature 0  C      45  C  without  0  C   55  C  mandatory convection   0  C      65  C  with  mandatory convection   9   Storage transport   40  C       70   C  40  C  70  C  temperature  10  Atmospheric pressure S  during operation 795 hPa     1080 hPa  during transport 660 hPa     1080 hPa  11   Installation altitude 2000 m Not applicable Unrestricted  4000 m Restricted    Ambient temperature  lt  40   C  12  Relative humidity Max  80   Max  1
39. ann Automation GmbH 8 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 this clause will necessarily lead to compensation in  damages  All rights reserved  in particular rights of granting of patents or registration of  utility model patents     Art  No   V2701E       21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 7    Information on CE marking of the module Deutschmann Automation GmbH  amp  Co  KG       1 Information on CE marking of the module  1 1 EU Directive EMC    The following applies to the module described in this User Manual   Products which bear the CE mark comply with the requirements of EU Directive   Electromagnetic  Compatibility    and the harmonized European Standards  EN  listed therein     The EU Declarations of Conformity are available at the following location for perusal by the  responsible authorities in accordance with the EU Directive  Article 10     Deutschmann Automation GmbH  amp  Co  KG  Carl Zeiss StraBe 8  D 65520 Bad Camberg  Ger   many  1 2 Scope of application    The modules are designed for use in the industrial sector and comply with the following  requirements        Scope of application Requirement applicable to  Emitted interference Interference immunity  Industry EN 55011 KI  A EN 61000 6 2                1 3 Note installation guidelines    The module complies with the requirements if you    1  comply
40. ay  Adjustments at the gateway s configu   ration are only possible in this mode  The gateway will be starting in this mode in case both  switches S4 as well as S5 are set on position  F  when switching on the gateway and also  RS232 is to be selected as interface  Right after switching on the gateway in the configuration  mode it will be sending its starting message  that looks analog with the following message    RS DN c dA  switch 0x0000 Prot 0x00 SN 20790120      In the configuration mode the gateway always operates with the settings 9600 Bauds  no Parity   8 Databits and 1 Stopbit  the RS State LED will always be flashing red green  the  Error  No Select ID  LEDs are of no account for the user  All software revisions contain the configura   tion mode     Connection cable from the gateway to the PC  The cable is supposed to look as follows       Connection table 5pin screw plug connector   PC                Screw plug connector Name D Sub plug connector Name  Pin 3 Rx Pin 3 Tx  Pin 4 Tx Pin 2 Rx  Pin 5 GND Pin 5 GND                         21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 15    Operation modes of the gateway Deutschmann Automation GmbH  amp  Co  KG       4 2 The Debug cable for UNIGATE SC    The Debug cable consists of the following components  a 9 pole D sub socket with two exits   where respectively two cables are connected  one with a 3 pole Phoenix socket with mating con   nector and one with a 9 pole D SUB plug     Cable 1  RS product side  3 pol
41. by the  machine manufacturer in the Declaration of Conformity process        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 9    Introduction Deutschmann Automation GmbH  amp  Co  KG       3 Introduction    The UNIGATE RS232 RS485 DeviceNet or the SC232 485 DeviceNet module serves to adapt a  serial port to the DeviceNet according to  DeviceNet Specification Release 2 0   In this applica   tion  it functions as a gateway and operates as the DeviceNet  Group 2 Only Slave   It can be  operated by any standard compliant master     Atthe UNIGATE RS232 485 various transmission protocols are supported at the serial port     e Modbus RTU   e The 3964R protocol popular in Siemens equipment  e Monitoring on the basis of character delay time   e Start   End character   e Constant data lengths  Transparent mode    e Customized protocols    These protocol variants will probably support most applications   The module RS or SC essentially consists of the following hardware components     e Electrically isolated interface to the DeviceNet   e CAN controller SJA 1000   e Microprocessor T 89C51RD2   e RAM and EPROM   e Optionally electrically isolated RS interface   e Serial port  RS232 and RS485  to the device connected externally    Please note  This instruction manual is valid for UNIGATE RS  standard  gateway with implemented protocols  and also for UNIGATE SC  gateway  capable for scripts     The information given in this instruction manual is about the UNIGATE  RS and the UNIGATE
42. cates Deutschmann Automation GmbH  amp  Co  KG          62 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG    Declaration of conformity and certificates          21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 63    
43. ce              2 02 0000 52  16 9 Connecting the supply voltage    22  2  2 2 En nn 52  16 1 0 Shield connection u    Weise oni ar RE Da 52  17 Servicing   u    000 a Wa a we eae a 53  17 1 Returning a device        a  2  2m mn nn 53  17 2 Downloading PC software and GSD files etc                 53  18  ANNEX 2 0 o ne Bee at AO rei 54  18 1 Explanations of the abbreviations        ooa a ooa a a 54  18 2 Hexadecimal table        oa ooa Emm 55  19 Drilling templates      ee ee eh a Pe a 56  19 1 Aluminium housing   405         we ee Dr le ae ee es 56  19 2 High grade steel housing                   0505255 57  19 3 Polycarbonate housing i      845  wc 208 u san ew Bw a 58  20 Declaration of conformity and certificates                 59  20 1 EG Certificate of conformance                 2225004 59  20 2 Certificate Germanischer Lloyd                         60  6 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG       Disclaimer of liability    We have checked the contents of the document for conformity with the hardware and software  described  Nevertheless  we are unable to preclude the possibility of deviations so that we are  unable to assume warranty for full compliance  The information given in 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     Copyright1   Copyright  C  Deutschm
44. cript   only for UNIGATE SC       10 6 The use of the Protocol Developer    The Protocol Developer is a tool for an easy generation of a script for our script gateways  Its  operation is exactly aimed at this use  After starting the program the script that was loaded the  last time is loaded again  provided that it is not the first start    Typical for Windows script commands can be added by means of the mouse or the keyboard  As  far as defined and required for the corresponding command  the dialog to the corresponding  command is displayed  and after entering the values the right text is automatically added to the  script  The insertion of new commands by the Protocol Developer is carried out in a way that  existing commands will not be overwritten  Generally a new command is inserted in front of the  one where the cursor is positioned  Of course the commands can also be written by means of the  keyboard or already written commands can also 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 precisely from the crystal frequency    The baud rate the gateway is actually working with  Baudlst  can be determined as fo
45. crop up  please contact us directly   Please note down the following information before calling     e Device designation   e Serial number  S N    e Article number   e Error number and error description    You can reach us during hotline hours which are as follows   Monday to Thursday from 8 am to midday and from 1 pm to 4 pm  Friday from 8 am to midday   Deutschmann Automation GmbH  amp  Co  KG   Carl Zeiss Stra  e 8   D 65520 Bad Camberg    Germany    Central office and sales department  49  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    17 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     e What error number was displayed    e What is the supply voltage   0 5 V  with gateway connected    e What were you last doing or what last happened on the device  programming  error on  power up           The more precise information a fault error description you provide  the more exactly we will be  able to pinpoint the possible causes     17 2 Downloading PC software and GSD files etc     You can download the current version of WINGATE   free of charge from our Internet server     http   www deutschmann de       21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 53          Annex Deutschmann Automation GmbH  amp  Co  KG 
46. ct from software revision 3 41 on and can be adjusted by means of the WINGATE soft   ware    This information is only presented in the bus data from the gateway to the Master  however  it  applies to the communication via 3964R in both directions              Name Value  Description  3964R_NO_ACTION 0 If this value is presented  no 3964R communication is active   3964R_WAIT_AFTER_STX  1 After the transmission of the STX character the sender waits until    the receiver has sent its confirmation                       3964R_WAIT_QUITTUNG 2 The receipt character is waited for   3964R_WAIT_DATA 5 The gateway waits as reveiver for the useful data   3964R_WAIT_ZVZ 9 An execution time is waited for           9 3 The RK512 protocol    The RK512 protocol is based on the Siemens protocol 3964R  which represents the layer 2 and  RK512 describes the transport layer that is put on it  For the exact sequence 3964R  please take  a look at the preceding chapter     The complete RK512 protocol  where  consecutive telegrams  are used for the transmission of  any data lengths  can not be supported by the gateway  as consequently the handshake to the  fieldbus master is getting more complex as when the gateway processes only 3964R and the  higher protocol  4 byte receipt and if necessary reply data  are handled directly by the field   bus master     But UNIGATE supports a simple kind of the RK512 protocols  whereas the data exchange is  restricted to one word  fixed  though    UNIGATE reduces lar
47. cter delay time  start stop character   constant data length  transparent mode   customer specific protocols                             Supported fieldbus communication   potential free      CANopen V  2 0 with CAN controller SJA 1000   CO V3028     DeviceNet V  2 0 with CAN controller SJA 1000  DN V3029     INTERBUS V  2 0 with SuPI 3  IB V3030      Profibus DP V 2 0 with ASIC SPC3  PB V3031     Degree of protection                   IP24 top hat rail version  IP66 casing version  Test Standard Regulations for the Performance of Type Tests 1997  Regulations for the Use of Computer and Computer Systems 1994  Documents Test report   EMC Test Haus Dr  Schreiber 17 1891 190  1911 257  258         T  V Rheinland E2111072 E 02  968 U 123 2001  Design manual hardware and  Software  Software Questionnaire according to requirement class 3    dated 2001 09 17  System documents according to submitted files     None              Remarks             Valid until 2006 12 26    Page Hoff Type Approval Symbol GD 6   File No  18 06   M  N   MAIN  iQ  Halley    Hamburg  2001 12 27  Germanischer Lloyd Wittburg Hu    Tha cert  icale d issued on the basis of  Regutatons tor the Pertormance of Type Tests  Part 0  Procedure                    60 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11       Deutschmann Automation GmbH  amp  Co  KG    Declaration of conformity and certificates          21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 61       Declaration of conformity and certifi
48. d Rate   4     With the Script command  Get  DetailErrorCode  w_Error   the above value can be read out and  with it it can be exactly determined  what error was the actuator        40 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Housing variations       13 Housing variations    Optional Deutschmann Automation GmbH  amp  Co  KG supplies gateways with housing variations  that fulfill the protection type IP 65 66     Housings are designed to protect installations against dangers from the outside  These dangers  can be of diverse nature and they are very important for the selection criteria of a specific hous   ing variation  It should be decisive for the decision which dangers are to be considered at the  place of action and which conditions the environment stipulate     Now Deutschmann Automation offers two different housing variations    e Aluminium housings   e High grade steel housings   e  Polycarbonate housings  only supplied until January 2006    Aluminium housings are robust terminal housings for distributions and connections of machines  and plants  high grade steel housings are particularly used in aggressive environments and in  the hygiene field  Housing data  see chapter 15 2      13 1 Main operational fields for housings    Main operational fields of aluminium housings with protection type IP 66  e Machines  control  and plant manufacturing   e Aggressive and rough environmental conditions e  g  sea water field 
49. e    e Connect the top hat rail to the equipotential bonding rail with as low an impedance as possible   Use a flexible earthing wire with a cross section of at least 10 mm  for this     14 2 3 Line routing  shield and measures to combat interference voltage   This Chapter deals with line routing in the case of bus  signal and power supply lines  with the  aim of ensuring an EMC compliant design of your system    14 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        44 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Installation guidelines        gt  Group A  e shielded bus and data lines  e g  for DeviceNet  RS232C and printers etc       shielded analogue lines   e unshielded lines for DC voltages  gt  60 V   e unshielded lines for AC voltage  gt  25 V     coaxial lines for monitors   e unshielded lines for DC voltages  gt  60 V and  gt  400 V   e unshielded lines for AC voltage  gt  24 V and  gt  400 V   e unshielded lines for DC voltages  gt  400 V      Group B    gt  Group C     The table below allows you to read off the conditions for laying the line groups on the basis of the  combination of the individual groups                    Group A Group B Group C  Group A 1 2 3  Group B 2 1 3  Group C 3 3 1                   Table 2   Line
50. e DeviceNet 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 resistor       21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 37    Hardware ports  switches and LEDs Deutschmann Automation GmbH  amp  Co  KG       11 5 1 DIP switch    Attention   The labelling of the DIP switch is not relevant but only the labelling of the  lid     With this DIP switch the MAC ID and the baud rate are set according to the picture in chapter  11 1 1     Setting baud rate                             Switch position Up to software rev  3 0 Software rev  3 0  76  DR   delivery up to appr  end of 2001   and higher   00 Not used 125 kBd   01 500 kBd 250 kBd   10 250 kBd 500 kBd   11 125 kBd 125 kBd          11 5 2 Slide switch Termination DeviceNet    If the gateway is operated as the first or last physical device in the DeviceNet  there 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  120 Q  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  Please refer to the general fieldbus literature for further information on  the subject of bus termination     11 5 3 Rotary coding s
51. e note that the devices of the series UNIGATE cannot be operated with AC voltage     11 3 5 Shield terminal lead    The shield signal for the electronic circuitry is connected to the top hat rail via the connector pro   vided  The shield signal for the DeviceNet cable shield is not electrically connected to the shield  signal of the electronic circuitry for reasons relating to interference immunity     11 4 LEDs    The gateway features 8 LEDs with the following significance                          LED Bus Power green DeviceNet supply voltage   LED Bus State red green Interface status  DeviceNet   LED Power green RS485 RS232 supply voltage   LED State red green Interface status RS485 RS232   LED Error No   Select ID  yellow Binary display of the connection error number             In the configuration mode these displays are not valid and only meant for internal use        36 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Hardware ports  switches and LEDs       The gateway UNIGATE SC has also 8 LEDs available with the following significance                 LED Bus Power green DeviceNet supply voltage  LED Bus State red green Interface state  DeviceNet  LED Power green Supply voltage RS485 RS232  LED State red green User defined   LED Error No    Select ID  yellow User defined                   11 41 LED    Bus Power     This LED is connected directly to the electrically isolated supply voltage of the DeviceNet end     11 4 2 
52. e screw plug connector                                                                         Pin number Color Meaning   1 white Rx data   2 green Tx data   3 brown Gnd   D sub  gateway RS side   1  RS interface  Pin number Color Meaning   2 white Rx data   3 green Tx data   5 brown Gnd   Cable 2  PC Com x  9 pole D sub   Pin number Color Meaning   2 white Tx diagnosis  3 green Rx diagnosis  5 brown Gnd   9 pole D sub  gateway RS side   2  RS interface  Pin number Color Meaning   4 white Tx diagnosis  9 green Rx diagnosis  5 brown Gnd                   View of the connector    3 pole    9 pol  D SUB  PC Com x   screw plug connector       gateway  9 pole      includes 1    2  interface     E  UNIGATE SC       customer   s device       4 3 Test mode    Setting of the test mode   The test mode is set by bringing the switches S4 and S5 in position  E   Beyond it the interface  switch has to be set on  232   All other switches will not be taken into consideration for the set   ting of the test mode  Now the gateway has to be restarted with these settings  by a short discon   nection from the power supply     The test mode is contained from software revision V2 2 on  The test mode may be helpful to inte   grate the gateway in the relevant environment  for instance to  see  permanent changing data of  the fieldbus in the SPS or also in order to test the parameters of the RS interface        16 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp
53. ger 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 command    And apart from that the complete data exchange takes place through 8 Byte I O  which can be  handled by any PLC very easily and quickly     In detail the data exchange takes place as follows   Data structure  identical for both directions               Byte 1 2 3 4 5 6 7 8  Cmd Typ DB DW DatH DatL ReplyH ReplyL    RK512 Byte  3 4 5 6 11 12                                            gt CXXaxxxx  x   possible commands  41H  Send DB   45H  Fetch   4FH  Send DX               Toggle bit reply  after switch on   0              Toggle bit command  after switch on   0     Attention   The gateway is always using  Even Parity   as stipulated in the specifica   tion           26 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Implemented protocols in UNIGATE RS       9 3 1 Operating sequence of the data transmission    The first 6 bytes of the above described data always contain an RK512 command  that is initiated  by the sender    The last two bytes either contain 2 byte data  as a reply to a FETCH commana  or 2 byte receipt   as a reply to aSEND command     In order to signal to the receiver of the 8 byte data block  which data  command or reply  are  valid  the toggle flags  see above  are used  That means in case bit 7 is changed  
54. ling at the UNIGATE RS    If the gateway detects an error  the error is signalled by the    State    LED lighting red and  simulta   neously  the error number being indicated by means of LEDs    Error No     as shown in the table  below  In addition  this error number is transmitted as an Emergency telegram via DeviceNet  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   These warnings are displayed for one minute simply for information purposes  and are then automatically reset  If such warnings occur frequently  please inform After Sales    Service     In the configuration mode these displays are not valid and only meant for internal use                                                                       LED8  LED4  LED2  LED1 Error no   Error description  resp  ID  0 0 0 0 0 Reserved  0 0 0 1 1 Initialisation error of the RS485 RS232 interface  0 0 1 0 2 EEROM error  0 0 1 1 3 Stack error  0 1 0 0 4 Hardware fault of the fieldbus ASIC  0 1 0 1 5 Configuration error of the gateways  unknown protocol   0 1 1 0 6 Reserved  0 1 1 1 7 RS485 RS232 transmit buffer overflow  1 0 0 0 8 RS485 RS232 receive buffer overflow  1 0 0 1 9 Timeout on reception RS485 RS232 interface  1 0 1 0 10 Transmit error of the RS485 RS232 interface  1 0 1 1 11 Parity  or frame check error  1 1 0 0
55. llows     Baudist    F32   K   F32   Crystal frequency  Hz    32  K   Round  F32   BaudSoll    Round    is a commercial roundoff  Example   The actual baud rate is to be calculated  when 9600 baud are pre set  where the gateway is  operated with 40 MHz   F32   40000000   32   1250000  K   Round 1250000   9600    Round 130 208    130  Baudlst   1250000   130   9615 38     e   The baud rate actually adjusted by the gateway is 9615 38 baud  The resulting error in per cent can be calculated as follows     Error       abs Baudlst   BaudSoll    BaudSoll    100    In our example the following error results   Error    abs 9615 38   9600    9600    100   0 16     In practise errors below 2  can be tolerated     In the following please find a listing of baud rates at a 40 MHz crystal frequency with the corre   sponding errors        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 31    Generating a script   only for UNIGATE SC Deutschmann Automation GmbH  amp  Co  KG       4800 baud  0 16   9600 baud  0 16   19200 baud  0 16   38400 baud  1 35   57600 baud  1 35   62500 baud  0   115200 baud  1 35   312500 baud  0   625000 baud  0     10 8 Script processing times    The Script is translated by the Protocol Developer and the consequently generated code is  loaded into the Gateway  Now the processor in the Gateway interprets this code  In this case   there are commands that can be processed very fast  e  g   Set Parameter    There are also  commands  however  that take longer  e  g
56. low  A parameterization    of the data is possible via WINGATE       6 3 1 Polling    In the event of Polling the DeviceNet master sends a telegram according to the configured length  to the gateway  The gateway sends out these data via the RS interface according to the selected  protocol  As an answer the DeviceNet master receives the latest data received by the RS inter   face    The information that new data arrived at the RS interface is transmitted to the DeviceNet master  via the mode of operation  Change of state   see below     The maximum amount of input  and output data to be configured via WINGATE   amounts to 255  Byte     6 3 2 Bit Strobe    In the event of Bit Strobe access the command  Bit Strobe  without any further data is sent from  the master  In reply he receives 2 Byte from the gateway as an answer  which have the same  meaning as described in chapter  Change of state      6 3 3 Change of state    In the event of this method the gateway sends 2 Byte to the DeviceNet master independently  in  fact every time new data arrive at the RS interface  In that case the length of the received data is  deposited in the 1  Byte  the 2  Byte contains the number of data blocks which were received at  the RS interface  For that reason the 2  Byte functions as ring counter from 0 to 255     6 4 Data exchange RS232 RS485    Data exchange via the RS interface can be programmed as follows   e Cyclic   e Only if input data changes   e Only if trigger byte changes       21 4 
57. nnecessarily extend the data length at the Fieldbus side  Especially at acyclical bus  data  if possible do only send them when changes were made  The data length at buses that  are configured to a fixed length  e  g  Profibus  should not be longer than absolutely necessary     If the processing time should be too large in spite of these measures  there is the possibility to  generate a customized Script command  that executes several tasks in one Script command   Please contact our support department for this purpose        32 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG    Hardware ports  switches and LEDs       11 Hardware ports  switches and LEDs    11 1 Drawing of the unit    11 1 1 Model UNIGATE RS   SC 232 485 DeviceNet                                                                                                         125 kBd      250 kBd         On CH  Off  Termination            500 kBd      125 kBd       S     O  UNIGATE                gt     BusPower Y  MNS Y    DeviceNet    Deutschmann Automation    GmbH       Termination          Interface  232 Cel 485                   State        wo  N    24V Pwr     Error No   Select ID  8421          Power                                                                                                                                     21 4 11    UNIGATE fieldbus gateway for DeviceNet V  4 2 33    Hardware ports  switches and LEDs Deutschmann Automation GmbH  amp  Co  
58. nnection  power supply   RS    e Push lock terminals  connection terminals for earthing    e 9 pin SUB D plug connectors  RS232 connection    a  In the case of standard screw type terminals  one lead can be clamped per connection point  It  is best to then use a screwdriver with a blade width of 3 5 mm to firmly tighten the screw     Permitted cross sections of the line    e Flexible line with wire end ferrule  1x 0 25    1 5 mm   e Solid conductor  1x 0 25    1 5 mm   e Tightening torque  0 5     0 8 Nm    b  The plug in connection terminal strip is a combination of standard screw type terminal and  plug connector  The plug connection section is coded and can thus not be plugged on the  wrong way round    c  The 9 pin SUB D plug connectors are secured with two screws with  4 40 UNC  thread  It is  best to use a screwdriver with a blade width of 3 5 mm to screw the screw tight    Tightening torque  0 2    0 4 Nm       21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 43    Installation guidelines Deutschmann Automation GmbH  amp  Co  KG       14 2 2 DeviceNet communication interface    14 2 2 1 Bus line with copper cable    This interface is located on the module in the form of a 5 pin screw plug connector on the upper  surface of the housing     e Plug the DeviceNet connector onto the socket labelled  DeviceNet      e If the module is located at the start or end of the DeviceNet line  you must connect the bus ter   minating resistor integrated in the gateway  In order to
59. o be operated on an Interbus without  changes  since the functioning of these buses is very similar  In order to also process this script  on an Ethernet gateway  perhaps further adjustments have to be made in the script  so that the  script can be executed reasonably    There are no fixed rules how which scripts have to operate properly  When writing a script you  should take into account on which target hardware the script is to be executed  so the necessary  settings for the respective buses can be made     10 5 Further settings at the gateway    Most devices require no further adjustments  except for those made in the script itself  However   there are also exceptions to it  These settings are made by means of the software WINGATE  If  you know our UNIGATE series  you are already familiar with the proceeding with it  An example  is the adjustment of the IP address and the net mask of an Ethernet gateway  These values  have to be known as fixed values and are not available for the runtime  Another reason for the  configuration of the values in WINGATE is the following  After an update of the script these val   ues remain untouched  i  e  the settings that were made once are still available after a change of  the script    Only this way it is also possible that the same script operates on different Ethernet gateways   that feature different IP addresses        30 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Generating a s
60. ocol with those parameters preset through WINGATE        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 17    RS interface Deutschmann Automation GmbH  amp  Co  KG       5 RS interface    5 1 Framing Check   only for UNIGATE RS    The length of the stop bit received by the gateway is checked through the function  Framing  Check  from the software V 2 2 on  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 only in case of 8 data bit  and the setting  No parity      An error is detected and indicated by the Error LEDs in case the stop bit does not show the  length 1 bit during the activated check     The possible settings for this parameter are  enabled  and  disabled   The presetting for the   Stop Bit Framing 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 hardware thougn    Compared to the standard gateway  this development gateway is equipped with an extra inter   face RS232  which however  is only available to the outside at the version with 9 pole D SUB   This
61. onal     ns       24 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG Implemented protocols in UNIGATE RS       9 2 2 Protocol definitions  The telegram format is as follows   STX Data DLE ETX BCC    e The received net data is forwarded  transparently  in both directions unchanged    Attention  The DLE doubling is excluded from it  that means one DLE  10H  on the bus side is  sent on the RS side twice  A double DLE on the RS side is only sent once to the bus master    e Data blocking is not scheduled    e The net data length is restricted to 236 bytes per telegram    e Communication always runs between high priority and low priority communication partners        Attention   The gateway is always using  Even Parity   as stipulated in the specifica   tion        9 2 3 Data communication    9 2 3 1 Initiation of data communication by the low priority user    If the low priority user also receives an STX in response to a transmitted STX  it interrupts its  transmit request  reverts to Receive mode and acknowledges the received STX with DLE     A DLE in the data string is duplicated and included in the checksum  The BCC is computed from  XORing all characters     9 2 3 2 Conflicts    9 2 3 3 Timeout times    The timeout 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 
62. 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 analyses a record via the Trigger byte which is incre   mented by the gateway at every inquiry  The number of the following Modbus data is to be found  in the length byte     Now the fieldbus master has to analyses the Modbus inquiry and it has to send back the answer  in the same format  optionally with the leading Trigger byte and Length byte  via the fieldbus to  the gateway    The gateway then takes this answer and completes the Modbus address and the CRC and  sends the data to the Modbus master via the RS interface  With it the data exchange is com   pleted and the gateway waits for a new inquiry from the Modbus master     9 4 3 4 Status report    If no response occurs within the stipulated  Response time  from the fieldbus master  the gate   way a  Timeout Error      The last Modbus ID that was transferred to the RS interface is indicated by the yellow LEDs        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2 29    Generating a script   only for UNIGATE SC Deutschmann Automation GmbH  amp  Co  KG       10 Generating a script   only for UNIGATE SC  10 1 What is a script     A script is a sequence of commands  that are executed in that exact order  Because of the fact  that also mechanisms are given that control the program flow in the script it is also possible to  assemble more complex processes from these 
63. sequence    The useful data  data area  arriving via the fieldbus is copied in accordance with chapter 9 1 1  transparently into the RS232 data field and transferred via the RS interface  whereby the protocol  is supplemented in accordance with the configuration  start character  end character      NO    acknowledgement is issued      If the  Trigger byte     see chapter 6 5  is active  data is sent only on a change of this byte  If the   Length byte   see chapter 6 6  is active  only as many of the following bytes as specified there  are transferred     Receive data at the RS interface is evaluated in accordance with the configured protocol  and the  data field  data area  see chapter 9 1 1   is sent to the fieldbus master  If more characters have  been received than the fieldbus block length  the trailing bytes are truncated and an Rx Overrun  is indicated  If less have been received  padding with O occurs  If the  Length byte  is active  the  number of received useful data items is entered there  If the   Trigger byte  is active  this is incre   mented by one after each complete reception operation at the RS interface     9 2 The 3964 R protocol    The 3964 protocol is used to transfer data between two serial devices  One partner must be a  high priority partner and the other must be a low priority partner in order to resolve initialisation  conflicts     9 2 1 Data structure 3964R  Triggerbyte   FB Lengthbyte   3964R Statusbyte   Data  Fieldbus  optional   optional   opti
64. simple commands     The script is memory oriented  It means that all variables always refer to one memory area   While developing a script you do not have to take care of the memory management though  The  Protocol Developer takes on this responsibility for you     10 2 Memory efficiency of the programs    A script command can carry out e  g  a complex checksum like a CRC 16 calculation via data   For the coding of this command only 9 byte are required as memory space  for the command  itself   This is only possible when these complex commands are contained in a library    A further advantage of this library is  that the underlying functions have been in practical use for a  couple of years and therefore can be described as    void of errors     As these commands are also  present in the native code for the controller  at this point also the runtime performance of the  script is favorable     10 3 What can you do with a script device     Our script devices are in the position to process a lot of commands  In this case a command is  always a small firmly outlined task  All commands can be put into classes 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 als
65. tion  reference for PIN 2 3 6 7  6 RS422   Rx  Receive signal  7 RS422   Rx  Receive signal  8  9  Attention     The assignment of the 9 pin Sub D plug may differ from the above pin  assignment and also a customized configuration is possible     Attention     In case the RS interface is NOT potentially divided  GND  and  supply  OV  are connected internally        21 4 11 UNIGATE fieldbus gateway for DeviceNet V  4 2    35    Hardware ports  switches and LEDs Deutschmann Automation GmbH  amp  Co  KG       Attention   In case RS422 is selected  then the termination switch has to be set to  ON  in order to avoid communication errors        Pin assignment  2 pin screw type plug connector  only in conjunction with 9 pin D Sub                  Pin No  Name Function  1 10 8  30 V DC 10 8  30 V supply voltage  2 0V DC 0 V supply voltage                11 3 2 DeviceNet connector    The connector  labelled  DeviceNet  for connection to DeviceNet is located on the upper side of  the device                          Pin No  Name Function   1 V  OV   2 CAN L Dominant Low  3 Shield Cable screen  4 CAN H Dominant High  5 V4 24V Power             11 3 3 Debug plug  Please compare to chapter 4 2    11 3 4 Power supply    The device must be powered with 10 8 30 V    On the version with 5 pin screw type plug connector  the power supply is routed via this connec   tor  on the version with 9 pin D Sub connector  the power supply is routed via the separate 2 pin  screw type plug connector    Pleas
66. vice  RS interface                   35   11 3 2 DeviceNet connector     2 22    nn nn 36  11 3 3 Debug plug  14  a ace  a wer Kar a Sana en Kin 36  11 34  Powar SUPPI      2  ne aa  bal a rn ede aa at 36  11 3 5 Shield terminal lead     22  2 oo nun nn 36   WANA LEDS ct 2 te A a ek a ds 36  11 4 1 LED    Bus Power                a A a a i E a a A A E 37   TAZ LED Bus State  oa rar ea ah Bh a ee Ren 37   P2423  LED POWER A LAS Bao AS 37  tiae CED State a    dia ee Paare ahnen 37  11 4 5 LEDs    Error No    Select ID    at the UNIGATERS                  37   11 8  SIIC Six a  a A e A ee La a 37  TESA DIPA WIth 22 2    2 gh ee wg  2  war aa a Ara doe 2 ded es ao 38   11 5 2 Slide switch Termination DeviceNet                 0               38   11 5 3 Rotary coding switches S4   S5  RS485 ID                     38   11 5 4 Slide switch  RS485 RS232 interface             nn nn 38   11 5 5 Slide switch  RS485 RS422 termination          2 2  22 o            38   12 Error handling    4 2  5  de es  u  Be a it Bd 39  12 1 Error handling atthe UNIGATERS                      39  12 2 Error handling atthe UNIGATESC    2    2  nn nn 40   13 Housing variations ita 1m ae ae a ha 41  13 1 Main operational fields for housings         ooa a 41  13 2    Mounting instruction        gt      4 ee So See ee sen Ea Es 41   14 Installation guidelines               lt  lt              43  14 1 Installation of the module                           43  TAT MOUNTING      a 2  A de Me re a a ee 43   141 
67. witches S4   S5  RS485 ID     These two switches are used to set the RS485 ID of the gateway in hexadecimal notation pro   vided an ID is required for the bus  Please refer to the Annex for a conversion table from decimal  to hexadecimal  This value is read in only once when the gateway is activated     11 5 4 Slide switch  RS485 RS232 interface     This slide switch is used to select whether an RS485 interface or an RS232 interface is con   nected at the connector to the external device     11 5 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 Q  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  Please refer to the general RS485 literature for further information on the subject of bus ter   minations    If the integrated resistor is used  please allow for the fact that this also activates a pull down  resistor  390 Q  to ground and a pull up resistor  390 Q  to VCC    At the RS422 interface the transmission line is terminated  The receive line is always firmly  terminated       38 UNIGATE fieldbus gateway for DeviceNet V  4 2 21 4 11    Deutschmann Automation GmbH  amp  Co  KG    Errorhandling       12 Error handling    12 1 Error hand
68. yte   only at UNIGATE RS   chapter 6 5  on page 20  Length byte  See  The length byte   only at UNIGATE RS   chapter 6 6  on page 20    9 1 3 RS232 parameter table    9 1 3 1 Start character    If 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 1 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 transmitter  At the transmission end   the gateway then sets this byte to the number of useful data items transmitted by it  without  checksum   If byte  Length232  is not defined  the gateway  on reception at the RS232 interface   waits for the end criterion if this is defined  If no end criterion is defined either  as many charac   ters as can be transferred in the fieldbus transmit buffer are read in via the RS232 interface    As a special case for this parameter also a length byte with additional Timeout monitoring can be  set in WINGATE  In that case the received characters will be discarded at a Timeout           Attention   If  Timeout    is selected as end character  then this byte has no significance        9 1 3 3 ID  This byte is present only for reasons of compatibility  It is never activated     9 1 3 4 Data area  The useful data is transferred in this field     9 1 
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
42.35925 EFOM draft.qxp  Newstar LCD/Plasma/LED wall mount  Acer 5552G Laptop User Manual    SIMOVERT MASTER DRIVES Grandezza da J a M DC-AC  FR Manuel d`instructions et d`utilisation EN User and maintenance  Bosch Appliances 600 Security Camera User Manual    Lorex LH324501 digital video recorder  BOMBA DE INFUSIÓN INFUCID. DETECCIÓN DE LA OCLUSIÓN    Copyright © All rights reserved. 
   Failed to retrieve file