thinkyhead shitcreek

M4 - Spindle CCW / Laser On

1.1.2 control Set the spindle CCW speed or laser power SPINDLE_LASER_ENABLE

Description

Wait for moves to complete, then set the spindle speed (counter-clockwise) or laser power.

Notes

S is interpeted as the configured value range - either as PWM (default), Percent, or RPM (see CUTTER_POWER_DISPLAY).

M3, M4 and M5 are not needed with LASER_POWER_INLINE, LASER_MOVE_POWER, and LASER_MOVE_G0_OFF enabled.

Usage

M4 [I<mode>]

Parameters

[I<mode>]

Inline mode

Examples

Set spindle rotation counter-clockwise at 50% with CUTTER_POWER_DISPLAY set to PERCENT

M4 S50 

Set spindle rotation counter-clockwise at 50% with CUTTER_POWER_DISPLAY set to PWM

M4 S128 

Set spindle rotation counter-clockwise at 80% in PWM

M4 O204 

Turn on the laser at full / SPEED_POWER_STARTUP power

M4 

Fire laser at 80% on next G1,G2 and G3 move

M4 S204 I