Delta AH500 Programming Manual page 371

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0805
MXOR
Device X
Y
M
S
1
S
2
D
n
Symbol:
Explanation:
1.
The operator XOR takes the n rows of binary representations in S
representations in of S
corresponding bits. The operation result is stored in D.
2.
The result in each position is 1 if the two bits are different, and 0 if they are the same.
3.
The operand n should be within the range between 1 and 256.
Example:
When X0.0 is ON, the operator XOR takes the data in the 16-bit devices Y0~Y2 and the data in
16-bit devices Y10~Y12, and performs the matrix exclusive OR operation on each pair of
corresponding bits. The operation result is stored in the 16-bit devices Y20~Y22.
S1
b15
Y0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Y1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Before the
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Y2
instruc tion
S2
b15
is executed
Y10
0 0 0 1 0 1 1 1 1 0 1 0 0 1 0 1
Y11
0 0 0 1 0 1 1 1 1 0 1 0 0 1 0 1
0 0 0 1 0 0 1 1 1 0 1 0 0 1 0 1
Y12
Additional remark:
1.
If S
+n-1, S
+n-1, or D+n-1 exceeds the device range, the instruction is not executed, SM0 is
1
2
Operand
S
, S
, D, n
P
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (9 steps) 32-bit instruction
AH500
: Matrix source 1
S
1
: Matrix source 2
S
2
D : Operation result
n : Length of the array
, and performs the matrix exclusive OR operation on each pair of
2
b0
MXO R
b0
C ha pt er 6 A p pl i e d In s tr uc t io ns
Matrix exclusive OR operation
L
SM SR
E
PR
AH500
Word
Word
Word
Word
and the n rows of binary
1
After the
instruc tion
D
is executed
b15
Y20
0 1 0 1 1 0 1 0 1 1 1 1 0 0 0 0
Y21
0 1 0 1 1 0 1 0 1 1 1 1 0 0 0 0
0 1 0 1 1 0 1 0 1 1 1 1 0 0 0 0
Y22
Function
K
16# "$"
DF
b0
6 - 2 0 3

Advertisement

Table of Contents
loading

Table of Contents