Page 1 of 1

Torch Start

Posted: Sat Nov 09, 2013 2:18 pm
by jthornton
Where would I insert the G code to start my plasma torch when the machine has moved the torch down to the material. For example you get a rapid to the start point then a Z move down after that and before the feed move I need to start the torch. I've looked at GCode.prototype.writeToolDown and GCode.prototype.toolIsDown and I'm not sure which one is the one I'm looking for.

Thanks
JT

Re: Torch Start

Posted: Sat Nov 09, 2013 2:32 pm
by jthornton
I figured out I think how to add the torch start.

Code: Select all

// add subroutine call to fire the torch
Lcnc_Plasma.prototype.writeToolDown = function() {
    this.g = GCode.Mode.Normal;
    this.z = this.getToolDownLevel();
    this.toolPosition = GCode.ToolPosition.Down;
    this.writeLine(); // this is the Z down move
    this.writeLine("o<touchoff> call");
    this.toolIsDown();
};