Function
ORW
ORW(035) takes the logical OR of data specified in I
and I
and outputs the result to R.
2
ORWL
ORWL(611) takes the logical OR of data specified in
I
and I
as double-word data and outputs the result to
1
2
R, R+1.
Sample program
When the execution condition CIO 0.00 is ON, the logical OR is taken of corresponding bits in CIO 21,
CIO 20 and CIO 301, CIO 300 and the results will be output to corresponding bits in D501 and D500.
0.00
CS/CJ/NSJ Series Instructions Reference Manual (W474)
S
S
+1: 21CH
1
20
300
D500
Note: The vertical arrow indicates logical OR.
I
, I
R
1
2
1
I
1
1
1
0
0
(I
I
+1) + (I
I
+1)
1,
1
2,
2
I
I
+1
1,
1
1
1
0
0
: 20CH
S
: 300CH
1
2
S
+1: 301CH
2
3. Instructions
I
R
2
1
1
0
1
1
1
0
0
(R, R+1)
I
I
+1
R, R+1
2,
2
1
1
0
1
1
1
0
0
D: D500
D+1: D501
D500
D501
3
433
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers