Dwell Issue with Spindle

Hello,

I am having a strange issue with my new install in that despite setting the dwell (M3) straight after my S3 command the spindle does not begin spinning up until after the dwell.

The spindle is also turning off during rapid moves and then back on for the next plunge.

I have attached an example of one of my Gcode files where this is happening. I am operating on a Lead 1515 machine, PP is on Vectric.

My concern is that it will break bits and damage work if not fixed.
Any idea what is happening here?

Thanks

T1
G17
G21
G90
G0Z20.320
G0X0.000Y0.000
M3S12000
G04P5
G0X0.000Y191.675Z5.080
G1Z0.000F2032.0
G1X-5.464Y191.597Z-3.000
G1X-10.923Y191.364Z-6.000
G1X-5.464Y191.597Z-9.000
G1X0.000Y191.675Z-12.000
G3X-191.675Y0.000I0.000J-191.675F2540.0
G3X0.000Y-191.675I191.675J0.000
G3X191.675Y0.000I0.000J191.675
G3X0.000Y191.675I-191.675J0.000
G1X0.000Y196.755
G3X-196.755Y0.000I0.000J-196.755
G3X0.000Y-196.755I196.755J0.000
G3X196.755Y0.000I0.000J196.755
G3X0.000Y196.755I-196.755J0.000
G0Z5.080
G0X0.000Y202.245
G1Z0.000F2032.0
G1X5.461Y202.171Z-3.000
G1X10.917Y201.950Z-6.000
G1X5.461Y202.171Z-9.000
G1X0.000Y202.245Z-12.000
G2X202.245Y0.000I0.000J-202.245F2540.0
G2X0.000Y-202.245I-202.245J0.000
G2X-202.245Y0.000I0.000J202.245
G2X0.000Y202.245I202.245J0.000
G1X0.000Y207.325
G2X207.325Y0.000I0.000J-207.325
G2X0.000Y-207.325I-207.325J0.000
G2X-207.325Y0.000I0.000J207.325
G2X0.000Y207.325I207.325J0.000
G0Z5.080
G0X0.000Y191.675
G1Z-12.000F2032.0
G1X-5.464Y191.597Z-15.000
G1X-10.923Y191.364Z-18.000
G1X-5.464Y191.597Z-21.000
G1X0.000Y191.675Z-24.000
G3X-191.675Y0.000I0.000J-191.675F2540.0
G3X0.000Y-191.675I191.675J0.000
G3X191.675Y0.000I0.000J191.675
G3X0.000Y191.675I-191.675J0.000
G1X0.000Y196.755
G3X-196.755Y0.000I0.000J-196.755
G3X0.000Y-196.755I196.755J0.000
G3X196.755Y0.000I0.000J196.755
G3X0.000Y196.755I-196.755J0.000
G0Z5.080
G0X0.000Y202.245
G1Z-12.000F2032.0
G1X5.461Y202.171Z-15.000
G1X10.917Y201.950Z-18.000
G1X5.461Y202.171Z-21.000
G1X0.000Y202.245Z-24.000
G2X202.245Y0.000I0.000J-202.245F2540.0
G2X0.000Y-202.245I-202.245J0.000
G2X-202.245Y0.000I0.000J202.245
G2X0.000Y202.245I202.245J0.000
G1X0.000Y207.325
G2X207.325Y0.000I0.000J-207.325
G2X0.000Y-207.325I-207.325J0.000
G2X-207.325Y0.000I0.000J207.325
G2X0.000Y207.325I207.325J0.000
G0Z5.080
M5
G0Z20.320
G0X0.000Y0.000
M2

That is your dwell command which is 5 milliseconds long. Maybe change it to 6000

Does your controller use grbl because i suspect the laser enable is on, as annotated with $32=1? You’ll need to change $32=0

Yes indeed that worked. BTW, 5 seems to be seconds rather than milliseconds.

Thanks for your help.

I’ve heard g4 is up to controller interpretation. Glad it’s figured out though