Delta AS Series Programming Manual page 616

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
1109
MBS
Device
X
Y
M
S
D
n
Data
type
S
D
n
Symbol
Explanation
1.
This instruction shifts the values of the n rows of bits in S to the right or to the left. When SM616 is OFF, the
instruction shifts the values of the bits to the left. When SM616 is ON, the instruction shifts the values of the bits to
the right. The instruction fills the vacancy (b0 when shifting to the left, and b16n-1 when shifting to the right)
resulting from the shift with the state of the borrow flag SM615.The instruction transmits the value of the bit shifted
last (from shifting to the left is b16n-1 and from shifting to the right is b0) to the carry flag SM614, and stores the
operation result in D.
2.
The operand n must be between 1–256.
3.
In general, the MBSP pulse instruction is used.
Example 1
When X0.0 is ON, SM616 is OFF. The instructions shifts the values of the bits to the left. Suppose SM615 is OFF. After
the instruction shifts the values of the bits in the 16-bit registers D0–D2 to the left, it stores the operation result in the 16-
bit registers D20–D22, and SM614 is ON.
Operand
S, D, n
P
S
T
C
HC
Pulse instruction
S : Matrix source
D : Operation result
n : Length of the array
C ha pt er 6 A p pl i e d In s tr uc t io ns
D
FR
SM
SR
16-bit instruction
AS
AS
Function
Shifting matrix bits
E
K
16#
"$"
F
32-bit instruction
-
6 - 3 3 7
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents