JamieR Frequent Poster
Joined: 30 Jun 2004 Posts: 54 Location: Chicago
|
Posted: Fri Jul 02, 2004 12:08 pm Post subject: How To Time Your Tools on a Mazak |
|
|
Have you ever wanted to compare the time your CAM system says a tool will take to the actual time it takes on the machine?
Don't stand around with a stop watch, this simple macro will do it automatically.
At the beginning of the tool you want to time add #3001=0 to reset the machine's timer to 0. Then add M98P9100 to the end of the tool. The macro will put the time for the tool in variable 510 plus the tool number. For example, the time for tool 1 will be stored in #511. This macro is useful if you embed it into your CAM system's post processor and output it as part of the CNC program.
Code: | %
O9100
#2=#51999(ACTIVE TOOL)
#100=#3001(TIMER VALUE)
#100=#100/1000
#[510+#2]=#100(WRITE TIME)
M99
% |
JamieR |
|