8. Function Commands
SFL, SFLP
- 271 -
Execution conditions
The execution conditions for SFL, SFLP are as shown below.
Left shift command OFF
SFL
ON
Executed per scan
Executed per scan
SFLP
Program example
(1) Program that shifts the D8 data 5 bits to the left when M10 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD M10
11 SFL D8 K5
D8
SFL
K5
M10
10
(Pulse coding)
14
B15 B14 B13 B12 B11 B10 B9 B8 B7 B6 B5 B4 B3 B2 B1 B0
Carry flag
(SM12)
Before execution
After execution
0
0001110001100000
0
0110000011100011
D8
Left shift of data with SFL command (word device)