
AXC 1050 (XC)
120
PHOENIX CONTACT
8482_en_03
8.5
IEC-61131 runtime system
There is a separate group of system variables for the IEC-61131 runtime system.
Table 8-5
System variables of the IEC-61131 runtime system
System variable
Type
Meaning
PLCMODE_ON
BOOL
PLC status ON:
The runtime system on the controller is ready to operate.
PLCMODE_LOADING
BOOL
PLC status LOADING:
The application program is loading.
PLCMODE_RUN
BOOL
PLC status RUN:
The application program is running.
PLCMODE_STOP
BOOL
PLC status STOP:
The application program is currently not running.
PLCMODE_HALT
BOOL
PLC status HALT:
The application program was stopped at an unspecified point.
PLCDEBUG_BPSET
BOOL
Breakpoint set:
At least one breakpoint has been set in the application program.
PLCDEBUG_FORCE
BOOL
Variable(s) forced:
At least one variable is being continuously overwritten (forced).
PLC_TICKS_PER_SEC
INT
System ticks per second:
The number of pulses the system clock of the controller delivers
per second.
PLC_SYS_TICK_CNT
DINT
Number of system ticks:
The total number of pulses delivered by the system clock since
the last startup.
PLC_TASK_AVAILABLE
INT
Number of available PLC tasks
PLC_SYSTASK_AVAILABLE
INT
Number of available system tasks
PLC_MAX_ERRORS
DINT
Maximum number of "errors, warnings, and logging events".
If the maximum number is reached, the controller is stopped.
PLC_ERRORS
DINT
Number of "errors, warnings, and logging events" currently en-
tered.
PLC_TASK_DEFINED
INT
Number of tasks used
PLC_TASK_1
RECORD
Information regarding task 1
:
:
:
PLC_TASK_8
RECORD
Information regarding task 8
CLOCK_PULSE_1S
BOOL
1 s clock pulse
CLOCK_PULSE_2S
BOOL
2 s clock pulse
CLOCK_PULSE_5S
BOOL
5 s clock pulse
CLOCK_PULSE_10S
BOOL
10 s clock pulse