Command Insert branch right

Symbol: Command Insert branch right 1:

Function: The command adds a branch to the right of the currently selected position.

Call: Menu SFC, context menu

The type of the inserted branch depends on the selected element:

Command Insert branch right 2:

Note that you can use the commands Alternative or Parallel to convert a branch to the respective other type.

Example: Parallel branch

The following diagram shows a newly inserted parallel branch, generated with Command Insert branch right, while step11 was selected. TwinCAT automatically inserts a step (Step2 in the example).

Processing in online mode: If t2 returns TRUE, TwinCAT executes Step2 immediately after step11, before t3 is evaluated.

In contrast to alternative branches, TwinCAT therefore executes both branches.

Command Insert branch right 3:

Example: Alternative branch

The following diagram shows a newly inserted alternative branch, generated with Command Insert branch right, while transition t4 was selected. TwinCAT automatically inserts a step (Step32 in the example), a preceding and a subsequent transition (t41, t42).

Processing in online mode: If Step3 is active, TwinCAT evaluates the following transitions (t4, t41) from left to right. The first junction of the branch in which the first transition returns TRUE is executed. In contrast to parallel branching, only one junction is executed.

Command Insert branch right 4:

See also: