发布网友 发布时间:2022-04-24 18:33
共1个回答
热心网友 时间:2023-11-01 20:45
程序举例铣椭圆:轨迹:椭圆程序代码如下:N10 G54 G90 G0 S1500 M03N12 X0 Y0 Z20.N14 G0 Z1N16 G1 Z-5. F150.N18 G41 D1N20 #1=0N22 #2=34N24 #3=24N26 #4=#2*COS[#1]N28 #5=#3*SIN[#1]N30 #10=#4*COS[45]-#5*SIN[45]N32 #11=#4*SIN[45]+#5*COS[45]N34 G1 X#10 Y#11 N36 #1=#1+1N38 IF [#1 LT 370] GOTO26N40 G40 G1 X0 Y0 N42 G0 Z100N44 M30 铣矩形槽:铣矩形槽代码如下:#102=0.N3#100=0.#101=0.#103=200.#104=400.G91G28Z0.G0G90G54X0.Y0.G43H1Z20.M3S2000.N4G0X#100Y#101G01Z#102F200.#102=#102-2.IF[#102EQ-50.]GOTO1GOTO2N2N4X#104F500.Y#103X#100Y#101#100=#100+10.#101=#101+10.#103=#103-10.#104=#104-10.IF[#100EQ100.]GOTO3GOTO4N3N1M5M9G91G28Z0.G28Y0.M30其他不一一举例了