Requirement: A POU with the implementation language LD is opened in the editor and an empty network is inserted.
-
Click inside the empty network and click “FBD/LD/IL Insert Contact”.
-
Select the connecting line to the left of the contact and click “FBD/LD/IL Set Branch Start Point”.
The start point on the connecting line is indicated by a red rectangle. CODESYS indicates all possible end points of the branch with a blue rectangle.
-
Click a blue rectangle in order to set the end point of your closed branch.
CODESYS inserts the branch between the start and end points. The program flow will run through both branches until the end point.
If you insert the branch at a box instead of at a contact, then the box will only be called if none of the other branches is
TRUE
.
For more information, see: ⮫ “Closed Branch ”