Skip to main content

Branch

A branch splits the processing line into two or more branches which are executed in succession from top to bottom. You can further branch each branch, which results in multiple branches being created within a network.

Each branch gets a marker symbol (small box) at the branch point. You can select the marker symbol in order to perform additional actions or commands for the subnet.

For more information, see: Programming in the Ladder Editor

Processing order and "normalization"

Important

The processing order within a network has been changed to version 1.2.0.0. Now it corresponds to that which also applies in CODESYS LD FBD.

The elements in a network are always processed from left to right and from top to bottom. In the network shown below, the processing order is therefore: x1, x2, x3, x4, x5.

_ld_img_execution_order.png

If a network has been created with Ladder < V1.2.0.0, then it may contain networks with branches which, due to the layout still possible in CODESYS Ladder < V1.2.0.0, also result in the processing order valid before 1.2.0.0. In the following example, the processing order is: x1, x2, x3, x4, x5

_ld_img_execution_order_before_1200.png

The yellow triangle _ld_icon_non_normalized_network.png in the margin of the network indicates such a case. If you want to switch the network to the new processing order, then you can "normalize" the network by double-clicking the triangle. This action cannot be undone. Then the network looks like the "normal" processing order shown in the figure above. A network is also "normalized" as soon as you edit it.

In the message window under the Ladder Inspection category, you will get a corresponding message for each non-normalized network. Then you can use the _cds_icon_three_dots.png button to select the following commands for normalization:

  • Normalize this network

  • Normalize all networks in this object

  • Normalize all networks in the project