Omron SYSMAC CP Series Instruction & Reference Manual page 249

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

Function
ORW
ORW(035) takes the logical OR of data speci-
fied in I
and I
and outputs the result to R.
1
2
ORWL
ORWL(611) takes the logical OR of data
specified in I
and I
1
outputs the result to 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 31, CIO 30 and the results will be output to corresponding bits in D501 and D500.
0.00
CP1E CPU Unit Instructions Reference Manual(W483)
as double-word data and
2
ORWL
20
30
D500
Note The vertical arrow indicates logical OR.
→ R
I
, I
1
2
I
I
1
2
1
1
1
0
0
1
0
0
+1) → (R, R+1)
(I
I
+1) + (I
I
1,
1
2,
2
I
I
+1
I
I
1,
1
2,
2
1
1
1
0
0
1
0
0
S
: 20CH
S
: 30CH
1
2
S
+1: 21CH
S
+1: 31CH
1
2
20.00
1
30.00
20.01
1
30.01
20.02
0
30.02
20.03
0
30.03
20.15
1
30.15
21.00
1
31.00
21.15
0
31.15
2 Instructions
R
1
1
1
0
+1
R, R+1
1
1
1
0
D: D500
D+1: D501
D500
1
00
1
0
01
1
1
02
1
0
03
0
1
15
1
D501
0
00
1
1
15
1
2-213
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents