Hello Guest it is April 26, 2024, 05:11:16 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Cinnochris

Pages: 1
1
VB and the development of wizards / Can i have an life operating time?
« on: April 24, 2017, 05:50:45 AM »
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

Pages: 1