Pretty sure those are not variables available in the post. They are used for internal calculations when you select a tool. If you Pick a deill and select Peck/Chip cycle, it will calc the peck by that percentage.
Mike Mattera
I don't know if the terms "Field" or "Flag" are correct, but I'll run with it because it's pretty straight forward.
The image below everyone has seen before. I can't work out what the "Field" called Chip Break (%dia) uses as its "Flag" in the .pst file I've customised for an Okuma 45X-VAE mill. (Marked with red arrow.)
The two fields marked with blue and green arrows are working for me, as seen in the next image.
My question is: what is the flag name for the Chip Break (%dia) field?
Thanks in advance,
Luke
Pretty sure those are not variables available in the post. They are used for internal calculations when you select a tool. If you Pick a deill and select Peck/Chip cycle, it will calc the peck by that percentage.
Mike Mattera
Tips For Manufacturing Training CD's, DVD's for Mastercam, SolidWorks, Inventor, G-Code Training & More
http://www.tipsforcadcam.com
Hi Mike.
I've proven that they can work. I've set up all my drills with a 30% peck1, a 60% peck2 and a 40% chip break ratio.
I've altered a Fanuc/Haas pst file and actually cut and pasted the peck2 line in (second image; previous post) and introduced a J designation letter for it. I then replaced the previous peck1 designation letter Q with an I.
This is because Okuma mills can make use of complex deep-hole cycle pecks. eg:
G83 Z-90. R3. I2.5 J7.5 F95. M53
It's like a combination of a G73 and a G83 cycle. Chipbreak - chipbreak - chipbreak - R-retract - Z-return - chipbreak - chipbreak - chipbreak - R-retract etc.
Whereas Fanuc control only understands a Q peck for G83 deep hole cycles.
Anyway, what got me asking this question was when I added the *peck2, flag into the peck cycle unit lower down in the post, the bloody thing worked!
So, I reckon if I could find out the flag for the Chip Break (%dia) field, I'd have the simple peck cycle set for my G73 cycles at the 40% I want instead of the 30% I'm using now.
This might seem a bit of a control-freak overdose, but I'd much rather think about something once and have it done for good. That way I've only to change my speeds and feeds for materials other that the mild steel I have them currently set for.
Luke.
You want sometiming like this
Code:ppeck$ #Canned Peck Drill Cycle pdrlcommonb if initht$ <> refht$, [ drillref = zero russ_initht = initht$ pbld,n$,"G71", *russ_initht, e$ ] if peck1$ = 0 , result = mprint(speck1error) # if value not inserted then error if peck2$ > zero , result = nwadrs(stri, peck1$) #if value added then peck1 turns into I address pcan1, pbld, n$, *sgdrill, pfxout, pfyout, pfzout, pcout, prdrlout, *peck1$, peck2$, *feed, *sgdrlref, strcantext, e$ pcom_movea pchpbrk$ #Canned Chip Break Cycle pdrlcommonb if initht$ <> refht$, [ drillref = zero russ_initht = initht$ pbld,n$,"G71", *russ_initht, e$ ] if peck1$ = 0 , result = mprint(speck1error) if peck1$ > zero , result = nwadrs(strq, peck1$) pcan1, pbld, n$, *sgdrill, pxout, pyout, pfzout, pcout, prdrlout, *peck1$, *feed, *sgdrlref, strcantext, e$ pcom_movea
Thanks Superman.
I used the "result = nwadrs(stri/q, peck1$)" new-address strings after adding the "stri/q" sting changer bits higher up in the post. I couldn't get your full offering to output a Z-value with the G71 string, so I left that out. I had already put a G71 Z50. string up the top of the program (helps to mentally double check clearances as I'm posting, I find).
Thanks again.
Luke.