System variables - INTERBUS master

Available for AXC F x152

INTERBUS master diagnostic status register

Information on the operating state of the INTERBUS master is stored in the diagnostic status register. A specific INTERBUS master state is assigned to each bit in the diagnostic status register.
The following system variables can be used to read the diagnostic status register information. 

INTERBUS master diagnostic status register

System variable Type Description
IB_DIAG_STATUS_REG_HI BYTE Master diagnostic status register, high byte
IB_DIAG_STATUS_REG_LOW BYTE Master diagnostic status register, low byte
IB_DIAG_STATUS_REG_SYSFAIL BOOL “System failure” error message
IB_DIAG_STATUS_REG_WARN BOOL Defined warning time exceeded
IB_DIAG_STATUS_REG_QUAL BOOL Defined error density exceeded
IB_DIAG_STATUS_REG_USER BOOL User error/parameterization error
IB_DIAG_STATUS_REG_PF BOOL Peripheral fault
IB_DIAG_STATUS_REG_BUS BOOL Bus error
IB_DIAG_STATUS_REG_CTRL BOOL INTERBUS master/hardware fault
IB_DIAG_STATUS_REG_DTC BOOL Diagnostic routine is active
IB_DIAG_STATUS_REG_RUN BOOL Data transmission is active
IB_DIAG_STATUS_REG_ACT BOOL Selected configuration is ready for operation
IB_DIAG_STATUS_REG_RDY BOOL The INTERBUS master is ready for operation

INTERBUS master diagnostic parameter register

The diagnostic parameter register provides additional information on an error indicated in the master diagnostic status register.

The following information is stored in the master diagnostic parameter register:

  • Error location, e.g. device number 3.1:
  • Error code, e.g. "address overlap" = code 0A50hex

Special case: If an INTERBUS local bus error cannot be located, the value 128 is indicated in the master diagnostic parameter register (i.e., bit 7 is set).

 

Example for error code
Error code Type Description and remedy
0A50hex BOOL Error when assigning a process data item. Input or output address assigned more than once.
Remedy:
  • Always assign just one process data item to each input/output address.
Add_Error_Info: PDRL index of the incorrect PDRL entry

The master diagnostic parameter register is rewritten whenever a malfunction occurs. If no malfunction has been detected, the master diagnostic parameter register contains the value 0.

INTERBUS master diagnostic parameter register

System variable Type Description
IB_DIAG_PARAM_REG_HI BYTE Master diagnostic parameter register, high byte
IB_DIAG_PARAM_REG_LOW BYTE Master diagnostic parameter register, low byte
IB_DIAG_PARAM_2_REG_HI BYTE Extended master diagnostic parameter register, high byte
IB_DIAG_PARAM_2_REG_LOW BYTE Extended master diagnostic parameter register, low byte

 

 


•  Web browser recommendation: Chrome/Edge 88 or newer, Firefox ESR 90 or neweror Safari • 
• Published/reviewed: 2022-09-14 • Revision 046 •