![background image](http://html1.mh-extra.com/html/omron/sysmac-c1000h/sysmac-c1000h_operation-manual_743079197.webp)
191
5-21-3
SET – SET<07> and RESET – RSET<08>
SET<07>
B
RSET<08>
B
Instruction Formats
B
: Bit
IR, AR, HR, LR
Operand Data Areas
SET<07> turns B ON, and RSET<08> turns B OFF.
Flags
No flags are affected by this instruction.
5-21-4
Block Branching–IF<02>, IF<02>NOT, ELSE<03>, and IEND<04>
IF<02>
B
IF<02>
IF<02> NOT
B
ELSE<03>
IEND<04>
Instruction Formats
B
: Bit
IR, SR, AR, HR, TC, LR
Operand Data Areas
These instructions are used to branch according to either the current execu-
tion condition or the status of a designated bit. IF<02> and IF<02> NOT must
be used in combination with IEND<04). ELSE<03> may be used in between
them, but is optional.
Branching is initiated with any of the following: IF<02> with a bit operand,
IF<02> without a bit operand, or IF<02> NOT with a bit operand.
If the IF condition is YES, the instructions immediately following the IF<02>
or IF<02> NOT will be executed. A YES execution condition is produced by
an ON bit or ON execution condition for IF<02> or an OFF bit for
IF<02>NOT.
If ELSE<03> is encountered following IF<02> or IF<02>NOT, execution will
jump to IEND<03> without executing any instruction in between. If
ELSE<03> is not encountered, execution will continue as normal.
If the IF condition is NO, execution will jump to ELSE<03> or to IEND<04>,
whichever appears first after the IF<02> or IF<02> NOT.
LD, possible in combination with AND or OR, must be used to establish the
execution condition for IF<02> or IF<02> NOT without an operand.
Execution Flow Examples
IF<02> to ELSE to IEND
A
IF<02>
B
ELSE<03>
C
IEND<04>
When B is ON, A is executed.
When B is OFF, C is executed.
Description
Description
IF<02> with an Operand
Block Programming Instructions
Section 5-21