Hello Guest it is November 14, 2019, 11:02:38 AM

Author Topic: Total Operating Time in Macro  (Read 4079 times)

0 Members and 1 Guest are viewing this topic.

Total Operating Time in Macro
« on: January 27, 2017, 06:40:28 PM »
Want to use the Total Operating Time from the Maintenance Statistics drop down menu in a Macro. How can I access the data in a macro.
Can't find any info anywhere.
Re: Total Operating Time in Macro
« Reply #1 on: January 30, 2017, 03:58:57 AM »
Re: Total Operating Time in Macro
« Reply #2 on: January 30, 2017, 02:12:19 PM »
Thanks that worked perfectly. I needed to tell the machine operator when to grease the machine. I wrote a little Macro to look at the time and if it was greater than 100. (100 hours) then I did a Message Box to inform it was time to grease the machine and then reset the timer. I saved it as M85 then in the General config file I put the M85 in the startup line so each time the machine is started it will run the M85 macro.
Again thanks. I could not find that info anywhere.
Can i have an life operating time?
« Reply #3 on: April 24, 2017, 05:50:45 AM »

i am Christian and new on this forum.
We are working with Mach3 in the waterjet controller.
But i want to save how much time the pump and cutting head is open.
For example if the button "cutting head" is on, time starts and when the button is off it stops and saves his time somewhere on the screen.

But i cant get it working.
Here is what in the hiddenscript.

If(GetUserLED(Z_1_ACTIVE_LED)) Then
    Setuserled (H2O_1_LED,)Then
    DeactivateSignal(H2O_1 LED_OFF)
    SetUserLED (H2O_1_LED, LED_ON)
     CKtijd = SetTimer(1) = 0
  End If
End If     
      If GetOemLed(1005) Then
End If

If Not GetOemLed(1005) Then
      SetUserDro (1301, (GetUserDro(1300 + GetTimer(1)))
 End If

I have looked on this forum but could't find this problem somewere.

Best regards,

Christian v Dalen