Run Actions

You can add in the SFC an action to run a block instance not set in Automatic Run.

When a block is instantiated, this default setting is Automatic Run. That means that the instance is run as long as the block is active.

In some specific cases, you need to control the run of the instance by setting explicitly a run action in the SFC+ graph.


Before you begin: The SFC+ Editor workbench should be opened and a step already created.
  1. For this task, you must create a block instance in the current block.

    1. In the contextual menu of the block, select Insert ... > Block.

    2. If the Position dialog box appears, select Before and click OK.

    3. In the Block Properties dialog box, click OK. A new block is created in the specification tree.

    4. Double-click the node Instance of the current block in the specification tree. The tab Instances of Block Properties dialog box appears.

    5. Click Add Port to create an instance of the newly created block.

    6. Select the block in the column Block and change the instance name.



    7. Click OK. The instance is added to the specification tree.



  2. Double-click the instance block in the specification tree to open the Instance Properties dialog box.

  3. Uncheck Automatic Run.

  4. Click Add Action and select the step S0 in the graph.

    The Action Properties dialog box appears.

  5. Select the type Run.

    Note: If the instance mode is set to Automatic Run, the instance is not available in the list.

  6. Click OK.

    The Run action is represented as follows in the editor:

    The block will be executed only when the step is active.