Gcode Start/End issue

Thanks for the addition of the User Script Gcode sections.

2 issues I noticed:

  1. In the dialog box, bot sections are called Start Gcode instead of Start Gcode and End Gcode.
  2. The end gcode gets appended properly, but not the start gcode.

How do you mean? Can you show an example? (The incorrect label has been fixed already)

Here is what I entered in the Machine settings:

Here’s the output

; LightBurn 0.9.15
; Marlin device profile, absolute coords
; Bounds: X10 Y10 to X30 Y40
; Cut @ 1200 mm/min, 50% power
M106 S0 
G0 X-18 Y7 F3000
; Layer C00
M106 S127.5
G1 Y37 F1200
G1 X2
G1 Y7
G1 X-18
M106 S0
; return to user-defined finish pos
G0 X0 Y180 F3000

; Home again
;Ignore, just to show Oz
;Move Z 
G1 Z35

It’s likely because it’s Marlin, and the gcode generator for Marlin emits a different header. Adam probably missed that when adding the prefix code.

For what it’s worth, your header will not be compatible with ‘Current Position’ mode, as all moves in that mode are relative, and your Z will be overridden unless you’re using ‘Relative Z Moves only’. Absolute Coords and User Origin will work fine.

This is fixed for the next release.

1 Like

I tried different formatting.

I add this by hand and it gives me the desired results… :wink:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.