Setb/Rstb - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

SETB/RSTB

Instruction
SINGLE BIT SET
SETB
SINGLE BIT RESET
RSTB
Symbol
Applicable Program Areas
Area
Step program areas
Usage
OK
Operands
Operand
D
N
Operand Specifications
Word addresses
Area
CIO
WR
HR
D
OK
OK
OK
N
Flags
Operand
Error Flag
P_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.
CP1E CPU Unit Instructions Reference Manual(W483)
Mnemonic
Variations
@SETB, !SETB,
!@SETB
@RSTB, !RSTB,
!@RSTB
SETB
SETB(532)
D
D: Word address
N
N: Bit number
Description
Word address
Bit number
AR
T
C
DM
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 addresses
Constants
@DM
*DM
---
OK
OK
OK
Data type
15
ON
Execution condition
OFF
ON
Bit N of word D
OFF
2 Instructions
Function
RSTB
RSTB(533)
D
D: Word address
N
N: Bit number
Interrupt tasks
OK
Size
1
1
CF
Pulse bits
TR bits
---
---
---
This bit is turned OFF.
2-33
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents