Oct 29, 2021 Tso lus

Spiral interpolation milling macro program


O0001

#1=30 (qhov taub)

#2=20 (qhov tob)

#3=20 (Txoj kab uas hla)

#4=0 (Z ua haujlwm)

#5=1 (txiav qhov tob ntawm txhua txheej)

#6=[#1-#3]/2 (Swivel diameter of tool center) S2000 M03

G54 G90 G00 X0 Y0 Z50.

G0X#6 (G0 sai sai txav saum lub cuab yeej qis)

Z[-#4+1] (G0 poob rau 1. ntawm Z-#4 nto, uas yog, ntawm Z1.)

G1Z-#4F200. (G1 nyob rau hauv Z kev taw qhia poob mus rau tam sim no pib qhov tob ntawm kev ua Z-#4)

WHILE[#4LT#2]DO1 (thaum ua qhov tob #4 tsawg dua qhov tob #2, lub voj voog txoj haujlwm 1)

#4=#4+#5 (txiav qhov tob ntawm txhua txheej)

G3I-#6Z-#4F500. (G03 counterclockwise kauv ua rau txheej tom ntej)

END 1 (End of loop 1)

G3I-#6 (mus txog qhov tob ntawm lub qhov, G03 taug kev tag nrho lub voj voog counterclockwise)

G1X[#6-1] (G01 rov 1 mus rau qhov chaw, uas yog, thim lub cuab yeej)

G0Z50.

M30



Xa kev nug

whatsapp

skype

Tug

Kev nug