need help with post processor

SheetCam related questions and tips can be posted here
Post Reply
kbenz
3 Star Elite Contributing Member
3 Star Elite Contributing Member
Posts: 465
Joined: Sun Oct 31, 2010 1:26 pm
Location: Kannapolis,NC
Contact:

need help with post processor

Post by kbenz »

Had to reload sheetcam. DTHCII & DTHC IV post processor with/without Plate marker. is the one I was using before. My z will not origin out to my ohmic sensor now. I have a setting off somewhere but can't figure out what
CandCNC
Mach3
Sheetcam
Draftsight
Hypertherm 65 machine torch
Millermatic 210
Passport plus
Spoolmate 150
Miller Bobcat 225
http://benzweldingandfabrication.com/
https://www.facebook.com/pages/Benz-Wel ... 468?ref=hl
User avatar
acourtjester
6 Star Elite Contributing Member
6 Star Elite Contributing Member
Posts: 7770
Joined: Sat Jun 02, 2012 6:04 pm
Location: Pensacola, Fla

Re: need help with post processor

Post by acourtjester »

sometimes the Ohmic sensor is tied to the probe input, if you look at your G-code and see a g31 that is what it is tied to a g28 is for Z home.
In the post processor edit look at the OnPinDown section.
probe.JPG
probe.JPG (33.08 KiB) Viewed 299 times
DIY 4X4 Plasma/Router Table
Hypertherm PM65 Machine Torch
Drag Knife and Scribe
Miller Mig welder
13" metal lathe
Small Mill
Everlast PowerTig 255 EXT
kbenz
3 Star Elite Contributing Member
3 Star Elite Contributing Member
Posts: 465
Joined: Sun Oct 31, 2010 1:26 pm
Location: Kannapolis,NC
Contact:

Re: need help with post processor

Post by kbenz »

function OnPenDown()
if(toolClass == "MarkerTool") or (toolClass == "DrillTool") then
if(toolClass == "MarkerTool") then
punchDown = true
end
if (toolName =="CenterPunch" ) then
if (firstRef == true) then --this runs a reference at the first but not afterwards
--post.Text(" First Ref = True \n")
Reference()
offX = scriberX
offY = scriberY
offZ = scriberZ
post.ModalText (" G00 ")--this offsets the head for the marker tool
post.ModalNumber (" X", (endX + offX) * scale, "0.000")
post.ModalNumber (" Y", (endY + offY) * scale, "0.000")
post.ModalNumber(" Z", offZ * scale, "0.000")
post.Eol()
else
post.ModalNumber(" Z", offZ * scale, "0.000")
post.Eol()
end
post.Text(" M07\n")
else --its not special center punch tool
if(toolClass == "DrillTool") then
if (firstRef == true) then
Reference()
offX = 0
offY = 0
offZ = 0
post.Text (" G00 Z1.000 \n")-- raise up and fire the torch for 1/2 sec to cycle torch
post.Text (" M03 \n")
post.Text (" G04 P.50 \n")
post.Text (" M05")
post.Eol()
offZ = (drillStart/(-1) )
post.ModalNumber(" Z", offZ * scale, "0.000")-- now we need to drop and pierce the first hole
post.Eol()
post.Text (" M03 \n")
if (peckPierce ) then
post.Text (" G04 P", peckPierce)
post.Text (" (Peck delay time)")
post .Eol()
end
else-- not first ref
post.ModalNumber(" Z", offZ * scale, "0.000")--move Z down to pierce height prior to firing torch
post.Eol()
post.Text(" M03\n")
if (peckPierce ) then
post.Text (" G04 P", peckPierce)
post.Text (" (Peck delay time)")
post .Eol()
end
end
else -- it is not a a Drill Tool so it is an engraver
if (firstRef == true) then--this is for engraving lines and char
Reference()
offX = scriberX
offY = scriberY
offZ = scriberZ
--post.Text (" (plate engrave tool)")
--post.Eol()
post.ModalText (" G00 ")
post.ModalNumber (" Z", (endZ + offZ) * scale, "0.000")
post.Eol()
post.ModalNumber (" X", (endX + offX) * scale, "0.000")
post.ModalNumber (" Y", (endY + offY) * scale, "0.000")
post.Eol()
else
--post.Text (" (plate engrave tool - no ref)")
--post.Eol()
post.ModalText (" G00 ")
post.ModalNumber (" Z", (endZ + offZ) * scale, "0.000")
post.Eol()
post.ModalNumber (" X", (endX + offX) * scale, "0.000")
post.ModalNumber (" Y", (endY + offY) * scale, "0.000")
post.Eol()
end
post.Text(" M07\n") --fire the marker on an engraver
end -- end if drill tool

end -- end center punch loop
else -- not a marker or drill tool or plate engraver
if (firstRef) or (dist >= refDistance) then
dist = 0
Reference()
end
post.ModalText (" G00 ")
post.NonModalNumber(" Z", pierceHeight * scale, "0.000")
post.Eol()
if (preheat > 0) then
post.Text ("\n G04 P")
post.Number (preheat,"0.###")
post.Eol()
end
post.Text ("\n M03\n")
end --end outer loop
if (pierceDelay > 0) then
post.Text (" G04 P")
post.Number (pierceDelay,"0.###")
post.Eol()
end
thcstate = 0

end --end function
CandCNC
Mach3
Sheetcam
Draftsight
Hypertherm 65 machine torch
Millermatic 210
Passport plus
Spoolmate 150
Miller Bobcat 225
http://benzweldingandfabrication.com/
https://www.facebook.com/pages/Benz-Wel ... 468?ref=hl
User avatar
acourtjester
6 Star Elite Contributing Member
6 Star Elite Contributing Member
Posts: 7770
Joined: Sat Jun 02, 2012 6:04 pm
Location: Pensacola, Fla

Re: need help with post processor

Post by acourtjester »

Well that is not the same post processor, I would suggest you contacting CandCNC, they have answered question when I used their components, Tom even answers post here, but I sure he is to busy to read everyday, go directly to their site via email or post on their blog.
http://www.candcnc.net/supportforum/viewforum.php?f=7
DIY 4X4 Plasma/Router Table
Hypertherm PM65 Machine Torch
Drag Knife and Scribe
Miller Mig welder
13" metal lathe
Small Mill
Everlast PowerTig 255 EXT
kbenz
3 Star Elite Contributing Member
3 Star Elite Contributing Member
Posts: 465
Joined: Sun Oct 31, 2010 1:26 pm
Location: Kannapolis,NC
Contact:

Re: need help with post processor

Post by kbenz »

had a bad limit switch on my z axis. up and going now. thanks
CandCNC
Mach3
Sheetcam
Draftsight
Hypertherm 65 machine torch
Millermatic 210
Passport plus
Spoolmate 150
Miller Bobcat 225
http://benzweldingandfabrication.com/
https://www.facebook.com/pages/Benz-Wel ... 468?ref=hl
Post Reply

Return to “SheetCam”