Trying to understand gcode when creating Temp Tower
 
Notifications
Clear all

[Solved] Trying to understand gcode when creating Temp Tower  

  RSS
l3art
(@l3art)
Member
Trying to understand gcode when creating Temp Tower

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.

Napsal : 25/06/2020 7:16 am
Neophyl
(@neophyl)
Illustrious Member
RE: Trying to understand gcode when creating Temp Tower

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.

Napsal : 25/06/2020 7:30 am
l3art
(@l3art)
Member
Topic starter answered:
RE: Trying to understand gcode when creating Temp Tower

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?

Napsal : 25/06/2020 8:02 am
l3art
(@l3art)
Member
Topic starter answered:
RE: Trying to understand gcode when creating Temp Tower

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?

Napsal : 25/06/2020 8:08 am
Neophyl
(@neophyl)
Illustrious Member
RE: Trying to understand gcode when creating Temp Tower

@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.

Napsal : 25/06/2020 8:57 am
redih67506
(@redih67506)
New Member
RE: Trying to understand gcode when creating Temp Tower
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

Pretty cool and awesome.

Napsal : 29/06/2020 2:04 pm
Share: