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

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

Advertisement

3. Instructions
SETB/RSTB
Instruction
SINGLE BIT SET
SETB
SINGLE BIT RESET
RSTB
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
D
Word address
N
Bit number
Operand Specifications
Word addresses
Area
CIO
WR
HR
D
OK
OK
OK
N
Flags
Operand
Error Flag
ER
Function
SETB
SETB(532) turns ON bit N of word D
when the execution condition is ON. The
status of the bit is not affected when the
execution condition is OFF.
170
Mnemonic
Variations
@SETB, !SETB,
!@SETB
@RSTB, !RSTB,
!@RSTB
SETB
SETB(532)
D
D: Word address
N
N: Bit number
Block program areas
Step program areas
OK
OK
Description
@DM
AR
T
C
DM
EM
OK
OK
OK
OK
OK
Description
• ON if N is not within the specified range of 0000 to 000F (&0 to &15).
• OFF in all other cases.
Function
code
532
SETB(532) turns ON the specified bit.
533
RSTB(533) turns OFF the specified bit.
Subroutines
OK
Data type
UINT
UINT
Indirect DM/EM
addresses
Con-
stants
*DM
DR
@EM
*EM
---
OK
OK
OK
OK
Data type
15
Execution condition
Bit N of word D
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
RSTB
RSTB(533)
D
D: Word address
N
N: Bit number
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
1
1
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
This bit is turned OFF.
ON
OFF
ON
OFF
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents