Omron CS1G/H-CPUxxH Instructions Manual page 204

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Sequence Output Instructions
Flags
Precautions
Name
Label
Error Flag
ER
SETB(532) and RSTB(533) cannot set/reset timers and counters.
When SETB(532) or RSTB(533) is programmed between IL(002) and
ILC(003) or JMP(004) and JME(005), the status of the specified bit won't be
changed if the program section is interlocked or jumped, i.e., when the inter-
lock condition or jump condition is OFF.
SETB(532)
and
RSTB(533)
(!SETB(532) and !RSTB(533)). When an external output bit has been speci-
fied in one of these instructions, any changes to the specified bit will be
refreshed when the instruction is executed and reflected immediately in the
output bit. (The changes will not be reflected immediately if the bit is allocated
to a Group-2 High-density I/O Unit, High-density Special I/O Unit, or a Unit
mounted in a SYSMAC BUS Remote I/O Slave Rack.)
Differences between SET/RSET and SETB(532)/RSTB(533)
The SET and RSET instructions operate somewhat differently from
SETB(532) and RSTB(533).
1. The instructions operate in the same way when the specified bit is in the
CIO, W, H, or A Area.
2. The SETB(532) and RSTB(533) instructions can control bits in the DM and
EM Areas, unlike SET and RSET.
Differences between OUTB(534) and SETB(532)/RSTB(533)
The OUTB(534) instruction operates somewhat differently from SETB(532)
and RSTB(533).
1. The SETB(532) and RSTB(533) instructions change the status of the
specified bit only when their execution condition is ON. These instructions
have no effect on the status of the specified bit when their execution con-
dition is OFF.
2. The OUTB(534) instruction turns ON the specified bit when its execution
condition is ON and turns OFF the specified bit when its execution condi-
tion is OFF.
3. The set and reset inputs for a KEEP(011) instruction must be programmed
with the instruction, but the SETB(532) and RSTB(533) instructions can be
programmed completely independently. Furthermore, the same bit may be
used as the operand in any number of SETB(532) and RSTB(533) instruc-
tions.
000000
000001
Operation
ON if N isn't within the specified range of 0000 to 000F
(&0 to &15).
OFF in all other cases.
have
immediate
SETB
Bit 02 of D00000 is turned ON
D00000
when CIO 000000 is ON.
&2
RSTB
Bit 02 of D00000 is turned OFF
D00000
when CIO 000001 is ON.
&2
Section 3-4
refreshing
variations
183

Advertisement

Table of Contents
loading

Table of Contents