Программирование конуса с помощью переменных
Разбор программы фрезеровки конуса.
Текст программы:
%
O0001
#100=(Start diameter)
#102=36.0(Finish z)
#103=(Conus angle)
#103=TAN[#103] (Functions which relate an angle of a)
(right-angled triangle to ratios of two side lengths.)
#104=0 (Start angle)
(1=361=721=..36001)
#110=(Z increment)
(Z ap = )
#111=1.(Calculation step)
#100=#100*0.5 (Radius)
G28 G91 Z0
G21 (mm)
G17 (XY) G40 G80
G90 (ABS Mode)
G49 (Disabled offset height tool)
G54
T01 M6
S1000 M3
F500
G43 (Enabled offset height tool)G00 Z10
G0X0Y#100
Z10
F500 G1 Z1
WHILE[#105LE#102] DO1
#105=#110*#104 (Z pos)
#106=#100-#105*#103 (Radius - Radius change step = Real Radius )
#107=SIN[#104] *#106
#108=COS[#104] *#106
G1X-#107Y#108Z-#105
#104=#104 #111
END1
G00Z10
G40
M30
%