GSTATUS Statement in SFC Action

Returns the current status of a Sequential Function Chart (SFC) program.
GSTATUS is not part of the IEC 61131-3 standard.
GSTATUS Statement
Name:
GSTATUS
Syntax:
<
var
> :=
GSTATUS
( <
child_name
> );
where
child_name
represents the name of the SFC child POU
Operands:
the specified SFC program must be a child of the one in which the statement is written
Return value:
0 = Program is inactive (killed)
1 = Program is active (started)
2 = Program is frozen
To insert a GSTATUS statement
  • In the language container, type
    GSTATUS
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal