Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 6 of 14

SIMATIC DP/DP Coupler Manual: 4 Configuring and commissioning

Pages 29 to 42 of 104, from SIMATIC DP/DP Coupler Manual

The original document is the PDF (923 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Siemens 6ES7-158-0AD00-0XA0

Page 29

Configuring and commissioning

4

Contents This chapter shows you the steps in commissioning the DP/DP Coupler. Details are found in the relevant subsections. Section

DP/DP Coupler A5E00244669-03

Topic

Page

4.1

What are the steps in commissioning DP/DP Coupler?

4-2

4.2

Setting the DIL switch on the DP/DP Coupler

4-3

4.3

Programming the DP/DP Coupler in STEP 7

4-8

4.4

Programming the DP/DP Coupler using another engineering tool

4-13

4.5

Commissioning of the DP/DP Coupler

4-14

4-1

Page 30

Configuring and commissioning

4.1

What are my steps in configuring the DP/DP Coupler? The table below shows you the steps required in commissioning.

Table 4-1 Step

Activity

Content

Further information

1

Mounting

You have mounted the DP/DP Coupler onto a profile rail.

Chapter 2

2

Wiring

You have connected the DP/DP Coupler to the power supply and to PROFIBUS DP.

Chapter 3

3

Setting the “PS” DIL switch

Setting for both sides, according to the power supply connection to the DP/DP Coupler.

Chapter 4.2.1

4

Setting the “DIA” DIL switch

Setting for both sides, defines whether to validate transferred input data.

Chapter 4.2.2

5

Setting the “ADDR” Setting for both sides, to define whether the PROFIBUS DIL switch address is set by means of DIL switch or in STEP 7.

6

Setting the PROFIBUS address

7

8

4-2

How to configure the DP/DP Coupler

Configuring the DP/DP Coupler Commission the DP/DP Coupler

Chapter 4.2.3

Set the PROFIBUS address for both sides, using either the DIL switch or STEP 7.

• by means of DIL switch • in STEP 7 • using STEP 7

Chapter 4.2.4

• using another engineering tool

Chapter 4.4

Switch on the DP/DP Coupler and load the configuration data

Chapter 4.5

Chapter 4.3.2 Chapter 4.3.1

DP/DP Coupler A5E00244669-03

Page 31

Configuring and commissioning

4.2

Setting the DIL switch on the DP/DP Coupler

Contents Section

4.2.1

Topic

Page

4.2.1

Setting the “PS” DIL switch

4-3

4.2.2

Setting the “DIA” DIL switch (data validity indication)

4-4

4.2.3

Setting the “ADDR” DIL switch

4-5

4.2.4

Setting the PROFIBUS address on the DIL switch

4-6

Setting the “PS” DIL switch

Function of the “PS” (Power Supply) DIL switch The “PS” DIL switch setting tells the DP/DP Coupler to which of its inlets the power supply is connected. This also allows the diagnostic function to report failures of the power supply.

Setting the “PS” DIL switch Set the proper position of the “PS” DIL switch für sides of the DP/DP Coupler: • PS (DP1) set to “ON”: L+/M (PS1) is connected to 24 V DC • PS (DP2) set to “ON”: L+/M (PS2) is connected to 24 V DC

Note The DP/DP Coupler accepts all changes immediately.

DP/DP Coupler A5E00244669-03

4-3

Page 32

Configuring and commissioning

4.2.2

Setting the “DIA” DIL switch (data validity indication)

Function of the “DIA” DIL switch (data validity indication) The “DIA” DIL switch function allows you to validate I/O data. The setting of the “DIA” DIL switch does not influence the normal diagnostic messages of the DP/DP Coupler described in chapter 6.2.

Function principle of the data validity indication The DP/DP Coupler enables the data transfer between two PROFIBUS DP networks. If one of the DP masters is silent, or data exchange is not possible due to an error at one of the DP/DP Coupler interfaces, the partner DP master should recognize invalid data transferred via the DP/DP Coupler. You can validate data either by means of the slave diagnostics functions, or directly by analyzing the I/O data.

“DIA” in “OFF” position I/O data validation is disabled when the “DIA” switch is set to “OFF”.

“DIA” in “ON” position I/O data validation is enabled when the “DIA” switch is set to “ON”. Table 4-2

Meaning of the ”DIA” switch positions

DIA switch position

Validation of

DIA = ON (DP1)

input data from network 1

= output data from network 2

DIA = ON (DP2)

input data from network 2

= output data from network 1

The function uses the first bit of the LSB byte of the first configured input byte: • Bit 1 (LSB inputs) = 1: Data from DP/DP Coupler are valid • Bit 1 (LSB inputs) = 0: Data from DP/DP Coupler are invalid Example • Network 1: 8 byte input data – 16 byte output data • Network 2: 16 byte input data – 8 byte output data The first bit of the 8 byte of input data indicates validity of data from network 2, the first bit of the 16 byte input data indicates validity of data from network 1.

4-4

DP/DP Coupler A5E00244669-03

Page 33

Configuring and commissioning

!

Warning When “DIA” is in “ON” position, you may not use the first bit in the LSB of the first configured input byte for normal input data! We advise you not to use the first byte of the input data for the inputs when using the data validity indication function!

Note The DP/DP Coupler accepts all changes immediately.

4.2.3

Setting the “ADDR” DIL switch

Function of the “ADDR” (PROFIBUS address) DIL switch The position of this switch determines whether the PROFIBUS address is set directly on the DP/DP Coupler, or whether it is assigned via PROFIBUS DP in the STEP 7 program.

Setting “ADDR” Set the relevant position of the “ADDR” DIL switch for both sides of the DP/DP Coupler: • “ADDR” in “OFF” position: The PROFIBUS address is set directly on the DIL switch of the DP/DP Coupler. For further information, refer to chapter 4.2.4. • “ADDR” in “ON” position: The PROFIBUS address is assigned in the STEP 7 program. For further information, refer to chapter 4.3.2.

DP/DP Coupler A5E00244669-03

4-5

Page 34

Configuring and commissioning

4.2.4

Setting the PROFIBUS address on the DIL switch

Definition Each bus node must receive a PROFIBUS address so that it can be uniquely identified on PROFIBUS-DP. The PROFIBUS address is set separately for both PROFIBUS DP networks directly on the DIL switches of the DP/DP Coupler. Note: You can also assign the PROFIBUS address in STEP 7 (cf. chapter 4.3.2).

Rules Rules for the assignment of a PROFIBUS address: • Valid PROFIBUS address range: 1 to 125. • All PROFIBUS addresses assigned must be unique within the DP master system. • You assign a PROFIBUS address to each side of the DP/DP Coupler. It is also possible to assign the PROFIBUS address for one side of the DP/DP Coupler directly on the Link, and the other in STEP 7.

Required tool To set the PROFIBUS address, you require a 3 mm screwdriver.

How to set the PROFIBUS address directly on the DP/DP Coupler Step

Activity

1

Switch off the 24 V DC power supply to the DP/DP Coupler.

2

Open the front panel door of the DP/DP Coupler.

3

Set the required PROFIBUS address with a screwdriver. The PROFIBUS address is formed by the sum of all values of the switches in “ON” position (switch in right position).

4

Set the ADDR DIL switch to the left (“OFF” position). Result: The PROFIBUS address is read from the DIL switch position, rather than from the non–volatile memory of the DP/DP Coupler.

5

Switch on the 24 V DC power supply to the DP/DP Coupler. Result: The DP/DP Coupler applies the PROFIBUS address you have set on the switch.

4-6

DP/DP Coupler A5E00244669-03

Page 35

Configuring and commissioning

Example of DIL switch settings

PROFIBUS address network 1:

DP/DP Coupler DP1

2 +1 =3

DP2 64 32 16 8 4

ADDR = ON: STEP 7 writes the PROFIBUS address to the DP/DP Coupler DIA = OFF: Data validity indication is disabled

2 ADDR DIA PS

PS = ON: 24 V DC of network 1 is connected

Figure 4-1

ADDR = OFF: The PROFIBUS address is fetched from the DIL switch

1

ON

PROFIBUS address network 2: 64 + 32 +2 +1 = 99

ON

DIA = ON: Data validity indication is enabled PS = ON: 24 V DC of network 2 is connected

Example of DIL switch settings

Changing the PROFIBUS address You may change the set PROFIBUS address (1 to 125) at any time.

Note The changes are not applied to the DP/DP Coupler until you have cycled the 24 V DC supply (off/on).

DP/DP Coupler A5E00244669-03

4-7

Page 36

Configuring and commissioning

4.3

Configuring the DP/DP Coupler in STEP 7

Contents Section

Topic

Page

4.3.1

Configuring the DP/DP Coupler in STEP 7

4-9

4.3.2

Setting the PROFIBUS address in STEP 7

4-10

4.3.3

Setting the DP/DP Coupler properties in STEP 7

4-11

4.3.4

Example of an I/O configuration for the DP/DP Coupler in STEP 7

4-12

Prerequisites You require the GSD file SI018070.GS? in order to be able to program the DP/DP Coupler in STEP 7. Integrate this GSD file into your engineering tool. This GSD file is included in STEP 7 V5.3 and higher.

GSD file A GSD file (SI018070.GS?) is available for the DP/DP Coupler. You can download this file free of charge from the Internet, under: http://www.ad.siemens.de/csi_e/gsd

4-8

DP/DP Coupler A5E00244669-03

Page 37

Configuring and commissioning

4.3.1

Configuring the DP/DP Coupler in STEP 7 The DP/DP Coupler is programmed in STEP 7 for standard operation. The DP/DP Coupler requires a configuration for both DP networks, with separate master systems.

Notice You need to balance the I/O area of both networks.

Step

Activity

1

Start STEP 7 and open HW Config.

2

Drag–and–drop the DP/DP Coupler from the hardware catalog in the folder PROFIBUS-DP\Further FIELD DEVICES\Gateway\DP/DP Coupler, Release 2 to the PROFIBUS network. Result: The properties dialog box for the PROFIBUS interface of the DP/DP Coupler appears.

3

Set the PROFIBUS address of the DP/DP Coupler. This address must correspond with the PROFIBUS address set on the DP/DP Coupler. Confirm your entries with OK. Result: The DP/DP Coupler is added to the DP master system.

4

Now you configure the slots of the DP/DP Coupler Starting at slot 1, type in the relevant DP IDs for the input or output data. I you are using I/O data in mixed mode, use a universal DP identifier module.

5

Type in the input and/or output address for each slot.

6

Confirm your entries with “OK”. Result: You have now configured one side of the DP/DP Coupler.

7

Repeat steps 2 to 6 for the second PROFIBUS DP system connected to the DP/DP Coupler. Important

• Network 1 inputs are outputs of network 2, • Network 1 outputs are inputs of network 1,

Note Only with configuration of both sides of the DP/DP Coupler 6ES7 158-0AD01-0XA0: If your slot configuration (of inputs and outputs) is incongruent, the DP/DP Coupler reports a configuration error to the networks 1 and 2.

DP/DP Coupler A5E00244669-03

4-9

Page 38

Configuring and commissioning

4.3.2

Setting the PROFIBUS address in STEP 7

Requirements The DP/DP Coupler has been configured in STEP 7(cf. chapter 4.3.1).

Definition Each bus node must receive a PROFIBUS address so that it can be uniquely identified on PROFIBUS-DP. The PROFIBUS address is set in STEP 7 separately for each on of the two PROFIBUS DP networks. Note: You can also set the PROFIBUS address directly on the DIL switches of the DP/DP Coupler (cf. chapter 4.2.4).

Rules Rules for the assignment of a PROFIBUS address: • The valid PROFIBUS addresses are: 1 to 125. • Each PROFIBUS address can only be assigned once in a DP master system. • You assign a PROFIBUS address to each side of the DP/DP Coupler. It is also possible to assign the PROFIBUS address for one side of the DP/DP Coupler directly on the Link, and the other in STEP 7.

Setting the PROFIBUS address in STEP 7 The default PROFIBUS address ”126” is stored in the non–volatile memory of your DP/DP Coupler. Step 1

Activity Set the ADDR DIL switch to the left “ON” position. Result: The PROFIBUS address is fetched from the non–volatile memory area in the DP/DP Coupler.

2

Switch on the 24 V DC power supply to the DP/DP Coupler. Result: The LEDs ON1 and/or ON2 are lit.

3

Connect the PG/PC via PG cable to the DP network or to the DP/DP Coupler.

4

Open STEP 7 HW Config and configure the DP/DP Coupler.

5

In HW Config, select the configured DP/DP Coupler.

6

Go to PLC > PROFIBUS > Assign PROFIBUS address. Result: The “PROFIBUS address” view appears.

7

Enter the configured PROFIBUS address and confirm with “OK”. Result: The PROFIBUS address is transferred to the non–volatile memory of the DP/DP Coupler.

4-10

DP/DP Coupler A5E00244669-03

Page 39

Configuring and commissioning

4.3.3

Setting the properties of the DP/DP Coupler in STEP 7

Properties – DP slave In the ”Configuration“ tab of the ”Properties – DP slave” dialog box, you can set the following properties: • “Configuration” tab: – DP alarm mode: DPV0 or DPV1 slave – Permit external diagnostics

DPV0 or DPV1 slave The DP/DP Coupler can only be operated as a DPV1 slave in combination with a DPV1 master. The additional functions (acyclical services) of a DPV1 slave can only be used if this is the case. DP slaves defined as DPV1 slaves in their GSD file can be selected from a dropdown list for operation in DPV1 or DPV0 mode.

Allow external diagnostics • Extended diagnostics enabled: This setting is used in RUN mode. When the DP/DP Coupler reports a diagnostics event on network 1 (e.g. bus connector on network 1 has been removed), OB 82 is executed. LED SF2 is lit in addition. The message ”Module error” is written to the diagnostics buffer of the CPU. • Extended diagnostics disabled: This setting is used for commissioning the system. When the DP/DP Coupler reports a diagnostics event on network 1 (e.g. bus connector on network 1 has been removed), OB 82 is also executed. LED SF2 is not lit. The system does not write any dat to the diagnostics buffer of the CPU. After you commissioned the system, reset the diagnostics function to “Extended diagnostics enabled”!

DP/DP Coupler A5E00244669-03

4-11

Page 40

Configuring and commissioning

4.3.4

Example of a configuration of the DP/DP Coupler I/O in STEP 7

Introduction This example shows a typical configuration of the DP/DP Coupler using STEP 7.

Task The following assumptions have been made for this example: • Network 1: – The DP/DP Coupler is assigned PROFIBUS address 4. – To be transferred to the DP master on network 2: 2 bytes inputs (inconsistent) 16 bytes outputs (inconsistent) 8 bytes inputs (consistent) 2 bytes outputs (consistent) 3 bytes inputs / 5 bytes outputs (consistent) • Network 2: – The DP/DP Coupler is assigned PROFIBUS address 24. – To be transferred to the DP master on network 1: 2 bytes outputs (inconsistent) 16 bytes inputs (inconsistent) 8 bytes outputs (consistent) 2 bytes inputs (consistent) 5 bytes inputs / 3 bytes outputs (consistent)

Configuring the DP/DP Coupler on network 1 in STEP 7 Configuration of the DP/DP Coupler on network 1:

(4)

DP/DP Coupler, release 2

Slot

DP ID

Order no./name

Input address Output address Comment

1

16DE

2 bytes input

0...1

2

47

16 bytes output

3

151

8 bytes input consistent

4

161

2 bytes output consistent

5

192

Universal module

0...15 256...263 256...257 2...4

16...20

6 7

Figure 4-2

4-12

Example: Configuration of the DP/DP Coupler on network 1

DP/DP Coupler A5E00244669-03

Page 41

Configuring and commissioning

Configuring the DP/DP Coupler on network 2 in STEP 7 This DP/DP Coupler configuration must be absolutely congruent to the network 1 configuration. The resultant configuration of the DP/DP Coupler on network 2:

(24)

DP/DP Coupler, release 2

Slot

DP ID

Order no./name

1

16DA

2 bytes output

2

31

16 bytes input

3

167

8 bytes output consistent

4

145

2 bytes intput consistent

256...257

5

192

Universal module

16...20

Input address Output address Comment 0...1 0...15 256...263

2...4

6 7

Figure 4-3

4.4

Example: Configuration of the DP/DP Coupler on network 2

Configuring the DP/DP Coupler with another engineering tool Use the GSD file if you prefer to configure the DP/DP Coupler with another engineering tool such as COM PROFIBUS.

GSD file A GSD file (SI018070.GS?) is available for the DP/DP Coupler. You can download this file free of charge from the Internet, under: http://www.ad.siemens.de/csi_e/gsd

Configuring the DP/DP Coupler Configure the DP/DP Coupler with your configuration tool (e.g. COM PROFIBUS) as you would any other DP slave on PROFIBUS-DP. To do so, load the complete GSD file for the DP/PA link into your configuration tool.

assignment frame The frame has a length of 15 bytes. Information on the parameter assignment frame is available on the Internet, under: http://www.ad.siemens.de/csi_e/gsd

DP/DP Coupler A5E00244669-03

4-13

Page 42

Configuring and commissioning

4.5

Commissioning the DP/DP Coupler

Requirements Conditions to be met before you commission the DP/DP Coupler: • You have installed and wired the DP/DP Coupler as described in chapters 2 and 3. • You have installed both PROFIBUS DP networks. PROFIBUS DP is ready for operation. • You have programmed the DP/DP Coupler.

Commission the DP/DP Coupler Step

4-14

Activity

1

Switch on the power supply to the DP/DP Coupler.

2

Download the configuration data to the PLC by executing the PLC > Download to module command.

DP/DP Coupler A5E00244669-03