Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 207

Table of Contents

Advertisement

RSTA
RSTA(531) turns OFF N2 bits, beginning
from bit N1 of D, and continuing to the left
(more-significant bits). All other bits are
left unchanged. (No changes will be
made if N2 is set to 0.)
Bits turned OFF by RSTA(531) can be
turned ON by any other instructions, not
just SETA(530).
Hint
SETA
• SETA(530) can be used to turn ON bits in data areas that are normally accessed by words only, such
as the DM and EM areas.
RSTA
• RSTA(531) can be used to turn OFF bits in data areas that are normally accessed by words only,
such as the DM and EM areas.
Example Programming
SETA
When CIO 0.00 is turned ON in the following example, the 20 bits (0014 hexadecimal) beginning
with bit 5 of CIO 100 are turned ON.
0.00
RSTA
When CIO 0.00 is turned ON in the following example, the 20 bits (0014 hexadecimal) beginning
with bit 3 of CIO 100 are turned OFF.
0.00
CS/CJ/NSJ Series Instructions Reference Manual (W474)
&5
D: 100
&20
&3
D: 100
&20
3. Instructions
N2 bits are
reset to 0 (OFF).
N1: Bit 5
N2: 20 bits
N1: Bit 3
N2: 20 bits
3
171

Advertisement

Table of Contents
loading

Table of Contents