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:

Error proofing gone bad.


savagkd
 Share

Recommended Posts

In an effort to insure the operator has loaded the correct length tool, I'm using the following in the header of the program.

 

/G10 L10 P9 R-24.716 (3/8 BULL ENDMILL 0.02 RAD)

 

/M6T9

/G65 P9862 B3. D9. H.03 I.375 J.012 R.375 T9.

 

The G10 line sets the desired tool length in the offset register. The H.03 in the tool measure line allows .03 error, anything over .03 errors out.

 

Block skips allow the operator to skip the tool measure for subsequent parts. Measuring 10 tools adds 2 min. to the 15 min. cycle time.

 

"Rant begins."

 

Today, the operator ran the first part with block delete off, and got a good part. On the second part he started the program, which read the G10, and when it moved to measure the tool, he stopped hit reset, turned block delete on and restarted the program. This overwrote the measured offset value with desired and scrapped 3 parts.

 

"Rant ends."

 

I should have seen that coming. My bonehead mistake.

 

Anyone have a better way to double check that the physical tool length is within a given value without the risk?

 

Thanks

 

Keith

Link to comment
Share on other sites

Just skip the G10 at the beginning. Input that theoretical length into a variable instead.

 

#850=-24.716

 

After your tool measure cycle, just compare the tool length to #850, instead of using the tolerance call in the tool setting macro.

 

Not sure what machine you're using, but on a Mazak, your length for T29 would be in #60029. T30 would be 60030, etc.

Link to comment
Share on other sites

Another option is to just set a flag that the G10 has been run, that isn't unflagged until the tool length measurement is complete. That way, if the operator tries to do the same thing he did earlier, it will stop him.

 

I think #750 should be available on a Haas. Maybe one of our Haas users can chime in? Just add these exact snippets of code to the first tool change/measuring sequence, and go test it out.

 

/#750=1.

/G10 L10 P9 R-24.716 (3/8 BULL ENDMILL 0.02 RAD)

/M6T9

/G65 P9862 B3. D9. H.03 I.375 J.012 R.375 T9.

/#750=0.

IF[#750=1.]GOTO555

GOTO556

N555M00(YOU G10ED THE TOOL WITHOUT RUNNING THE TOOL MEASUREMENT, DUMMY)

M30

N556

 

 

Here's a quick explanation of what's going on:

 

The #750=1 is basically a flag that's saying "we're cycling through with block skip off". It'll stay set at 1 until the tool measurement is complete. If he lets the machine finish the measuring cycle, the very next line is #750=0. So that turns your flag back off.

 

When it gets to IF[#750=1.]GOTO555, that's just checking whether or not the flag is still set. The GOTO is a line number "N555". On line N555, you have a program stop, with a note to explain why it stopped - and an M30 afterwards just in case the guy hits cycle start again anyways.

 

If everything ran correctly and #750 was set back to zero after the tool measuring call, the machine will simply read straight through the "IF[#750=1.]GOTO555" line, and hit the next line "GOTO556". N556 is just the block number for the line after your alarm lines - so the "GOTO556" just jumps you ahead 3 lines and the machine continues on its merry way.

  • Like 1
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...