Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

How do I force pfzout at the end of sg80?


Recommended Posts

Hello everyone,
   I am trying to force "PFZOUT" at every G80 of drill cycle and it seems like it does but it has another extra PFZOUT that I would not it force out unless not a drill cycle.  Please take a look below for the G-CODE and I tried to look for any other PFZOUT, didn't seem to work well.  What have I done wrong?  Thank you.

 

=============================

N34( .7500, 3/4 SPOTTER, HSS, 90.DEGS,)
(2FLTS .375LOC, .375RLF, 2.00STO)
G0 G17 G40 G49 G80 G90
G91 G28 Z0 M19
G28 Y0.(TOOLPATH STO= .70 MIN.)
G28 X0.
T34 M6(SPOT 1X 1/2-13 STI, CUT#260)
G90 G59 B0. S2500 M3
X7.7788 Y7.204(1X SPOT)
G43 H34 Z20. T125 M8(DOC= Z18.8344, .3267 DEEP)
G5.1 P1 Q1
G99 G81 Z18.8344 R19.285 F5.
G80
Z20. (EXTRA HERE ======================= > Yes, it works good)
G5.1 Q1
(*)
N342(SPOT 1X 1/2-13 STI, CUT#262)
G91 G28 Z0.(ROTATING TO, OP4 - B135)
G0 G90 G58 B0. (TOOLPATH STO= 1.42 MIN.)
G43 H34 Z22.(DOC= Z18.8344, .3267 DEEP)
G5.1 P1 Q1
X-7.7788
G99 G81 Z18.8344 R20. F10.
G80
Z22. (EXTRA HERE ======================= > Yes, it works good)
G5.1 Q1
(*)
N343(SPOT X 1/2-13 STI, CUT#267)
G91 G28 Z0.(ROTATING TO, OP4 - B90)
G0 G90 G55 B0. (TOOLPATH STO= .83 MIN.)
G43 H34 Z22.(DOC= Z20.4714, .3271 DEEP)
G5.1 P1 Q1
X-2.3885 Y6.065
Z21.0485
G99 G81 Z20.4714 R21.0485 F10.
X3.8485 Y4.831
G80
Z21.0485 (EXTRA HERE ======================= > no, it does not good, it should be Z22. where the G43 H34 Z22.)
G5.1 Q1
Z22. (Where is this coming from?)
(*)
N344(SPOT 2X 1/2-13 STI, CUT#273)
G91 G28 Z0.(ROTATING TO, OP4 - 270)
G0 G90 G57 B0. (TOOLPATH STO= .78 MIN.)
G43 H34 Z22.(DOC= Z20.4714, .3271 DEEP)
G5.1 P1 Q1
X-3.8485
Z21.
G99 G81 Z20.4714 R21. F10.
X2.3885 Y6.065
G80
Z21. (EXTRA HERE ======================= > Yes, it works good)
G5.1 Q1
Z22.
M1

 

===================== defined =====================

pcanceldc$       #Cancel canned drill cycle
      result = newfs (three, zinc)
      z$ = initht$
      prv_zia = initht$
      pxyzcout
      !zabs, !zinc
      prv_gcode$ = zero
      if cool_zmove = yes$ & (nextop$=1003 | (nextop$=1011 & t$<>abs(nexttool))), coolant$ = zero
      pcan
      #if sav_mi1 <> zero & sav_mi2 <> zero,
        #[
         #*sav_mi2, e$
         #sav_mi1 = zero
         #]
      pcan1, pbld, no_spc$, [if drillcyc$ < 12, sg80], strcantext, scoolant, e$
      result = newfs(15, feed)  #Reset the output format for 'feed'  

      if drillcyc$ = 7 & retr$ > 0, #Used for "Before Gcode"
        [
        result = newfs(4, retr$) #Output as Integer
        result = nwadrs("G",retr$) #Change output string to "G"
        pbld, no_spc$, *retr$, no_spc$, "(ENDING TAP CYCLE G-CODE)", e$
        ]
      #pcan2 #COOLANT AFTER
	  pfzout, "(EXTRA HERE)", e$ ===========================> Defined here
	  if HorizontalCellSystem = 2 & opcode$ = 3, "G5.1 Q1", e$
Link to comment
Share on other sites
17 hours ago, Newbeeee™ said:

Just an observation but I don't think G05.1 is allowed for drilling cycles

It is a special code for Niigata old machine, it I don't have it, won't allow me to override feed and rpm at the control.

 

Thank you for your feedback.

Link to comment
Share on other sites
1 hour ago, Leon82 said:

It works.

Some FANUC will alarm during rigid tapping however

A few years ago when looking into the subject, I recall that on some instances on older controls, it would accept the G05 call, but could lead to inaccuracies on depths.

Hence the general Fanuc statement of not calling it within a canned cycle.

G08 is okay to be called within a canned cycle though

Link to comment
Share on other sites

Now that I think about it I had this question and JP gave me the idea to save the clearance height at the beginning of the drill cycle then make a format statement for z_retract.

Something like z_retract=intiht .....

I can seem to find it now but it's in the post forum

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...