EasyManua.ls Logo

Delta AH500 - Page 367

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Applied Instructions
6-199
API
Instruction code Operand Function
0803 MOR P
S
1
, S
2
, D, n
Matrix OR operation
Device
X Y M S T C HC D L SM SR E PR K 16# “$” DF
S
1
S
2
D
n
Pulse instruction
16-bit instruction (9 steps)
32-bit instruction
AH500 AH500
Symbol:
S
1
Matrix source 1 Word
S
2
Matrix source 2 Word
D
Operation result Word
n
Length of the array Word
Explanation:
1. The operator OR takes the n rows of binary representations in S
1
and the n rows of binary
representations in S
2
, and performs the matrix OR operation on each pair of corresponding bits.
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.
Before the
instruction
is executed
After the
instruction
is executed
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
b0
b15
Y0
Y1
Y2
0 1 0 1 0 1 0 1 0 1
0 1 0 1
0 1
Y10
Y11
Y12
0 0 0 1 0 1 1 1 1 0
1 0 0 1
0 1
0 0 0 1 0 1 1 1 1 0
1 0 0 1
0 1
b0
b15
0 0 0 1 0 0 1 1 1 0
1 0 0 1
0 1
S1
S2
Y20
Y21
Y22
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
b0
b15
0 1 0 1 1 1 1 1 1 1
1 1 0 1
0 1
D
MOR

Table of Contents

Other manuals for Delta AH500

Related product manuals