Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: Acrodoc 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.
-
getparam("TotalHours")
-
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.
-
Hello,
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
If(IsOutputActive(H2O_1))
Setuserled (H2O_1_LED,)Then
DeactivateSignal(H2O_1 LED_OFF)
Else
ActivateSignal(H2O_1)
SetUserLED (H2O_1_LED, LED_ON)
CKtijd = SetTimer(1) = 0
End If
End If
If GetOemLed(1005) Then
SetTimer(1)
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