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 9.2.1 Connector to the external device (RS-interface) ....22 9.2.2 Connector supply voltage and DEBUG-interface ....23 9.2.3 CANopen interface connector .
Page 5
Deutschmann Automation GmbH & Co. KG ® 14 Implemented protocols in UNIGATE CM ....39 14.1 Implemented protocols (Transport protocols at the CM interface) ..39 14.2 Configuration options for the individual transport protocol .
Page 6
Deutschmann Automation GmbH & Co. KG 16.12 Shield connection ......58 16.13 Project planning ......58 16.14 Literature .
Page 7
We would be pleased to receive any improvement proposals which you may have. Copyright Copyright (C) Deutschmann Automation GmbH & Co. KG 1997 – 2017. All rights reserved. This document may not be passed on nor duplicated, nor may its contents be used or disclosed unless expressly permitted.
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.
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.
Introduction Deutschmann Automation GmbH & Co. KG Introduction ® The UNIGATE CM-PROFIBUS DP module serves to adapt a CANopen interface to PROFIBUS according to EN 50 170. In this application, it functions as a Gateway and operates as the PROFIBUS DP Slave. It can be operated by any standard-compliant PROFIBUS Master.
Introduction Deutschmann Automation GmbH & Co. KG ® UNIGATE block diagram ® The following picture shows a typical UNIGATE -module design. ® UNIGATE CM application diagram The following graph shows a typical connection scheme. ® ® UNIGATE Feldbus-Gateway UNIGATE CM - PROFIBUS V. 1.6...
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 •...
Operation modes of the Gateway Deutschmann Automation GmbH & Co. KG Data exchange mode The Gateway has to be in the data exchange mode, so that a data exchange between the CANopen-side of the Gateway and the Fieldbus is possible. As long as the Gateway is not in the configuration-, test-, firmware-update-, or debug mode, the data exchange mode is active.
Deutschmann Automation GmbH & Co. KG RS-interface RS-interface ® RS-interfaces at the UNIGATE ® The UNIGATE CM - PROFIBUS DP has the interfaces RS232, RS422 and RS485 available. The hardware always features a DEBUG-interface, see chapter 6. ® Buffer sizes at the UNIGATE ®...
The Debug-interface Deutschmann Automation GmbH & Co. KG The Debug-interface Overview of the Debug-interface ® The UNIGATE features a Debug-interface, that allows a step-by-step processing of a Script. Normally this interface is only required for the development of a Script.
Page 17
Deutschmann Automation GmbH & Co. KG The Debug-interface If debugging is redirected to the application, no script or command that wants to carry out com- munication via the application interface is supported. These are e.g.: SendRS and ReceiveSomeCharRS. ® ®...
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.
Deutschmann Automation GmbH & Co. KG Generating a Script Generating a Script Note: All commands relating to the extension do not work in the debug mode! See chapter 6.5. 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 simple commands.
Generating a Script Deutschmann Automation GmbH & Co. KG 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.
Deutschmann Automation GmbH & Co. KG Generating a Script In the following please find a listing of baud rates at a 40 MHz-crystal frequency with the corre- sponding errors: 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%...
Hardware ports, switches and LEDs Deutschmann Automation GmbH & Co. KG 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.
Deutschmann Automation GmbH & Co. KG Hardware ports, switches and LEDs 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 and DEBUG-interface Pin assignment X2 (4-pole screw-plug connector, on the bottom side, at the back) Pin No.
Hardware ports, switches and LEDs Deutschmann Automation GmbH & Co. KG LEDs ® The Gateway UNIGATE CM - PROFIBUS features 9 LEDs with the following significance: LED Power/State red/green Interface state Ethernet LEDs 1 / 2 / 4 / 8 (Error No. / Select ID) green...
Deutschmann Automation GmbH & Co. KG Hardware ports, switches and LEDs Triple flash Sync Error The SYNC message has not been received within the configured communication cycle period time out (see Object Dictionary Entry 0x1006). Bus Off The CAN controller is’bus off If at a given time several errors are present, the error with the highest number is indicated (e.g.
Hardware ports, switches and LEDs Deutschmann Automation GmbH & Co. KG 9.3.6 LED "Bus State" Lights green PROFIBUS in the state data exchange Flashes green Gateway waits for PROFIBUS communication data Flashes green/red Gateway waits for PROFIBUS parameter data Lights red...
Deutschmann Automation GmbH & Co. KG Hardware ports, switches and LEDs Switch positions Switch Switch postions postions Function Description Firmware- Update Ext.- (Description see chapter 12) Board (Description see chapter 4.2) Test mode Note: This mode can only be terminated by a reboot.
Error handling Deutschmann Automation GmbH & Co. KG 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.
Deutschmann Automation GmbH & Co. KG Error handling A detailed error diagnosis can be recorded with an activated "Diagnosis Monitor" via the applica- tion interface. For this you only need to connect/start a RS232 Monitor tool, such as Deutschmann Starterkit tool "RS232 module" via a PC. (9600/1/8/N).
Installation guidelines Deutschmann Automation GmbH & Co. KG 11 Installation guidelines 11.1 Installation of the module The module with the dimensions 23 x 117 x 117 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).
Deutschmann Automation GmbH & Co. KG Installation guidelines 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.
Installation guidelines Deutschmann Automation GmbH & Co. KG 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.
Deutschmann Automation GmbH & Co. KG Firmware Update 12 Firmware Update ® The UNIGATE CM consists of a basic hardware and an ext. board. The firmware versions are output in the configuration mode (see Chapter 4.1). The start-up message of the basic appears, following the message of the ext.
PROFIBUS DP Deutschmann Automation GmbH & Co. KG 13 PROFIBUS DP 13.1 Description of the DPV1-/DPV2-functions 13.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.
Deutschmann Automation GmbH & Co. KG PROFIBUS DP 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 36
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 10 Diag.station does not exist (sets Master) Diag.station not_ready: Slave is not ready for...
PROFIBUS DP Deutschmann Automation GmbH & Co. KG 13.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.
Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® CM ® 14 Implemented protocols in UNIGATE ® On delivery the UNIGATE CM is supplied with the Script “Universalscript Deutschmann CM“. The configuration is carried out in the configuration mode (see chapter 4.1) with the software WINGATE from Version V2.85 and wcf-file from 406.
Implemented protocols in UNIGATE® CM Deutschmann Automation GmbH & Co. KG 14.2 Configuration options for the individual transport protocol 14.2.1 Possibilities on the CANopen side (CM) Universal Universal Universal L2 11Bit Transport CANopen Layer 2 Universal (L2 11/ (L2 11Bit)
Data structure ® The Gateway can be configured through the software WINGATE that is also supplied. This Gateway module from the UNIGATE range of Deutschmann Automation allows a coupling between PROFIBUS DP and CANopen ® ® Here the Gateway on the CANopen...
Implemented protocols in UNIGATE® CM Deutschmann Automation GmbH & Co. KG Now the Mappings can be changed, deleted or new ones can be added. Alternatively, the values can also be entered in the right table. The entry must be confirmed with "Apply", only then the values are taken.
Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® CM If the slave receives no node guard inquiry it assumes that the bus connection is broken or the master went down. Settings As presetting it applies tfor all slaves that no node guarding is carried out. Shall that node guar- ding be activated for a slave, an entry "enable node guarding"...
Implemented protocols in UNIGATE® CM Deutschmann Automation GmbH & Co. KG Example: For node 1 and 2 node guarding is activated. Slave 1 doesn not answer to the node guarding and slave ID 2 works regularly. A mapping of information is entered into the PROFIBUS in the 2nd byte.
Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® CM 14.3.1.6 Bit 7 (MSB): EMCY toggle bit With this bit the next relevant EMCY message can be transfered to the current data buffer, no matter whether the data is shown in the fieldbus or not. The counter is lowered by 1, provided that it does not equal 0.
Page 46
Implemented protocols in UNIGATE® CM Deutschmann Automation GmbH & Co. KG Data record structure (FB-input = data from the FB-Master): Data record structure (FB-output = data to the FB-Master): Example: In this example the PB-Idx (In) and PB-Idx (Out) equal 8 Please note: The counting starts at index "0"...
Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® CM Data Len(data length = 2) Data Len(data length = 2) Data... Data... (47h = hardw.vers. „G“) 17. byte 17. byte 14.3.1.11 Slave mode ® The Slave mode can be activated through WINGATE .
Implemented protocols in UNIGATE® CM Deutschmann Automation GmbH & Co. KG 14.3.1.14 Starting phase ® During the starting phase the UNIGATE sends the NMT-command "BusStart" every 2 seconds, ® that means all connected CANopen -Slaves are set into the condition "Operational".
Implemented protocols in UNIGATE® CM Deutschmann Automation GmbH & Co. KG Identical with protocol "Layer 2 11Bit" (see chapter 14.3.2) However there are additional configu- rations possible on the fieldbus side: Fieldbus trigger byte (i.e. fieldbus data exchange = On Trigger), fieldbus length byte and swap word.
Page 51
Deutschmann Automation GmbH & Co. KG Implemented protocols in UNIGATE® CM 1. Byte number of received data from CAN (Low Nibble) MSB = 0 => 11Bit Frame received 2. Byte not used 3. Byte not used 4. Byte COB-ID High Byte 5.
Implemented protocols in UNIGATE® CM Deutschmann Automation GmbH & Co. KG 14.3.6 Universal (L2 11/29Bit) with COB-ID used Identical with protocol Universal (L2 11/29Bit), see chapter 14.3.5, with additional configuration possibility. Up to 16 COB-ID’s can be configured to which the CAN interface can react to as described in chapter 14.3.4.
Deutschmann Automation GmbH & 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 Explanations Location Switch cabinet DIN-rail mounting Enclosure IP20 Protection against foreign bodies...
Technical data Deutschmann Automation GmbH & Co. KG 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. Interface designation ProfibusDP RS232-C RS485/RS422 ®...
Page 55
Deutschmann Automation GmbH & Co. KG Technical data Transmit range (SPACE): - Voltage level - 0.2 ... + 0.2 V + 3 ... + 15 V - 0.2 ... + 0.2 V - 0.5 ... + 0.05 V - Logic level...
Commissioning guide Deutschmann Automation GmbH & Co. KG 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 ® •...
Deutschmann Automation GmbH & Co. KG Commissioning guide 16.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.
Commissioning guide Deutschmann Automation GmbH & Co. KG Attention: The PROFIBUS address set must correspond to the planned address under COM PROFIBUS! It is read in only on power-up of the gateway! 16.7 PROFIBUS connection Connect the device to the Profibus at the interface labelled "PROFIBUS".
Deutschmann Automation GmbH & Co. KG Servicing 17 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.
Annex Deutschmann Automation GmbH & Co. KG 18 Annex 18.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)
Deutschmann Automation GmbH & Co. KG Annex = PROFINET-IO PBDP = PROFIBUS DP ® PBDPL = PROFIBUS DP-version L (see comparison table UNIGATE IC for the respective product) ® PBDPX = PROFIBUS DP-version X (see comparison table UNIGATE IC for the respective...
Need help?
Do you have a question about the UNIGATE CM - PROFIBUS and is the answer not in the manual?
Questions and answers