|
%
O5610
G54
G5.1Q1
#30=150.
#530=800.
#520=1600.
#521=2600.
G52X0.Y0.Z0.
#7=50.
#17=10.
#1=0
#6=1
#8=0
#10=0.
#24=200.
#25=2.
#26=50.
#130=10.
#121=0
#122=0
#113=#24/2-#7/2-#130
#120=#24/2-#7/2
IF[#26GT#17*2]THEN#122=1
IF[#122EQ1]THEN#121=#17-1.
G0G90G43H0Z#30
S#530M3
N1
IF[#6EQ0]GOTO2
#120=#120+#6
#10=#10+#6
IF[#10GE#25]GOTO2
GOTO3
N2
#120=#24/2-#7/2+#25
#10=#25
N3
#100=ABS[#10]*TAN[#1]
#101=[1-1/COS[#1]+TAN[#1]]*#8
#110=[[#26/2-#17/2]*1000]/1000-#100+#101
#126=[#26/2*1000]/1000-#100+#101
#127=#130+#7/2.0
#131=#120-#130
IF[#127GE#120]GOTO100
IF[#126LT#17/2]GOTO100
#111=#110
N4
G0G90X0Y#113
G01Z#111F6000.
G01X#130Y#131F#520
G03X0Y#120R#130
G03J-#120F#521
G03X-#130Y#131R#130
G01X0Y#113
IF[#26EQ#17]GOTO6
IF[#122EQ0]GOTO5
IF[#111EQ[-#110]]GOTO6
IF[#122EQ1]THEN#111=#111-#121
IF[#111LE[-#110]]THEN#111=-#110
IF[#122EQ1]GOTO4
N5
IF[#111EQ[-#110]]GOTO6
#111=-#110
GOTO4
N6
IF[#6EQ0.05]GOTO100
IF[#10EQ#25]GOTO100
GOTO1
N100
G0G90Z#30
M5
M9
G0G91G28Z0.
M30
% |
|