October 30, 2017
Description
;LAYER:[layer_num]
This makes it possible for the 'setLayerTemperatur.py' script to recognize the single layers.
3. Set the initial temperature in the filament settings. The pedestal on which the temperature tower stands will be printed with this temperature.
4. Save the .gcode file of the model.
__Attention:__ maybe you will have to disable the 'Enable variable layer height feature:' checkbox in the printer settings in order to avoid messing up the temperature distribution over the tower height!
#### 3. Write temperature settings to gcode file with setLayerTemperatur.py:
1. On the commandline:
$ ./setLayerTemperatur.py -h
usage: setLayerTemperatur.py [-h] -s STARTTEMP -e ENDTEMP -t TEMPSTEP -f GCODEFILE
Sets the proper temperatures to the corresponding layers of a gcode file
exported from Slic3r. This allows the temperature tower to have different
temperatures per block.
optional arguments:
-h, --help show this help message and exit
required arguments:
-s STARTTEMP, --startTemp STARTTEMP
Temperature of the first (lowest) block.
-e ENDTEMP, --endTemp ENDTEMP
Temperature of the last (highest) block.
-t TEMPSTEP, --tempStep TEMPSTEP
Temperature change between successively printed
blocks.
-f GCODEFILE, --gcodeFile GCODEFILE
The .gcode file to process.
$ ./setLayerTemperatur.py -s 240 -e 215 -t 5 -f tempTower_PETG_Black.gcode
startTemp: 240
endTemp: 215
tempStep: 5
gcodeFile: "tempTower_PETG_Black.gcode"
outFile: "OUT_tempTower_PETG_Black.gcode"
step: -5
-> M104 S240
-> M104 S235
-> M104 S230
-> M104 S225
-> M104 S220
-> M104 S215
By now the different temperatures should have been written to a new .gcode file that starts with "OUT_" and ends with the name of your old .gcode file. This file you can send to your printer and the tower should be printed out with the different temperature settings.
License:
Creative Commons - Attribution