Is there a cumulative "run time" value buried in Mach4 somewhere?

I was wondering if there was a cumulative run time value somewhere - not a “this job” run time value.

Something like the “hours” counter on other machines.

Just wondering if there was something that could help as a reminder for when to perform periodic maintenance, etc.

Thanks,

-scott

There is a Stats section in the Machine.ini file that keeps some of this.

[Stats]
totalhours=60.615250
spindlehours=188.122842
distancex=3207.035891
distancey=348505.183845
distancez=83713.767926
distancea=1849939.858442
distanceb = 0.000000
distancec = 0.000000
m3=901
m4=4
m6=69
mainthours=92.529570833331

I added a display tab to my screenset to monitor these. You are welcome to use the screen or pull the code out of it and use it in your own screen.
https://drive.google.com/drive/folders/1PgdKhPpO7yG4azVI-r0rvJkq_A81_dOO?usp=drive_link

2 Likes

Very interesting. First off, I haven’t yet looked at your code.

But looking at the screen data you posted - unless the units are all different I would have expected spindlehours to be significantly less than totalhours - the opposite of what your data shows. I have Mach4 running for hours at a time, even if I am doing sporadic cutting.

Do you have insight into the units for the stats you are showing ?

Thanks again !!

-scott

Take the actual numbers I have with a grain of salt. My machine gets used more as a test platform for goofing around with lasers, tools, and software…and sometimes I actually make something. The distances and hours on my machine got modified a lot when I was debugging the screen, so they are fairly bogus.
Also, totalhours is a funny one. Even though its written to the Machine.ini file, its master source is the **C:\Mach4Hobby\Profiles\AvidCNC\sysvars.dat file, which is binary, so the only way to reset that variable is to delete that file and let mach4 start over.

1 Like

Thank you for that .set file, I was looking for the same thing to reveal the distance traveled for maintenance purposes.

Curiously I also noticed spindle hours on my machine are about 3x the total hours, which really is strange given the way we use our machine. The only thing I can really think of would be spindle warmups but that seems like a high ratio to explain by just that.

About the maint hours in your file, does that increment when Mach4 is open, when the machine is turned on, when the machine is moving, or some other combination of factors?

Maint hours is just keeping track of accumulated hours that Mach4 is running, which would typically be close to the amount of powered on time of the machine. But it doesn’t take into account any actual activity, thats what the axis distance and spindle hours are for.

I’m not sure why your spindle hours would be adding up faster than expected.

I have a description of this feature set on my screenset revision file page 10: ScreenSet Revision History R7.pptx - Google Slides

1 Like