AutoSFC
Previous Topic  Next Topic 

Automatic Run mode behaviour of SFC and State transition diagrams.

In AutoSFC mode the chart logic works thru the states and transitions using the connections in the diagram and standard SFC rules. Steps are activated when a preceding Step is active and the transition between the steps is true.

Active Steps are set to - TheValue = True and should do things when TheValue is true.

Transitions should evaluate a condition and set TheValue

Note - The scripts for these functions are autogenerated by Calculation, Symbol State and Set Matrix objects.


ControlDraw decides whether each object is a Step or a Transition as follows


Transition definition

An object whose class has the Trans setting in Test Sheet Render type

or from the standard ControlDraw pallete SFC transition


Step definition

An object whose class has the Step setting in Test Sheet Render type

or from the standard ControlDraw pallete SFC Step


Starts, Parallel branches are also recognised but only by their Palette index, ie the Palette object number that was set when dragged and dropped


(You can still change it using Paste poperties/

Right click run mode menu options - these are enabled in response to the selected object


Force Transition - Causes the SFC to move onto the step after the transition, regardless of the transition's Value


Force Active or Force Inactive - Toggle the Active status of the selected step

Reset all Transitions. If you have manually set the transitions this resets them without changing the active steps.


Reset  in the Run form resets the entire chart, deacting all the states and switches the transitions off (although code may switch them on later)


AutoSFC is on by default but can be switched off in the run form or in project options.