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 TIP TREATMENT parameter number, please help


Recommended Posts

Hello everyone,

  In X9 version under the DEFINE TOOL GEOMETRY, then DEFINE TAP....

 

     Under the TIP TREATMENT, there are two options for us to choose:

     1: PLUG

     2: BOTTOMING

 

 

   I would like to use these value to my post and I would like to know what is the parameter number for each of them.  I tried to look at the old parameter PDF files and they didn't exist.  Thank you for your respond.

 

 

Please click on this link below for image illustration:

 

https://drive.google.com/file/d/0B4UZsmondnEzcEtyV0xiTG9Za2s/view?usp=sharing

Link to comment
Share on other sites

I'm not up to X9 still, but I would assume it's similar to X6.  Do a parameter dump.

 

Look for this:

pparameter$      #Information from parameters
      #"pwrttparam", ~prmcode$, ~sparameter$, e$

 

Get rid of hashtag:

pparameter$      #Information from parameters
      "pwrttparam", ~prmcode$, ~sparameter$, e$

 

Post it twice, 1 with bottoming, 1 with plug setting and then run a file compare, you should be able to find a parameter number there.

  • Like 2
Link to comment
Share on other sites

I'm not up to X9 still, but I would assume it's similar to X6.  Do a parameter dump.

 

Look for this:

pparameter$      #Information from parameters

      #"pwrttparam", ~prmcode$, ~sparameter$, e$

 

Get rid of hashtag:

pparameter$      #Information from parameters

      "pwrttparam", ~prmcode$, ~sparameter$, e$

 

Post it twice, 1 with bottoming, 1 with plug setting and then run a file compare, you should be able to find a parameter number there.

 

Hello BD,

   After 2 hours of trying, I think i'm almost there and I think I'm stuck on something... please help.

 

#Custom Define

fmt "" 2 TipTreatmentfmt "" 2 sPlugTapfmt "" 2 sBottomingTap
# Tap Tip Treatment Table Selectsplug    : "Cut Tap"      #Plug tapmode sbottoming: "Roll Tap"    #Bottoming tap modesplugbottoming: ""        #Target stringfstrsel splug TipTreatment splugbottoming 2 -1
# --------------------------------------------------------------------------# Tool Comment / Manual Entry Section# --------------------------------------------------------------------------ptoolcomment    #Comment for tool      tnote = t$      toffnote = tloffno$      tlngnote = tlngno$      tldianote = tldia$      spaces$ = 0      scomm_str, *tldia$, pstrtool, ", ", *stlmat, ptcr, ptdia, pcut_tl, scomm_end, e$      scomm_str, [if n_flutes1 > 1, *n_flutes1, "FLTS"], [if n_flutes1 = 1, *n_flutes1, "FLT"], *flute_len, [if tool_typ$ = 4 | tool_typ$ = 5, *TipTreatment], [if shldr_len > flute_len, *shldr_len], *oa_len, scomm_end, e$

