Delta AH500 Programming Manual page 451

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1211
MINV
Device X
Y
M
S
D
n
Symbol:
Explanation:
1.
The bits in the n devices starting from the device specified by S are inverted, and the inversion
result is stored in D.
2.
The operand n should be within the range between 1 and 256.
Example:
When X0.0 is ON, the bits in the three 16-bit registers D0~D2 are inverted, and the inversion result
is stored in the 16-bit registers D20~D22.
Additional remark:
1.
If S+n-1 or D+n-1 exceeds the device range, the instruction is not execute, SM0 is ON, and
the error code in SR0 is 16#2003.
2.
If n is less than 1, or if n is larger than 256, the instruction is not executed, SM0 is ON, and the
error code in SR0 is 16#200B.
Operand
S, D, n
P
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction
AH500
S : Matrix source
D : Operation result
n : Length of the array
b15
D0
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
D1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
D2
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
After the i nstruction is executed
b15
D20
1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
D21
1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
D22
1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Inverting the matrix bits
L
SM SR
E
PR
AH500
Word
Word
Word
b0
b0
Function
K
16# "$"
DF
-
6 - 2 8 3

Advertisement

Table of Contents
loading

Table of Contents