|
加工平面的宏程序
O
(HUAHUI-GAN )
G90 G54 M3 S3000
#500=1100.
(CHANGDU )
#501=310 .
(KUANDU)
#502=50.
(BANJING)
(START)
#503=2.
#504=0.
#100=0
#101=0.
#101=-#101
#502=#502*0.8
#102=-#502
#501=FUP[#501/#502]* #502
N10G0 Z100.
X0 Y#102
Z15.
G1 Z-#101 F2000
N20 #102=#102+#502
IF[#102GT#501]GOTO 100
Y#102
X#500
#102=#102+#502
IF[#102GT#501]GOTO 100
Y#102
X0
IF[#102LE#501]GOTO 20
N100 #101=#101+#503
IF[#101LE#504]GOTO 10
#100=#100+1
#101=#504
IF[#504EQ1]GOTO 10
G0Z100.
M05
M30
|
|