DSFL
- 173 -
Program example
(1) Program to shift the details of D683 to 689 to the left when M10 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD M10
11 DSFL D683 K7
D683DSFL K7
M10
10
(pulse coding)
15
Before execution
After execution
0
D683
0
Designation range of DSFL command
D689 D688 D687 D686 D685 D684
-100
503
503
600
600 -336
-336
3802
3802
-32765
-32765
5003
5003
Left shift of data with DSFL command
(2) Program to shift the details of R6 to 9 to the left when M6 turns ON.
Coding
No. of
steps
Com-
mand
Device
10 LD M6
11 DSFL R6 K4
R6DSFL K4
M6
10
(pulse coding)
15
Before execution
After execution
0
R5
-200
Designation range of DSFL command
R11 R10 R9 R8 R7 R6
-200
100 0
100 200 503
503
760
760
-3276
500
500
-3276
Left shift of data with DSFL command