Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 208

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

RSTB
RSTB(533) turns OFF bit N of word D
when the execution condition is ON. The
status of the bit is not affected when the
execution
condition
SETB(532) to turn ON the bit.)
Hint
• Differences between SET/RSET and SETB(532)/RSTB(533)
The instructions operate in the same way when the specified bit is in the CIO, W, H, or A Area.
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 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 condition is OFF.
The OUTB(534) instruction turns ON the specified bit when its execution condition is ON and turns
OFF the specified bit when its execution condition is OFF.
• 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)
instructions.
Precautions
• Bits turned ON by SETB(532) can be turned OFF by any other instruction, not just RSTB(533).
Bits turned OFF by RSTB(533) can be turned ON by any other instruction, not just SETB(532).
• 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 will not be changed if the program section is interlocked or
jumped, i.e., when the interlock condition or jump condition is OFF.
• SETB(532) and RSTB(533) have immediate refreshing variations (!SETB(532) and !RSTB(533)).
When an external output bit has been specified 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.)
• When external output is specified for bit address N of word D by !SETB (or !RSTB instruction), bit
address N of word D which turned ON (or OFF) will be OUT-refreshed at that point (when the
instruction is executed). Bit address N of word D which was turned ON (or OFF) remains ON (or
OFF) as normal until an RSTB instruction (or SETB instruction) is executed.
Sample program
0.00
0.01
CS/CJ/NSJ Series Instructions Reference Manual (W474)
is
OFF.
(Use
SETB
Bit 02 of D0 is turned ON when CIO 0.00 is ON.
D0
&2
RSTB
Bit 02 of D0 is turned OFF when CIO 0.01 is ON.
D0
&2
15
This bit is turned OFF.
ON
Execution condition
OFF
ON
Bit N of word D
OFF
3. Instructions
3
171

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents