Hello everyone we have a project that is CNC Plasma Cutter, and We are using the software "Universal G-Code Sender" which is connected with the Arduino UNO. We are also using the Fusion 360 application from Autodesk for designing the output to be traced and generating the G-code.
How can I automatically control the firing of the plasma cutter when the operation starts (the torch starts to move, tracing the drawing) and then turn off when the operation ends?
I'd think that there exist G codes for (drilling...) tool up/down, which you can use to turn the cutter on/off. Put one at the begin of your Fusion program and one at the end, and you're done.
How will I know that the G-Code that I added will also correspond to the output of the arduino which will also actuate the relay for the firing of the plasma?
Looks as if I must repeat here my Reply from the other Thread which is now locked
I suspect you will more easily get an answer on a Forum that deals with CNC stuff. This Arduino program is for helping people write their own programs.
My wild guess is that the switching of the cutter needs to be included in the GCode by whatever software you are using to generate the GCode. Then UGS just sends the GCode and the correct things happen.
There are numerous g/m codes you could use. If you are not controlling the z axis, then use z0 and z positive values for torch off, and z negatives for torch on - pretend it's a cnc router.
A simple RELAY on the SPINDLE ENABLE pin will give the best results.
A second relay to the COOLANT pin would enable you to start fans for fume extraction.