onlinecomponents.com
System variables and status information
7805_en_02 PHOENIX CONTACT 4-3
4.4 Diagnostic parameter register
The diagnostic parameter register provides additional information about the error indicated
in the diagnostic status register. The following information is stored in the diagnostic
parameter register:
– Error location
–Error code
Figure 4-1 Error location in the diagnostic parameter register
The diagnostic parameter register is rewritten whenever an error occurs. The diagnostic
parameter register contains the value "0" if no errors are detected.
Special case: If an interface error cannot be located, the value 128 is indicated in the
diagnostic parameter register, i.e., bit 7 is set.
1 5 8 7 0
P o s i t i o n i n t h e s e g m e n tS e g m e n t n u m b e r
3 1
E x a m p l e : d e v i c e n u m b e r 3 . 1
6 2 1 9 A 0 4 0
Table 4-3 System variables of the diagnostic parameter register
System variable Type Meaning
MASTER_DIAG_PARAM_REG_HI BYTE Diagnostic parameter register, high byte
MASTER_DIAG_PARAM_REG_LOW BYTE Diagnostic parameter register, low byte
MASTER_DIAG_PARAM_2_REG_HI BYTE Extended diagnostic parameter register, high byte
MASTER_DIAG_PARAM_2_REG_LOW BYTE Extended diagnostic parameter register, low byte