https://github.com/pcboy/gen_temp_tower
A script to generate temperature towers gcode dynamically
https://github.com/pcboy/gen_temp_tower
3dprinting slic3r
Last synced: 12 months ago
JSON representation
A script to generate temperature towers gcode dynamically
- Host: GitHub
- URL: https://github.com/pcboy/gen_temp_tower
- Owner: pcboy
- Created: 2018-11-02T06:17:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T02:59:23.000Z (over 7 years ago)
- Last Synced: 2025-04-06T09:41:05.174Z (about 1 year ago)
- Topics: 3dprinting, slic3r
- Language: Ruby
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gen_temp_tower
A script to generate temperature towers gcode dynamically.
I included a profile for the Prusa MK3 already but you can use your own slic3r config too.
# Dependencies
You need to install to have OpenSCAD and Slic3rPE installed. Unless you use the Dockerfile.
# Installation
Just do:
```
$> make
```
There is also a Dockerfile in there if you want:
```
$> make docker
```
You can call gen\_temp\_tower like that:
```
$> docker run -v `pwd`/profiles:/root/profiles -v `pwd`/temp_tower_output:/root/temp_tower_output gen_temp_tower --from-temp 200
```
You'll get the resulting gcode file in ./temp\_tower\_output folder.
# Usage
```
$> ruby gen_temp_power.rb -h
Options:
-f, --from-temp= From temperature (default: 195)
-t, --to-temp= To temperature (default: 230)
-i, --iteration= Degrees step between each increment (e.g if 5, then 195,200,205,...) (default: 5)
-c, --cube-height= The height in mm for each temperature iteration (default: 5)
-s, --slic3r-profile= Path to your slic3r config. (Default: profiles/mk3/Pretty_PLA_V3.ini)
-o, --openscad-exec= Path to openscad executable. (Default: /Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD)
-l, --slic3r-exec= Path to slic3r executable. (add --no-gui parameter on linux) (default: /Applications/Slic3r.app/Contents/MacOS/Slic3r)
-h, --help Show this message
```
Example:
```
$> ruby gen_temp_tower.rb --from-temp 200 --to-temp 250 --iteration 10
Generation STL file
{if layer_z==1.00}M109 R200 {endif}
{if layer_z==6.00}M109 R210 {endif}
{if layer_z==11.00}M109 R220 {endif}
{if layer_z==16.00}M109 R230 {endif}
{if layer_z==21.00}M109 R240 {endif}
{if layer_z==26.00}M109 R250 {endif}
Slicing file with Slic3r
$>
```
You should then get a temp\_tower.stl file in the temp_tower_output/ directory, and a temp\_tower.gcode in that same dir with the proper gcode dealing with the temperature change.
This temp tower will test the temperatures from 200C to 250C with an iteration of 10C between each step.
You can also specify the path to openscad and Slic3r if they don't match the default ones. For instance on Linux I use an appImage of Slic3r PE and I have to add --no-gui to use it as a cli tool.
So I have to call gen_temp_tower like this:
```
$> ruby gen_temp_power.rb --slic3r-exec="./Slic3rPE-1.41.1-beta+linux64-full-201809261049.AppImage --no-gui" --openscad-exec="openscad-nightly"
```