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