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

The text of a manual · part 8 of 14

SIMATIC DP/DP Coupler Manual, pages 51 to 58

Pages 51 to 58 of 104

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 51

Diagnostics

Table 6-5

Structure of station status 1, Fortsetzung

Bit

Meaning

Cause/remedy

6

1: The configured station type is inconsistent with the DP/DP Coupler.

• Is the correct station type entered in

7

1: The DP/DP Coupler was configured by another DP-Master (not by the DP master currently allowed access to the DP/DP Coupler).

• The bit is always set to 1 when, for the configuration software?

instance, you are accessing the DP/DP Coupler using the PG or another DP master.

The PROFIBUS address of the DP master that has provided the parameters for the DP/DP Coupler is located in the diagnostic byte ”Master PROFIBUS address”.

Table 6-6

Structure of station status 2 Meaning

Bit 0

1: The DP/DP Coupler must be assigned new parameters.

1

1: A diagnostic message is queued. The DP/DP Coupler can not resume RUN until the error is rectified (static diagnostic message).

2

1: This bit is always set to ”1”.

3

1: Response monitoring is enabled on the DP/DP Coupler.

4

1: The DP/DP Coupler has received a “FREEZE” control command.

5

1: The DP/DP Coupler has received a “SYNC” control command.

6

0: This bit is always set to “0”.

7

0: This bit is always set to “0”.

Table 6-7 Bit 0 to 7

DP/DP Coupler A5E00244669-03

Structure of station status 3 Meaning 0: These bits are always set to “0”.

6-7

Page 52

Diagnostics

Master PROFIBUS address Byte 3 of the standard diagnostic data contains the PROFIBUS address of the DP master that has provided the parameters for the DP/DP Coupler and has read/write access to the DP/DP Coupler.

Device identifier The device ID is a code that uniquely identifies the DP slave (PROFIBUS ID number). Table 6-8

6.2.3

Structure of the device identifier

Byte 4

Byte 5

80H

70H

Designation DP/DP Coupler

Status message (module diagnostics) – only for operation on a DP master (DPV1) or S7 DP master The module diagnostics provides detailed information on the DP/DP Coupler. The structure of module diagnostics is determined by the DP/DP Coupler mode, i.e. operation on a DP master (DPV1)/S7 DP-Master or in replacement part mode.

Note Bytes 6 to 16 of the diagnostics dat are reserved!

6-8

DP/DP Coupler A5E00244669-03

Page 53

Diagnostics

Structure of module diagnostics (DPV1 / S7 DP master) The module diagnostics comprises 9 bytes.

Byte 17

7 6 5 4 3 2 1 0 0 0 0 0 1 0 0 1

Bit no.

Length of the diagnostic blockincluding byte 17 (= 9 bytes) Code for station diagnosis Byte 18 Byte 19 Byte 20

Status type: Status message Not applicable Not applicable

81H

Byte 21

00H: Data invalid 01H: Data valid

Byte 22

Number of inputs (in bytes) of the relevant DP segment Number of outputs (in bytes) of the relevant DP segment

Byte 23

Byte 24

7 6 5 4 3 2 1 0

Bit no.

Reserved 1: The CPU of the other DP network has output a CLEAR command (sets outputs to “0”) 1: The other segment has changed to UNFREEZE state 1: The other segment has changed to FREEZE state 1: The other segment has changed to UNSYNC state 1: The other segment has changed to SYNC state Reserved

Byte 25

7 6 5 4 3 2 1 0 0 0 0 0 0 0

Bit no.

1: Power supply PS1 on DP/DP Coupler has failed (only relevant if the DIL switch “PS” (DP1) is in ON position) 1: Power supply PS2 on DP/DP Coupler has failed (only relevant if the DIL switch “PS” (DP2) is in ON position) Figure 6-3

DP/DP Coupler A5E00244669-03

Structure of module diagnostics (DPV1 / S7 DP master)

6-9

Page 54

Diagnostics

6.2.4

Module diagnostics - replacement part mode or operation on a DP master (DPV0)

Structure of module diagnostics (replacement part mode or operation on a DP master (DPV0)) The module diagnostics comprises 5 bytes.

Byte 6

7 6 5 4 3 2 1 0 0 0 0 0 0 1 0 1

Bit no.

Length of the diagnostic blockincluding byte 6 (= 5 bytes) Code for station diagnosis Byte 7

00H: Data from other segment are invalid 01H: Data from other segment are valid

Byte 8

Number of inputs (in bytes) of the relevant DP segment Number of outputs (in bytes) of the relevant DP segment

