Automation and Drives
DP/DP coupler for linking DP systems
SITRAIN IK-PBSYS / DP/DP Coupler
Page 1
Co n t en t s
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Pag e
Application and operating principle of the DP/DP coupler .................................. ................................................................. ...............................
2
Data Data commun communica icatio tion n princi principle ple
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... .....
3
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...
4
Setting Setting the PROFIBUS PROFIBUS address address with with STEP STEP7 7 ........... ................ .......... .......... .......... ........... ........... .......... ........... ............ ............ ............ ........... .......... .......... .....
5
Config Configuri uring ng the the DP/DP DP/DP coup coupler ler
6
Proper Propertie ties s of the DP/DP DP/DP couple couplerr
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ..... ..... .....
DP/DP DP/DP coupler coupler config configura uratio tion n in network network 1
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...
7
DP/DP DP/DP coupler coupler config configura uratio tion n in network network 2
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...
8
S7 program program in network network 1 (DP master master 1) ........... ................ .......... ........... ........... .......... ........... ............ ............ ........... .......... .......... ........... ........... .......... ......... ...... .. S7 program program in network network 2 (DP master master 2) ........... ................ .......... ........... ........... .......... ........... ............ ............ ........... .......... .......... ........... ........... .......... ......... ...... ..
9 10
Activating the "Data validity" validity" diagnosis ...................................................................... ............................................................................................... .........................
11
Diagnosis Diagnosis of DP/DP coupler coupler malfunction malfunctions s
12
.......... ................ ........... .......... .......... .......... ........... ............ ........... ........... ............ ........... .......... .......... .......... ........ ...
Diagno Diagnosis sis of DP/D DP/DP P coupl coupler er malf malfunc unctio tions, ns, LEDs LEDs SF and BF
...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...
13
Diagnosis Diagnosis with system system function function SFC13 ............ ................. .......... ........... ........... .......... .......... ........... ........... .......... ........... ........... .......... .......... .......... .......... ......... .... Exercise 1: 1: Connect Connect 2 DP networks networks using using the DP/DP DP/DP coupler coupler ........... ................. ........... .......... .......... .......... .......... ........... ............ .......... ....
14 15
SITRAIN trainin training g for Automation and Industrial Solutions
Page 1
IK-PBSYS DP/DP Coupler
Automation and Drives
Application and operating principle of the DP/DP coupler
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 e ither 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 training for Automation and Industrial Solutions
Page 2
IK-PBSYS DP/DP Coupler
Automation and Drives
Data communication principle
SITRAIN IK-PBSYS / DP/DP Coupler
Page 3
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Data c ommunication The 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 training for Automation and Industrial Solutions
Page 3
IK-PBSYS DP/DP Coupler
Automation and Drives
Properties of the DP/DP coupler
SITRAIN IK-PBSYS / DP/DP Coupler
Properties
Page 4
03/2007 © Siemens AG 2007 - Subject to change without prior notice
The properties of the DP/DP coupler are: • Data transfer of up to maximum 244 bytes of input data and 244 bytes of output data, of which 128 bytes is consistent • Up to 16 I/O areas for exchanging data; when one side fails the outputs on the other side are held at the previous value • Support for DP V1 with complete and uniform diagnostics • PROFIBUS addresses can be set either via a switch on the DP/DP coupler or with STEP 7 (or with another configuring tool) • Different baud rates and PROFIBUS addresses can be set on each side of the DP/DP coupler • Electrical isolation between the two DP networks • Power supply on both sides
Slave address settings and diagnostics The slave addresses for the two slaves are set independently of one another by DIP switches on top of the unit. Addresses 1 to 124 can be set Please ensure that the addresses set on the hardware correspond to the parameters assigned during configuration. Subsequent changes to the slave addresses are not effective until the power has been switched off and on again. 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.
SITRAIN training for Automation and Industrial Solutions
Page 4
IK-PBSYS DP/DP Coupler
Automation and Drives
Setting the PROFIBUS address with STEP7
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 addr ess In the delivery condition, the PROFIBUS address "126" is stored in the nonvolatile 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.
SITRAIN training for Automation and Industrial Solutions
Page 5
IK-PBSYS DP/DP Coupler
Automation and Drives
Configuring 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
SITRAIN training for Automation and Industrial Solutions
Page 6
IK-PBSYS DP/DP Coupler
Automation and Drives
DP/DP coupler configuration in network 1
Address area for data exchange with network 2
Properties in network 1
SITRAIN IK-PBSYS / DP/DP Coupler
Page 7
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 7
IK-PBSYS DP/DP Coupler
Automation and Drives
DP/DP coupler configuration in network 2
2. Address area for data exchange with network 2
Address area for data exchange with network 1
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 training for Automation and Industrial Solutions
Page 8
IK-PBSYS DP/DP Coupler
Automation and Drives
S7 program in network 1 (DP master 1)
SITRAIN IK-PBSYS / DP/DP Coupler
Page 9
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 9
IK-PBSYS DP/DP Coupler
Automation and Drives
S7 program in network 2 (DP master 2)
SITRAIN IK-PBSYS / DP/DP Coupler
Page 10
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 10
IK-PBSYS DP/DP Coupler
Automation and Drives
Activating the "Data validity" diagnosis
When the "Diagnosis" DIL switch is set, a "1" is stored in the first configured INPUTbyte in EW62 = I 62.0 when the other side of the DP/DP coupler is operating correctly. In the event of an error, there is a "0" here.
SITRAIN IK-PBSYS / DP/DP Coupler
Diagnosis
Page 11
03/2007 © Siemens AG 2007 - Subject to change without prior notice
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.D IP 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 training for Automation and Industrial Solutions
Page 11
IK-PBSYS DP/DP Coupler
Automation and Drives
Diagnosis of DP/DP coupler malfunctions SF 1:
Group fault in PROFIBUS DP network 1 (red)
SF 2:
Group fault in PROFIBUS DP network 2 (red)
BF 1:
Bus fault in PROFIBUS DP network 1 (red)
BF 2:
Bus fault in PROFIBUS DP network 2 (red)
ON 1:
24 V power supply for DP/DP coupler network 1 (green)
ON 2:
24 V power supply for DP/DP coupler network 1 (green)
SF 1:
Group fault in PROFIBUS DP network 1 (red)
SF 2:
Group fault in PROFIBUS DP network 2 (red)
BF 1:
Bus fault in PROFIBUS DP network 1 (red)
BF 2:
Bus fault in PROFIBUS DP network 2 (red)
SITRAIN IK-PBSYS / DP/DP Coupler
Page 12
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Notes
SITRAIN training for Automation and Industrial Solutions
Page 12
IK-PBSYS DP/DP Coupler
Automation and Drives
Diagnosis of DP/DP coupler malfunctions, LEDs SF and BF
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 training for Automation and Industrial Solutions
Page 13
IK-PBSYS DP/DP Coupler
Automation and Drives
Diagnosis with system function SFC13
SITRAIN IK-PBSYS / DP/DP Coupler
Page 14
03/2007 © Siemens AG 2007 - Subject to change without prior notice
Diagnosis with SFC13 The figure above contains an example of a DP/DP coupler malfunction. The figure below shows an example display indicating correct operation of the DP/DP coupler.
SITRAIN training for Automation and Industrial Solutions
Page 14
IK-PBSYS DP/DP Coupler
Automation and Drives
Exercise 1 : Connect 2 DP networks using a DP/DP coupler
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.
SITRAIN training for Automation and Industrial Solutions
Page 15
IK-PBSYS DP/DP Coupler