2 Attachment(s)
Works Beautifully on a Simple Test Case
Made all the changes I had mentioned earlier. I also found that I had the voltage hysteresis values backwards, so that was really screwing things up. General summary of setup is:
- Turn on torch movement if >= 7 counts off (1 volt)
- Turn off torch movement if <= 3 counts off (about 1/2 volt)
- Currently using no software filtering on voltage
- Delay 1200 ms. after arc good to start torch height control
- Mach Z-axis speed set to 20 ipm
- 16 ga @ 30 amps with SheetCam set to 60 ipm (but G-code using 40 ipm)
Attachment 9251
The test setup is shown above. I cut a 2” long rectangle. The difference in height from one end of the rectangle to the other is 0.43 inches.
The voltage capture with torch up/down signals is below:
Attachment 9252
I guess I need to start thinking about other tests, and finally starting to use my table.
I'll try to do a video capture of this later today or this week.
Detecting Kerf Crossing to Prevent Torch Crashes
When crossing a kerf, the voltage shots up and the control loop directs the torch down, so by the time you're at the other side of the kerf the tip could be below the top of the metal.
While I'm only looking at one data sample, I think I've figured out how to detect kerf crossing.
On normal voltage control, once the "torch down" command does active the voltage never climbs and usually starts going down within 3 samples (3 milliseconds) but never more than 7 samples (7 milliseconds). On the kerf crossing after the torch down signal is given, the voltage slowly climbs. By 7 ms after initial "torch down" if the voltage is the same or higher, you can assume you're crossing a kerf.
In that case it would seem to make sense to stop servoing the torch and start a timer to determine when to resume the servo control.
I think I can use the tip diameter/kerf width and the cutting speed to determine how long to leave the voltage control off.
2 Attachment(s)
Kerf Detection Appears to Work
I've implemented an initial kerf detection that looks for rapidly changing voltage. While it can probably be impoved, it does work.
This graph shows the kerf crossing. The voltage is in blue and the voltage control status is in red. It turned voltage control back on when the voltage dipped, but then turned it right back off. I"m sure this could be improved but its good enough for now.
Attachment 9317
The full graph of the voltage, torch up signal, torch down signal and voltage control signal is below.
Attachment 9316
What I have been referring to as a "sawing" motion is only going in one direction, so it's really just "stepping". I think the z-axis speed would need to slow down to "smooth" it out. I'm not sure if that's the right thing to do.
Below is a video of both a slant cut and a flat cut.
http://youtu.be/JfktHIAGTUA
At this point, I just want to clean up the source code and I'll post the first release on GitHub. It will be at:
https://github.com/regeg/ArdunioTHC
I'm also waiting on the second pass hardware boards to build and test.
At this point, I'm going to start using it with my table so I can do stuff more interesting that circles and squares.