Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: iphillips 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!
-
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
-
Thanks!
I'll give this a try and integrate it to the CAP04 screen we've been using.
-
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 :)