Hello Guest it is May 24, 2019, 11:58:13 AM

Author Topic: Arc Retry M03 Macro  (Read 682 times)

0 Members and 1 Guest are viewing this topic.

Arc Retry M03 Macro
« on: December 27, 2016, 09:37:01 AM »
Hey Guys,
I've got a bit of what appears to be an odd situation so I'm hoping someone with some more mach experience than I can help.

I've made custom m03 macros in the past for my router to do various tasks, but now I'm working on a Plasma Table and have run into something I don't know how to code.

Basically what I need to do is have a loop that looks for the "arc ok" signal, and if it doesn't see it it should turn off Dospin and try again.

In laymens terms something like this:

DoSpinCW
*look for "arc ok"
If "arc ok" end M03
If no "arc ok"
Then DoSpinStop
Loop this ^^^

Seems simple enough, I just don't know the correct language!
Any and all help would be greatly appreciated.


The reasoning behind this is that I have an issue I'm tracking down causing a "stuck consumables" code on the plasma, which stops the cut. However if I just go turn the torch on and off it runs again like there's nothing wrong, so if I can just automate that switch flipping while I'm sorting out what's causing the problem I can keep the table up and running while troubleshooting which would be a huge help to production.



Re: Arc Retry M03 Macro
« Reply #1 on: December 27, 2016, 09:42:36 AM »
Here's my best guess:

DoSpinCW()
Sleep(100)
If (GetUserLED(1113) < 1) Then
DoSpinStop()
Sleep(2000)
End If
Loop