Delta AS Series Programming Manual page 627

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
1114
D
Device
X
D
n
Data
type
D
n
Symbol
_6
Explanation
1.
This instruction shifts the data in the n registers starting from D to the right, and clears the data in D+n-1 to 0.
2.
In general, the NSFRP pulse instruction is used.
3.
For 16-bit instruction, the value in the operand n must be between 1–512. For 32-bit instruction, the value in the
operand n must be between 1–256. For the application of 32-bit instruction, you need to use ISPSoft V3.09.07 or
later and AS PLC CPU FW V1.08 or later.
Example 1
When M0 switches from OFF to ON, the instruction shifts the data in D1–D6 to the right, and clears the data in D6 to 0.
6 - 3 4 8
NSFR
P
Y
M
S
T
C
Operand
D, n
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
D : First device for the shift
n : Data length
Function
Shifting n registers to the right
SR
E
K
16#
"$"
32-bit instruction
AS
AS
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents