441
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Logic Instructions
3
ORW/ORWL
Function
Example Programming
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.
z ORW
ORW(035) takes the logical OR of data specified in I
1
and I
2
and outputs the result to R.
z ORWL
ORWL(611) takes the logical OR of data specified in
I
1
and I
2
as double-word data and outputs the result to
R, R+1.
I
1
, I
2
→ R
I
1
I
2
R
111
101
011
000
(I
1,
I
1
+1) + (I
2,
I
2
+1)
→ (R, R+1)
I
1,
I
1
+1 I
2,
I
2
+1
R, R+1
111
101
011
000
0.00
20
300
D500
S
1
: 20CH
S
1
+1: 21CH
S
2
: 300CH
S
2
+1: 301CH
D: D500
D+1: D501
D500
D501
Note: The vertical arrow indicates logical OR.