StartStopSfcAndInitData

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.

Parameters

Input

SfcName (STRING)

Name of the SFC program to control

Stop (BOOL)

At a rising edge the SFC program is 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.

InitNonRetainData (BOOL)

At a rising edge, all non-holding variables in the headers of the SFC program indicated by SfcName, including all external variables from the global variable list, are reinitialized. Explicit addresses used in an action or a transition are not affected.

StartStoppedSfc (BOOL)

At a rising edge, the stopped SFC program is restarted. An SFC program that is not stopped is not affected.

Output

Stopped (BOOL)
Indicates whether the SFC program has been stopped. The function SfcStopped produces this result, too.

Remarks

Related topics:

Example

Modified on: 2022-06-28Feedback on this pagePanasonic hotline