Set - Set<07> And Reset - Rset<08; Block Branching-If<02>, If<02>Not, Else<03>, And Iend<04 - Omron SYSMAC C2000H Operation Manual

Hide thumbs Also See for SYSMAC C2000H:
Table of Contents

Advertisement

Block Programming Instructions
5-21-3
SET – SET<07> and RESET – RSET<08>
Description
Flags
5-21-4
Block Branching–IF<02>, IF<02>NOT, ELSE<03>, and IEND<04>
Description
Execution Flow Examples
IF<02> with an Operand
Instruction Formats
SET<07>
RSET<08>
SET<07> turns B ON, and RSET<08> turns B OFF.
No flags are affected by this instruction.
Instruction Formats
IF<02>
IF<02>
IF<02> NOT
ELSE<03>
IEND<04>
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.
IF<02> to ELSE to IEND
IF<02>
B
A
When B is ON, A is executed.
ELSE<03>
C
When B is OFF, C is executed.
IEND<04>
Operand Data Areas
B
IR, AR, HR, LR
B
Operand Data Areas
B
IR, SR, AR, HR, TC, LR
B
Section 5-21
B: Bit
B: Bit
191

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c1000h

Table of Contents