Instruction Manual Universal Fieldbus-Gateway Unigate CM - Profibus
Instruction Manual Universal Fieldbus-Gateway Unigate CM - Profibus
Instruction Manual Universal Fieldbus-Gateway Unigate CM - Profibus
Universal Fieldbus-Gateway
UNIGATE® CM - PROFIBUS
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.
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. 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.
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 & Co. KG, Carl-Zeiss-Straße 8, 65520 Bad Camberg, Ger-
many.
1. comply with the installation guidelines described in the User Manual when installing and oper-
ating the module.
2. also follow the rules below on installation of the equipment and on working on switch cabinets.
3 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.
Conceptual
In the further course of this manual, the term "Fieldbus" is frequently used. In
these cases this applies to the PROFIBUS DP interface.
• Loading a Script
• Updating the firmware (only CL- basis)
• Configuring the Gateway (via WINGATE Version V2.85 or higher)
The Gateway will be starting in this mode in case both switches S4 as well as S5 are set on posi-
tion "F" when switching on the Gateway. Right after switching on the Gateway in the configura-
tion mode it will be sending its starting message, that looks analog with the following message:
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, the "Error No/Select ID"
LEDs are of no account for the user. All software revisions contain the configuration mode.
5 RS-interface
5.1 RS-interfaces at the UNIGATE® CM
The UNIGATE® CM - PROFIBUS DP has the interfaces RS232, RS422 and RS485 available.
The hardware always features a DEBUG-interface, see chapter 6.
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 setting for this parameter can be controlled by the Script (see online help from
Protocol Developer). The presetting for the "Stop Bit Framing Check" is "enabled".
6 The Debug-interface
6.1 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.
Restriction:
• Script commands that make a data exchange with the Ext. Card are not supported in Debug
mode.
• The command „SerialOutputToDebugInterface“, referred to in chapter 6.4, as well as
the command „SerialInDebugInterface“, is not supported.
• Redirection of the Debug interface to the Application interface (X1).
With the script command „ScriptStartBehaviour(DbgOverApl);“ debugging to con-
nector X1 of the application is possible again, so that the commands for the Ext. Cards are
supported.
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.
7.2 Interfaces
The Gateway features a CANopen and fieldbus interface as well as the serial interfaces RS232-,
RS422- and RS485.
*) Contrary to this default setting these parameters can be altered through special Script com-
mands.
The commands can be found in the Protocol under “Bus specific“-“PROFIBUS“:
Set Profibus Config Data
Set Profibus Parameter InBuf
Set Profibus Diagnose
Further information can be found in the Protocol Developer’s online help.
With Universal script CM the data length on the CANopen-side is dependant on the protocol
CANopen Mapping Universal (L2 11/29Bit)
Layer 2 11Bit Universal (L2 11/29Bit) with COB-ID
Universal (L2 11Bit) used
CM Universal (L2 11Bit) with COB-
ID used
L2 11Bit (Tgl+Fblen
In- and Output data maximum 10 Byte, of which a maximum 12 Byte, of which a maximum
maximum of 8 Byte is payload of 8 Byte is payload
8 Generating a Script
Note: All commands relating to the extension do not work in the debug
mode! See chapter 6.5.
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.
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.
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:
I. e.: The baud rate actually adjusted by the Gateway is 9615.38 baud
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%
312500 baud:0%
625000 baud:0%
• Sending and receiving data at the Debug-interface (provided that the Protocol Developer has
been started on the PC)
• Sending and receiving data at the RS-interface
• Sending and receiving data at the Fieldbus-interface
• Tasks controlled via internal clock (1 ms) (e. g. flashing of an LED)
• Processing of the Script
From experience approximately 0.5 ms can be calculated for each Script line. This value confir-
med 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:
• Deactivate the Debug-interface (it is the normal case in the serial use)
• Keep the data length at the RS-interface as small as possible. The baud rate is not the pro-
blem here, but the amount of characters which are transfered per second.
• Do not unnecessarily 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.
In case the front panel should pop out it does not affect the device’s
function or quality. It can be put in again without problems.
9.2 Connectors
9.2.1 Connector to the external device (RS-interface)
The serial interface is available at the plug accessible on the upper side of the device.
Pin assignment X1 (3-pole and 4-pole screw-type plug connector)
Pin No. Name Function
1 Rx 232 Receive signal
2 Tx 232 Transmit signal
3 AP-GND Application Ground
4 Rx 422+ (485+) Receive signal
5 Rx 422- (485-) Receive signal
6 Tx 422+ (485+) Transmit signal
7 Tx 422- (485-) Transmit signal
For the operation at a 485-interface the two pins labeled "485-" have to
be connected together.
Also the two pins "485+".
Attention:
The 0V (Pwr)-signal can be used as reference (Ground) for the Debug
interface.
Pin 3 Rx-Debug: Avoid long cable + open (not connected at the end), oth-
erwise it may malfunction.
9.3 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 User-defined / general Gateway error
LED State red/green User-defined / general Gateway error
LED Bus Power green Supply voltage PROFIBUS
LED Bus red PROFIBUS error
LED Bus State red/green Interface state PROFIBUS
LED triple flash (approximately 1000 ms). a sequence of three short flashes (approxi-
mately 200ms), separated by an off phase (approximately 200ms).
The sequence is finished by a long off phase (approximately 1000
ms).
If one bicolor Status LED is used instead of two single color LEDs, this LED shall indicate both
the physical bus status and the status of the CANopen state machine. This bicolor LED shall be
red and green.
Triple flash Sync Error The SYNC message has not been received within the configured
communication cycle period time out (see Object Dictionary Entry
0x1006).
On 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. if
NMT Error and Sync Error occur, the SYNC error is indicated).
Whilst the device is executing a reset the CANopen RUN LED shall be off.
In case there is a conflict between turning the LED on green versus red, the LED may be turned
on red. Apart from this situation, the bicolor status LED shall combine the behavior of the CAN
Error LED.
9.4 Switches
The Gateway features 8 switches with the following functions:
The switch position "DD" (ie, S4 and S5 in position "D") is reserved for
internal purposes, Firmware-Update extension. The Gateway should only
be switched into this mode for a Firmware-Update. Otherwise the firm-
ware of the extension will be deleted and there is no access, respectively
no function of the extension anymore. For details see chapter 12.
Switch positions
Switch Switch
postions postions Function Description
S4 S5
Firmware-
D D Update Ext.- (Description see chapter 12)
Board
(Description see chapter 4.2)
E E Test mode
Note: This mode can only be terminated by a reboot.
(Description see chapter 4.1)
F F Config mode
Note: This mode can only be terminated by a reboot.
10 Error handling
10.1 Error handling at UNIGATE® CM
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. 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.
For user-defined errors the flash frequency is 0.5 hertz. The error is displayed as long as defined
by "Set Warning Time".
In the configuration mode these displays are not valid and only meant for internal use.
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).
Note: "E" shows a script error, the value afterwards in Hex stands for the error number. The error
number can be evaluated in the Protocol Developer Help under Appendix -> Return codes.
"ExtErr:" is for a more detailed fault localization. The script source code can be searched with the
following number (ExtErr:030).
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).
11.1.1 Mounting
• Engage the module from the top in the top-hat rail and swivel it down so that the module
engages in position.
• Other modules may be rowed up to the left and right of the module.
• There must be at least 5 cm clearance for heat dissipation above and below the module.
• 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².
11.1.2 Removal
• First disconnect the power supply and signal lines.
• 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°.
11.2 Wiring
11.2.1 Connection systems
The following connection systems must resp. may be used when wiring the module:
• Standard screw-type/plug connection (power supply + RS)
• 9-pin D-SUB plug connector (PROFIBUS DP)
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.
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 D-SUB plug connector is 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
11.2.1.1 Power supply
The device must be powered with 10..33 V DC.
• Connect the supply voltage to the 4-pole plug-in screw terminal in accordance with the label-
ling on the device.
• Plug the PROFIBUS connector onto the SUB-D socket labelled "PROFIBUS DP".
• Firmly screw the securing screws of the plug connector tight using a screwdriver.
• If the module is located at the start or end of the PROFIBUS line, you must connect the bus
terminating resistor integrated in the gateway. In order to do this, slide the slide switch to the
position labelled ...on...
• If the module is not located at the start or at the end, you must set the slide switch to position
"off".
Group A: • shielded bus and data lines (e. g. for PROFIBUS DP, RS232C and printers etc.)
• shielded analogue lines
• unshielded lines for DC voltages 60 V
• unshielded lines for AC voltage 25 V
• coaxial lines for monitors
Group B: • unshielded lines for DC voltages 60 V and 400 V
• unshielded lines for AC voltage 24 V and 400 V
Group C: • unshielded lines for DC voltages > 400 V
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
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.
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.
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. board that looks similar to the following:
Ext-Board: (CM-IO-DICNET) V1.2 (c)dA 47110001 CAN: ID=1 Baud=125000 LSS-ID=1, LSS-
BaudIdx=4
The switch position "DD" serves for the Firmware-Update of the ext. board.
The gateway will start in this mode when the switches S4 and S5 are in position "D" during start
up of the gateway. Then the follwing messsage appears.:
"If you want to download a new firmware for the expansion board press the FDT ’Firmware
Download’ button within 10 seconds."
Within 10 seconds the firmware update can be started via the Firmware-Download-Tool FDT
(Firmware download).
There will be a timeout if the firmware download is not started within 10 seconds.
The firmware update of the basic hardware takes place in configuration mode. (see chapter 4.1)
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. This
data is processed by the script in the gateway. The channel for the acyclic data exchange is set
up firmly during the parameterization.
2. Acyclic data exchange with Class2-Master (e. g.: control unit)
This option is optional for a DPV1-Slave as well. Our gateways support this function as a default.
By means of this function the Class2-Master can read and write data from the slave acyclically.
This data is processed by the script in the gateway. The channel for the acyclic data exchange is
set up prior to every data exchange and closed again afterwards.
3. Alarm handling
Aso the alarms are optional. If they are activated, they replace the device-specific diagnosis. At
present our gateway does not support alarms.
Every DPV1-Slave must support the extended parameterization since it is determined in Octet 8
of the parameterization telegram whether it is a DPV0- or a DPV1-Slave.
A DPV1-Slave can also be operated at a DPV0-Master if the DPV1-functions remain turned off.
13.1.2 DPV2
Die DPV2-enlargement consists of the following functions:
1. Isochron Mode (IsoM)
It means the clock-synchronous behavior of a bus system. This function is optional for a DPV2-
Slave and is activated via the GSD-file. At present our gateway does not support this mode.
2. Data Exchange Broadcast (DxB)
It means the communication between Slaves (inter-communication). This function is optional for
a DPV2-Slave and is activated via the GSD-file. At present our gateway only supports the func-
tion of the „Publisher“ (sending data to other Slaves). The function „Susbcriber“ (receiving data
from other Slaves) is not supported at present.
3. Up- And Download
This function is also optional for a DPV2-Slave and at present it is not supported by our gateway.
4. Time-synchronization (Time stamp)
This function is also optional for a DPV2-Slave and at present it is not supported by our gateway.
5. Redundancy concept
This function is also optional for a DPV2-Slave and at present it is not supported by our gateway.
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.
The user normally also configures the configuration telegram in the project planning tool where
he may also, if necessary, enter the address range in which the useful data is stored.
You can write up to 16 bytes or words in one octet of the DataUnit (DU). Inputs and outputs hav-
ing the same format can be combined in one octet. Otherwise, you must use as many octets as
the number of different bytes/words you wish to use and which cannot be combined in one octet.
If the module detects, during the check, that the maximum permitted input/output data lengths
have been exceeded, it signals incorrect configuration to the Master during a subsequent diag-
nostic scan. It is then not ready for useful data communication.
Configuration byte 1
Octet 20
Configuration byte x
Input/output
00 = specific ID format
01 = input
10 = output
11 = input-output
0 = byte, 1 = word
13.2.3 Diagnosis
Diagnostic data is high-priority data. The gateway runs an external diagnostic if it detects an
internal error.
Diag.cfg_Fault
Configuration data does not correspond
Diag.ext_diag
Slave has external diagnostic data
Diag.prm_fault
Incorrect programming (identification number etc.)
Octet 20
Diag.Prm_req
Slave must be reprogrammed
Diag.Stat_diag
Static diagnostic (byte Diag-Bits)
Permanently set to 1
Diag.WD_ON
Response monitoring active
Diag.freeze_mode
Freeze command received
Sync_mode
Sync command received
reserved
Octet 30
reserved
Diag.ext_overflow
Octet 40
Octet 50
Octet 60
Octet 70
Octet 80
This results in a different representation of our gateway error in PROFIBUS. At DPV0 the error
number is transmitted in unmodified form as 1 byte external diagnosis. In case DPV1 has been
activated in the gateway through the GSD-file, the error number occurs as 1 byte status mes-
sage.
Supposing the DPV1 is activated and a master (which does not support the alarms and status
messages) is connected, then our gateway error number is presented as "external diagnosis"
with 4 bytes (see above), at which point the 4th byte contains the error number and the preced-
ing 3 bytes (0x81, 0x00, 0x00) can be ignored.
Attention:
If a Reset Device is carried out it is possible (depending on the firmware
version of the UNIGATE®) that the "Universal Script" will get lost and must
be played in again.
The Script can be found on the Deutschmann Support-DVD in the folder
\Software\ProtocolDeveloper\Example\Universal\UniversalScript CM\.
Note: For all protocols the CAN Baudrate has to be set via WINGATE, Para-
meter "(CM) CAN Baudrate".
(CM) Profile
(CM) CAN
Baudrate
(CM) COB-ID
used(1/16)
, , , , , , , ,
, , , , , , , ,
, , , , , , , ,
, , , , , , , ,
, , , , , , , ,
(CM) COB-ID
used(16/16)
Fieldbus ID
Fieldbus Data
exchange
Fieldbus length-
byte
Ident Number
(0x2862)
Swap word
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® side acts as a standard-compliant master and on the Profi-
busDP side as a standard-compliant slave so that the problems that appear again and again (to
couple the CANopen® Slave participant to a Siemens PLC with ProfibusDP) are solved.
Data transfer
The data exchange between the Profibus and the CANopen® will be fixed with the Mapping
which is configured via "WINGATE®".
Mapping means the illustration of data of one fieldbus to any other fieldbus. As data all data can
be used which are made available from the corresponding busses.
The Mapping works in both directions from the Master to the Slave as well as reverse.
Example:
That way it can be defined that the 2nd byte of the COB-ID201 (CANopen®-participant) is
transfered into the Profibus data as 7th byte.
At present 256 mappings are possible (128 Tx and 128 Rx Mappings). The data is transferred as
PDOs only. You can setup maximum of 16 Tx and 16 Rx PDOs. Each PDO can have up to 8
bytes (means 8 mappings). 16 PDO * 8 byte = 128 mappings. SDO accesses are also supported
(see chapter 14.3.1.10)
14.3.1.1 Configuration of the mapping
In order to create or work on such a mapping, please connect the UNIGATE with the PC via the
RS23-interface and there start the software "WINGATE®".
After the start of the software an upload from the connected device will be carried out automati-
cally. The corresponding matching parameters to this device are displayed. Select the CANopen
Mapping protocol and look for the entry "(CM) Profile" in the table and click doubled onto the
value "map ...". After a short period a dialogue is displayed. With it, it is possible to process all
map entries (similar to the following picture):
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.
Afterwards you only have to download the data to the Gateway (menu File\Download) and
UNIGATE® works with the new configuration.
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" has to be added to the current
WINGATE configuration. The parameters "node ID", "guarding time" and "life time factor" are to
be determined in every entry.
The parameter node ID indicates the ID of the CANopen® node on which the control is supposed
to happen. With the guarding time the interval in which the the master calls on the slave to send
its guarding answer is to be indicated in milliseconds.
The life time factor states how often the answer of the slave may be missing before the master
assumes a failure of the slave.
These settings are available from Gateway software-revision 1.1 on.
14.3.1.3 Displaying the node guarding states
The node guard mapping is used to represent the node guard states of the single slaves to the
PROFIBUS. Always 8 slaves are represented in one byte; so exactly one bit of information is
reserved for one. This information can be shown in any desired spot in the Profibus data of the
Gateway. So they are shown in the input area of the PROFIBUS master for this Gateway.
If no node guard is activated for a slave, the slave went down or still no node guarding informa-
tion was exchanged, the corresponding bit for this slave is 0. The bit is 1, if node guarding was
activated for this slave and the slave answered in the corresponding time period to the node
guarding inquiries.
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.
SDO-transfer through a "window" in the fieldbus (FB). Here the following fixed data record struc-
ture is used in the FB, that is mapped to the FB-data from the FB-index on. With it a difference is
made between:
The user has to see to it that enough space is reserved for the longest data record in the FB-
data.
The SDO-transfer is always initiated by the FB-Master and it is completed when Request-no. in
the FB-output-data is identical to the Response-no. in the FB-input-data.
Example:
We want to query the manufacturer hardware version (object - index 1009h) from a connected
CANopen® Slave. The CANopen® Slave has the Node ID = 5.
The Data-Len Request’s size has to be selected as large as the receive data length that is mai-
mally to be expected! Otherwise data that exceeds the set length is cut off.
If the size Data-Len Request is the same or larger than the receive data length, then the actual
data length comes back as Data-Len Response.
Data from the FB-Master (PLC) Data to the FB-Master (PLC)
Request Response
FB-Idx (In) Data (Hex) Description FB-Idx (In) Data (Hex) Desription
0 ... 1. byte 0 ... 1. byte
1 ... 2. byte 1 ... 2. byte
2 ... 3. byte 2 ... 3. byte
3 ... 4. byte 3 ... 4. byte
4 ... 5. byte 4 ... 5. byte
5 ... 6. byte 5 ... 6. byte
6 ... 7. byte 6 ... 7. byte
7 ... 8. byte 7 ... 8. byte
8 10 Obj-Index 8 10 Obj-Index
9 09 Obj-Index 9 09 Obj-Index
10 00 Sub-Index 10 00 Sub-Index
11 01 Command (1 = read) 11 00 Status (0 = ok)
12 01 Auftrag-Nr(1. Auftrag) 12 01 Auftrag-Nr(1. Auftrag)
13 05 Knoten-Nr(Node-ID = 5) 13 05 Knoten-Nr(Node-ID = 5)
The Ident Number is = 3218h. If you want to replace a UNIGATE CM device in an existing project
with a V2862 UNIGATE® CO (M)-ProfibusDP, you can change back the Ident Number to the old
Version 2862h via this parameter. As a result you can keep the old GSD file and you don’t have
to change the project.
Note: The configuration file (*.gwc) of the UNIGATE® CO (M)-ProfibusDP cannot be loaded in the
UNIGATE® CM.
There may be differences in the temporal data exchange.
• Amount of Mappings
• Length of the configured fieldbus data
• Amount of COB-IDs used at the Mappings
• Amount of changed fieldbus data between two transmissions
• Amount of mapped bytes in a COB-ID
• Baud rate in the fieldbus or CAN
On account of the large amount of parameters and their interdependence a formula for the calcu-
lation of the cycle time cannot be stated. From practical measurements cycle times of 10 ms up
to 100ms were observed, whereas the maximum Profibus-configuration time of 244 byte I/O and
488 mappings was measured.
In practice, on "regular" conditions,a cycle time of of some milliseconds is to be expected. In
order to optimize the cycle time, the following guidelines should be kept:
A maximum of 10 Byte of data can be mapped on the fieldbus side. (2 Byte COD-ID, 8 Byte pay-
load).
The fastet possible data exchange is possible with this setting.
Data structure
Example:
01 81 11 22 33 44 55 66 77 88 00 00 00
01 81 A1 A2 A3 A4 A5 A6 A7 A8 00 00 00 ...
A CAN message with COB-ID 181 and the data content "11 ... 88" in the first frame and "A1 ...
A8" in the second frame has been sent to the fieldbus.
No further configuration like trigger bytes or fieldbus length byte are possible.
There is no diagnostic output for the fieldbus status on the CAN side as well as on the fieldbus
side.
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.
Example:
In this example only the COB-ID´s „0000“ (hex), „0181“ (hex), „0201“ (hex) and „0080“ (hex) are
processed, i.e. transferred to the fieldbus.
Data display on the fieldbus side (SPS receives CAN) „11 Bit Mode“:
08 00 00 01 81 11 22 33 44 55 66 77 88
03 00 00 02 03 01 02 03 00 00 00 00 00
Data display on the fieldbus side (SPS receives from CAN) “29 Bit Mode”:
1. Byte number of received data from CAN (Low Nibble)
Bit 7 (MSB) = 1 => 29Bit Frame received
Bit 6 = RTR
Bit 5 … 0 = not used
2. Byte COB-ID High Byte
3. Byte COB-ID
4. Byte COB-ID
5. Byte COB-ID Low Byte
6. Byte Data n
7. Byte Data n+1
8. …
Example 1. Line: MSB = 1 => 29 Bit Frame, 8 Payload, COB-ID 181, Payload 11 … 88
Example 2. Line: MSB = 1 => 29 Bit Frame, 3 Payload, COB-ID 203, Payload 01 02 03
88 00 00 01 81 11 22 33 44 55 66 77 88
83 00 00 02 03 01 02 03 00 00 00 00 00
Example:
SPS (Out): 85 00 00 04 56 01 02 03 04 05
To CAN Bus:
15 Technical data
15.1 Device data
The technical data of the module is given in the table below.
No. Parameter Data Explanations
1 Location Switch cabinet DIN-rail mounting
2 Enclosure IP20 Protection against foreign bodies
and water to IEC 529 (DIN 40050)
4 Service life 10 years
5 Housing size 23 x 117 x 117 mm WxDxH
(screw-plug-connector included)
23 x 117 x 100 mm
(screw-plug connector not included)
6 Installation position Any
7 Weight 160 g
8 Operating temperature -40ºC ... +85ºC The negative temperatures are
only valid for the usual conditions
(not condensing)
9 Storage/transport -40ºC ... +85ºC
temperature
10 Atmospheric pressure
during operation 795 hPa ... 1080 hPa
during transport 660 hPa ... 1080 hPa
11 Installation altitude 2000 m Unrestricted
4000 m Restricted -
Ambient temperature 40ºC
12 Relative humidity Max. 80 % No condensation,
no corrosive atmosphere
14 External 10...33 V DC Standard power supply unit to
power supply DIN 19240
15 Current consumption at 24 Typ. 160 mA At 10.8V. typ. 350 mA
VDC max 200 mA
16 Supply at the Profibus-inter- 5 V DC / max. 50 mA (Max. 50 mA at < 30°C ambient
face temperature)
17 Reverse voltage protection Yes But does not function!
18 Short-circuit protection Yes
19 Overload protection Poly-switch Thermal fuse
20 Undervoltage detection 9 V DC
(USP)
21 Emergency power supply 5 ms Device fully operable
10 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 0 0 0 0
11 Transmit pause
(MARK):
- Voltage level + 1.5 ... +5 V - 3 ... –15 V + 1.5 ... +5 V + 1.5 ... +3 V
- Logic level 1 1 1 1
Table: Technical data of the interfaces at the module
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®:
• UNIGATE®
• Connection cable from gateway to the process
• Connection cable for CANopen connector
• Connector for Profibus connection to the Gateway
• PROFIBUS cable (this cable is generally already installed on site!)
• 10..33 V DC power supply (DIN 19240)
• Type file or GSD file and user manual (a sample file as well as the user manual can be orde-
red separately or downloaded free of charge from our homepage at www.deutschmann.de).
16.3 Installation
The UNIGATE® CM - PROFIBUS DP module features protection type IP20 and is thus suitable
for switch cabinet use. The device is designed for snapping onto a 35 mm DIN-rail.
16.5 Commissioning
It is essential that you perform the following steps during commissioning in order to ensure that
the module operates correctly:
If the rotary switch is set to "7E" (=126) on the PROFIBUS-side (PROFIBUS-ID), the gateway
operates with a PROFIBUS-address, that is stored in the EEROM. In the state of delivery this
address is set to 126 and can only be changed by a PROFIBUS-master via the PROFIBUS itself.
The address 126 is reserved in the PROFIBUS for this purpose; that means that a slave with this
address can never carry out a data exchange, but it can only be configured with a new ID.
In case the rotary switch is set to a value between 0...125, the gateway operates - with this
PROFIBUS-ID and a change via the master is not possible.
The ID can also be set through the Script command "Set (Fieldbus ID, xx)" (xx =
PROFIBUS-ID in decimal form).
Flow diagram
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!
Attention:
The CANopen address set must correspond to the planned address!
All users in the CANopen have to use the same Baud rate!
16.14 Literature
We recommend that you read book "Schnelleinstieg in PROFIBUS DP", author M. Popp, to help
you quickly get to grips with the subject of the PROFIBUS DP and the mode of operation of the
available ASICs. The book can be ordered from the PROFIBUS User Organisation, Order No.
4.071. (German-language).
Address:
PROFIBUS Nutzerorganisation e.V.
Haid-und-Neu-Str. 7
D-76131 Karlsruhe
Germany
Tel: 0721 9658 590
17 Servicing
Should questions arise that are not covered in this manual you can find further information in our
Your request will be recorded in the Support center and will be processed by our Support Team
as quickly as possible (Usually in 1 working day, rarely more than 3 working days.).
The more precise information a fault/error description you provide, the more exactly we will be
able to pinpoint the possible causes.
18 Annex
18.1 Explanations of the abbreviations
General
CL = Product group CL (Compact Line)
CM = Product group CM (CANopen Line)
CX = Product group CX
EL = Product group EL (Ethernet Line)
FC = Product group FC (Fast Connect)
GT = Galvanic separation RS-side
GY = Housing color gray
MB = Product group MB
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)
IO8 = Option I/O8
16 = Script memory expanded to 16KB
5V = Operating voltage 5V
3,.3V = Operating voltage 3.3V
Fieldbus
ASI = AS-Interface (AS-i)
BI = BACnet/IP
BMS = BACnet MSTB
CO = CANopen
C4 = CANopen V4
C4X = CANopen V4-version X (see comparison table UNIGATE® IC for the respective
product)
DN = DeviceNet
EC = EtherCAT
EI = Ethernet/IP
FE = Ethernet 10/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
ModTCP=ModbusTCP
MPI = Siemens MPI®
PL = Powerlink
PN = 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
product)
PBDPV0 = PROFIBUS DPV0
PBDPV1 = PROFIBUS DPV1
RS = Serial RS232/485/422