SYSSTATE: System state
Original instructions
Function description
This function block displays the status of the PLC.
SYSSTATE is task-specific and can be used in MAST, FAST and AUX tasks.
SYSSTATE cannot be used in EVT tasks.
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL SYSSTATE_Instance (COLD=>ColdStartCycle, 
    WARM=>WarmStartCycle, ERROR=>ErrorInBuffer)
Representation in ST
Representation:
SYSSTATE_Instance (COLD=>ColdStartCycle, 
    WARM=>WarmStartCycle, ERROR=>ErrorInBuffer) ;
Parameter description
Description of output parameters:
Parameter
Data type
Description
COLD
Is set for one cycle to "1", when the user task is in a cold start cycle, i.e. the first start after the project has been completely loaded.
COLD operates inversely to the user task bit in %SW10 (TSKINIT).
WARM
BOOL
Is set for one cycle to "1" when the PLC or the user task is started, i.e. after switching on the power or by starting the SPS after a stop.
When a STOP->RUN transition of the corresponding tasks occurs, WARM is set to "1".
After the logic of the corresponding tasks have been completed, WARM is set to "0".
WARM is identical to the user task specific system bit %S21.
ERROR
BOOL
Is set to "1" when there are error messages in the diagnostic buffer that have not yet been acknowledged.
ERROR is set to "1" if %SW78 (DNBERRBUF) is not "0".
NOTE: In cold start cycle both outputs COLD and WARM are set to "1".