In addition to the module-level parameters that all modules have, modules that contain SFC algorithms have additional module-level parameters. They are as follows:
AUTO_ADVANCE - When TRUE, the SFC advances without user input in On-line and Debug views. When FALSE, the SFC is stopped and must be manually advanced.
COMMAND - These are the commands that users can issue for the SFC. They are as follows:
CONFIRM_FAIL - Activates confirmation of failing for the composite. The default is False. This is set whenever an action has a confirmed timeout before the expression used in confirming becomes True.
ERROR - ERROR is a Boolean parameter whose value is True when an SFC Action has a run error or is unresolved. A run error occurs when the Action fails, for example, when an assignment is unsuccessful because a parameter cannot be written due to a function block being in the wrong mode. The Action is unresolved when any referenced parameter is unresolved in the Action expressions (action, delay, confirm, and confirm timeout expressions where applicable).
INITIAL_STATE - Defines the state that the SFC is in when downloaded (Sequence Active or Sequence Idle). The default is Sequence Active.
RERROR - A Boolean parameter whose value is True when an SFC Action is resolved and a run error occurs. A run error occurs when the Action fails, for example, when an assignment is unsuccessful because a parameter cannot be written due to a function block being in the wrong mode. ERROR is always True when RERROR is True. The Action is resolved when all referenced parameters are resolved in the Action expressions (action, delay, confirm, and confirm timeout expressions where applicable).
When an SFC Action is writing to a remote parameter, the state of the Action may be either Active or Pending until the action is complete. If an error on this write is persistent then the state of the action alternates between Active and Pending (because of retries). On fast module execution speeds the user interface may always show Pending in this situation for the Action state. If the user has an alarm attached to RERROR, then even though the state may appear to be Pending, an alarm is generated for each error response.
STATE - Indicates the current state of the SFC. Possible states and their meanings are as follows:
Sequence Idle - The SFC has been reset.
Sequence Active - The SFC is running.
Sequence Stopped - The SFC has been stopped by a stop command.
Sequence Complete - The SFC has run to completion; no steps or transitions are active. (You must reset the SFC.)
Sequence Blocked - All active transitions are disabled.
STATUS - Indicates the current status of the SFC. Possible statuses are as follows:
Okay - There are no errors.
Component Disabled - Indicates that steps, transitions, or actions might be disabled.
Component Error - An action or transition has detected an error.
Out of Service - n/a for SFC.
Breakpoint Set - n/a for SFC.
Debug View Active - A debug view is active and a user could currently be editing the downloaded module.
Value Forced - A user has set a parameter to a particular value during an Online View session. The module continues to run using this value until you remove the forced value.
Unresolved Reference - An action or transition references a parameter that cannot be resolved.
Not running - The module is not executing.
FBAbnormActive - a problem exists in one of the function blocks referenced in this SFC. That function block will have the ABNORM_ACTIVE parameter set to True.
TIME - The amount of time the SFC has been running. This is the accumulated time that has passed since the sequence was started.
If you cannot see some of these module parameters when you are looking at the module, it might be due to parameter filtering.
The following table lists additional parameters that SFC steps and transitions have.
Parameter |
Units |
Definition |
|---|---|---|
ACTIVE |
None |
This parameter indicates if the currently-selected component of the SFC is active. |
CV |
None |
This parameter indicates the current value of the transition condition. |
DISABLED |
None |
This parameter indicates if the currently-selected component of the SFC is disabled. |
FORCE |
None |
This parameter indicates if the currently-selected value is being forced. (Forcing is writing a variable to a specific, known value.) |
FAILED_CONFIRMS |
None |
The number of actions on the step that have failed to confirm. |
PENDING_CONFIRMS |
None |
The number of actions on the step not yet confirmed or failed. |