M04 - Laser On Immediate

Available for MASSO Touch and G3 in Beta version 5.100.14 or higher

This command immediately turns on the laser engraving PWM output at the level specified by the S command.

This command is used where the laser needs to turn on at a specified location to drill a hole or for applications like spot welding

Syntax & Parameters

  • M04 - Laser on can be used or without S value.
  • M4 - The same as M04
  • S - The S value can be 0 to 1000 and defines the PWM power level of 0 to 100%. If the S value is not given then the last S value is automatically 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

In this example

N10 - Move to X0 Y0 at rapid speed

N20 - Laser turns on Immediately at 50% power

N30 - Laser remains in place at power level 50% for 1 second and burns through the material

N40 - Axis moves to X10 Y10 with laser on at power level 50% at a feed rate of 100

N50 - Axis moves to X20 Y10 with laser on at power level 80%

N60 - Laser turns off