estou gerando arquivo para corte com esse Post processor "Mach3 plasma.scpost" até aiu tudo bem ele gera normal mais o problema e que ele gera o codigo de velocidade " F " apenas uma vez no primeiro corte, como to usando o M03 para procurar a chapa e na hora de procurar a chapa ele pega o codigo "F250.0" como o Post processor: Mach3 plasma.scpost não gerou o "F' da velocidade da maquina ele fica com o valor do F250.0 então queria saber como mudar o Post processor Mach3 plasma.scpost para executar no começo depois do M03 para ele gerar o codigo de movimento da maquina. Então ele teria que gerar o codigo "F" depois do M03.E queria que ele não gera-se o codigo de tempo G04
olha o arquivo de corte.
N0010 (Filename: SUPORTE.tap)
N0020 (Post processor: Mach3 plasma.scpost)
N0030 (Date: 29-06-2015)
N0040 G21 (Units: Metric)
N0050 G53 G90 G91.1 G40
N0060 F1
N0070 S500
N0080 (Part: SUPORTE 0)
N0090 (Operation: Offset externo, 0, T1: Plasma, 1,5 mm Largura de corte)
N0100 M06 T1 F1500.0 (Plasma, 1,5 mm Largura de corte)
N0110 G00 Z20.0000
N0120 X14.8856 Y16.7500
N0130 Z2.0000
N0140 M03
N0150 G04 P1.5
N0160 G01 Y21.7500 F1500.0 (Aqui gerou o F1500.0)
N0170 X21.7500
N0180 Y8.2500
N0190 X8.2500
N0200 Y21.7500
N0210 X14.8856
N0220 Y16.7500
N0230 M05
N0240 G00 Z20.0000
N0250 X15.0000 Y35.7500
N0260 Z2.0000
N0270 M03
N0280 G04 P1.5
N0290 G01 Y30.7500 (aqui ele tinha que gerar o F1500.0 e não gera)
N0300 G03 X15.0000 Y30.7500 I0.0000 J-15.7500
N0310 G01 Y35.7500
N0320 M05
N0330 G00 Z20.0000
N0340 M05 M30
Post processor Mach3 plasma.scpost
function OnAbout(event)
ctrl = event:GetTextCtrl()
ctrl:AppendText("Mach3 plasma post processor\n")
ctrl:AppendText("\n")
ctrl:AppendText("Generic plasma post for machines without THC\n")
ctrl:AppendText("\n")
ctrl:AppendText("Modal G-codes and coordinates\n")
ctrl:AppendText("Comments enclosed with ( and )\n")
ctrl:AppendText("M03/M05 turn the torch on/off\n")
ctrl:AppendText("Incremental IJ\n")
end
-- revision 3/2/07
-- Removed final safety move. This is now done in SheetCam
-- revision 7/10/05
-- Added new arc handling
-- revision 11/7/05
-- Moved torch to cut height when preheating
-- Added dummy spindle speed to prevent Mach2 throwing a zero spindle speed error
-- revision 9/10/04
-- Added preheat
-- revision 28/6/04
-- Replaced startx,y,z with currentx,y,z
-- created 28/5/04
-- Based on Mach2 metric.post
function OnInit()
post.SetCommentChar s ("()", "[]") --make sure ( and ) characters do not appear in system text
post.Text (" (Filename: ", fileName, ")\n")
post.Text (" (Post processor: ", postName, ")\n")
post.Text (" (Date: ", date, ")\n")
if(scale == metric) then
post.Text (" G21 (Units: Metric)\n") --metric mode
else
post.Text (" G20 (Units: Inches)\n") --inch mode
end
post.Text (" G53 G90 G91.1 G40\n F1\n S500\n")
bigArcs = 1 --stitch arc segments together
minArcSize = 0.05 --arcs smaller than this are converted to moves
end
function OnNewLine()
post.Text ("N")
post.Number (lineNumber, "0000")
lineNumber = lineNumber + 10
end
function OnFinish()
post.Text (" M05 M30\n")
end
function OnRapid()
post.ModalText (" G00")
post.ModalNumber (" X", endX * scale, "0.0000")
post.ModalNumber (" Y", endY * scale, "0.0000")
post.ModalNumber (" Z", endZ * scale, "0.0000")
post.Eol()
end
function OnMove()
post.ModalText (" G01")
post.ModalNumber (" X", endX * scale, "0.0000")
post.ModalNumber (" Y", endY * scale, "0.0000")
post.ModalNumber (" Z", endZ * scale, "0.0000")
post.ModalNumber (" F", feedRate * scale, "0.0###")
post.Eol()
end
function OnArc()
if(arcAngle <0) then
post.ModalText (" G03")
else
post.ModalText (" G02")
end
post.NonModalNumber (" X", endX * scale, "0.0000")
post.NonModalNumber (" Y", endY * scale, "0.0000")
post.ModalNumber (" Z", endZ * scale, "0.0000")
post.Text (" I")
post.Number ((arcCentreX - currentX) * scale, "0.0000")
post.Text (" J")
post.Number ((arcCentreY - currentY) * scale, "0.0000")
post.ModalNumber (" F", feedRate * scale, "0.0###")
post.Eol()
end
function OnPenDown()
if (preheat > 0.001) then
post.ModalText (" G00")
post.ModalNumber (" Z", cutHeight * scale, "0.0000")
post.Text ("\n G04 P")
post.Number (preheat,"0.###")
post.Eol()
end
post.ModalText (" G00")
post.ModalNumber (" Z", pierceHeight * scale, "0.0000")
post.Text ("\n M03\n")
if (pierceDelay > 0.001) then
post.Text (" G04 P")
post.Number (pierceDelay,"0.###")
post.Eol()
end
end
function OnPenUp()
post.Text (" M05\n")
if (endDelay > 0) then
post.Text (" G04 P")
post.Number (endDelay,"0.###")
post.Eol()
end
end
function OnNewOperation()
post.Text (" (Operation: ", operationName, ")\n")
end
function OnComment()
post.Text(" (",commentText,")\n")
end
function OnToolChange()
post.Text (" M06 T")
post.Number (tool, "0")
post.ModalNumber(" F",feedRate * scale,"0.0###")
post.Text (" (", toolName, ")\n")
if (plungeRate <= 0) then
post.Warning("WARNING: Plunge rate is zero")
end
if (feedRate <= 0) then
post.Warning("WARNING: Feed rate is zero")
end
end
function OnNewPart()
post.Text(" (Part: ",partName,")\n");
end
function OnDrill()
OnRapid()
OnPenDown()
endZ = drillZ
OnMove()
OnPenUp()
endZ = safeZ
OnRapid()
end