Yes that should work fine. It might do odd things if you use the parking position in options->material (later versions of SheetCam only)
Les
I added a few functions at the end before finish and would like to know if I have to adjust this bit of code to make it work-
function floodon()
text(" M08 (Flood coolant on)\n")
end
function miston()
text(" M07 (Mist coolant on)\n")
end
function coolantoff()
text(" M09 (Coolant off)\n")
end
function finish()
-- endz = safez
text (" T0\n")
text (" G00 Z4.5\n")
text (" G59\n")
text (" G00 X0 Y0\n")
-- rapid()
-- endy = 0
-- endx = 0
-- endz = 5
-- rapid()
text (" M05\n M30\n")
end
Thank You,
Paul G
Site Owner-Webmaster-
Administrator
www.rfqwork.com
www.cnczone.com
www.welderzone.com
Yes that should work fine. It might do odd things if you use the parking position in options->material (later versions of SheetCam only)
Les
What I would like is for the flood to turn on and off with the laser is that possible?
Thank You,
Paul G
Site Owner-Webmaster-
Administrator
www.rfqwork.com
www.cnczone.com
www.welderzone.com
If you are using a plasma based post then edit the pendown() and penup() events. Otherwise use the spindlecw() and spindleoff() events.
Just use text() to add the code to the output, just like you did in function finish().
Les
function pendown()
if (preheat > 0.001) then
modaltext (" G00")
modalnumber (" Z", cutheight * scale, "0.0000")
text ("\n G04 P")
number (preheat,"0.###")
eol()
end
modaltext (" G00")
modalnumber (" Z", pierceheight * scale, "0.0000")
text ("\n M03\n") (" M08\n") <------------------ like this ?
if (piercedelay > 0.001) then
text (" G04 P")
number (piercedelay,"0.###")
eol()
end
end
Thank You,
Paul G
Site Owner-Webmaster-
Administrator
www.rfqwork.com
www.cnczone.com
www.welderzone.com
So this is all I need than-
function pendown()
if (preheat > 0.001) then
modaltext (" G00")
modalnumber (" Z", cutheight * scale, "0.0000")
text ("\n G04 P")
number (preheat,"0.###")
eol()
end
modaltext (" G00")
modalnumber (" Z", pierceheight * scale, "0.0000")
text ("\n M03\n M08\n") <--------------------here
if (piercedelay > 0.001) then
text (" G04 P")
number (piercedelay,"0.###")
eol()
end
end
function penup()
text (" M05\n M09\n") <------------here
if (enddelay > 0) then
text (" G04 P")
number (enddelay,"0.###")
eol()
end
end
Thanks so much for your help!!
Thank You,
Paul G
Site Owner-Webmaster-
Administrator
www.rfqwork.com
www.cnczone.com
www.welderzone.com
Yup. That is all you need to do.
Les
Thanks a bunch!
Thank You,
Paul G
Site Owner-Webmaster-
Administrator
www.rfqwork.com
www.cnczone.com
www.welderzone.com