Skip to content

Instantly share code, notes, and snippets.

@fieldOfView
Created July 5, 2016 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fieldOfView/e0c575516f0b02a506302b8d95e574e3 to your computer and use it in GitHub Desktop.
Save fieldOfView/e0c575516f0b02a506302b8d95e574e3 to your computer and use it in GitHub Desktop.
Ultimaker 2 machine definition variation for Cura 2.2.x that uses RepRap gcode flavor instead of UltiGCode. Useful in combination with OctoPrint
{
"id": "ultimaker2_reprap",
"version": 2,
"name": "Ultimaker 2 (reprap)",
"inherits": "ultimaker2",
"metadata": {
"visible": true,
"author": "Ultimaker",
"manufacturer": "Ultimaker",
"category": "Ultimaker",
"file_formats": "text/x-gcode",
"icon": "icon_ultimaker2.png",
"platform": "ultimaker2_platform.obj",
"platform_texture": "Ultimaker2backplate.png",
"platform_offset": [9, 0, 0],
"has_materials": true,
"preferred_material": "*pla*",
"supported_actions": ["UpgradeFirmware"]
},
"overrides": {
"material_print_temperature": {
"enabled": "not (material_flow_dependent_temperature)"
},
"material_bed_temperature": {
"enabled": "machine_heated_bed"
},
"material_diameter": {
"enabled": "true"
},
"material_flow": {
"enabled": "true"
},
"retraction_amount": {
"enabled": "retraction_enable"
},
"retraction_speed": {
"enabled": "retraction_enable"
},
"retraction_retract_speed": {
"enabled": "retraction_enable"
},
"retraction_prime_speed": {
"enabled": "retraction_enable"
},
"machine_gcode_flavor": {
"default_value": "RepRap (Marlin/Sprinter)"
},
"machine_start_gcode": {
"default_value": "G21 ;metric values\nG90 ;absolute positioning\nM82 ;set extruder to absolute mode\nM107 ;start with the fan off\nG1 X0 Y0 ;move X/Y to min endstops\nG28 Z0 ;move Z to bottom endstops\nG1 Z15.0 F9000 ;move the platform to 15mm\nG92 E0 ;zero the extruded length\nG1 F200 E10 ;extrude 10 mm of feed stock\nG92 E0 ;zero the extruded length again\nG1 F9000\n;Put printing message on LCD screen\nM117 Printing..."
},
"machine_end_gcode": {
"default_value": "M104 S0 ;extruder heater off\nM140 S0 ;heated bed heater off (if you have it)\nG91 ;relative positioning\nG1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure\nG1 Z+0.5 E-5 X-20 Y-20 F9000 ;move Z up a bit and retract filament even more\nG28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way\nM84 ;steppers off\nG90 ;absolute positioning"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment