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

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

Advertisement

3. Instructions
SETA/RSTA
Instruction
MULTIPLE BIT SET
SETA
MULTIPLE BIT RESET
RESTA
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
D
Beginning Word
N1
Beginning Bit
N2
Number of Bits
Operand Specifications
Word addresses
Area
CIO
WR
HR
D
N1
OK
OK
OK
N2
Flags
Operand
Error Flag
Function
SETA
SETA(530) turns ON 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 ON by SETA(530) can be
turned OFF by any other instructions, not
just RSTA(531).
168
Mnemonic
Variations
@SETA
@RSTA
SETA
SETA(530)
D
D:
Beginning word
N1
N1:
Beginning bit
N2
N2:
Number of bits
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Description
ER
• ON if N1 is not within the specified range of 0000 to 000F (&0 to &15).
• OFF in all other cases.
Function
code
SETA(530) turns ON the specified number of
530
consecutive bits.
RSTA(531) turns OFF the specified number of
531
consecutive bits.
Subroutines
OK
Data type
UINT
UINT
UINT
Indirect DM/EM
Con-
addresses
stant
@DM
*DM
s
DR
@EM
*EM
---
---
OK
OK
OK
OK
Data type
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
RSTA
RSTA(531)
Beginning word
D
D:
Beginning bit
N1
N1:
Number of bits
N2
N2:
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
Variable
1
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
N2 bits are set to 1 (ON).
TR
bits
---

Advertisement

Table of Contents
loading

Table of Contents