Page 1 of 1

How do you enable THC in post LinuxCNC THC ?

Posted: Fri Mar 09, 2018 5:33 pm
by lukasz89
Good morning all. I would like to enable THC permanently. Now I have set up like this - thcOnCode = " M08", thcOffCode = " M09". THC does not work all the time, with M09 it turns off.

CAM - SheetCam TNG 6.1.53
CNC controller - LinuxCNC
postprocessor - LinuxCNC THC

Re: How do you enable THC in post LinuxCNC THC ?

Posted: Mon Mar 12, 2018 4:45 pm
by Les Newell
If you never want to turn off the THC set thcOffCode = nil

Re: How do you enable THC in post LinuxCNC THC ?

Posted: Wed Mar 14, 2018 10:19 pm
by lukasz89
OK, how to define thcOnCode ? Also nil command/delete this from the post processor ?

thcOnCode = ????
thcOffCode = nil

Re: How do you enable THC in post LinuxCNC THC ?

Posted: Thu Mar 15, 2018 2:22 am
by djreiswig
I'd say if it turned on and off before and you don't want it to turn off then change the off code to nil and leave the on code alone since it was working.

Re: How do you enable THC in post LinuxCNC THC ?

Posted: Sat Mar 17, 2018 4:59 pm
by lukasz89
When cutting with plasma cnc.

M09 - all corners, smaller holes, arcs with a smaller radius, short lines [was it thc off]
M08 - all the rest [was it thc on]

thcOnCode = " M09"
thcOffCode = nil

I will check on this.