Spindle hour meter (Resolved)
Moderator: cnckeith
-
- 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
OK, thanks Marty.
Re: Spindle hour meter
Look at the top of a recent report*.txt file.
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.
Code: Select all
Machine Timers info
----------------------------
Power On : 000037.931
Job in Progress : 000002.421
Spindle Running : 000000.480
Since : 11/08/2020
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.
-
- Posts: 9914
- 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
Thanks Marc! I have overlooked that information. Always a pleasure having your YEARS of expertise here!cncsnw wrote: ↑Wed Feb 24, 2021 4:11 pm Look at the top of a recent report*.txt file.CNC12 does track this information. There just isn't a well-established interface to it yet.Code: Select all
Machine Timers info ---------------------------- Power On : 000037.931 Job in Progress : 000002.421 Spindle Running : 000000.480 Since : 11/08/2020
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.
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
We can't "SEE" what you see...
Mesa, AZ
Re: Spindle hour meter
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.
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.
-
- 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
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.