EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

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

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals