Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 159

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Sequence Output Instructions
Flags
Examples
0.00
126
Bits turned ON by SETA(530) can be turned OFF by any other instructions,
not just RSTA(531).
SETA(530) can be used to turn ON bits in data areas that are normally
accessed by words only, such as the DM area.
Operation of RSTA(531)
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).
RSTA(531) can be used to turn OFF bits in data areas that are normally
accessed by words only, such as the DM area.
Name
Label
Error Flag
ER
SETA(530) Example
When CIO 0.00 is turned ON in the following example, the 20 bits (0014 hexa-
decimal) beginning with bit 5 of CIO 200 are turned ON.
200
&5
D: 200
201
&20
N2 bits are set to 1 (ON).
N2 bits are reset to 0 (OFF).
Operation
ON if N1 is not within the specified range of 0000 to 000F.
OFF in all other cases.
Section 3-3
N1: Bit 5
N2: 20 bits

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents