A Brief Introduction to TwinCAT PLC Control Step A POU written in a sequential function chart consists of a series of steps which are connected with each other through directed connections (transitions). There are two types of steps. The simplified type consists of an action and a flag which shows if the step is active. If the action of a step is implemented, then a small triangle appears in upper right corner of the step. An IEC step consists of a flag and one or more assigned actions. The associated actions appear to the right of the step. Action An action can contain a series of instructions in IL or in ST, a lot of networks in FBD or in LD, or again in sequential function chart (SFC).
With the simplified steps an action is always connected to a step. In order to edit an action, click twice with the mouse on the step to which the action belongs. Or select the step and select the menu command "Extras" "Zoom Action/Transition". In addition, one input or output action per step is possible. Actions of IEC steps hang in the Object Organizer directly under their SFC-POU and are loaded with a doubleclick or by pressing in their editor. New actions can be created with "Project" "Add Action".. Entry or exit action Additional to a step action you can add an entry action and an exit action to a step. An entry action is executed only once, right after the step has become active.
An exit action is executed only once before the step is deactivated. A step with entry action is indicated by an "E" in the lower left corner, the exit action by an "X" in the lower right corner. The entry and exit action can be implemented in any language. In order to edit an entry or exit action, doubleclick in the corresponding corner in the step with the mouse. An entry and exit action can only be defined to a simplified step, but not to an IEC step. Example of a step with entry and exit action: TX1200 24 Version: 1.3