Stop and restart a specific SFC program
With this function you can stop and restart 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.
Input
Name of the SFC program to control
At a rising edge all SFC programs are stopped, and all step flags and explicit Boolean variables that have been set but not saved in the action association list of a step are reset.
At a rising edge, the stopped SFC program is restarted. An SFC program that is not stopped is not affected.
Output
Indicates whether the SFC program has been stopped. The function SfcStopped 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. The stopped SFC programs can then be started all at once or individually with another SFC control function, or resumed at any position using ActivateStepsOfStoppedSfcs.
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.