6F3B0250
Basic Hardware and Function 175
7. Instructions

FUN 050 OR OR

Expression
Input -[
A
OR
B
®
C
]- Output
Function
When the input is ON, this instr uction finds logical O R of
A
and
B
, and stores t he result in
C
.
Execution condition
Input Operation Output
OFF No execution OFF
ON Execution ON
Operand
Name Device Re
g
ister Constant Index
X Y R S T. C. XW YW RW SW T C D I J K
A
Source ÖÖÖÖÖÖÖÖÖÖ Ö Ö
B
source ÖÖÖÖÖÖÖÖÖÖ Ö Ö
C
OR ÖÖÖÖÖÖÖÖÖ Ö
Example
When R012 is ON, logical OR operation is executed f or the data of RW13 and RW20, and the
result is stor ed in D0031.
If t he data of RW13 is H5678 and RW20 is H4321, the r esult H5779 is stored in D0031.
FEDCBA9876543210
RW13 0101011001111000
5678
OR
RW20 0100001100100001
4321
D0031 0 1 0 1 0 1 1 1 0 1 1 1 1 0 0 1
5779
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net