Trying to understand gcode when creating Temp Tower
 

[Solved] Trying to understand gcode when creating Temp Tower  

  RSS
bartbries
(@bartbries)
Active Member

Hello, I tried to create to slice the gcode file for a temp tower. I know you can download such files, but wanted to try it myself to learn from it. I think I got it right. Only after looking into the gcode I see something I cannot understand. I start printing at 260, and go down to 220 in 5 degree steps. I was looking in the gcode file at the M104 instructions and noticed this one.

;AFTER_LAYER_CHANGE

;0.4

M104 S220 ; set temperature
M140 S90 ; set bed temperature

 

I cannot find any place in my PrusaSlicer settings why the temperature would drop to 220 after layer 0.4. I will attach the gcode file to this post.

Posted : 25/06/2020 8:16 am
Neophyl
(@neophyl)
Noble Member

If you look in your Filament Profile you will see that there are 2 sets of filament and bed temperature fields.  They allow you to specify a different temperature for the first layer.  However even if you set them to be the same the temperature command gets added to the gcode anyway.  Thats why if you manually adjust the temperature using the LCD at the start it will be changed again when it starts on the second layer.

If using Prusa Slicer its easy to do a temp tower, you can use the same mechanism that is used to add colour change at whatever height you want to instead use the Add Custom Gcode option.  So adjust the slider to the height, right click the little + and add gcode for the tempt you want it to change to.

Posted : 25/06/2020 8:30 am
bartbries
(@bartbries)
Active Member

Hello, just looked into this way of working, and indeed this seems to be a lot easier! Thanks for your reply.

I am going to do it this way, but just a small question, if I would continue with the previous generated gcode, and remove that one M104 instruction, it would work as well, right?

Posted : 25/06/2020 9:02 am
bartbries
(@bartbries)
Active Member

Another question: when will this command be done? Before or after the layer change? In other words, do I put this M104 instruction at the top layer for that temperature block or on the lowest layer?

Posted : 25/06/2020 9:08 am
Neophyl
(@neophyl)
Noble Member

@bartbries

Question 1, yes if you remove the line it will stop it setting the temperature again so it will work.

Question 2, you know I'm not actually sure 🙂  I think it will apply the gcode at the start of the layer you have selected.  When I get home I might just generate some gcode and check when it inserts it.

Posted : 25/06/2020 9:57 am
redih67506
(@redih67506)
New Member
Posted by: @neophyl

@bartbries

Question 1, yes if you remove the line it will stop it setting the temperature again so it will work.

Question 2, you know I'm not actually sure 🙂  I think it will apply the gcode at the start of the layer you have selected.  When I get home I might just generate some gcode and check when it inserts it.

Thanks

flying together

Pretty cool and awesome.

Posted : 29/06/2020 3:04 pm
Share:

Please Login or Register