Download User manual Profibus

Transcript
7.7
Diagnosis
Standard diagnosis for Profibus DP is supported.
Profibus diagnosis consists of 6 bytes with the following contents:
Byte
Bit
0
1
Description
Diag. station does not exist (set by master)
Diag.station not ready
Slave not ready for data exchange
2
Diag.cfg_Fault
Byte 1
Inconsistent configuration data
3
Diag.ext_diag
Slave has external diagnosis data
4
Diag.not supported
Requested function not supported by slave
5
Diag.invalid slave response (fixes slave to 0)
6
Diag.prm_fault
wrong parameterization (ident number, etc.)
7
Diag.master_lock (set by master)
Slave has been parameterized by other master
0
Diag.prm_req
Slave must be re-parameterized
1
Diag.Stat_diag
static diagnosis (byte diag- bits)
2
fixed to ‘1
3
Diag.WD_ON
Byte 2
Response monitoring active
4
Diag.freeze_mode
freeze command received
5
Sync_mode
sync command received
6
reserved
7
Diag.deactivated (set by master)
0
reserved
1
reserved
2
reserved
3
reserved
Byte 3
4
reserved
5
reserved
6
reserved
7
Diag.ext_overflow
Byte 4
Diag.master_add
Master address after parameterization (FF without parameterization)
Byte 5
Ident number high byte
Byte 6
Ident number low byte
Table 16: Diagnosis bytes
Stat_diag:
The slave cannot provide valid data due to a condition in the application. As a result, the
master requests only diagnosis data until this bit will be reset. The firmware does not support
this bit (permanently on 0)
Ext_diag:
If this bit is set, then a diagnosis entry must be present in the user-specific diagnosis area.
This bit is always 0 in the AG03/1, since no user-specific diagnosis data is supported.
AG03/1 (PB)
Date: 08.07.2015
Page 33 of 35
Art.No. 86674
Mod. status 251/15