ControlSfcAndData

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 (STRING) (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.

InitNonRetainData (BOOL)

At a rising edge, all non-holding variables in the headers, including all external variables from the global variable list, are reinitialized. Explicit addresses used in an action or a transition are not effected.

InhibitTransitions (BOOL)

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

S_ResetOutputs (BOOL)

At a rising edge a mode is set in which output variables in the address area Y are reset.

Run (BOOL)

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

R_ResetOutputs

At a rising edge the mode is reset and thus left in which output variables in the address area Y are reset.

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.

OutputsReset (BOOL)

Indicates whether the outputs are reset. The function SfcOutputsReset produces this result, too.

Remarks

Related topics:

Example

Modified on: 2023-02-21Feedback on this pagePanasonic hotline