
System variables and status information
8482_en_03
PHOENIX CONTACT
115
8
System variables and status information
8.1
General notes
This section describes the special program functions of the PC Worx (Express) software
that are available for the controller.
The controller has a register set, which is used for diagnostics and easy control of the con-
troller and Axioline F local bus.
The diagnostic data is stored in the diagnostic status register and the diagnostic parameter
register. These registers are available to the application program as system variables (sys-
tem flags, global variables).
8.2
Diagnostic status register
Information on the operating state of the Axioline F local bus is stored in the diagnostic sta-
tus register. A specific Axioline F local bus state is assigned to each bit in the diagnostic sta-
tus register.
The following system variables can be used to read the diagnostic status register informa-
tion.
Table 8-1
System variables of the diagnostic status register
System variable
Type
Meaning
AXIO_DIAG_STATUS_REG_HI
BYTE
Diagnostic status register (high byte)
AXIO_DIAG_STATUS_REG_LOW
BYTE
Diagnostic status register (low byte)
AXIO_DIAG_STATUS_REG_PF
BOOL
Peripheral fault
AXIO_DIAG_STATUS_REG_PW
BOOL
I/O warning
AXIO_DIAG_STATUS_REG_BUS
BOOL
Bus error
AXIO_DIAG_STATUS_REG_RUN
BOOL
Data transmission is active.
AXIO_DIAG_STATUS_REG_ACT
BOOL
Selected configuration is ready to operate.
AXIO_DIAG_STATUS_REG_RDY
BOOL
Axioline F local bus is ready to operate.
AXIO_DIAG_STATUS_REG_SYSFAIL
BOOL
The Axioline F local bus switches to the SYSFAIL state
when the controller is in the STOP state or there is no pro-
gram present on it.