11. Custom Macro
137
11.8
11.8
11.8
11.8 Example
Example
Example
Example
Example
Example
Example
Example 1
1
1
1
Program the parabola B in interval [0, 8] shown in Figure 11.1. The parabola
2
/
2
A
B
−
=
8
32
A
B
Ф
Ф
Ф
Ф16
16
16
16
Ф
Ф
Ф
Ф32
32
32
32
Figure 11.1 Custom Macro – Example 1
%3401
N1 T0101
N2 G37
N3 #10=0;
N4 M03 S600
N5 WHILE #10 LE 8
N6 #11=#10*#10/2
N7 G90 G01 X[#10] Z[-#11] F500
N8 #10=#10+0.08
N9 ENDW
N10 G00 Z0 M05
N11 G00 X0
N12 M30
Содержание HNC-18iT
Страница 27: ...2 Preparatory Function 23 G59...