PROFIBUS-DP interface
3–18
1070 066 091-102 (01.08) GB
3.5
Diagnostics
If diagnostics messages or errors occur in cyclic operation (cf. page 3–16 ff),
the slave sends a high-priority response telegram to the master
(Slave_Diagnosis; SAP60).
The response telegram is comprised of
D
standard diagnostics information (bytes 0 to 5) and, if necessary,
D
extended diagnostics information (bytes 6 to 20; ”Ext_diag_Data”).
Extended diagnostics information will only be transmitted in the event of
diagnostics class 1 errors. Each error is assigned exactly 1 bit. When an er-
ror is present, the corresponding bit is high.
The master can detect the presence of extended diagnostics information by
the status of bit 3 of byte 0.
D
Bit 3 of byte 0 is low: no extended diagnostics information
D
Bit 3 of byte 0 is high: extended diagnostics information
If extended diagnostics information is present, byte 6 (header byte for de-
vice-specific diagnostics) contains more information about its structure.
Byte
MSB
Bit no.
LSB
Description
Type
Byte
7
6
5
4
3
2
1
0
Description
Type
0
X
Station status_1.
Bit 3 = 0: no extended diagnostics information
Bit 3 = 1: extended diagnostics information
1
Station status_2
Stan
2
Station status_3
Stan-
dard
3
Master address
dard
4
Ident number: 014A (hex)
5
Ident. number: 014A (hex)
6
0
0
0
0
1
1
1
1
Header byte for device-specific diagnostics.
Bits 0...5: Block length incl. header byte
(000001 = 1 byte; ... ; 001111 = 15 bytes)
Bits 6...7: identification
7
Standard diagnostics class 1 (S-0-0011)
Low byte
8
High byte
9
User1-diagnostics class 1 (S-0-0129)
Low byte
10
High byte
11
User2-diagnostics class 1 (P-0-0493)
Low byte
12
High byte
exten-
ded
13
Hardware diagnostics class 1
Low byte
ded
14
High byte
15
Encoder-diagnostics class 1 (P-0-0494)
Low byte
16
High byte
17
CPU diagnostics class 1
Low byte
18
High byte
19
PROFIBUS (P-0-2803)
Low byte
20
High byte
Structure of the response telegram
LSA Control S.L. www.lsa-control.com [email protected] (+34) 960 62 43 01