grblHAL / core

grblHAL core code and master Wiki
Other
305 stars 74 forks source link

Not an Issue: How to limit jog area irrespective of machine travel? #435

Closed karoria closed 5 months ago

karoria commented 5 months ago

Hi @terjeio Is there a way so that we can restrict jog area even though my machine travel is larger? This is because I don't want to jog the machine in my ATC tool rack area. When tool change macro runs, then only machine should go to that area. This will reduce chances of accidents with tool rack while jogging. I have noticed $40 setting but I am not sure if that can solve this issue as it also allows machine to jog as per values in axis travel parameters.

terjeio commented 5 months ago

$40 enables clipping to joggable envelope, by default this calls apply_jog_limits() via the grbl.apply_jog_limits function pointer. This means that apply_jog_limits() can be overridden by plugin code by redirecting the function pointer.

karoria commented 5 months ago

Ok. Thanks👍