椭圆宏程序变成的程序 FANUC程序
椭圆为 100 60的计算如下
G90G54G00Z100
M03S1000
X0Y0
X100
Z10
G01Z0F500
#1=0
N1#1=#1+1
G03X[50*COS[#1]]Y[30*SIN[#1]]R100
IF[#1LE360]GOTO1
G00Z100
X0Y0
M30
G90G54G00x80y0M3s1500
G43H01z100
#1=0
wHILE[#1LE15]DO1
#1=#1+1
G01Z-#1F2000
G42D1x50
#2=0
WHILE[#2LE360]DO2
#2=#2+1
G01X[cos[#2]*50]Y[sin[#2]*30]
END2
G40x80Y0
END1
G90G00Z100
M30