Command ‘Insert branch right’ΒΆ

Symbol:

Function: This command inserts a branch to the right of the selected point.

Call: Main menu SFC

The type of inserted branch depends on the selected element.

Note

Please note: You can convert a branch into another type with the Alternative and Parallel commands.

Example of parallel branch

The following image shows a new inserted parallel branch generated by the Insert branch right command while the Step11 step was selected. CODESYS automatically inserts a step (Step2 in the example).

Processing in online mode: If t2 yields TRUE, then CODESYS executes Step2 immediately after step11 and before t3 is passed.

Thus, CODESYS processes both branch lines as opposed to alternative branches.

Example of alternative branch

The following image shows a new inserted alternative branch generated by the Insert branch right command while the t4 transition was selected. CODESYS automatically inserts a step (Step32 in the example), a preceding transition, and a subsequent transition (t41, t42).

Processing in online mode: If Step3 is active, then CODESYS passes the subsequent transitions (t4, t41) from left to right. The first branch line of the main branch with the first transition yielding TRUE is passed. Therefore, only one branch line is processed as opposed to with a parallel branch.

See also