Graphic LCD - show layer number July 03, 2015 04:02PM |
Registered: 8 years ago Posts: 126 |
Re: Graphic LCD - show layer number July 03, 2015 04:23PM |
Registered: 9 years ago Posts: 396 |
Re: Graphic LCD - show layer number July 03, 2015 04:25PM |
Registered: 8 years ago Posts: 126 |
Quote
thetazzbot
There is a function that is called whenever a G1 and G0 gcode is received and the parameters include axis and mm. You can create a global var and each time that z changes you increase it and this is a layer counter.
Problem is if you use autobed level then Z is always changing.
There is also a function for lcd display of text.
Re: Graphic LCD - show layer number July 04, 2015 02:15AM |
Registered: 8 years ago Posts: 5,232 |
... ;Put printing message on LCD screen M117 Printing... ;Layer count: 105 ;LAYER:0 M107 G0 F7800 X66.891 Y47.995 Z0.150 ... G1 F1200 X56.275 Y114.117 E162.93272 ;LAYER:1 M106 S84 G1 F3600 E158.43272 G1 Z0.350Marlin "knows" the overall layercount and layerchange is also written in the code.
Re: Graphic LCD - show layer number July 04, 2015 12:26PM |
Registered: 9 years ago Posts: 3 |