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:

Tap with Peck


Recommended Posts

Hi.

I added the cycle Tap with Peck in post processor.  When I write peck = 3, I have good code:

T17 M6
G0 G90 G54 X0. Y0. S400 M3
G43 H17 Z25.
M8
Z2.
G99 G84 R2. Z-6.667 F400.
X0. Y0. Z-13.334
X0. Y0. Z-20.001
X10. Y0. Z-6.667
X10. Y0. Z-13.334
X10. Y0. Z-20.001
G80
Z25.
M09

When I write peck = 2, I have a  bad code:

T17 M6
G0 G90 G54 X0. Y0. S400 M3
G43 H17 Z25.
M8
Z2.
G99 G84 R2. Z-10. F400.
X0. Y0. Z-20.
G99 G84 Z-20. F400.  not the desired part
X10. Y0. Z-10.
X10. Y0. Z-20.
Z-20.  not the desired part
G80
Z25.
M09

 

I don't now,  where i did mistake

Edited by VK-8
Link to comment
Share on other sites
2 hours ago, VK-8 said:

Hi.

I added the cycle Tap with Peck in post processor. 

pdrlcst12            #Canned Tap Cycle with Peck Inc
      pdrlcommonb
#      result = newfs(17, feed)  # Set for tapping Feedrate format	  
		if peck1$ = 2,
	   [pcan1, pbld, n$, *sgdrlref, "G84", prdrlout, pxout, pyout, *pfzout2,
        *feed, strcantext, e$
		n$, [if dwell$ > 0, "M00"] e$
	 zabs = zabs - (refht_a - 2 - zabs), zinc = zinc / peck1$ 
		n$, *pfxout, *pfyout, pfzout, e$
		pcom_movea]
		
		if peck1$ = 3,
	  [pcan1, pbld, n$, *sgdrlref, "G84", prdrlout, pxout, pyout, *pfzout3,
        *feed, strcantext, e$
		n$, [if dwell$ > 0, "M00"] e$
	 zabs = zabs - ((refht_a - 2 - zabs)), zinc = zinc / peck1$ 
		n$, *pfxout, *pfyout, pfzout, e$
		n$, [if dwell$ > 0, "M00"] e$
	 zabs = zabs - ((refht_a - 2 - zabs) / 2), zinc = zinc / peck1$ 
		n$, pfxout, pfyout, pfzout, e$
      pcom_movea]
		else,
	 [pcan1, pbld, n$, *sgdrlref, "G84", prdrlout, pxout, pyout, *pfzout,
        *feed, strcantext, e$
		pcom_movea]	  
  	  

 

When I write peck = 3, I have good code:

T17 M6
G0 G90 G54 X0. Y0. S400 M3
G43 H17 Z25.
M8
Z2.
G99 G84 R2. Z-6.667 F400.
X0. Y0. Z-13.334
X0. Y0. Z-20.001
X10. Y0. Z-6.667
X10. Y0. Z-13.334
X10. Y0. Z-20.001
G80
Z25.
M09

When I write peck = 2, I have a  bad code:

T17 M6
G0 G90 G54 X0. Y0. S400 M3
G43 H17 Z25.
M8
Z2.
G99 G84 R2. Z-10. F400.
X0. Y0. Z-20.
G99 G84 Z-20. F400.  not the desired part
X10. Y0. Z-10.
X10. Y0. Z-20.
Z-20.  not the desired part
G80
Z25.
M09

 

I don't now,  where i did mistake

 

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...