@dc42 , @jay_s_uk I managed to get it work.
In whole Gcode, even in the end script, there cannot be my M42 P10 S0 for disabling power supply to laser module and before first G1 command there must be G4 command.
Examples that not working:
;Custom GCode device profile, user origin
;Bounds: X69 Y193 to X105 Y210
;USER START SCRIPT
M42 P10 S1
;USER START SCRIPT
G00 G17 G40 G21;Restore metric mode
G54
G90;Restore absolute mode
G0 X-1.001 Y-1.001
G91;Restore relative mode
;Cut @ 5001 mm/min, 21% power
;
;
G0 X1 Y-18
;Layer C02
G4 P1
G1 X-37 S50 F5001
G1 Y18
G1 X37
G1 Y-18
;
;
G90;Restore absolute mode
;USER END SCRIPT
M42 P10 S0
;USER END SCRIPT
or
;Custom GCode device profile, user origin
;Bounds: X69 Y193 to X105 Y210
G00 G17 G40 G21;Restore metric mode
G54
G90;Restore absolute mode
G0 X-1.001 Y-1.001
G91;Restore relative mode
;Cut @ 5001 mm/min, 21% power
;
;
G0 X1 Y-18
;Layer C02
;
G1 X-37 S50 F5001
G1 Y18
G1 X37
G1 Y-18
;
;
G90;Restore absolute mode
And this one works:
;Bounds: X69 Y193 to X105 Y210
G00 G17 G40 G21;Restore metric mode
G54
G90;Restore absolute mode
G0 X-1.001 Y-1.001
G91;Restore relative mode
;Cut @ 5001 mm/min, 21% power
;
;
G0 X1 Y-18
;Layer C02
G4 P1
G1 X-37 S50 F5001
G1 Y18
G1 X37
G1 Y-18
;
;
G90;Restore absolute mode
;
or
;Bounds: X69 Y193 to X105 Y210
G00 G17 G40 G21;Restore metric mode
G54
G90;Restore absolute mode
G0 X-1.001 Y-1.001
G91;Restore relative mode
;Cut @ 5001 mm/min, 21% power
;
M5
G0 X1 Y-18
;Layer C02
G4 P1
G1 X-37 S50 F5001
G1 Y18
G1 X37
G1 Y-18
;
M5
G90;
with Sticky Laser it fires independently on M3 S0 (M3 S255) before move or M5 after so I choose to run without them, for now.