Page 2 of 2

Re: Spindle hour meter

Posted: Wed Feb 24, 2021 12:39 pm
by ChrisAttebery
OK, thanks Marty.

Re: Spindle hour meter

Posted: Wed Feb 24, 2021 4:11 pm
by cncsnw
Look at the top of a recent report*.txt file.

Code: Select all

Machine Timers info
----------------------------
Power On        : 000037.931
Job in Progress : 000002.421
Spindle Running : 000000.480
Since           : 11/08/2020
CNC12 does track this information. There just isn't a well-established interface to it yet.

I believe the data is in the file mt.stats, which is included in the urf.zip file in a Report. That is a binary file, so it will take a little experimenting to decipher.

Re: Spindle hour meter

Posted: Wed Feb 24, 2021 4:13 pm
by martyscncgarage
cncsnw wrote: Wed Feb 24, 2021 4:11 pm Look at the top of a recent report*.txt file.

Code: Select all

Machine Timers info
----------------------------
Power On        : 000037.931
Job in Progress : 000002.421
Spindle Running : 000000.480
Since           : 11/08/2020
CNC12 does track this information. There just isn't a well-established interface to it yet.

I believe the data is in the file mt.stats, which is included in the urf.zip file in a Report. That is a binary file, so it will take a little experimenting to decipher.
Thanks Marc! I have overlooked that information. Always a pleasure having your YEARS of expertise here!
So, if you are employed, can you do something with that information as the poster requests?

Re: Spindle hour meter

Posted: Wed Feb 24, 2021 4:36 pm
by cncsnw
It would be a little convoluted, but one could write a freestanding program that runs from a command prompt or batch file, to read the mt.stats data and write the results into a CNC macro that sets user variables equal to each value.

A CNC program or macro could then call that application using M130; wait for it to do its work; then call the resulting macro to retrieve the variable values; then do whatever it wants (e.g. with an M225 prompt).

It would probably take me three or four hours to make it work.

Re: Spindle hour meter

Posted: Thu Feb 25, 2021 1:14 pm
by ChrisAttebery
If all I have to do is run a report once in a while I'm OK with that. I'll try running a report today and take a look at it.