987
Block Programming Instructions Section 3-30
Nesting Branches Up to 253 branches can be nested within the top level branch.
Examples The following example shows two different block programs controlled by
CIO 0.00 and CIO 0.02.
The first block executes one of two additions depending on the status of
CIO 0.01. This block is executed when CIO 0.00 is ON. If CIO 0.01 is ON,
0001 is added to the contents of CIO 1000. If CIO 0.01 is OFF, 0002 is added
to the contents of CIO 1000. In either case, the result is placed in D0.
The second block is executed when CIO 0.02 is ON and shows nesting two
levels. If CIO 0.03 and CIO 0.04 are both ON, the contents of CIO 1200 and
CIO 2000 are added and the result is placed in D10 and then 0001 is moved
into D11 based on the status of CY. If either CIO 0.03 or CIO 0.04 is OFF, then
the entire addition operation is skipped and CIO 200.01 is turned ON.