Delta AS Series Programming Manual page 543

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
API
Instruction code
0904
Device
X
S
D
n
Data
type
S
D
n
Symbol
Explanation
_6
1.
This instruction rotates the values of n rows of bits in S to the right or to the left. When SM616 is OFF, the
instruction rotates the values of the bits to the left. When SM616 is ON, the instruction rotates the values of the bits
to the right. The instruction fills the vacancy resulting from the rotation with the value of the bit rotated last, and
stores the operation result in D. The value of the bit rotated last not only fills the vacancy, but also is transmitted to
the carry flag SM614.
2.
For 16-bit instructions, the value of n must be between 1–16. For 32-bit instructions, the value of n must be
between 1–32. When n is less than 0, the instruction is not executed. When n exceeds the range, the instruction is
executed with n at the maximum value (32) of the range.
3.
In general, the MBRP pulse instruction is used.
6 - 2 6 4
MBR
P
Y
M
S
T
C
Operand
S, D, n
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
: Matrix source
S
D : Operation result
: Length of the array
n
Function
Rotating bits in a group to the right or the
left in a matrix
SR
E
K
16#
32-bit instruction
AS
"$"
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents