Delta AH500 Programming Manual page 392

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
0904
MBR
Device X
Y
M
S
D
n
Symbol:
Explanation:
1.
The values of the n rows of bits in S are rotated to the right or to the left. When SM616 is OFF,
the values of the bits are rotated to the left. When SM616 is ON, the values of the bits are
rotated to the right. The vacancy resulting from the rotation is filled by the value of the bit
rotated last, and the operation result is stored in D. The value of the bit rotated last not only fills
the vacancy, but also is transmitted to the carry flag SM614.
2.
The operand n should be within the range between 1 and 256.
3.
Generally, the pulse instruction MBRP is used.
Example 1:
When X0.0 is ON, SM616 is OFF. The values of the bits in the 16-bit registers D0~D2 are rotated to
the left, and the operation result is stored in the 16-bit registers D20~D22. The value of the bit
marked ※ is transmitted to the carry flag SM614.
6 - 2 2 4
Operand
P
S, D, n
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
Rotating the matrix bits
L
SM SR
E
PR
AH500
Word
Word
Word
Function
K
16# "$"
DF

Advertisement

Table of Contents
loading

Table of Contents