N-Bit Shift To Right Or Left Of N-Word Data (Sftwr(P),Sftwl(P)) - Mitsubishi MELSEC Q Series Programming Manual

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

SFTWR(P),SFTWL(P)
7.3.5

n-bit shift to right or left of n-word data (SFTWR(P),SFTWL(P))

SFTWR(P),SFTWL(P)
SFTWR,SFTWL
SFTWRP,SFTWLP
Setting
Data
D
n1
n2
Function
SFTWR(P)
(1) This instruction shifts n1 words data in the devices starting from the device specified by
the right by n2 words.
n1=9, n2=4
(2) The n2 words data in the devices starting from the highest device are filled with 0s.
(3) If the value specified by n1 or n2 is 0, the instruction will be not processed.
(4) If the value of n2 is equal to or larger than the value of n1, the n1 words data in the devices
starting from the device specified by
7-56
Command
Command
: Head number of the devices to be shifted (BIN 16 bits)
D
n1 : Number of words to be shifted (BIN 16 bits)
n2 : Number of shifts (BIN 16 bits)
Internal Devices
R, ZR
Bit
Word
––
––
––
+8
+7
+6
D
D
D
D
30F
1E
100
0
H
H
H
+8
+7
+6
D
D
D
D
0
0
0
0
H
H
H
Filled with 0
H
Basic
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.
indicates an instruction symbol of SFTWR/SFTWL.
J
\
U
\G
Bit
Word
n1
+5
+4
+3
D
D
D
+2
1FF
10
1F
H
H
H
H
+5
+4
+3
+2
D
D
D
30F
1E
100
H
H
H
H
will be filled with 0s.
D
Ver.
High
Process
Redundant
Universal
performance
D
n1
n2
P
D
n1
n2
Constants
Zn
K, H
––
n2
+1
D
D
7FF
2A
H
H
+1
D
D
0
1FF
H
H
LCPU
Other
––
––
––
to
D

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents