M04 – Laser On Immediate

INFORMATION
Needs MASSO software V5.13 or later. Works with the Laser tool (Tool 111).

M04 turns the laser engraving PWM output on immediately, at the level set by S – no motion needed. Use it when the laser must fire at one spot, such as drilling a hole or spot welding, or in MDI to run the laser at low power for alignment. Turn it off with M5.

Syntax
M04 S__
Also written
M4
Laser fires
Immediately

1. Parameters

WordMeaning
S (optional)PWM power, 0 to 1000 = 0 to 100%. If no S is given, the last S value is used.
INFORMATION
M04 doesn't light the Laser button on screen – that button follows the M03 laser enable. G200 power ramping has no effect with M04.

2. Example

N10 G0 X0 Y0
N20 M04 S500
N30 G04 P1000
N40 G1 X10 Y10 F100
N50 G1 X20 Y10 S800
N60 M5
CodeResult
G0 X0 Y0Rapid move to X0 Y0.
M04 S500Laser turns on immediately at 50%.
G04 P1000Holds still at 50% for 1 second, burning through the material.
G1 X10 Y10 F100Moves to X10 Y10 at F100 with the laser at 50%.
G1 X20 Y10 S800Moves to X20 Y10 with the laser at 80%.
M5Turns the laser off.