Byte 9

Byte 10

7 6 5 4 3 2 1 0

Bit no.

Reserved 1: The CPU of the other DP network has output a CLEAR command (sets outputs to “0”) 1: The other segment has changed to UNFREEZE state 1: The other segment has changed to FREEZE state 1: The other segment has changed to UNSYNC state 1: The other segment has changed to SYNC state Reserved Figure 6-4

Structure of module diagnostics (replacement part mode or operation on a DP master (DPV0))

6-10

DP/DP Coupler A5E00244669-03

Page 55

Diagnostics

6.3

Example of a diagnosis

Introduction This practical example shows the call of a diagnostic function on the DP/DP Coupler: Section

6.3.1

Topic

Page

6.3.1

Task

6-11

6.3.2

Solution with STEP 7

6-12

Task The following assumptions have been made for this example: • The DP/DP Coupler is assigned diagnostics address 1022 (corresponds with 3FEH). • Figure 6-5 shows an example of the structure for diagnostic data analysis.

DP master work 2 PROFIBUS address 10

DP master work 1 PROFIBUS address 4 28 byte input data 52 byte output data

52 byte input data 28 byte output data

DP/DP Coupler

Figure 6-5

Example of the analysis of diagnostics data from the DP/DP Coupler

DP/DP Coupler A5E00244669-03

6-11

Page 56

Diagnostics

6.3.2

Solution with STEP 7

Call of the SFC 13 To read the diagnostic data of the DP/DP Coupler, call SFC 13 (DPNRM_DG) in OB 1.

Table 6-9

Call of the SFC 13 (DPNRM_DG) in the OB 1

STL

Explanation

CALL SFC 13 REQ :=TRUE LADDR :=W#16#3FE RET_VAL :=MW0 RECORD :=P#DB10.DBX 0.0 BYTE 26 BUSY :=M2.0

//Request to read the diagnostic data //Diagnostics address //RET_VAL of SFC 13 //Data mailbox for the diagnosis in DB10 //Read operation runs through several OB1 cycles

With this call, the diagnostic data are stored in DB 10.

Appearance of DB 10 Define the following structure for DB 10: Address

Name

0.0 +0.0

Norm_Diag

ARRAY[1..6]

Comment Standard diagnosis

BYTE Status_Message

ARRAY[1..9]

*1.0

BYTE

=26.0

END_STRUCT

6-12

Initial value

STRUCT

*1.0 +17.0

Type

Status message

DP/DP Coupler A5E00244669-03

Page 57

Diagnostics

Content of DB10 The relevant diagnostic data in DB 10 have the following meanings: Table 6-10 Example: Analysis of the diagnostics data Diagnostics address

DP master network 1

Meaning

DB10.DBB0

00H

Station status 1

00H

DB10.DBB1

0CH

Station status 2: Response monitoring enabled

0CH

Station status 2: Response monitoring enabled

DB10.DBB2

00H

Station status 3

00H

Station status 3

DB10.DBB3

04H

PROFIBUS address of the DP master on network 1

0AH

PROFIBUS address of the DP master on network 2

DB10.DBB4

80H

80H

DB10.DBB5

70H

Device ID of the DP/DP Coupler

Device ID of the DP/DP Coupler

DB10.DBB6 Reserved to DB10.DBB16

DP master network 2

70H

Meaning

Reserved

DB10.DBB17 09H

Code and length of module diagnostics data

09H

Code and length of module diagnostics data

DB10.DBB18 81H

Status message (fixed)

81H

Status message (fixed)

DB10.DBB19 Reserved

Reserved

DB10.DBB20 Reserved

Reserved

DB10.DBB21 01H

Data from network 2 are valid

01H

Data from network 1 are valid

DB10.DBB22 34H

52 bytes input data from network 2

1CH

28 bytes input data from network 1

DB10.DBB23 1CH

28 bytes output data from network 2

34H

52 bytes output data from network 1

DB10.DBB24 14H

The network 2 node is in UNSYNC, UNFREEZE mode

16H

The network 1 node is in UNSYNC, UNFREEZE, and CLEAR mode

DB10.DBB25 00H

Power supply present on both DP/DP Coupler segments

00H

Power supply present on both DP/DP Coupler segments

Result The network 1 data are valid, the network 1 DP master has switched its stations to CLEAR mode (e.g. CPU of network is in STOP).

DP/DP Coupler A5E00244669-03

6-13

Page 58

Diagnostics

6-14

DP/DP Coupler A5E00244669-03