Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Layer change custom gcode not inserted as described #869

Closed
OhmEye opened this Issue Dec 19, 2012 · 1 comment

Comments

Projects
None yet
2 participants

OhmEye commented Dec 19, 2012

The description for Printer Settings->Custom G-code->Layer change G-code says "This custom code is inserted at every layer change, right after the Z move and before the extruder moves to the first layer point."

The described behavior is ideal for my purposes, but is not what actually happens. The custom gcode is actually inserted before the Z move, not after, and in actual practice the extruder is still moving when the custom gcode executes. Here is an example of where my custom gcode is inserted:

G1 X136.286 Y128.052 E38.50542
G1 X130.221 Y119.390 E38.57559
M42 P25 S255 ; custom gcode line 1
G4 P10 ; custom gcode line 2
M42 P25 S0 ; custom gcode line 3
G1 F540.000 E37.82559
G92 E0
G1 Z0.200 F10800.000
G1 X130.540 Y119.000
G1 F540.000 E0.75000

It would be ideal if the custom gcode would be inserted immediately after the Z move as described, and before any other movement occurs.

@alexrj alexrj added a commit that referenced this issue Dec 20, 2012

@alexrj alexrj Bugfix: custom layer G-code was applied before Z change, and not afte…
…r like it was documented. #869
ea304a4
Owner

alexrj commented Dec 20, 2012

Fixed and added unit test, thank you!

@alexrj alexrj closed this Dec 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment