Adding an action Permalink

  1. Double-click the ‎Step0‎ step.

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

  2. Specify the name as "Step0_active" and select the “Structured Text (ST)” implementation language. Click “Add”.

    CODESYS inserts the ‎Step0_active‎ action below the POU in the device tree and opens the action in the editor.

    In the ‎Step0_active‎ step action, you program statements to be executed as long as the step is active.

  3. Close the editor of ‎Step0_active‎.

    The ‎Step0‎ step is now marked with a black triangle in the upper right corner.

    _cds_img_sfc_step_active.png

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