Delta Electronics AH500 Manual page 158

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
26
D
WAND
Device
X
Y
M
S
1
S
2
D
E xp la nat io n
E xamp le 1
E xamp le 2
S
1
D 11 D 10
Before the instruction
is executed
S
2
D 21 D 20
After the instruction
D
is executed
D 41 D 40
5 - 4 3
Operand
P
S
S
K
16#
F
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (9 steps)
S
: Source device 1; S
: Source device 2; D: Operation result
1
2
A logical AND operator takes the binary representations in S
and performs the logical AND operation on each pair of corresponding
bits. The operation result is stored in D.
The result in each position is 1 if the first bit is 1 and the second bit is 1.
Otherwise, the result is 0.
When X0.0 is ON, a logical AND operator takes the values in the 16-bit
device D0 and the 16-bit device D2, and performs the logical AND
operation on each pair of corresponding bits, and the operation result is
stored in Y4.
X0.0
WAND
S
1
Before the instruction
is executed
S
2
After the instruction
D
is executed
When X0.1 is ON, a logical AND operator takes the values in the 32-bit
device (D11, D10) and the 32-bit device (D21, D20), and performs the
logical AND operation on each pair of corresponding bits, and the
operation result is stored in (D41, D40).
X0.1
DWAN D
b31
1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1
0 0 0
1
1
0
0
0
0 0
0 0 0
1 0 0
1
0 0 0 0 0 0
Ch ap te r 5 Ap plie d Instruc tions
, S
, D
1
2
KnM KnS
D
W
D0
D2
b15
D 0
1 1 1 1 1 1 1 1
0 0 0 0 1 1 1 1
WAND
D 2
0 0 0
1
0 0
1
0 0 0
D 4
0 0 0
1
0 0
1
0 0 0 0 0 0
D10
D 20
b15
1
1
1
1
1
DWAND
1 1
1
1
0
0 0
0 0 0
0 0
1
0 0
0
0 0
1
0 0
Function
Logical AND operation
T
C
V
Z
and S
,
1
2
D 4
b0
1 1
0
1
0 0
1
0 0
D40
b0
1
1 1
0 0
0 0
1
1
1 1
1
1
1
1
0 0 0
0
0 0
1
0 0
0 0
0 0
1
0 0

Advertisement

Table of Contents
loading

Table of Contents