346
SFTWR, SFTWRP, SFTWL, SFTWLP
Program Example
(1) The following program shifts the contents of D683 to D689 to the right when XB is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
(2) The following program shifts the contents of D683 to D689 to the left when XB is turned ON.
[Ladder Mode]
[List Mode]
[Operation]
: Head number of the devices to be shifted (BIN 16 bits)
n1
: Number of words to be shifted (BIN 16 bits)
n2
: Number of shifts (BIN 16 bits)
SFTWR, SFTWRP
n-word shift to right of n-word data
SFTWL, SFTWLP
n-word shift to left of n-word data
7.3.5
SFTWR, SFTWRP, SFTWL, SFTWLP
• QnU(D)(H)CPU, QnUDE(H)CPU: The serial number (first five
digits) is "10102" or later.
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
n1
––
––
n2
––
––
Step
Instruction
Device
D686
D686
D689
D688
D687
D685
D684
D683
D689
D688
D687
D685
D684
D683
503
600
3802
5003
0
503
600
3802
Filled with 0.
Designation range for the DSFRP instruction
-32765
-336
-100
-100
-336
-32765
Step
Instruction
Device
D686
D686
D689
D688
D687
D685
D684
D683
D689
D688
D687
D685
D684
D683
-100
503
600
-336
3802 -32765
5003
503
600
-336
3802 -32765
5003
0
Filled with 0.
Designation range for the DSFLP instruction
Basic
High
performance
Process
Redundant
Universal
LCPU
Ver.
Command
Command
SFTWR, SFTWL
SFTWRP, SFTWLP
P
n2
n2
D
n1
n1
D
indicates an instruction s
y
mbol of SFT
W
R/SFT
W
L.
D
D