A H 5 0 0 M o t i o n C o n t r o l M o d u l e M a n u a l
5 - 4 4
API
Instruction code
Operand
Function
27
D
WOR
P
S
1
, S
2
, D
Logical OR operation
Device
X
Y
M
S
K
16#
F
KnM KnS
D
W
T
C
V
Z
S
1
S
2
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (9 steps)
E xp la nat io n
A logical OR operator takes the binary representations in
S
1
and
S
2
, and
performs the logical inclusive OR operation on each pair of
corresponding bits. The operation result is stored in
D
.
S
1
: Source device 1;
S
2
: Source device 2;
D
: Operation result
The result in each position is 1 if the first bit is 1, the second bit is 1, or
both bits are 1. Otherwise, the result is 0.
E xamp le 1
When X0.0 is ON, a logical OR operator takes the values in the 16-bit
device D0 and the 16-bit device D2, and performs the logical inclusive
OR operation on each pair of corresponding bits, and the operation
result is stored in D4.
X0.0
WO R
D 0
D 2
D 4
Before the instruction
is executed
After the instruction
is executed
0
1
1
1
1
1
1
0 0 0 0
0
0
0
1
1
1
0
0
0
0
1
1
1
WO R
b15
b0
S
1
S
2
D
D 0
D 2
D 4
0
0
0
0
0
0
0 1
1
0
1
1
1
1 1
1
1
1
1
1 1 1 1
1
E xamp le 2
When X0.1 is ON, a logical OR operator takes the values in the 32-bit
device (D11, D10) and the 32-bit device (D21, D20), and performs the
logical inclusive OR operation on each pair of corresponding bits, and
the operation result is stored in (D41, D40).
X0.1
D WO R
D 10
D 20
D 40
Before the instruction
is executed
After the instruction
is executed
DWO R
b15
b0
b31
S
1
S
2
D
D 11 D 10
D 21 D 20
D 41 D 40
1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1
0 0 0
0 0
1
1
1 1
1
1
1
1
0 0
0 0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
1
1 1
1
1
1 1
0 0 0
0 0
0 0 0
0
0 0
0 0
0 0
1 1 1
1 1
1
1
1
1
1
1
1
1
1
1 1 1
1 1
1
1
1
1
1
1
0 0
Summary of Contents for AH500
Page 9: ...viii...
Page 53: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Yaskawa servo drive 2 32...
Page 55: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Fuji servo drive 2 34...
Page 115: ...AH500 Motion Control Module Manual 4 16 MEMO...
Page 375: ...AH500 Motion Control Module Manual 5 260 MEMO...
Page 383: ...AH500 Motion Control Module Manual 6 8 MEMO...
Page 419: ...AH500 Motion Control Module Manual 7 36 MEMO...
Page 436: ...Chapter 8 Electronic Cam 8 17...
Page 483: ...AH500 Motion Control Module Manual 10 8 MEMO...
Page 505: ...AH500 Motion Control Module Manual 12 8 MEMO...
Page 515: ...AH500 Motion Control Module Manual 13 10 MEMO...
Page 544: ...Appendix A Error Code Table Table of Contents A 1 Error Code Table A 2 A 1...