near pierce

Like this example job, if i want to slow down near the pierce, it slows the whole hole, even if its not included in the specified distance.

A way around this would be to have a code snippet to slow down near the hole, and another snippet to get back to specified speed, but i dont know the m command to do that.

thanks