ControlSfc

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.

Parameters

Input

SfcName (Literal)
Name of the SFC program to control
Stop (BOOL)

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.

InhibitTransitions (BOOL)

All transitions are locked at a rising edge, i.e. the transition conditions are always turned off.

Run (BOOL)

At a rising edge, the SFC program that had been stopped is restarted and locked transitions are unlocked.

Output

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

Indicates whether the transitions are locked. The function SfcTransitionsInhibited produces this result, too.

Running (BOOL)

Indicates whether the SFC program is running. The function SfcRunning produces this result, too.

Remarks

Related topics:

Example

Modified on: 2022-10-17Feedback on this pagePanasonic hotline