1.4 Limitation of Liability ..................................................................................................................4
1.5 Customer Service ......................................................................................................................4
2 Safe use ...........................................................................................................................................5
2.1 User ...........................................................................................................................................5
The contents of this user manual have been prepared by the
KUNBUS GmbH with the utmost care. Due to the technical
development, the KUNBUS GmbH reserves the right to change or
replace the contents of this user manual without prior notice. You can
always obtain the latest version of the user manual at our homepage:
www.kunbus.de
The KUNBUS GmbH shall be liable exclusively to the extent
specified in General Terms and Conditions (www.kunbus.de/
agb.html).
The contents published in this user manual are protected by
copyright. Any reproduction or use for the in-house requirements of
the user is permitted. Reproduction or use for other purposes are not
permitted without the express, written consent of the KUNBUS
GmbH. Contraventions shall result in compensation for damages.
General information
Trademark protection
– KUNBUS is a registered trademark of the KUNBUS GmbH
– Windows® and Microsoft® are registered trademarks of the Microsoft,
Corp.
– Modbus is a registered trademark of the Modbus-IDA Organization.
KUNBUS GmbH
Heerweg 15 c
73770 Denkendorf
Deutschland
www.kunbus.de
Gateway component for PROFIBUS3 / 28
1.2 Notes regarding this user manual
This user manual provides important technical information that can
enable you, as a user, to efficient, safe and convenient integration of
the Gateways into your applications and systems. It is intended for
trained, qualified personnel, whose sound knowledge in the field of
electronic circuits and expertise of PROFIBUS is assumed.
As an integral part of the module, the information provided here
should be kept and made available to the user.
1.3 Validity
This document describes the application of the KUNBUS Gateways
with the product number:
– PR100069, Release 00
1.4 Limitation of Liability
Warranty and liability claims will lapse if:
General information
– the product has been used incorrectly,
– damage is due to non-observance of the operating manual,
– damage is caused by inadequately qualified personnel,
– damage is caused by technical modification to the product (e.g.
soldering).
1.5 Customer Service
If you have any questions or suggestions concerning this product,
please do not hesitate to contact us:
KUNBUS GmbH
Heerweg 15 C
+49 (0)711 3409 7077
support@kunbus.de
www.kunbus.de
Gateway component for
PROFIBUS
4 / 28
2 Safe use
2.1 User
The Gateway may only be assembled, installed and put into
operation by trained, qualified personnel. Before assembly, it is
absolutely essential that this documentation has been read carefully
and understood. Expertise in the following fields is assumed:
– Electronic circuits,
– Basic knowledge of PROFIBUS,
– work in electrostatic protected areas,
– Locally applicable rules and regulations for occupational safety.
2.2 Symbols
The symbols used have the following meaning:
Safe use
DANGER
CAUTION
NOTICE
Hazard
Observe this information without fail!
There is a safety hazard that can lead to serious injuries and death.
Caution
There is a safety hazard that can result in minor injuries and material
damage.
Note
There is a safety hazard that can result in material damage.
Gateway component for PROFIBUS5 / 28
3 Overview
3.1 Functionality
The KUNBUS Gateway is a protocol converter. It allows
communication between networks with different protocols.
Overview
Illustration1: Functionality
A Gateway consists of 2 gateway components that master one
specific protocol each. You can combine these gateway components
as you wish. This design offers you a high degree of flexibility, since
you can exchange the individual gateway components at any time.
The following gateway components are available as slave at present:
– CANopen
– CC-Link
– DeviceNet
– EtherCAT
– EtherNet/IP
– Modbus RTU
– Modbus TCP
– POWERLINK
– PROFIBUS
– PROFINET
– Sercos III
Gateway component for
PROFIBUS
6 / 28
3.2 Control elements
1
2
2
3
Front view
Overview
Illustration2: Front view
1Status LEDs
for signal display.
22 rotary coding switches
for setting the station address.
3Fieldbus connection
D-Sub-9 socket for the connection to PROFIBUS.
Gateway component for PROFIBUS7 / 28
Top
1
1
2
Overview
Illustration3: Top
1Interconnect Port
for interconnecting the gateway components.
2Locking clamps
for securely attaching the gateway component to the DIN rail.
Gateway component for
PROFIBUS
8 / 28
Bottom
1
2
Overview
Illustration4: Bottom
1Mains connection
with 24 V power supply
2Locking clamps
for securely attaching the gateway component to the DIN rail.
Gateway component for PROFIBUS9 / 28
3.3 Status LEDs
The signals of the status LEDs for PROFIBUS have the following
meaning:
LED Designation SignalMeaning
PoweroffGateway not running
flashes, greenInitialisation phase not yet completed
on, greenOperational
flashes, redCorrectable error (e.g. second gateway
on, redSerious error/defect in the gateway
Onlineon, greenData is exchanged cyclically
OfflineredCyclical data exchange stopped
redIf the "Fault" LED additionally flashes:
red,green,
flashes
alternately
FaultredA serious error has occurred. Please
red, flashesIf the "Offline" LED additionally lights up
Overview
component missing)
Watchdog Timeout
Firmware-Reset is executed
contact support.
red: Watchdog Timeout
Gateway component for
PROFIBUS
10 / 28
4 Installation
4.1 Preparations for interference-free operation
In the following section we have compiled some general information
for you, which is important for interference-free operation. If you are
already acquainted with this topic, you can skip to the next section.
There, you will learn about which conditions are necessary for
installing the gateway.
Cable routing
Route your cables separately in cable groups. This will protect your
gateway from any unintended electromagnetic interferences.
The following groups should be routed separately:
GroupLine
AData and power supply lines for:
DC voltage below 60V
AC voltage below 25V
BData and power supply lines for
DC voltage between 60V and 400V
AC voltage between 25 and 400V
CPower supply lines above 400V
Installation
– You can route cables of the same group together in cable ducts or
bundles.
– Cables of group A and B:
– Route the groups in separate bundles or
– in cable ducts at a minimum distance of 10 cm from each other.
– Cables of group C
– Route the groups in separate bundles or
– in cable ducts at a minimum distance of 50 cm from the other
groups.
Gateway component for PROFIBUS11 / 28
Shielding
Shield your cables. This will reduce any unintended electromagnetic
interferences.
You can find further information on this topic in the specifications for
PROFIBUS.
Potential equalization
Potential differences occur when devices are connected to different
earths. These potential differences cause malfunctions.
To prevent malfunctions, you have to route an equipotential
equalization conductor.
When doing so, bear in mind the following points:
– Select an equipotential equalization conductor with low impedance.
– Select as a reference value for the cross-section of the potential
equalization cable:
– 16 mm2 for potential equalization cables of up to 200 m in length
– 25 mm2 for potential equalization cables of more than 200 m in
length
– Use potential equalization cables made from copper or galvanized steel.
– Connect potential equalization cables extensively with the earth rail.
– The smallest surfaces as possible should be sandwiched between
potential equalization cables and signal cables.
Installation
If the devices of the control system are connected by shielded signal
cables that are earthed on both sides, the impedance must be 10%
of the shielding impedance.
Gateway component for
PROFIBUS
12 / 28
4.2 Requirements
The Gateway was designed for use in a control cabinet.
NOTICE
ü The protection class of the control cabinet must be equivalent to at least
IP54.
ü For installation in the control cabinet you need a DIN rail 35 x 7.5mm
(EN50022).
◦ Install the DIN rail horizontally in the control cabinet according to the
manufacturers' specifications. When doing so, make sure that the
Gateway is at a sufficient distance from other devices.
Your gateway could get damaged if temperatures are too high.
èMake sure that the ambient temperature in the control cabinet is less
than 60°C.
èKeep the ventilation slots unobstructed. These must not be covered by
cables etc.
èMaintain sufficient distance from other devices.
Installation
Illustration5: Distances for installation
◦ Connect each gateway component individually to functional earth.
When doing so, make sure that both voltages have the same ground.
ð Your control cabinet now meets all requirements for installing the
gateway.
Gateway component for PROFIBUS13 / 28
4.3 Connecting Gateway Components
In order to attain a fully functional gateway, you have to interconnect
both gateway components.
◦ Connect an interconnect port to each gateway component using the
plug-in jumper (product number PR100204).
◦
Installation
NOTICE
Gateway component for
PROFIBUS
Illustration6: Connecting Gateway Components
ð You can now install the gateway in the control cabinet.
Only ever interconnect 2 gateway components.
If you connect additional components, severe defects could result on all
devices.
14 / 28
4.4 Installing Gateway in the Control Cabinet
◦ Hold the raster element of the gateway on the DIN rail.
◦ Press down the locking elements towards the gateway.
◦ Make sure that the gateway is firmly attached to the DIN rail.
Installation
Gateway component for PROFIBUS15 / 28
4.5 Connecting Power Supply
3
1
2
4
To connect the gateway component to the power supply, you need a
spring-loaded terminal (e.g. Metz-Connect SP995xxVBNC).
You have to connect each gateway component separately to a power
supply. Never interconnect functional earth and GND, otherwise the
galvanic isolation between gateway GND and fieldbus ground will be
removed. Instead, connect the functional earth with low impedance to
the potential equalization. You can then dispense with this
connection if the shield of the fieldbus cable is connected to the
potential equalisation with lower impedance when entering the
control cabinet.
Installation
NOTICE
Use the same power supply for both gateway components.
Different power supplies could cause a defect on both module components
and malfunctions.
èEnsure in particular that no potential differences occur between the
GND pins (2).
Pin Assignment:
PinAssignment
124V for module supply
2GND
3Do not connect!
4Functional earth
NOTICE
Gateway component for
PROFIBUS
Do not connect GND to PE
This connection could cause unintended malfunctions.
16 / 28
4.6 Connecting Gateway to the Fieldbus
To connect the gateway component to PROFIBUS, you need one DSUB 9 connector.
The pin assignment complies with the specifications of the PNO.
PinSignalDescription
1-Not connected
2M24Not connected
3RxD/TxD-PReceived/transmitted data
plus, data wire B
4CNTR-PControl signal for repeater
5DGNDData transmission potential
earth (galvanically isolated)
6VP / +5V Power supply +5V for bus
connection (galvanically isol-
ated)
7-Not connected
8RxD/TxD-NReceived/transmitted data
minus, data wire A
9-Not connected
Protective
collar
Data transmission potential
earth
Installation
Gateway component for PROFIBUS17 / 28
5 Configuration
5.1 Supported Size of the Process Data
NOTICE
The gateway component for PROFIBUS supports process data of a
length up to 488 bytes.
Bear in mind that the maximum length of the process data is always
determined by the fieldbus with the shorter data length.
Example:
CANopen supports 512 bytes
PROFIBUS supports 488 bytes
In conjunction with PROFIBUS/ CANopen this means that 488 bytes
are transmitted and updated cyclically.
Configuration
Gateway component for
PROFIBUS
18 / 28
5.2 Address Assignment
1
2
PROFIBUS - Setting Station Address
You can set the station address of the Gateways using these rotary
switches.
The address or additional settings are assigned in decimal format.
Thus, you have a value range from 00-99 at your disposal. Also see:
Table PROFIBUS Settings.
With the two rotary switches you form a two-digit decimal number, in
which switch x10 (1) determines the tens digit and switch x1 (2)
determines the single digit.
Configuration
Illustration7: Coding switch
Example: You want to set the value 39.
Setting for switch 1 = 3
Gateway component for PROFIBUS19 / 28
Setting for switch 2 = 9
The settings execute the following actions:
Switch settingAction
"01" to "98"Setting Station Address
"00"Address assignment via SSA tele-
gram
"99"Firmware Reset, (e.g. to remove ad-
dress lock by SSA telegram.)
Table1: PROFIBUS Settings
Info! The new station address is first used when you restart the
gateway component.
Configuration
SSA
Address Lock
The Gateway supports automatic address configuration via the "Set
Slave Address" telegram of the PROFIBUS Master.
The PROFIBUS master sends SSA telegrams to the special station
address 126. At the same time, a manufacturer identity number is
also transmitted in addition to the station address. The manufacturer
identity number is specific to a particular product. It can be obtained
from the file name of the GSD file of the device. This ensures that
only one device with the address 126, which has a particular ID,
changes the address.
The Master also defines in this telegram whether the Gateway should
no longer accept any further SSA telegrams. The Gateway
processes this address lock and saves it permanently. The address
is still used even after a restart of the Gateways. To remove the
address lock and to change the address, you have to perform a
firmware reset. Regardless of this, however, it is possible to change
the address at any time using the rotary switch. The setting of the
rotary switch always has priority over an address that was set by
SSA.
Gateway component for
PROFIBUS
20 / 28
Bitrate
The Gateway supports the following bitrates:
9600 Bit/s
19200 Bit/s
45450 Bit/s
93750 Bit/s
187.5 Kbit/s
500 Kbit/s
1.5 Mbit/s
3 Mbit/s
6 Mbit/s
12 Mbit/s
The Gateway detects the bitrate automatically. You do not have to
perform any further settings here.
Configuration
Gateway component for PROFIBUS21 / 28
5.3 Parameterisation
In order to exchange input and output data, the Profibus Protocol
Chip must be parameterised by the PROFIBUS Master. Using the
device master data (GSD) in the Master you have the option of
defining the parameterisation data:
– Watchdog time,
– Affiliation to master,
– Affiliation to group,
– minimum response time Gateways to queries of the master.
The Gateway supports the application commands "Freeze Mode"
and "Sync Mode".
The parameter telegram is in accordance with the PROFIBUS
standard. User parameters are not allowed.
Configuration
Gateway component for
PROFIBUS
22 / 28
5.4 PROFIBUS Configuration
To configure the gateway component, you have to perform the
appropriate settings with the configuration software of your
PROFIBUS Master (class 1).
The PROFIBUS gateway component is created as a so-called
"modular DP-V0 Slave". This means that the process data
exchanged between the gateways can be structured applicationspecific on the profibus side.
The gateway component is equipped for this with virtual slots
(installation positions). PROFIBUS controllers use these slots to
address selected process data. Each slot can contain one module.
Within these modules is the process data to be exchanged. Hence,
you have the possibility of aggregating associated process data in
one slot. This means, for example, that you can poll a compact
process mapping of associated states.
If you do not want to use a slot, you can mark it with an empty
module. You do not have to perform any further settings on the
empty module.
Configuration
Byte order:
The process data is accessed between the gateway components in
separate memory areas for input and output data. The sequence
order in which the access takes place depends on the configuration
of the modules.
The data of the modules is stored directly in succession in the
memory area for the data exchange between gateways (see example
further below).
Info! The gateway component does not support any extended
diagnosis data.
The bytes are transferred to the controller in Big Endian format.
Gateway component for PROFIBUS23 / 28
Module Configuration
A maximum of 64 slots, each with 244 bytes for input and output
data, is available for the module configuration. The modules are
preset in the GSD and cannot be changed.
The following modules are available for loading the slots: