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:

Tool Change code for Tapping


Recommended Posts

Looking to change the tool change code line for tapping

 

need to remove the S460 and  M03 for the tap tool 

 

Current:

(  27/64 DRILL   )
#7=#902
G00 G90 G54 X4.535 Y15.25 S4500 M03
G43 H#902 D#7 Z2.
G98 G83 Z-1.25 R.1 Q.15 F20.
Y.5
G80
G14
 (TAP  -2-  HOLES)
M6 T#903
T#901
M11
M10
( 1/2-13 UNC   )
#7=#903
G00 G90 G54 X4.535 Y15.25 S460 M03
G43 H#903 D#7 Z2.
G95
M05
M135 S460
G98 G84 Z-.5 R.1 F.076923
Y.5
G80
G94
G14
M30

 

Need to be:

(  27/64 DRILL   )
#7=#902
G00 G90 G54 X4.535 Y15.25 S4500 M03
G43 H#902 D#7 Z2.
G98 G83 Z-1.25 R.1 Q.15 F20.
Y.5
G80
G14
 (TAP  -2-  HOLES)
M6 T#903
T#901
M11
M10
( 1/2-13 UNC   )
#7=#903
G00 G90 G54 X4.535 Y15.25
G43 H#903 D#7 Z2.
G95
M05
M135 S460
G98 G84 Z-.5 R.1 F.076923
Y.5
G80
G94
G14
M30

 

Thanks for your help

 

 

Link to comment
Share on other sites

First in your pparameter$ post block insert the following:

      if prmcode$ = 20004, ttype = rparsngl(sparameter$, 2)

 

Define the variable:
fmt      4  ttype       #Read tool type

 

Then in your tool change postblock replace *speed, *spindle with:

[if ttype <> 4 & ttype <> 5 & drillcyc$ <> 14 & drillcyc$ <> 15, *speed, *spindle]

 

Hope this helps, it's what I use.

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