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:

tapflag=1


Mr. Dayshift
 Share

Recommended Posts

Hello,

 

I'm think i need to activate 'tapflag' so that my code will have a 'G95' before and a 'G94' after the tapping cycle. Where , if necessary do i make the change? Thanks in advance. I'm using MCX,MR2 and MPMASTER.

 

 

ptap$ #Canned Tap Cycle

pdrlcommonb

#RH/LH based on spindle direction

if use_pitch, pbld, n$, "G95", e$

if use_pitch = 0,

[

pbld, n$, "M29", *speed, e$

pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout,

prdrlout, *feed, strcantext, e$

]

else,

[

if met_tool$, pitch = n_tap_thds$ # Tap pitch (mm per thread)

else, pitch = 1/n_tap_thds$ # Tap pitch (inches per thread)

pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout,

prdrlout, *pitch, !feed, strcantext, e$

]

pcom_movea

tapflg = 1

 

**************************************************

 

 

pcanceldc$ #Cancel canned drill cycle

result = newfs (three, zinc)

if tap_feed = one & drillcyc$ = three, result = newfs (15, feed) #Cancel tap feeds with 4/3 decimal places

if drillref = 0, z$ = initht$

else, z$ = refht$

!z$

if cuttype = one, prv_zia = initht$ + (rotdia$/two)

#else, prv_zia = initht$ #G91 Z depth from initial height

else, prv_zia = refht$ #Fanuc style - G91 Z depth from R level

pxyzcout

!zabs, !zinc

prv_gcode$ = zero

if cool_zmove = yes$ & (nextop$=1003 | (nextop$=1011 & t$<>abs(nexttool))), coolant$ = zero

pcan

if drillcyc$ <> 8, pcan1, pbld, n$, "G80", scoolant, strcantext, e$

if use_pitch & tapflg = 1, pbld, n$, "G94", e$

pcan2

tapflg = 0

Link to comment
Share on other sites

Find this in the post.

code:

 use_pitch   : 1     #0 = Use feed for tapping, 1 = Use pitch for tapping 

The Mpmaster in its stock state will have a 0 change that to a 1 as above.

 

Now you will get a G95 for tapping and it will change back to G94.

 

 

HTH

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