settings in my config file:
M307 H2 A-1 C-1 D-1 ; Disable Heater output on H2
M452 P2 I1 S1 R255 F200 ; Enable Laser mode, on output 2 (heater 2), with max intensity being 255, and a PWM frequency of 200
example of some gcode that causes issues (a simple square being cut)
;
; Operation: 2
; Type: Laser Cut
; Paths: 1
; Passes: 2
; Cut rate: 5 mm/s
;
; Pass 0
; Pass 0 Path 0
G0 X57.57 Y76.11
; Pass Z Height 5mm (Offset: 0mm)
G0 Z5.00
M3
G1 X7.57 Y76.11 S255.00 F300
G1 X7.57 Y9.42
G1 X57.57 Y9.42
G1 X57.57 Y76.11
G1 X57.57 Y76.11
M5
; Pass 1
; Pass 1 Path 0
G0 X57.57 Y76.11
; Pass Z Height 4.8mm (Offset: 0mm)
G0 Z4.80
M3
G1 X7.57 Y76.11 S255.00 F300
G1 X7.57 Y9.42
G1 X57.57 Y9.42
G1 X57.57 Y76.11
G1 X57.57 Y76.11
M5 ; Disable Laser/Spindle
M106 P2 S0 ;turn off laser power
It seems quite random.
in the above case it did the first two lines of the cut before turning the laser off, restarted on the second pass and completed all 4 lines,
I ran the code again straight away and it did all four lines of the first pass, and turned off after the 3rd line of the second pass.
Im running the latest firmware RC4