Spindle hour meter (Resolved)

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

ChrisAttebery
Posts: 78
Joined: Mon Dec 07, 2020 2:20 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 4031
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Gilroy, CA
Contact:

Re: Spindle hour meter

Post by ChrisAttebery »

OK, thanks Marty.
cncsnw
Posts: 3763
Joined: Wed Mar 24, 2010 5:48 pm

Re: Spindle hour meter

Post 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.
martyscncgarage
Posts: 9912
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Spindle hour meter

Post 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?
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
cncsnw
Posts: 3763
Joined: Wed Mar 24, 2010 5:48 pm

Re: Spindle hour meter

Post 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.
ChrisAttebery
Posts: 78
Joined: Mon Dec 07, 2020 2:20 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 4031
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Gilroy, CA
Contact:

Re: Spindle hour meter

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