3. Instructions
144
CS/CJ/NSJ Series Instructions Reference Manual (W474)
OR/OR NOT
Applicable Program Areas
Operands
z Operand Specifications
*1 CJ2 CPU Units only.
Flags
There are no flags affected by this instruction.
Function
Instruction Mnemonic Variations
Function
code
Function
OR OR
@OR, %OR,
!OR, !@OR,
!%OR
---
Takes a logical OR of the ON/OFF status of the
specified operand bit and the current execution
condition.
OR NOT OR NOT
@OR NOT, %OR
NOT, !OR NOT,
!@OR NOT,
!%OR NOT
---
Reverses the status of the specified bit and takes
a logical OR with the current execution condition.
Symbol
OR OR NOT
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
--- --- BOOL ---
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
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
OR bit
operand
OK OK OK OK OK OK
OK
*1
OK
*1
--- --- --- --- --- OK OK OK OK ---
OR NOT bit
operand
z OR
OR is used for a normally open bit connected in parallel. A normally open bit is configured to form a logical OR
with a logic block beginning with a LOAD or LOAD NOT instruction (connected to the bus bar or at the begin-
ning of the logic block). If there is no immediate refreshing specification, the specified bit in I/O memory is read.
If there is an immediate refreshing specification, the status of the Basic Input Unit's input terminal is read.
z OR NOT
OR NOT is used for a normally closed bit connected in parallel. A normally closed bit is configured to form a
logical OR with a logic block beginning with a LOAD or LOAD NOT instruction (connected to the bus bar or at
the beginning of the logic block). If there is no immediate refreshing specification, the specified bit in I/O mem-
ory is read. If there is an immediate refreshing specification, the status of the Basic Input Unit's input terminal is
read.
Bus bar Bus bar