Can anyone give me a simple example program in certain coordinates called subroutines.
0 BEGIN PGM 9001 MM
1 CYCL DEF 7.0
2 CYCL DEF 7.1 X+199.998
3 CYCL DEF 7.2 Y-31.725
4 CYCL DEF 7.3 Z-102.65
5 TOOL DEF 1 L+124.95 R+6.000
6 TOOL CALL 1 Z S 860.000
7 L X+0.00 Y+82.0 Z+10.0 R0 F9999 M
8 L Z+3.000 R0 F9999 M13
9 CALL LBL 1
10 L X-82.0 Y+0.0 R0 F9999 M
11 CALL LBL 1
12 L X+0.0 Y-82.0 R0 F9999 M
13 CALL LBL 1
14 L X+82.0 Y+0.0 R0 F9999 M
15 CALL LBL 1
16 L Z+10 R0 F9999 M05
17 L X+0.0 Y+150.0 Z+30.000 R0 F9999 M02
18 LBL 1
19 L Z+1.0 R0 F1500 M
20 L Z-11.0 R0 F500 M
21 L Z-12.35 R0 F40 M
22 L Z+3.0 R0 F9999 M
23 LBL 0
24 END PGM 9001 MM
In this way I have done, but not working properly. After the first execution of sub-program, jump to the first line in the program, and not to line 10, as it should be. Why?