ptooltable # Write tool table, scans entire file, null tools are negative

           tnote = t$           toffnote = tloffno$           tlngnote = tlngno$           spaces$=0           if t$ >= zero,             [             scomm_str, *t$, "=", *tldia$, pstrtool, ", ", *stlmat, ptcr, ptdia, [if (cut_ability = 1 | cut_ability = two) & tool_typ$ > 9 & not (tool_typ$ = 12), pcut_tl], [if tool_typ$ = 4 | tool_typ$ = 5, *TipTreatment], scomm_end, e$             no_spc$, scomm_str, [if n_flutes1 > 1, *n_flutes1, "FLTS"], [if n_flutes1 = 1, *n_flutes1, "FLT"], *flute_len, [if shldr_len > flute_len, *shldr_len],  [if tool_typ$ = 4 | tool_typ$ = 5, *TipTreatment], *oa_len, scomm_end, e$             

####### G-Code output###############

%

O1174(0041-63174 Rev04 - Op1.NC POST REV.122)
(*)
(TOOLS LIST)
(T5=.5000, 1/2-13 CUT TAP, HSS,1.)
(1FLT 1.656LOC, 1.656LBS,1. 1.75LOH) ===============> 1.is BOTTOMING selection and 0. is PLUG selection.... (how do I make 1. becomes BOTTOMING?)
(==================)
(*)
(WORK OFFSET LIST)
(G54 B90.)
(XY0= Center of stock)
(Z0= Top of stock)
(*)
N5(.5000, 1/2-13 CUT TAP, HSS,)
(1FLT 1.656LOC,1. 1.656LBS, 1.75LOH)===============> 1.is BOTTOMING selection and 0. is PLUG selection.... (how do I make 1. becomes BOTTOMING?)
G0 G17 G40 G49 G80 G90
G91 G28 Z0. M19
T5 M6(Tap 1x 1/2-13 hole, CUT#8)
G90 G54
X0. Y.075 S200 M3
G43 H5 Z1. M8(DOC= Z-.5)
G90
M29 S200(RIGID TAP)
G98 G84 Z-.5 R0. F15.38
G80 M9
G91 G28 Z0. M5
G28 Y0.
G90 G54 X0.
M1
M30
%
Link to comment
Share on other sites

Your code:

ptoolcomment    #Comment for tool
      tnote = t$
      toffnote = tloffno$
      tlngnote = tlngno$
      tldianote = tldia$
      spaces$ = 0
      scomm_str, *tldia$, pstrtool, ", ", *stlmat, ptcr, ptdia, pcut_tl, scomm_end, e$
      scomm_str, [if n_flutes1 > 1, *n_flutes1, "FLTS"], [if n_flutes1 = 1, *n_flutes1, "FLT"], *flute_len, [if tool_typ$ = 4 | tool_typ$ = 5, *TipTreatment], [if shldr_len > flute_len, *shldr_len], *oa_len, scomm_end, e$

 

 

New:

ptoolcomment    #Comment for tool
      tnote = t$
      toffnote = tloffno$
      tlngnote = tlngno$
      tldianote = tldia$
      spaces$ = 0
      scomm_str, *tldia$, pstrtool, ", ", *stlmat, ptcr, ptdia, pcut_tl, scomm_end, e$
      scomm_str, [if n_flutes1 > 1, *n_flutes1, "FLTS"], [if n_flutes1 = 1, *n_flutes1, "FLT"], *flute_len, [if tool_typ$ = 4 | tool_typ$ = 5, pTipTreatment], [if shldr_len > flute_len, *shldr_len], *oa_len, scomm_end, e$

 

 

Create a new postblock:

pTipTreatment

         if TipTreatment = 0, "PLUG "

         if TipTreatment = 1, "BOTTOMING "

 

Or your could use an argument with string variables, but this is cheap and easy.

  • Like 1
Link to comment
Share on other sites

Your code:

ptoolcomment    #Comment for tool

      tnote = t$

      toffnote = tloffno$

      tlngnote = tlngno$

      tldianote = tldia$

      spaces$ = 0

      scomm_str, *tldia$, pstrtool, ", ", *stlmat, ptcr, ptdia, pcut_tl, scomm_end, e$

      scomm_str, [if n_flutes1 > 1, *n_flutes1, "FLTS"], [if n_flutes1 = 1, *n_flutes1, "FLT"], *flute_len, [if tool_typ$ = 4 | tool_typ$ = 5, *TipTreatment], [if shldr_len > flute_len, *shldr_len], *oa_len, scomm_end, e$

 

 

New:

ptoolcomment    #Comment for tool

      tnote = t$

      toffnote = tloffno$

      tlngnote = tlngno$

      tldianote = tldia$

      spaces$ = 0

      scomm_str, *tldia$, pstrtool, ", ", *stlmat, ptcr, ptdia, pcut_tl, scomm_end, e$

      scomm_str, [if n_flutes1 > 1, *n_flutes1, "FLTS"], [if n_flutes1 = 1, *n_flutes1, "FLT"], *flute_len, [if tool_typ$ = 4 | tool_typ$ = 5, pTipTreatment], [if shldr_len > flute_len, *shldr_len], *oa_len, scomm_end, e$

 

 

Create a new postblock:

pTipTreatment

         if TipTreatment = 0, "PLUG "

         if TipTreatment = 1, "BOTTOMING "

 

Or your could use an argument with string variables, but this is cheap and easy.

 

Thank you BD,

   It works perfect as I expected.  I'm thankful for your valuable knowledge.

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