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:

post help


sharles
 Share

Recommended Posts

I don't do much editting of my posts. But recently I've noticed that the end of my drill/tap/etc. files seems to have a "bug" in it. I opened the post file, and I think it looks ok. Here it is:

 

peof #End of file for non-zero tool

pretract

comment

#Remove pound character to output first tool with staged tools

if stagetool = one, pbld, n, *first_tool, "M06", e

n, "M30", e

mergesub

clearsub

mergeaux

clearaux

"%", e

 

But this is what I'm getting:

 

N290 M0

N295 T1 M30

N300 M30

%

 

In line N295 I'm getting T1 M30, but I want it to be T1 M06.

 

Is this a post problem, or is some other parameter somewhere else overriding what I want?

 

Thanks!

 

Oh, I'm finally in X2 MR2 SP1, but this glitch has been present for me in plain X2 as well.

Link to comment
Share on other sites

check your pretract post block. My guess is that the stagetool variable is not equal to 1, so that entire line (if stagetool=one...) isn't being output. So only the "M30" below is being output from peof. You can test this by putting another string literal output. change it to this:

 

code:

peof #End of file for non-zero tool 

pretract

comment

#Remove pound character to output first tool with staged tools

if stagetool = one, pbld, n, *first_tool, "M06", "test1", e

n, "M30", "test2", e

mergesub

clearsub

mergeaux

clearaux

"%", e

Link to comment
Share on other sites
  • 4 weeks later...

Colin,

 

Thanks for the reply but when I typed in what you suggested and posted another program it did the same thing as before. Any other suggestions? Or any one else?

 

Here is what my pretrac post block is. Is this where you thought something might be wrong?

 

pretract #End of tool path, toolchange

sav_absinc = absinc$

absinc$ = one

sav_coolant = coolant$

coolant$ = zero

#cc_pos is reset in the toolchange here

cc_pos$ = zero

gcode$ = zero

pbld, n$, sccomp, "M0", psub_end_mny, e$

# pbld, n, sgabsinc, sgcode, *sg28ref, "Z0.", scoolant, e

# pbld, n, *sg28ref, "X0.", "Y0.", protretinc, e

absinc$ = sav_absinc

coolant$ = sav_coolant

 

thanks if anyone can help.

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