Page 2 of 2

Re: new to sheetcam, need help

Posted: Tue Mar 26, 2024 11:30 am
by mechanicjon
Langmuire systems Fire Control

Re: new to sheetcam, need help

Posted: Tue Mar 26, 2024 1:18 pm
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