Adding an exit action Permalink

  1. Select the ‎Step0‎ step.

  2. Click “SFC  Add Exit Action”.

    By default, you are prompted to select the duplication mode for the step actions of the step. See above for adding an entry action. Then the “Insert Exit Action” dialog opens.

  3. Specify the name as ‎Step0_exit‎ and select the “Structured Text (ST)” implementation language. Click “Add”.

    The ‎Step0_exit‎ action is inserted below the POU in the device tree and opened in the editor.

    In the ‎Step0_exit‎ exit action, you program statements to be executed one time before the ‎Step0‎ step becomes inactive.

  4. Close the editor of ‎Step0_exit‎.

    The ‎Step0‎ step is now marked with an ‎X‎ in the lower right corner. Double-click this marker to open the editor.

    _cds_img_sfc_step_exit.png

You can define the exit action in the properties of the step in “Exit action”. Other actions can also be selected there.