How to switch the THC (torch height control) off temporarily, e.g. for marking or for a part of the program where the torch height must not change.
simCNC 3.600 and newer: parameter #4088
Machine parameter #4088 "Block THC enable" blocks the THC while it is 1.
0 (the default) allows the THC to work normally. The value is not saved: it is 0 again after
simCNC is restarted.
From G-code
#4088 = 1 (block THC) ... #4088 = 0 (allow THC again)
From a Python macro
d.setMachineParam(4088, 1) # block THC d.setMachineParam(4088, 0) # allow THC again
#4088 back to 0 at the start of the next
program, or from a PyAction on "Stop trajectory".Older simCNC versions
Versions before 3.600 have no block parameter. There the THC can be held back by setting "Anti-dive vel. (%)"
(#4061) to 100, after saving its value in a non-volatile parameter, e.g. #50:
#50 = #4061 (save the anti-dive setting) #4061 = 100 (block THC) ... #4061 = #50 (restore the anti-dive setting)
This works through the anti-dive function and is less direct than #4088. If you can, update simCNC and use #4088.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article