new to sheetcam, need help

Having problems with or questions about SheetCam? Post them here.
mechanicjon
Posts: 2
Joined: Wed Mar 06, 2024 5:40 pm

Re: new to sheetcam, need help

Post by mechanicjon »

Langmuire systems Fire Control
Attachments
FireControl-v1.6.scpost
(5 KiB) Downloaded 32 times
User avatar
Les Newell
Site Admin
Posts: 3668
Joined: Thu May 11, 2006 8:12 pm

Re: new to sheetcam, need help

Post by Les Newell »

In SheetCam go to Options->machine->post processor and click on the 'Edit post' button.
Look for function OnPenUp() near the end of the file. Replace the function with this version:

Code: Select all

function OnPenUp()
   ihs = pierceHeight ~= 0 and cutHeight ~= 0 --enable IHS if both pierce and cut are non-zero
   post.Text ("H0\n") -- thc OFF, Machine in control of Z
   post.Text ("M5\n")
   if (ihs) then
      post.TextDirect ("G0 Z" .. post.FormatNumber(25.4 * scale, "0.0##") .. "\n") -- Z to rapid height
   end
   if (endDelay > 0) then
      post.Text ("G4 P")
      post.Number (endDelay,"0.###")
      post.Eol()
   end
   post.CancelModalNumbers()
end
Post Reply