# Pierce delay M5

**URL:** <https://forum.lightburnsoftware.com/t/pierce-delay-m5/66802>\
**Category:** LightBurn Software Questions\
**Tags:** plasma-cutter\
**Created:** [May 10, 2022, 2:25am UTC](https://forum.lightburnsoftware.com/t/pierce-delay-m5/66802 "2022-05-10T02:25:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bLouChip](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/blouchip/32/55456_2.png) [@bLouChip](https://forum.lightburnsoftware.com/u/bLouChip)\
**Post date:** [May 10, 2022, 7:36pm UTC](https://forum.lightburnsoftware.com/t/pierce-delay-m5/66802/4 "2022-05-10T19:36:12Z")

</div>

> [@bjohnson.vt](#):
>
> Why is there an m5 command at the end of a pierce delay that immediately turns back on and moves on a tool path?
> 
> Is there any way to dissable this m5 command so it is not in the code (other than doing it manually)?

I don’t know the answer re. either question. I noticed this behavior some time ago when I was first seeking a solution to LB and plasma process. Yet another question is: why does ‘cut through’ have to be enabled in order to get the ‘start pause time’ (aka pierce delay) to occur **after** the M3 command ? without ‘cut through’, the delay is **before** the M3 command and I’m not understanding what purpose that serves other than perhaps XY stoppage/location mechanical dampening. LB support will have to answer.

In my use case of LB and plasma process, I use GRBL-M3 device mode as you do, but I don’t use the ‘start pause time’ attribute, nor do I use ‘cut through’. Rather, I post-process the LB laser g-code replacing M3 and M5 with my own code blocks. In the case of M3, to perform per-cut torch touch-off with job surface giving a precise (+/-.1mm) Initial Torch Height and Pierce Height, as well as including a Pierce Delay and a torch (Z) ramp down on the LB line lead-in; and in the case of M5 to perform a torch off delay and a torch (Z) safe retract before having LB move to next cut.

The post processor is a VIM editor script. download it from this thread.

> [@Update on plasma use case success, albeit post processing gcode](https://forum.lightburnsoftware.com/t/update-on-plasma-use-case-success-albeit-post-processing-gcode/37258/14):
>
> another MyPlasmaPP() VIM script update and version change. simplified the arg list removing the args for isG20 and isG90 move modes; instead the script now reads the values from the gcode file. changed the probe command sequence, removing the G0 Z-20 move which negated the end of cut Z retract move; instead the script now adds 20mm to the G38.2 probe command to account for the Z retract move, this way I avoid a potential torch collision of driving it into the probe limit switch if starting the…

I hope this helps, happy to field questions as needed.  
Lou

---

_[View the full topic](https://forum.lightburnsoftware.com/t/pierce-delay-m5/66802)._
