Access the Routine object

The Routine object provides status information about a routine. Specify the routine name to determine which Routine object that you want.
Attribute
Data Type
Instruction within Standard Task
Instruction within Safety Task
Description
Instance
DINT
GSV
GSV
Provides the instance number for this routine object. Valid values are 0 through 65,535.
Name
String
GSV
GSV
Name of the routine.
SFCPaused
INT
GSV
None
In an SFC routine, indicates whether the SFC is paused. Each value has a specific meaning:
  • 0. SFC is not paused.
  • 1. SFC is paused.
SFCResuming
INT
GSV SSV
None
In an SFC routine, indicates whether the SFC is resuming execution. Each value has a specific meaning:
  • 0. SFC is not executing. This attribute is automatically set to 0 at the end of a scan in which the chart was executed.
  • 1. SFC is executing. Step and action timers will retain their previous value if configured to do so. This attribute is automatically set to 1 on the first scan after a chart is no longer paused.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.