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 number and M6 on same line


Recommended Posts

Is there a way would to the post a M6 after the tool number? Is the area I below what needs to be changed?

 

 

Thank You

 

# --------------------------------------------------------------------------

# Start of File and Toolchange Setup

# --------------------------------------------------------------------------

p_goto_strt_tl #Make the tool start up at toolchange

pfd_shft_inc

psign_ang_out

 

##### Custom changes allowed below #####

 

#Unlock rotary axis

if use_clamp,

[

p_lock = zero

s_lock = zero

pbld, n$, s_slock, e$

pbld, n$, s_plock, e$

]

if stagetool <= one, pbld, n$, *t$, "M6", e$

 

if n_tpln_mch > m_one, #Toolplane mapping mode

[

#Enter your mapping scheme here...

pg68_map

pbld, n$, "G43", *tlngno$, *zabs_s, e$

pbld, n$, *sg00, pwcs, "X0.", "Y0.", *zabs_s, e$

pcan1, pbld, n$, *sgcode, *xabs_s, *yabs_s, *p_out, *s_out, strcantext, e$

]

else, #5 axis and regular mode ( n_tpln_mch = -2)

[

if cut_ra_head & use_g45, #Swap xout and yout based on offset axis

[

tloffno2 = tlngno$ + g45_of_add

pcan1, pbld, n$, *sgcode, pwcs, *sgabsinc, *yout, *p_out, *s_out,

*speed, *spindle, pgear, strcantext, e$

pbld, n$, "G45", *tloffno2, *xout, e$

]

else,

[

pcan1, pbld, n$, *sgcode, pwcs, *sgabsinc, *xout, *yout, *p_out, *s_out,

*speed, *spindle, pgear, strcantext, e$

]

]

if stagetool = one, pbld, n$, *next_tool$, e$

Link to comment
Share on other sites

here is what i would do and im no post guru

 

pbld, n$, s_slock, e$

pbld, n$, s_plock, e$

]

if stagetool <= one, pbld, n$, *t$, e$ <<<<<<<<<<<<remove M6

pbld, n$, "M6", e$<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< add this line

if n_tpln_mch > m_one, #Toolplane mapping mode

[

 

should give you the output

T?

M6

 

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