Machine definition for custom Aluminium Extrusion Ultimaker 2 clone
(Ulti-Alu-Maker). Copy to ~/.local/share/cura/machines
.
Last active
October 2, 2016 13:41
-
-
Save larsch/a02037d95d653d9b88310cbef5945fd9 to your computer and use it in GitHub Desktop.
Cura 2 Machine Definition for Ultimaker 2 Clone/RAMPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
require 'yaml' | |
json = JSON.parse(IO.read 'ulti-alu-maker.json') | |
yaml = { | |
"machine_start_gcode" => json["machine_settings"]["machine_start_gcode"]["default"], | |
"machine_end_gcode" => json["machine_settings"]["machine_end_gcode"]["default"] | |
} | |
IO.write("start-end-gcode.yaml", YAML.dump(yaml)) | |
system(ENV["EDITOR"], "start-end-gcode.yaml") | |
exit 1 unless $?.success? | |
result = YAML.load(IO.read "start-end-gcode.yaml") | |
json["machine_settings"]["machine_start_gcode"]["default"] = result["machine_start_gcode"] | |
json["machine_settings"]["machine_end_gcode"]["default"] = result["machine_end_gcode"] | |
File.write("ulti-alu-maker.json", JSON.pretty_generate(json) + "\n") | |
File.unlink("start-end-gcode.yaml") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "ulti-alu-maker", | |
"version": 1, | |
"name": "UltiAluMaker", | |
"manufacturer": "Yourself", | |
"author": "Lars Christensen", | |
"file_formats": "text/x-gcode", | |
"inherits": "ultimaker.json", | |
"machine_extruder_trains": [ | |
{ | |
"machine_nozzle_heat_up_speed": { | |
"default": 2.0 | |
}, | |
"machine_nozzle_cool_down_speed": { | |
"default": 2.0 | |
}, | |
"machine_nozzle_tip_outer_diameter": { | |
"default": 1 | |
}, | |
"machine_nozzle_head_distance": { | |
"default": 3 | |
}, | |
"machine_nozzle_expansion_angle": { | |
"default": 45 | |
}, | |
"machine_heat_zone_length": { | |
"default": 16 | |
} | |
} | |
], | |
"machine_settings": { | |
"machine_start_gcode": { | |
"default": "G28\nG1 Z1\nG92 E0\nG1 E10 F300\nG92 E0\nG1 F3000 X80\n" | |
}, | |
"machine_end_gcode": { | |
"default": "M104 S0\nM140 S0\nG92 E6\nG1 F1500 E0\nG91\nG0 F15000 X-20 Y20 Z20\nG90\nG28 X0 Y0 Z0\nM84" | |
}, | |
"machine_width": { | |
"default": 200 | |
}, | |
"machine_depth": { | |
"default": 200 | |
}, | |
"machine_height": { | |
"default": 200 | |
}, | |
"machine_heated_bed": { | |
"default": true | |
}, | |
"machine_head_with_fans_polygon": { | |
"default": [ | |
[ | |
-42, | |
12 | |
], | |
[ | |
-42, | |
-32 | |
], | |
[ | |
62, | |
12 | |
], | |
[ | |
62, | |
-32 | |
] | |
] | |
}, | |
"machine_center_is_zero": { | |
"default": false | |
}, | |
"machine_nozzle_size": { | |
"default": 0.4, | |
"min_value": "0.001" | |
}, | |
"machine_nozzle_heat_up_speed": { | |
"default": 2.0 | |
}, | |
"machine_nozzle_cool_down_speed": { | |
"default": 2.0 | |
}, | |
"gantry_height": { | |
"default": 60 | |
}, | |
"machine_gcode_flavor": { | |
"default": "RepRap" | |
}, | |
"machine_nozzle_tip_outer_diameter": { | |
"default": 1.0 | |
}, | |
"machine_nozzle_head_distance": { | |
"default": 3.0 | |
}, | |
"machine_nozzle_expansion_angle": { | |
"default": 45 | |
} | |
}, | |
"overrides": { | |
"material_diameter": { | |
"default": 1.75 | |
}, | |
"layer_height_0": { | |
"default": 0.1 | |
}, | |
"speed_travel": { | |
"default": 300 | |
}, | |
"speed_layer_0": { | |
"default": 30 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment