Hello, I would like to confirm if my assumption it is ok.
In my application I use a spray nozzle to apply lubricant over a metallic surface. This spray nozzle is driven by a PWM signal generated by the Smoothie board, using the laser driver signal. In order to avoid to apply lubricant during the acceleration and deceleration phase of the movement, and only apply lubricant during movements at constant speed, I am considering to use a acceleration phase to reach the desire speed, then activate the PWM during the constant speed phase, turn off the laser and stop the head with a deceleration phase. My question is if this approach works. I would use a sequence of instructions like this:
G0 X0 Y40 F600 ; Acceleration phase to reach coordinate (0, 40) at the desire speed
M3 ; Turn laser on
G1 X0 Y 60 S0.5 F600 ; Constant speed phase from (0, 40) to (0, 60) with laser signal at 50%
M5 ; Turn laser off
G0 X0 Y 80 F50; Decelaration phase
My doubt is if the instruction M3 between the G0 and G1 signal could affect to the movement, I would expect that once the G0 instruction finish the head will maintain a constant speed during the G1 instruction. I will use a group of sequences like this for each path where I need to apply lubricant, so at the end I will cover all the surface only applying lubricant at constant speed avoiding the lack of uniformity of the lubricant layer during to the accelerations and decelerations.