Hello Guest it is March 28, 2024, 09:30:58 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - cohippy

Pages: 1
1
General Mach Discussion / Z Axis freefloat height problem
« on: April 22, 2017, 05:34:12 PM »
hi! so i have a problem i believe is with my post processor. i have a free float head with only 1 switch for the probe and it is working perfect....here is what happens. i get x and y zeroed out where i want...no problems with them it is only the z axis.....z goes and finds zero with the probe, then it zooms up around an inch and sets zero with a g92 ...then it raises the tool height of 0.06 and reads this on the dro but in settings the g92 collum has numbers.....so all in all i cant cut anything with the torch 1+" above the material. Ive went through sheetcam and mach3 numerous times Im so frusterated, anyways anyhelp is much apreaciated

here is my pp:

function OnAbout(event)
ctrl = event:GetTextCtrl()
ctrl:AppendText("plasma AVHC10 post processor\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")
ctrl:AppendText("The torch is referenced at cut start and every 500mm of movement thereafter\n")
ctrl:AppendText("Designed for use with Mach3 and PriceCNC AVHC10\n")
ctrl:AppendText("Post variables:\n")
ctrl:AppendText("refdistance - set the distance between each reference\n")
end



-- revision 3/2/07
-- Removed final safety move. This is now done in SheetCam

-- revision 7/10/05
-- Added new arc handling

-- created 27/10/04
-- Based on plasma1.post



function OnInit()

post.SetCommentChars ("()", "[]") --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 G40\n F1\n S500\n")


switchoffset = 0.7
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()
if(math.hypot(endX-currentX , endY-currentY) < 0.001 and endZ < currentZ) then return end
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()

post.ModalText(" G31 Z -100")
post.ModalNumber (" F", 500 * scale, "0.0###")
post.Eol()
post.ModalText(" G92 Z0.0\n")
post.ModalText (" G00")
post.ModalNumber(" Z", switchoffset, "0.0000")
post.Eol()
post.ModalText(" G92 Z0.0\n")
post.CancelModalNumbers()
post.ModalText (" G00")
post.ModalNumber (" X", endX * scale, "0.0000")
post.ModalNumber (" Y", endY * scale, "0.0000")
post.ModalNumber (" Z", pierceHeight * scale, "0.0000")
post.Eol()

post.Text ("\n M03\n")

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 (" (Process: ", operationName, ")\n")
end

function OnComment()
post.Text(" (",commentText,")\n")
end

function OnToolChange()
post.Text (" M06 T")
post.Number (tool, "0")
post.Text (" (", toolName, ")\n")
end

function OnNewPart()
post.Text(" (Part: ",partName,")\n");
end

function OnDrill()
OnRapid()
OnPenDown()
endZ = drillZ
OnMove()
OnPenUp()
endZ = safeZ
OnRapid()
end

2
General Mach Discussion / b axis to trigger a relay for downdraft fan
« on: September 29, 2016, 06:32:46 AM »
Hi been working on my plasma table build, and ive finally got to the  point of planning the actual wiring of the system, and i have a question i simply cant for my life figure out. anyways im building a down draft table, and I would like mach3 to trigger a small relay to trigger a larger contractor to turn on the downdraft fan....i was planning on using m08 g04 p015 code snip to do this.

I have a 5 axis bob, and ill have axis a as a slave, so i have a free b axis to be used. but in my testing trials mach3 is firing the on board relay for the torch, but I cant seem to get the b axis to and a consent trigger for a external relay.

do i need a second parallel port and a second bob? for more outputs? can i fire this relay via a serial port or usb port? if so how?

thank you in advance im trying to deal with this massive learning curve, but this little bit i just cant get past

Pages: 1