Diagnostic Data - DiagData

There follows a description of the DP diagnostic data

Offset

Meaning

0x00.0

StationNonExistent:  slave did not reply to the last telegram

0x00.1

StationNotReady: slave still processing the Set_Prm / Chk_Cfg telegram

0x00.2 

CfgFault: slave signalling a configuration error

0x00.3

ExtDiag: extended DiagData available and valid

0x00.4

NotSupported: slave does not support a feature requested via Set_Prm or Global_Control

0x00.5

InvalidSlaveResponse: slave response not DP-compatible

0x00.6

PrmFault: Slave reports a parameterization error

0x00.7

MasterLock: slave currently exchanging data with another master

0x01.0

PrmReq: re-parameterize and reconfigure slave

0x01.1

StatDiag: slave signalling static diagnosis / DPV1 slave application not yet ready for data exchange

0x01.2 

PROFIBUS DP slave

0x01.3

WdOn: DP watchdog on

0x01.4

FreezeMode: DP slave in freeze mode

0x01.5

SyncMode: DP slave in sync mode

0x01.6

reserved

0x01.7

Deactivated: DP slave has been deactivated

0x02.0

reserved

0x02.1

reserved

0x02.2

reserved

0x02.3

reserved

0x02.4

reserved

0x02.5

reserved

0x02.6

reserved

0x02.7

ExtDiagOverflow: too much extended data present

0x03

MasterAdd: station address of master with which slave is exchanging data

0x04, 0x05

IdentNumber

from 0x06

Extended DiagData

Extended DiagData

A distinction is made in the Extended DiagData between identification diagnosis, channel diagnosis and manufacturer-specific diagnosis. The first byte indicates the type of the diagnosis and the length of the associated data. Several diagnostic types can also follow one another in the Extended DiagData.

Header Byte

Bit

Meaning

0-5

Length of the associated diagnostic data, including header byte

6-7

0 = manufacturer-specific diagnosis (DPV1 is not supported) or DPV1 diagnosis (DPV1 is supported (DPV1_Enable = 1) in associated GSD file)

Module diagnosis

Channel diagnosis

Revision number

Manufacturer-specific diagnosis

The structure of the manufacturer-specific diagnosis may be found in the documentation for the DP slave.

DPV1 Diagnosis

In the case of DP slaves that also support DPV1, the DPV1 diagnosis, in which a distinction is made between status messages and alarms, is sent instead of the manufacturer-specific diagnosis.

Byte

Meaning

0

Header-Byte (bits 6,7 = 0, bits 0-5 = 4..63)

1

Bits 0-6: Alarm type

Bit 7: always 0

2

Slot number (0-254)

3

Bits 0-1: Alarm specifier

Bit 2: Additional acknowledge

Bits 3-7: Sequence number

4-63

Manufacturer specific (see the documentation for the DP slave)

Alarm type

Value

Meaning

0

reserved

Diagnostic alarm

2

Process alarm

3

Withdrawal alarm

4

Insertion alarm

5

Status alarm

6

Update alarm

7-31

reserved

20-126

Manufacturer specific (see the documentation for the DP slave)

127

reserved

Module diagnosis

The module diagnosis contain one bit for each DP module. The bit indicates whether a diagnosis for the corresponding DP module is present.

Byte

Meaning

0

Header-Byte (bits 6,7 = 1, bits 0-5 = 2..32)

1

Bit 0: 1. DP module has diagnosis

Bit 1: 2. DP module has diagnosis

...

Bit 7: 8. DP module has diagnosis

...

...

31

Bit 0: 241. DP module has diagnosis

Bit 1: 242. DP module has diagnosis

Bit 2: 243. DP module has diagnosis

Bit 3: 244. DP module has diagnosis (a maximum of 244 DP modules as possible)

Channel diagnosis

The channel diagnosis provides a closer description of the cause of the diagnosis of a DP module.

Byte

Meaning

0

Header byte = 0x83 (3 bytes including header, bits 6, 7 = 2)

1

Bits 0-5: Channel number

Bits 6-7: 0 = reserved, 1 = input, 2 = output, 3 = input/output

2

Bits 0-4: Error type

Bits 5-7: Channel type

Error type

Value

Meaning

0

reserved

Short circuit

2

Under voltage

3

Overvoltage

4

Overload

5

Over temperature

6

Open circuit fault

7

Upper limit value exceeded

8

Value below lower limit

9

Error

10-15

reserved

16-31

Manufacturer specific (see the documentation for the DP slave)

Channel type

Value

Meaning

0

Any type

Bit

2

2 bit

3

4 bit

4

Byte

5

Word

6

2 words

7

reserved

Revision number

The structure of the revision number may be found in the documentation for the DP slave.