ILoveBoobies
Posts: 1
Joined: Fri Apr 20, 2018 6:50 pm

Re: Tip of the Day 8- Scripts tab, G-Code

Mon Apr 23, 2018 9:40 am

ShaqFoo wrote:
Tue Aug 04, 2015 1:13 am
KeyboardWarrior wrote:
Kyuubi wrote:I want post too the LCD "(current layer) of (layers)" on every layer change, is that possible?
Since there isn't a current layer or # of layers variable, this isn't currently doable. If you're looking to do this for time-measurement reasons, I don't think that # of layers is a great indicator of speed by the way, since some layers will take much longer than others.

For instance, a pyramids base layers will print much slower than the layers towards the tip.
Great post but he never asked about time measurement. The single biggest reason to display the layer height on the LCD screen is in the case of failed print so you know where to resume by LAYER #. Yes, you could do it by z height too, but visually seeing the layer number is easier to remember and find in the gCode file that S3D creates. S3D inserts the layer# and z height in the gcode for every layer printed but it puts inserts them as comments.

After reading the post, I was really intrigued by the terminal post processing window and was able to display both the layer # and the Z height on the LCD screen during the print for every layer printed. See attached pictures.

Place the following code in the post processing window and you will get layer number printed on your LCD screen along with the z height. The replace command simply removes the comment and replaces it with the M117 command. The second line is for formatting only it is not needed but tightens things up.

{REPLACE "; layer" "M117 Layer"}
{REPLACE " Z = " " Z="}
I like this but can't get it to show up on my LCD screen. I'm using Marlin 1.1.0 RC8. Does that have anything to do with it? Thanks in advance!

gearsawe
Posts: 142
Joined: Sun Sep 10, 2017 11:06 pm

Re: Tip of the Day 8- Scripts tab, G-Code

Sun Dec 16, 2018 9:58 pm

Why has all the post processing variables not been place on the main web site yet? because this post does not contain them all.
for example
{EXTENSION "g"}
changes the annoying long "gcode" extension to a short "g".
and wonder how many others where not documented.

viet
Posts: 2
Joined: Wed Dec 12, 2018 1:22 am

Re: Tip of the Day 8- Scripts tab, G-Code

Wed Dec 19, 2018 8:27 am

gearsawe wrote:
Sun Dec 16, 2018 9:58 pm
Why has all the post processing variables not been place on the main web site yet? because this post does not contain them all.
for example
{EXTENSION "g"}
changes the annoying long "gcode" extension to a short "g".
and wonder how many others where not documented.
+1

tana4
Posts: 5
Joined: Tue Nov 28, 2017 10:47 am

Re: Tip of the Day 8- Scripts tab, G-Code

Thu Feb 28, 2019 12:09 pm

How do you use postscript to do this?
Attachments
exx.JPG

Return to “General Discussion and Tips”