M04 - Laser On Immediate
This command immediately turns on the laser engraving PWM output at the level specified by the S command.
This command is used when the laser needs to turn on at a specific location, such as drilling a hole or for applications like spot welding.
It can also be used in MDI mode to turn the laser on at low power for alignment. Use M5 to turn the laser off.
Syntax & Parameters
M04– Laser on immediately, with or without an S valueM4– Same asM04S– Optional value from 0 to 1000, defining the PWM power level from 0% to 100%. If not specified, the last S value is used
Example Program
N10 G0 X0 Y0 N20 M04 S500 N30 G04 P1000 N40 G1 X10 Y10 F100 N50 G1 X20 Y10 S800 N60 M5
N10: Moves to X0 Y0 at rapid speed
N20: Laser turns on immediately at 50% power
N30: Laser remains stationary at 50% power for 1 second and burns through the material
N40: Moves to X10 Y10 with the laser on at 50% power and a feed rate of 100
N50: Moves to X20 Y10 with the laser on at 80% power
N60: Turns the laser off
Spanish
French
German
Simplified Chinese