Dec 10, 2022 Tso lus

NC programming class: helical 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 (kev sib hloov txoj kab uas hla ntawm lub chaw cuab yeej) S2000 M03

G54 G90 G00 X0 Y0 Z50.

G{{0}}X#6 (G0 sai sai txav mus rau saum toj kawg nkaus)

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

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

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

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

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

END 1 (kawg ntawm lub voj 1)

G3I-#6 (mus txog qhov tob ntawm lub qhov puag ncig, G03 taug kev tag nrho lub voj voog rov ua haujlwm)

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