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 Breakage Check


Recommended Posts

Well, try this...I got this years ago from a Mazak AE, we use it on all of out HMC's

The M33, M198, M34 codes might need to be changed based on the M codes your machine will use for extending the arm, measuring and retract the arm..

O99999999(TOOL BREAKAGE MACRO)
#521=-31.11023 (INDICATE CENTER OF PISTON AND ENTER VALUE HERE)
(X AXIS TOOL MEASUREMENT POSITION)
#522=-31.46456 (INDICATE CENTER OF PISTON AND ENTER VALUE HERE)
(Y AXIS TOOL MEASUREMENT POSITION)

(TOOL BREAKAGE DETECTION)
N1 IF[#51999EQ0.]GOTO10
#523=#4001
#524=#4003
#525=#4005
#526=#4006
#100=#[60000+#51999]
#102=.02  (LENGTH CHANGE AMOUNT)
G00G28G49G91G94Z0.
G53G90X#521Y#522M19M33
M198
M34
N2
#101=#[60000+#51999]
#[60000+#51999]=#100
G#523G#524G#525G#526
IF[[#100-#101]GT#102] GOTO111
IF[[#101-#100]GT#102] GOTO112
M99
N111 G00G91G28Z.0
     #[63000+#51999]=1.
GOTO999
 
N10 #3000=21(-NO-TOOL-IN-SPINDLE)
M99
 
N999
G0G28G49G59G91Z.0
G28X.0Y.0
G90
#3000=22(-TOOL-IS-BROKEN)
(THIS IS WHERE YOU WILL CONFIGURE)
M30

N112 #3006=1(TOOL-IS-LONGER-THAN-IT-WAS)
GOTO1
M99

I call it at the end of the tool

M9
M5
G0G28G91Z0.
G90G10L10P#51999R0
G90G10L12P#51999R0
M01
M98P99999999
M01
()

 

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