Delta AS Series Programming Manual page 619

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
1110
D
Device
X
D
n
Data
type
D
n
Symbol
Explanation
1.
This instructions shift the values of the bits in D by n bits to the right. The 16-bit instruction fills the vacancies (b
b
) resulting from the shift with 0 and the 32-bit instruction fills the vacancies (b
15-n+1
shift with 0. The value of b
_6
2.
The operand n must be between 1–16 for 16-bit instructions and the operand n must be between 1–32 for 32-bit
instructions.
3.
In general, the SFRP/DSFRP pulse instruction is used more commonly.
4.
Only the DSFR/DSFRP instruction (32-bit instructions) can use the 32-bit counter (high counter) but not the device
E.
Example
When X0.0 is ON, the instruction shifts the values of b0–b15 in D0 by 6 bits to the right, and transmits the value of b5 to
SM602. The instruction clears the values of b10–b15 to zero after the shift.
The shift of the values of the bits to the right during a scan is shown below.
 b5-b0
 b15-b6
 0
6 - 3 4 0
SFR
P
Y
M
S
T
C
is transmitted to SM602.
n-1
→ Being carried (The value of b5 is transmitted to SM602.)
→ b9-b0
→ b15-b10
Operand
D, n
HC
D
FR
SM
Pulse instruction
AS
D : Device for the shift
n : Number of bits
Function
Shifting the values of the bits in registers
by n bits to the right
SR
E
K
16#
16-bit instruction
32-bit instruction
AS
–b
) resulting from the
31
31-n+1
"$"
F
AS
15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents