Omron CP1E-N@@D@-@ Computer Hardware User Manual


 
2-11
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Sequence Input Instructions
2
OR/OR NOT
OR/OR NOT
Applicable Program Areas
Operands
Operand Specifications
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 Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
--- --- BOOL ---
Area
Word addresses Indirect DM addresses
Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
OR
OK OK OK OK OK OK --- --- --- --- OK OK ---
OR NOT
OR
OR is used for a normally open bit connected in parallel. A normally open bit is configured to form a log-
ical 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 memory is read. If there is an immediate refreshing specification, the status of the CPU Unit’s built-
in input terminal is read.
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 memory is read. If there is an immediate refreshing specification, the status of the
CPU Unit’s built-in input terminal is read.
Bus bar
Bus bar