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:

M01 after 1st tool change


Niezingerly
 Share

Recommended Posts

Good morning.

 

I am no post writer, not even a post hacker, really just a hack...

 

I am trying to get "M01" to output on the next line, after the tool change, at the first tool change.

 

All the subsequent tool changes have the M01 on the line right after the tool change, but the first tool change does not have it.

 

Here is what my current output looks like:

 

 

 

 

1st Tool change:

 

T9 M06

S18000 M3

G00 G90 G54 X-1.3938 Y-.3977

 

 

 

 

Any tool changes after that:

 

T17 M06

M01 ←←←This is what I want to see output at the 1st tool change...

S6500 M3

G00 G90 G54 X-.5847 Y-.3748

 

 

 

 

Where would I look in the post, and what would I change to get this to output the way I'd like to see it?

 

 

Any help is appreciated.

 

 

Thanks

Link to comment
Share on other sites

Just a post hack my self

I just copied the line from the "ptlchg$ #Tool change "

And dropped it in here:

 

psof$ #Start of file for non-zero tool number

if output_graph, pgraphics #Output Okuma Graphics Code, see pgraphics

pcuttype

toolchng = one

if ntools$ = one,

[

#skip single tool outputs, stagetool must be on

stagetool = m_one

!next_tool$

]

 

pbld, n$, *smetric, e$

pbld, n$, *sgabsinc, sg80, "G40", *sgcode, e$

sav_absinc = absinc$

if stagetool >= zero & tool_chg_str = zero, pbld, n$, *sgtchange, *t$, e$

 

if prog_stop = one, pbld, n$, *sm01, e$ (copied and added this line and it worked for me)

 

if stagetool >= zero & tool_chg_str = one,

[

sav_spc = spaces$, spaces$ = one, n$ = one, t_no = t$

#Start VTLCN CheckSh

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PEACE :D

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