System variables and status information
8385_en_02 PHOENIX CONTACT 83
4.6 IEC 61131 runtime system
There is a separate group of system variables for the IEC 61131 runtime system.
Table 4-5 System variables of the IEC 61131 runtime system
System variable Type Meaning
PLCMODE_ON BOOL PLC status ON: the runtime system on the Inline controller is ready
to operate.
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 un-
specified point.
PLCDEBUG_BPSET BOOL Breakpoint set: at least one breakpoint has been set in the applica-
tion program.
PLCDEBUG_FORCE BOOL Variable(s) forced: at least one variable is being continuously over-
written (forced).
PLCDEBUG_POWERFLOW BOOL Powerflow ON: in “Powerflow” mode, you can see which parts of
your application program are being processed. This bit indicates
whether “Powerflow” mode is active.
PLC_TICKS_PER_SEC INT System ticks per second: this variable shows how many pulses the
system clock of the Inline controller delivers per second.
PLC_SYS_TICK_CNT DINT Number of system ticks: this variable shows 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 this maximum number is reached, the controller is stopped.
PLC_ERRORS DINT Number of “errors, warnings, and logging events” currently entered.
PLC_TASK_DEFINED INT Number of tasks used
PLC_TASK_1 Record, ele-
ments = 17
Information regarding task 1
:::
PLC_TASK_8 Record, ele-
ments = 9
Information regarding task 8