Editors Processing order of elements in a sequence: 1. First, all Action Control Block flags in the IEC actions that are used in this sequence are reset (not, however, the flags of IEC actions that are called within actions). 2. All steps are tested in the order which they assume in the sequence (top to bottom and left to right) to determine whether the requirement for execution of the output action is provided, and this is executed if that is the case. 3. All steps are tested in the order which they assume in the sequence to determine whether the requirement for the input action is provided, and this is executed if that is the case. 4.
For all steps, the following is done in the order which they assume in the sequence: ◦If applicable, the elapsed time is copied into the corresponding step variable. ◦If applicable, any timeout is tested and the SFC error flags are serviced as required. ◦For non-IEC steps, the corresponding action is now executed. 5. IEC actions that are used in the sequence are executed in alphabetical order. This is done in two passes through the list of actions. In the first pass, all the IEC actions that are deactivated in the current cycle are executed. In the second pass, all the IEC actions that are active in the current cycle are executed. 6. Transitions are evaluated:
If the step in the current cycle was active and the following transition returns TRUE (and if applicable the minimum active time has already elapsed), then the following step is activated. The following must be noted concerning implementation of actions: It can come about that an action is carried out several times in one cycle because it is associated with multiple sequences. (For example, an SFC could have two IEC actions A and B, which are both implemented in SFC, and which both call IEC action C; then in IEC actions A and B can both be active in the same cycle and furthermore in both actions IEC action C can be active; then C would be called twice).
If the same IEC action is used simultaneously in different levels of an SFC, this could lead to undesired effects due to the processing sequence described above. For this reason, an error message is issued in this case. It can possibly arise during processing of projects created with older versions of TwinCAT PLC. In monitoring expressions (e.g. A AND B) in transitions, only the „Total value“ of the transition is displayed. TX1200 160 Version: 1.3