Escolar Documentos
Profissional Documentos
Cultura Documentos
SITRAIN
IK-PBSYS / DP/DP Coupler Page 1 03/2007
Siemens AG 2007 - Subject to change without prior notice
Contents Page
Application and operating principle of the DP/DP coupler ................................................................. 2
Data communication principle .......................................................................................................... 3
Properties of the DP/DP coupler ...................................................................................................... 4
Setting the PROFIBUS address with STEP7 ...................................................................................... 5
Configuring the DP/DP coupler ...................................................................................................... 6
DP/DP coupler configuration in network 1 ....................................................................................... 7
DP/DP coupler configuration in network 2 ....................................................................................... 8
S7 program in network 1 (DP master 1) ............................................................................................ 9
S7 program in network 2 (DP master 2) ............................................................................................ 10
Activating the "Data validity" diagnosis ............................................................................................... 11
Diagnosis of DP/DP coupler malfunctions ........................................................................................ 12
Diagnosis of DP/DP coupler malfunctions, LEDs SF and BF ......................................................... 13
Diagnosis with system function SFC13 .............................................................................................. 14
Exercise 1: Connect 2 DP networks using the DP/DP coupler .......................................................... 15
SITRAIN
IK-PBSYS / DP/DP Coupler Page 2 03/2007
Siemens AG 2007 - Subject to change without prior notice
Field of application The DP/DP coupler is used to link two PROFIBUS DP networks together and to
transfer data from the master of one network to the master of the other network.
The maximum length of data that can be transferred is 244 bytes input data
and 244 bytes output data.
Configuration You can configure the DP/DP coupler using either STEP 7 or a configuring tool
that links in the DP/DP coupler with the help of a GSD file. You can use STEP 7
to set the length of input and output data required.
The output data of one side of the DP/DP coupler are transferred as the input
data of the other side and vice versa.
You enter these input/output data areas as slots with identifiers
in STEP 7.
SITRAIN
IK-PBSYS / DP/DP Coupler Page 3 03/2007
Siemens AG 2007 - Subject to change without prior notice
Data communicationThe example above shows that both networks are independent of one another.
This means that you set one unique PROFIBUS address for each PROFIBUS DP
network.
In the diagram below, this is PROFIBUS address 3 in network 1 and PROFIBUS
address 50 in network 2.
In addition, it is possible to work with a different baud rate in each network.
Network 1 fills the output buffer slower than it is read by Network 2.
Network 2 therefore reads identical data several times consecutively.
This applies conversely in the direction from network 2 to network 1. The output
buffer is overwritten several times before it is read by network 1. The most
recently written data are therefore always available.
Note You must ensure that the input and output areas of both networks are mutually
coordinated.
SITRAIN
IK-PBSYS / DP/DP Coupler Page 4 03/2007
Siemens AG 2007 - Subject to change without prior notice
Diagnosis The "Diagnosis" DIP switch provides an additional display of the data validity
within the I/O data area.
It has no effect on the normal diagnostic message frames of the DP/DP coupler.
You can set the "Diagnosis" DIP switch to specify whether the validity of data is
indicated by a defined bit within the configured I/O area.
DP/DP coupler
for network 1
SITRAIN
IK-PBSYS / DP/DP Coupler Page 5 03/2007
Siemens AG 2007 - Subject to change without prior notice
PROFIBUS address
In the delivery condition, the PROFIBUS address "126" is stored in the non-
volatile memory of the DP/DP coupler.
Procedure 1.Set the "ADDR" DIL switch to "ON". This means that the PROFIBUS address
will be read out of the non-volatile memory in the DP/DP coupler.
2.Switch on the 24 V power supply (or power supplies) for the DP-DP
coupler. LED(s) ON1 and/or ON2 light up.
3.Connect the PG/PC via a PG cable to the DP network or to the DP/DP coupler.
4.Open the STEP 7 hardware configuration and configure the DP/DP coupler
5.Select the configured DP/DP coupler
6.Change to PLC PROFIBUS Assign PROFIBUS address. The window
"PROFIBUS address" appears.
7.Enter the configured PROFIBUS address and confirm with "OK".
The PROFIBUS address is transferred to the DP/DP coupler and
stored in the non-volatile memory of the DP/DP coupler.
DP/DP coupler
for network 1
IO modules
SITRAIN
IK-PBSYS / DP/DP Coupler Page 6 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
Properties in
network 1
SITRAIN
IK-PBSYS / DP/DP Coupler Page 7 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
Properties in
network 2
SITRAIN
IK-PBSYS / DP/DP Coupler Page 8 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN
IK-PBSYS / DP/DP Coupler Page 9 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN
IK-PBSYS / DP/DP Coupler Page 10 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN
IK-PBSYS / DP/DP Coupler Page 11 03/2007
Siemens AG 2007 - Subject to change without prior notice
Diagnosis The "Diagnosis" DIP switch provides an additional display of the data validity
within the I/O data area. It has no effect on the normal diagnostic message
frames of the DP/DP coupler.
You can set the "Diagnosis" DIP switch to ensure that the validity of data is
indicated by a defined bit within the configured I/O area.
If one of the masters is not active or if, for example, due to a fault on an interface
of the DP/DP coupler, no data transfer takes place, this must be signaled to the
other master so that it can reject the data read over the coupler. The validity of
the data can either be determined using the slave diagnostics or, when the data
validity display is active, it can be directly evaluated within the data.DIP switch at
"1": The first bit in the LSB byte (low byte in the data unit), i.e. the first
configured input byte, is used to indicate data validity. This can be evaluated in
the user program. If the bit has the value "1", all the DP/DP coupler data are valid.
Note It is important to note that when this function is used, the I/O bit from the user
program is overwritten with the validity display.
Example:
- Network 1: 16-byte inputEW 60, i.e. I 60.0 =1 for valid data exchange
- Network 2: 16-byte input EW 50, i.e. I 50.0 =1 for valid data exchange
The first bit in the 16-byte input block of network 1 and the first bit in the 16-byte
input block of network 2 display the data validity. Value equal to 1: Data valid
Value equal to 0: Data invalid
DIP switch at "0": Within the I/O data, there is no indication of the data validity. The LSB byte can be
used for normal I/O data.
SITRAIN
IK-PBSYS / DP/DP Coupler Page 12 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
SF 1:
Group fault PROFIBUS DP network 1 (red)
SF 2:
Group fault in PROFIBUS DP network 2 (red)
BF 1:
Bus fault PROFIBUS DP network 1 (red)
BF 2:
Bus fault PROFIBUS DP network 2 (red)
SITRAIN
IK-PBSYS / DP/DP Coupler Page 13 03/2007
Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN
IK-PBSYS / DP/DP Coupler Page 14 03/2007
Siemens AG 2007 - Subject to change without prior notice
SITRAIN
IK-PBSYS / DP/DP Coupler Page 15 03/2007
Siemens AG 2007 - Subject to change without prior notice
Task description: Your task is to connect 2 physically separate DP systems via the DP/DP coupler.
Define the data of network 1 as output data and process them in network 2 as
input data.
Procedure: 1.Change the name of your hardware station to "Network_1", copy your system
to the clipboard and paste it in again under the name Network_2".
As a result you should have one station called network_2 and one called
network_1 in your project.
3.Change the system network_2 in such a way that it is linked to an independent
PROFIBUS network. After step 2, your project should also contain two
PROFIBUS networks.
4.Now insert the DP/DP coupler type in the "Hardware configuration tool using
the hardware catalog.
5.Configure an output area in network_1 and an input area in network_2.
Download the modified hardware stations to the relevant CPU.
6.Change your S7 program, if necessary, to ensure that output data are
generated and input data are processed.