Control a specific SFC program
With this function you can control a specific Sequential Function Chart (SFC) program. Stopping the program means that all steps are deactivated and all step flags, e.g. stepname.X, reset. Furthermore, you can lock all transition conditions, i.e. all transition conditions are always turned off. You can resume the program via the input Run.
Input
The SFC program is stopped at a rising edge; all step flags and explicit Boolean variables that have been set but not saved in the action association list of a step are reset.
All transitions are locked at a rising edge, i.e. the transition conditions are always turned off.
At a rising edge, the SFC program that had been stopped is restarted and locked transitions are unlocked.
Output
Indicates whether the transitions are locked. The function SfcTransitionsInhibited produces this result, too.
Indicates whether the SFC program is running. The function SfcRunning produces this result, too.
All explicit Boolean variables that have been set but not saved in the action association list of a step are reset. All other variables retain their last value.
This function cannot be used in functions because recognizing the rising requires a memory that a function does not have.
This function cannot be used in SFCs.
When this function is used, additional code is generated for the entire program. Since only 128 consecutive steps can be loaded to the PLC while in RUN mode, the code generated the first time this function is used cannot be loaded to the PLC. If you only use this function with the online edit mode in RUN mode, you have to download it at least once to the PLC.