1-Word Shift To Right Of N-Word Data, 1-Word Shift To Left Of N-Word Data - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

1-word shift to right of n-word data, 1-word shift to left of n-word
data
DSFR(P), DSFL(P)
High
Basic
Process
Redundant Universal
performance
DSFR, DSFL
DSFRP, DSFLP
(D): Head number of the devices to be shifted (BIN 16 bits)
n:
Number of devices to which shift is executed (BIN 16 bits)
Setting
Internal device
data
Bit
Word
(D)
n
Processing details
■DSFR
• Shifts data n points from device designated by (D) 1-word to the right.
n
D
+(n-1)
D
+(n-2)
D
+(n-3)
555
212
325
D
+(n-1)
D
+(n-2)
D
+(n-3)
D
0
555
212
Filled with 0.
• The device designated by (D)+(n-1) is filled with 0.
■DSFL
• Shifts data n points from device designated by (D) 1-word to the left.
D
+(n-1)
D
D
+(n-2)
+(n-3)
555
120
325
D
D
+(n-2)
+(n-1)
120
325
• The device designated by (D) is filled with 0.
LCPU
Command
Command
R, ZR
J\
Bit
D
+2
D
+1
D
100
50
40
+(n-4)
D
+1
D
325
100
50
n
D
+2
D
+1
D
100
50
40
D
D
D
D
+3
+2
+1
100
50
40
0
indicates an instruction symbol of DSFR/DSFL.
P
U\G
Zn
Word
Filled with 0.
7 APPLICATION INSTRUCTIONS
n
D
n
D
Constant
Others
K, H
7.3 Shift Instructions
7
399

Advertisement

Table of Contents
loading

Table of Contents