DEUTSCHMANN AUTOMATION UNIGATE MB - PROFIBUS DP Instruction Manual

DEUTSCHMANN AUTOMATION UNIGATE MB - PROFIBUS DP Instruction Manual

Universal fieldbus-gateway
Table of Contents

Advertisement

Quick Links

Instruction Manual
Universal Fieldbus-Gateway
®
UNIGATE
MB - PROFIBUS DP
Deutschmann Automation GmbH & Co. KG
www.deutschmann.com | wiki.deutschmann.de

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UNIGATE MB - PROFIBUS DP and is the answer not in the manual?

Questions and answers

Summary of Contents for DEUTSCHMANN AUTOMATION UNIGATE MB - PROFIBUS DP

  • Page 1 Instruction Manual Universal Fieldbus-Gateway ® UNIGATE MB - PROFIBUS DP Deutschmann Automation GmbH & Co. KG www.deutschmann.com | wiki.deutschmann.de...
  • Page 2 Manual Art.-No.: V3996E...
  • Page 3: Table Of Contents

    Deutschmann Automation GmbH & Co. KG Information on CE marking of the module ....8 EU Directive EMC ......8 Scope of application .
  • Page 4 Deutschmann Automation GmbH & Co. KG 8.3.1 Data structure 3964R ......20 8.3.2 Protocol definitions .
  • Page 5 Deutschmann Automation GmbH & Co. KG 8.14.2 Configuration with Swap Word ......41 8.14.3 Example with Fast Ethernet ......43 Hardware ports, switches and LEDs .
  • Page 6 Deutschmann Automation GmbH & Co. KG 13 Technical data ......59 13.1 Device data .
  • Page 7 We would be pleased to receive any improvement proposals which you may have. Copyright Copyright (C) Deutschmann Automation GmbH & Co. KG 1997 – 2021. All rights reserved. This document may not be passed on nor duplicated, nor may its contents be used or disclosed unless expressly permitted.
  • Page 8: Information On Ce Marking Of The Module

    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 & Co. KG, Carl-Zeiss-Straße 8, 65520 Bad Camberg, Ger- many. Scope of application The modules are designed for use in the industrial sector and comply with the following requirements.
  • Page 9: Information For The Machine Manufacturers

    Deutschmann Automation GmbH & Co. KG Information for the machine manufacturers Information for the machine manufacturers Introduction ® The UNIGATE module 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.
  • Page 10: Introduction

    Introduction Deutschmann Automation GmbH & Co. KG Introduction ® The UNIGATE MB-PROFIBUS DP module serves to adapt a serial port to the PROFIBUS DP to EN 50 170. In this application, it functions as a Gateway and operates as the PROFIBUS DP Slave.
  • Page 11: Unigate ® Mb Software Flow-Chart

    Deutschmann Automation GmbH & Co. KG Introduction ® UNIGATE MB software flow-chart ® ® 27.10.21 UNIGATE fieldbus gateway UNIGATE MB - PROFIBUS DP V.2.0...
  • Page 12: Unigate ® Block Diagram

    Introduction Deutschmann Automation GmbH & Co. KG ® UNIGATE block diagram ® The following picture shows a typical UNIGATE -module design. ® UNIGATE application diagram The following graph shows a typical connection scheme. ® ® UNIGATE fieldbus gateway UNIGATE MB - PROFIBUS DP V.2.0...
  • Page 13: Operation Modes Of The Gateway

    Deutschmann Automation GmbH & Co. KG Operation modes of the Gateway Operation modes of the Gateway Configuration mode (config mode) The configuration mode serves to configure the Gateway. The following adjustments are possible in this mode. • Loading a Script •...
  • Page 14: Rs-Interface

    RS-interface Deutschmann Automation GmbH & Co. KG RS-interface ® RS-interfaces at the UNIGATE ® The UNIGATE MB - PROFIBUS DP has the interfaces RS232, RS422 and RS485 available. ® Buffer sizes at the UNIGATE ® UNIGATE MB features at the serial side a buffer with the size of 1024 bytes for input data and output data each.
  • Page 15: Ssi-Interface

    Deutschmann Automation GmbH & Co. KG SSI-interface SSI-interface ® The UNIGATE also supports the connection of applications or products, that communicate via SSI. Initiation of the SSI-interface The configuration of the SSI-interface is executed in the config mode with the WINGATE soft- ware, Protocol SSI.
  • Page 16: Hardware-Wiring

    SSI-interface Deutschmann Automation GmbH & Co. KG Hardware-wiring The clock wires of the SSI-interface are placed onto the Tx-wires of the RS422-interface and the ® data wires onto the Rx-wires at the UNIGATE X1 (3pin + 4pin screw-plug-connector): Pin no.
  • Page 17: Mode Of Operation Of The System

    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 / RS422) to the corresponding Fieldbus system. Layers 3 to 6 are blank, and Layer 7 is converted in accordance with chapter 7.3.
  • Page 18: Implemented Protocols In Unigate ® Mb

    Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE ® ® UNIGATE MB is supplied with the Script “Universal Script Deutschmann“. The configuration of the protocols is carried out in the configuration mode (see Chapter 4.1) with the software WING- ®...
  • Page 19: Data Structure

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB 8.2.1 Data structure 8.2.2 Fieldbus parameters Trigger byte: See „The trigger byte“, chapter 8.11 Length byte: See „The length byte“, chapter 8.12 8.2.3 RS232 parameter table 8.2.3.1 Start character (232 Start character) If this character is defined, the gateway evaluates only the data at the RS232 interface following this start character.
  • Page 20: Communication Sequence

    Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG 8.2.4 Communication sequence The useful data (data area) arriving via the fieldbus is copied in accordance with chapter 8.2.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...).
  • Page 21: Conflicts

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB 8.3.3.2 Conflicts 8.3.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).
  • Page 22: Data Structure

    Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG The user can choose whether the fieldbus requests are forwarded to the Modbus in case of a change (On Change) or on request (On Trigger). In "Change" mode, detection of a change is based on the fact that the fieldbus data is compared with that of the last transmission, and a request is issued by the Modbus only in the case of a change.
  • Page 23: Data Structure

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB 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 a selection in the device description file.
  • Page 24: Example: Fc1 + Fc2

    Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG Data structure 8.6.1.1 Example: FC1 + FC2 A Modbus Master (external device) sends a request with function code 1 or 2. Note: Modbus Master Request Address (High + Low) Address request 01 ..
  • Page 25: Example: Fc3 (Read Holding Register) + Fc4 (Read Input Register)

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB ® UNIGATE sends response via RS232/485: [01] [02] [0a] [02] [03] [04] [05] [06] [07] [08] [00] [00] [00] [8f] [7a] 8.6.1.2 Example: FC3 (Read Holding Register) + FC4 (Read Input Register) ®...
  • Page 26 Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG With FC1 and the coil length = 80 (10 Bytes) a Modbus Master reads out the following data: The fieldbus output data is only updated if it’s triggered via a write command from the RS side.
  • Page 27: Example: Write Single Register Fc6

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB The internal buffer reserves this value, which means it can be read back by the Master via FC1 Read Coil status: 8.6.1.4 Example: Write Single Register FC6 Modbus Master sends the value 1234H in Address 0008: ®...
  • Page 28: Example: Preset Multiple Register Fc16

    Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG Adr 0002 ... 004 was changed from Low to High The 1st row shows the fieldbus BEFORE the request: 1F 00 FF 03 04 05 06 07 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00...
  • Page 29: Protocol „Universal Modbus Rtu Master

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB Protocol „Universal Modbus RTU Master“ ® The UNIGATE is Modbus-Master on the Application side. 8.7.1 Data structure Fieldbus side (e.g. PROFIBUS): Applies to In and Out Byte: Trigger-Byte, optional (see chapter 8.11, The trigger byte) Byte: Fieldbus length byte, optional (see chapter 8.12, The length byte)
  • Page 30: Configuration: Via Wingate Since Wcf Datei Version 396

    Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG 8.7.3 Configuration: via Wingate since wcf Datei Version 396 Parameter Name value range Explanation Modbus Timeout (10ms) 1 ... 255 (10ms ... 2550ms) Max. Waiting time for the "Response" before an error 9 is generated by timeout.
  • Page 31: Example: Read Coil Status Fc1

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB 8.7.3.1 Example: Read coil status FC1 Configuration Data content Modbus Slave ® UNIGATE reads Address 5 + 6 and copies it into the 6. byte of the output buffer.
  • Page 32: Example: Read Input Status Fc2

    Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG AD 07 00 00 00 00 00 00 01 00 00 00 00 00 00 00 AE 07 00 00 00 00 00 00 03 00 00 00 00 00 00 00 The modification can be seen here: Byte = Fieldbus Map Adr 6 (Wert = 0x01) =>...
  • Page 33: Example: Read Multiple Register Fc3

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB Here the content of the address 10009 is changed from 0 -> 1 In the following example only the "No. Of Points" is switched to 10. Which means that now 10 Bits => 2 Byte are read out. This is also the reason why the fieldbus length byte (2.
  • Page 34: Example: Read Input Registers Fc4

    Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG Thereby the addressed slave holds the following data in its registers.: register address value(hex) 40000 0x0000 40001 0x0202 40002 0x0303 40003 0x0000 40004 0x0000 register = 1 Word = 2 Byte In the documentation of some applications, an Offset + 1 at the address is assu- med.
  • Page 35: Example: Preset Single Register Fc6

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB 8.7.3.6 Example: Preset single register FC6 Configuration ® SPS sends to UNIGATE 01 00 00 00 00 00 00 FF23 00 FF 00 00 00 00 00 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 ...
  • Page 36: Example: Preset Multiple Register Fc16

    Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG Storage content of Modbus Slave after response: Please keep in mind that No. Of coild = 10, hence, only the lower bit in address 0011 is written at the value 0x05. Address 0013 would already be bit No. 11, which is not transmitted anymore.
  • Page 37: Protocol „Universal Modbus Ascii Master/Slave

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB Protocol „Universal Modbus ASCII Master/Slave“ ® The fieldbus data exchange for Modbus ASCII is identical with RTU. The UNIGATE automati- cally transmits the data in ASCII format on the serial side.
  • Page 38: The Length Byte

    Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG 8.12 The length byte The user can configure whether the transmit length is also to be stored as a byte in the input/out- put data area (Fieldbus length byte -> active). In transmit direction, as many bytes as specified in this byte are sent.
  • Page 39: Appendix / Configuration Examples

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB 8.14 Appendix / Configuration examples 8.14.1 Example Configuration 1: ® Hardware UNIGATE CL-PROFIBUS ® ® 27.10.21 UNIGATE fieldbus gateway UNIGATE MB - PROFIBUS DP V.2.0...
  • Page 40 Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG PROFIBUS Master sends and receives: ® ® UNIGATE fieldbus gateway UNIGATE MB - PROFIBUS DP V.2.0 27.10.21...
  • Page 41: Configuration With Swap Word

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB Modbus Slave storage content: 8.14.2 Configuration with Swap Word Configuration with „Swap Word“ = enabled. Fieldbus data is swapped to the Modbus slave. Meaning High Byte and Low Byte are switched.
  • Page 42 Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG The swapping is bidirectional Modbus Slave Data content ® ® UNIGATE fieldbus gateway UNIGATE MB - PROFIBUS DP V.2.0 27.10.21...
  • Page 43: Example With Fast Ethernet

    Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® MB 8.14.3 Example with Fast Ethernet ® ® 27.10.21 UNIGATE fieldbus gateway UNIGATE MB - PROFIBUS DP V.2.0...
  • Page 44 Implemented protocols in UNIGATE® MB Deutschmann Automation GmbH & Co. KG ® ® UNIGATE fieldbus gateway UNIGATE MB - PROFIBUS DP V.2.0 27.10.21...
  • Page 45: Hardware Ports, Switches And Leds

    Deutschmann Automation GmbH & Co. KG Hardware ports, switches and LEDs Hardware ports, switches and LEDs Device labeling Picture 1: Terminal labeling and termination Picture 2: Front panel: Rotary switches, LEDs and termination PB In case the front panel should pop out it does not affect the device’s function or quality.
  • Page 46: Connector Supply Voltage

    Hardware ports, switches and LEDs Deutschmann Automation GmbH & Co. KG For the operation at a 485-interface the two pins labeled "485-" have to be connected together. Also the two pins "485+". 9.2.2 Connector supply voltage Pin assignment X2 (4-pole screw-plug connector, on the bottom side, at the back) Pin No.
  • Page 47: Leds

    Deutschmann Automation GmbH & Co. KG Hardware ports, switches and LEDs LEDs ® The Gateway UNIGATE MB - PROFIBUS features 9 LEDs with the following significance: LED Power/State green Supply voltage serial interface LEDs 1 / 2 / 4 / 8 (Error No. / Select ID) green...
  • Page 48: Termination Rx 422 + Tx 422 (Serial Interface)

    Hardware ports, switches and LEDs Deutschmann Automation GmbH & Co. KG 9.4.1 Termination Rx 422 + Tx 422 (serial interface) If the Gateway is operated as the physically first or last device in an RS485-bus or as 422, there must be a bus termination at this Gateway. In order to do this the termination switch is set to posi- tion ON.
  • Page 49: Error Handling

    Deutschmann Automation GmbH & Co. KG Error handling 10 Error handling ® 10.1 Error handling at UNIGATE 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.
  • Page 50 Error handling Deutschmann Automation GmbH & Co. KG Error- LED8 LED4 LED2 LED1 Protocol Error description all Protocols No Universal script support all Protocols Unknown Protocols Modbus RTU Master Timeout-Modbus Slave Modbus ASCII Master Participant didn’t response in set time frame (response time).
  • Page 51: Installation Guidelines

    Deutschmann Automation GmbH & Co. KG Installation guidelines 11 Installation guidelines 11.1 Installation of the module The module with the dimensions 23 x 117 x 111 mm (W x D x H) has been developed for switch cabinet use (IP 20) and can thus be mounted only on a standard mounting channel (deep DIN-rail to EN 50022).
  • Page 52: Equipotential Bonding Connection

    Installation guidelines Deutschmann Automation GmbH & Co. KG 11.2.1.2 Equipotential bonding connection The connection to the potential equalization automatically takes place it is put on the DIN-rail. 11.2.2 PROFIBUS DP communication interface 11.2.2.1 Bus line with copper cable This interface is located on the module in the form of a 9-pin D-SUB socket on the front side of the housing.
  • Page 53: Shielding Of Lines

    Deutschmann Automation GmbH & Co. KG Installation guidelines 11.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.
  • Page 54: Profibus Dp

    PROFIBUS DP Deutschmann Automation GmbH & Co. KG 12 PROFIBUS DP 12.1 Description of the DPV1-/DPV2-functions 12.1.1 DPV1 Die DPV1-Erweiterung besteht aus folgenden Funktionen: 1. Acyclic data exchange with Class1-Master (e. g.: PLC) This function is optional for a DPV1-Slave. Our gateways support this function as a default. By means of this function the Class1-Master can read and write data from the slave acyclically.
  • Page 55: Configuration Telegram

    Deutschmann Automation GmbH & Co. KG PROFIBUS DP 12.2.1 Configuration telegram After programming, the Master must send a configuration telegram to the corresponding Slave. The configuration telegram provides the Slave with information on the length of the input/output data. If the user has set the ’Length byte’ flag, this means the maximum data lengths. Otherwise, it means the actual lengths.
  • Page 56 PROFIBUS DP Deutschmann Automation GmbH & Co. KG The diagnostic information of a DP Slave consists of standard diagnostic information items (6 bytes) and a user-specific diagnostic information item. (Error number) Telegram for diagnostic request: Octet 1 Diag.station does not exist (sets Master) Diag.station not_ready: Slave is not ready for...
  • Page 57: Diagnosis In Dpv1

    Deutschmann Automation GmbH & Co. KG PROFIBUS DP Octet 3 reserved Diag.ext_overflow Octet 4 Diag master_add: Master address after programming (FF without programming) Octet 5 Ident. number high byte Octet 6 Ident. number low byte Octet 7 External diagnosis: header, length entry...
  • Page 58: Data Exchange

    PROFIBUS DP Deutschmann Automation GmbH & Co. KG 12.2.4 Data exchange After the Master, in the diagnostic, detects that the Slave is ready for data exchange, it sends data exchange telegrams. Either the Master stores the data in the input/output direction in the address area specified during project planning or the control program must fetch or retrieve the data using specific function blocks.
  • Page 59: Technical Data

    Deutschmann Automation GmbH & Co. KG Technical data 13 Technical data 13.1 Device data The technical data of the module is given in the table below. No. Parameter Data Explanations Location Switch cabinet DIN-rail mounting Enclosure IP20 Protection against foreign bodies...
  • Page 60: Interface Data

    Technical data Deutschmann Automation GmbH & Co. KG 13.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. Interface designation PROFIBUS DP RS232-C RS485/RS422 No.
  • Page 61: Commissioning Guide

    Deutschmann Automation GmbH & Co. KG Commissioning guide 14 Commissioning guide 14.1 Note ® Only trained personnel following the safety regulations may commission the UNIGATE 14.2 Components ® You will require the following components to commission the UNIGATE ® •...
  • Page 62: Setting The Profibus Address

    Commissioning guide Deutschmann Automation GmbH & Co. KG 14.6 Setting the PROFIBUS address Set the PROFIBUS address at the fieldbus end of the module on the two rotary switches desig- nated "PROFIBUS-ID High" and "PROFIBUS-ID Low" This adjustment is carried out in a hexa- decimal way.
  • Page 63: Profibus Connection

    Deutschmann Automation GmbH & Co. KG Commissioning guide Attention: The set PROFIBUS address must correspond with the planned address under COM PROFIBUS! It is read in only on power-up of the gateway! 14.7 PROFIBUS connection Connect the device to the Profibus at the interface labelled "PROFIBUS".
  • Page 64: Servicing

    Servicing Deutschmann Automation GmbH & Co. KG 15 Servicing Should questions arise that are not covered in this manual you can find further information in our • FAQ/Wiki area on our homepage www.deutschmann.com or directly in our Wiki on www.wiki.deutschmann.de If your questions are still unanswered please contact us directly.
  • Page 65: Annex

    Deutschmann Automation GmbH & Co. KG Annex 16 Annex 16.1 Explanations of the abbreviations General Product group CL (Compact Line) Product group CM (CANopen Line) Product group CX Product group EL (Ethernet Line) Product group FC (Fast Connect) Galvanic separation RS-side...
  • Page 66: Hexadecimal Table

    Annex Deutschmann Automation GmbH & Co. KG ® PBDPL ProfibusDP-version L (see comparison table UNIGATE IC for the respective product) ® PBDPX ProfibusDP-version X (see comparison table UNIGATE IC for the respective product) PBDPV0 = ProfibusDPV0 PBDPV1 = ProfibusDPV1 Serial RS232/485/422 16.2 Hexadecimal table...
  • Page 67 Deutschmann Automation GmbH & Co. KG Annex ® ® 27.10.21 UNIGATE fieldbus gateway UNIGATE MB - PROFIBUS DP V.2.0...

This manual is also suitable for:

V3978

Table of Contents