173
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Sequence Output Instructions
3
SETA/RSTA
Hint
z 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.
z 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
z 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.
z 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.
z 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).
N2 bits are
reset to 0 (OFF).
&5
&20
N1: Bit 5
N2: 20 bits
0.00
D: 100
&3
&20
D: 100
N1: Bit 3
N2: 20 bits
0.00