Delta AS Series Programming Manual page 621

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
1111
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 left. The instructions fill the vacancies (b
resulting from the shift with 0 and transmit the value of b
SM602.
_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 b10 to
SM602. The instruction fills the values of b0–b5 with zeros after the shift.
The shift of the values of the bits to the left during a scan shown below.
 b15-b10
 b9-b0
 0
6 - 3 4 2
SFL
P
Y
M
S
T
C
→ Being carried (The value of b10 is transmitted to SM602.
→ b15-b6
→ b5-b0
Operand
D, n
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
D : Device for the shift
n : Number of bits
(for 16-bit instruction) or b
16-n
Function
Shifting the values of the bits in registers
by n bits to the left
SR
E
K
16#
32-bit instruction
AS
(for 32-bit instruction) to
32-n
"$"
F
AS
–b
)
0
n-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents