Delta AH500 Programming Manual page 367

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0803
MOR
Device X
Y
M
S
1
S
2
D
n
Symbol:
Explanation:
1.
The operator OR takes the n rows of binary representations in S
representations in S
The operation result is stored in D.
2.
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.
3.
The operand n should be within the range between 1 and 256.
Example:
When X0.0 is ON, the operator OR takes the data in the 16-bit devices Y0~Y2 and the data in 16-bit
devices Y10~Y12, and performs the matrix 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
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Y2
Before the
instruc tion
b15
S2
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
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 OR operation on each pair of corresponding bits.
2
b0
MOR
b0
C ha pt er 6 A p pl i e d In s tr uc t io ns
Matrix OR operation
L
SM SR
E
PR
AH500
Word
Word
Word
Word
and the n rows of binary
1
After the
instruc tion
is executed
b15
D
Y20
0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1
Y21
0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1
0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1
Y22
Function
K
16# "$"
DF
b0
6 - 1 9 9

Advertisement

Table of Contents
loading

Table of Contents