Shifting n-word data to the left by n word(s)
SFTWL(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions shift the n-word data starting from the specified device to the left by n word(s).
Ladder
(d)
FBD/LD
EN
ENO
n1
d
n2
■Execution condition
Instruction
SFTWL
SFTWLP
Setting data
■Description, range, data type
Operand
Description
(d)
Shift target device
(n1)
Number of devices to be shifted
(n2)
Number of shifts
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(d)
(n1)
(n2)
6 BASIC INSTRUCTIONS
374
6.5 Shift Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(n1)
(n2)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
ST
ENO:=SFTWL(EN,n1,n2,d);
ENO:=SFTWLP(EN,n1,n2,d);
Range
0 to 65535
0 to 65535
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Data type (label)
Word
ANY16
16-bit unsigned binary
ANY16
16-bit unsigned binary
ANY16
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
Others
$