Order Of Execution

The order of execution defines the sequence in which function blocks are executed by the controller. When you drag function blocks on to a wire sheet to build an application logic, by default, the tool sets the execution order of the functional blocks in the order you drop them on to the wire sheet. However, you can alter the order in which the controller executes the function blocks by re-ordering the blocks. In the Simulation Mode, the order of execution that you set is followed.

Note: You can reorder the execution of function blocks only. Although NVs or Bacnet objects and Physical points are shown in the Reorder screen, you cannot reorder their order of execution.

When you remove a block, the order of execution gets affected.

You cannot change the order of execution for Built In function blocks.

Execution order for blocks within a macro or Application is maintained based on the order in which you drag the blocks within them.

To change the order of execution:

  1. From the Spyder Palette, drag function blocks, macros or Programs on the wiresheet. The order in which you drag the function blocks determines the execution order. The execution order is displayed on the container of each function block on the wiresheet.
  2. Right-click the specific container or ControlProgram in the Nav sidebar. Click Reorder. The Reorder dialog box appears.
  3. Select the required application and click Move Up or Move Down to change the order of execution.
  4. Click OK to close the dialog box.