Adding text into gcode


Im trying to enter a text for 3d printing in an especific Z.
I would like to put a command to switch on the fans M106 S255 when the valour Z is higher than 1.2, for example. I can’t add the text file sorry.

I’ve searched the forum but haven’t found a solution to something so specific.

Now, I do this manually, opening the txt file and adding this command.
I have try find and replace, but does’t work for me. For this example, I add two spaces. but it’s not necessary.

Thanks! (18.0 KB)

3. Attach minimal versions of all the relevant files

1 Like

added a gh file. I take the points and concatenate data with info.

I am not in a hurry for this solution, since my current solution is to do it manually, but it is impractical


That wasn’t so hard, eh? Much easier than creating test data by hand :exclamation:

Adding text into (19.6 KB)

1 Like

wow! thanks! @Joseph_Oster