Hello Guest it is April 16, 2024, 08:10:54 AM

Author Topic: Plasma Start or Arc OK Counter  (Read 2154 times)

0 Members and 1 Guest are viewing this topic.

Plasma Start or Arc OK Counter
« on: October 27, 2016, 03:38:32 PM »
I am trying to see if there's a counter for Plasma starts/stops. My hope is to track our consumables just to see if things are setup and working properly.
And, it would just be nice to know.

So, would this be a Macro type of thing? Haven't done one before with Mach3.
Or, is it something else- as in a separate display window in Mach3.

Any ideas appreciated.

Thanks!

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Plasma Start or Arc OK Counter
« Reply #1 on: October 27, 2016, 04:11:34 PM »
I have these - arc start counter plus cut time counter.

It was done by adding two DRO's and an LED to the screen,

the m3 macro was edited...
if getuserled(2244)=0 then
SetUserLed(2000,1)
SetUserDro(2000,(GetUserDro(2000)+1))
SetTimer(1)

ActivateSignal(Output1)


And the M5 macro was edited...

DeActivateSignal(Output1)

SetUserLed(2244,0)

DeActivateSignal(Output3)

If GetUserLed(2000)=1 Then
SetUserDro(2001,(GetUserDro(2001) + (GetTimer(1)/1)))
SetUserLed(2000,0)
End
end if

UserDRO2000 counts arc starts and 2001 is the cut time in seconds, both DRO's are persistent.
I also added buttons to zero each DRO
Works well
Re: Plasma Start or Arc OK Counter
« Reply #2 on: October 28, 2016, 09:13:12 AM »
Thanks!
I'll give this a try and integrate it to the CAP04 screen we've been using.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Plasma Start or Arc OK Counter
« Reply #3 on: October 28, 2016, 09:29:04 AM »
Just looked again, seems the M3 lost a bit of code, this is my m3...

if getuserled(2244)=0 then
SetUserLed(2000,1)
SetUserDro(2000,(GetUserDro(2000)+1))
SetTimer(1)

ActivateSignal(Output1)

Do While Not Isactive(THCON)
   x=x+1
   sleep 1
   if x=3000 then
      msgbox("OK To Move Timed Out")
      Code "M30"
      exit do
   end if
loop
end if

You'll have to edit out the stuff you don't want, I think I have a ARC-OK timer in there as well, you might not want that bit :)