Set/Rset - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

SET/RSET

Instruction
SET
SET
RESET
RSET
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
B
Bit
Operand Specifications
Word addresses
Area
CIO
WR
HR
B
OK
OK
OK
*1 CJ2 CPU Units only.
Flags
No flags are affected by SET and RSET.
Function
SET
SET turns the operand bit ON when the execution
condition is ON, and does not affect the status of the
operand bit when the execution condition is OFF. Use
RSET to turn OFF a bit that has been turned ON with
SET.
RSET
RSET turns the operand bit OFF when the execution
condition is ON, and does not affect the status of the
operand bit when the execution condition is OFF. Use
SET to turn ON a bit that has been turned OFF with
RSET.
168
Mnemonic
Variations
@SET, %SET, !SET,
!@SET, !%SET
@RSET, %RSET,
!RSET, !@RSET,
!%RSET
SET
SET
B
B: Bit
Block program areas
Step program areas
OK
OK
Description
AR
T
C
DM
EM
1
1
OK
---
---
OK*
OK*
Function
code
SET turns the operand bit ON when the execution
condition is ON. After this, the specified contact
---
will remain ON regardless of ON/OFF of the input
condition.
RSET turns the operand bit OFF when the
execution condition is ON. After this, the specified
---
contact will remain OFF regardless of ON/OFF of
the input condition.
Subroutines
OK
Data type
BOOL
Indirect DM/EM
addresses
Con-
stants
@DM
*DM
DR
@EM
*EM
---
---
---
---
Execution condition
of SET
Status of B
Execution condition
of RSET
Status of B
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
RSET
RSET
B
B: Bit
SFC action or transition
Interrupt tasks
programs
OK
OK
Size
---
Registers
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
TR
bits
---
---

Advertisement

Table of Contents
loading

Table of Contents