Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Blocks machines to ultimaker cura #11620

Merged
merged 44 commits into from
Jan 10, 2023
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
58505d9
add definition files Blocks
jgrilo-blocks Mar 7, 2022
6a8e695
add extruder files
jgrilo-blocks Mar 7, 2022
15ab283
Add mesh files
jgrilo-blocks Mar 7, 2022
8caacfa
add quality setting files
jgrilo-blocks Mar 7, 2022
17d93d0
add variants files
jgrilo-blocks Mar 7, 2022
6d7617b
add variants files
jgrilo-blocks Mar 23, 2022
1371bf1
Revert "add variants files "
jgrilo-blocks Mar 23, 2022
7428b13
Add variants files
jgrilo-blocks Mar 23, 2022
e49a574
Add quality files
jgrilo-blocks Mar 23, 2022
15c7a98
Edited definitions files
jgrilo-blocks Mar 23, 2022
228da72
R21 definition file fixed
jgrilo-blocks Apr 1, 2022
a70c773
Definition Blocks Files
braga-dev Oct 14, 2022
1f12e42
Update Blocks Extruder Files
braga-dev Oct 14, 2022
247d05e
Update Meshes Blocks Printers
braga-dev Oct 14, 2022
b39a00b
Update Blocks Global Files
braga-dev Oct 14, 2022
7610d92
Update Global Files
braga-dev Oct 14, 2022
27b9c1e
Update Standard Files
braga-dev Oct 14, 2022
01fb120
Update Blocks Variants
braga-dev Oct 14, 2022
5a05f8e
Update resources/definitions/blocks_pros30.def.json
braga-dev Oct 14, 2022
1c2dcd8
Merge branch 'Ultimaker:main' into master
braga-dev Dec 16, 2022
1dabc6b
Update resources/definitions/blocks_base.def.json
braga-dev Dec 16, 2022
b6104c1
Update resources/definitions/blocks_base.def.json
braga-dev Dec 16, 2022
0e0fab3
Update resources/definitions/blocks_base.def.json
braga-dev Dec 16, 2022
35ecb7c
Update resources/definitions/blocks_base.def.json
braga-dev Dec 16, 2022
9b3bd34
Update resources/definitions/blocks_base.def.json
braga-dev Dec 16, 2022
12285e9
Update resources/definitions/blocks_base.def.json
braga-dev Dec 16, 2022
bb4b0c4
Update resources/definitions/blocks_base.def.json
braga-dev Dec 16, 2022
dc21a69
Update resources/definitions/blocks_base.def.json
braga-dev Dec 16, 2022
3b49f5a
Applied printer-linter format
braga-dev Dec 16, 2022
31b3e8d
Apply suggestions from code review
braga-dev Dec 16, 2022
69ae67c
Applied printer-linter format
braga-dev Dec 16, 2022
6376783
Merge branch 'Ultimaker:main' into master
braga-dev Dec 16, 2022
8334745
Apply suggestions from code review
braga-dev Dec 30, 2022
a8ef4e2
Applied printer-linter format
braga-dev Dec 30, 2022
e8a5751
Merge branch 'main' into blockstech
jellespijker Dec 30, 2022
85201e7
Merge branch 'main' into blockstech
jellespijker Dec 30, 2022
ee58dce
Moved block variants to their own specific folder
jellespijker Dec 30, 2022
5f5e758
Applied printer-linter formatting
jellespijker Dec 30, 2022
1b59141
Removed old 4.x settings
jellespijker Dec 30, 2022
c2e5246
Use the correct stl file
jellespijker Dec 30, 2022
db8aa5b
Fixed wrong extruder number mismatch
jellespijker Dec 30, 2022
52aed18
Merge pull request #1 from Ultimaker/blockstech
braga-dev Jan 6, 2023
2c4b4eb
Delete blocks_oneauto_extruder_0.def.json
braga-dev Jan 6, 2023
63a1994
Merge branch 'Ultimaker:main' into master
braga-dev Jan 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
200 changes: 200 additions & 0 deletions resources/definitions/blocks_base.def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
{
"name": "Blocks Base Printer",
"version": 2,
"inherits": "fdmprinter",
"metadata": {
"visible": false,
"author": "Blocks Dev Team - J. Grilo",
"manufacturer": "Blocks",
"file_formats": "text/x-gcode",
"first_start_actions": ["MachineSettingsAction"],

"has_materials": true,
"has_variants": true,
"has_machine_quality": true,

"variants_name": "Nozzle Size",
"preferred_variant_name": "0.4mm Nozzle",
"preferred_quality_type": "normal",
"preferred_material": "generic_pla"
},
"overrides": {
"machine_center_is_zero": { "default_value": false },

"machine_max_feedrate_x": { "value": 500 },
"machine_max_feedrate_y": { "value": 500 },
"machine_max_feedrate_z": { "value": 10 },
"machine_max_feedrate_e": { "value": 50 },

"machine_max_acceleration_x": { "value": 500 },
"machine_max_acceleration_y": { "value": 500 },
"machine_max_acceleration_z": { "value": 100 },
"machine_max_acceleration_e": { "value": 5000 },
"machine_acceleration": { "value": 500 },

"machine_max_jerk_xy": { "value": 10 },
"machine_max_jerk_z": { "value": 0.4 },
"machine_max_jerk_e": { "value": 5 },

"machine_heated_bed": { "default_value": true },

"material_diameter": { "default_value": 1.75 },

"acceleration_print": { "value": 500 },
"acceleration_travel": { "value": 500 },
"acceleration_travel_layer_0": { "value": "acceleration_travel" },
"acceleration_roofing": {
"enabled": "acceleration_enabled and roofing_layer_count > 0 and top_layers > 0"
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"acceleration_roofing": {
"enabled": "acceleration_enabled and roofing_layer_count > 0 and top_layers > 0"
},

The default value uses a more robust variant that is effectively the same.


"jerk_print": { "value": 8 },
"jerk_travel": { "value": "jerk_print" },
"jerk_travel_layer_0": { "value": "jerk_travel" },

"acceleration_enabled": { "value": false },
"jerk_enabled": { "value": false },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"acceleration_enabled": { "value": false },
"jerk_enabled": { "value": false },

Default values, no need to repeat yourself.


"speed_print": { "value": 50.0 },
"speed_infill": { "value": "speed_print" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"speed_infill": { "value": "speed_print" },

Default value

"speed_wall": { "value": "speed_print / 2" },
"speed_wall_0": { "value": "speed_wall" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"speed_wall": { "value": "speed_print / 2" },
"speed_wall_0": { "value": "speed_wall" },

"speed_wall_x": { "value": "speed_wall" },
"speed_topbottom": { "value": "speed_print / 2" },
"speed_roofing": { "value": "speed_topbottom" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"speed_topbottom": { "value": "speed_print / 2" },
"speed_roofing": { "value": "speed_topbottom" },

"speed_travel": {
"value": "150.0 if speed_print < 60 else 250.0 if speed_print > 100 else speed_print * 2.5"
},
"speed_layer_0": { "value": 20.0 },
"speed_print_layer_0": { "value": "speed_layer_0" },
"speed_travel_layer_0": {
"value": "100 if speed_layer_0 < 20 else 150 if speed_layer_0 > 30 else speed_layer_0 * 5"
},
"speed_prime_tower": { "value": "speed_topbottom" },
"speed_support": { "value": "speed_wall_0" },
"speed_support_interface": { "value": "speed_topbottom" },
"speed_z_hop": { "value": 5 },

"skirt_brim_speed": { "value": "speed_layer_0" },

"line_width": { "value": "machine_nozzle_size" },
"wall_line_width": { "value": "machine_nozzle_size" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"line_width": { "value": "machine_nozzle_size" },
"wall_line_width": { "value": "machine_nozzle_size" },


"optimize_wall_printing_order": { "value": "True" },

"material_initial_print_temperature": {
"value": "material_print_temperature"
},
"material_final_print_temperature": {
"value": "material_print_temperature"
},
"material_flow": { "value": 100 },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"material_flow": { "value": 100 },

The default material print temperature is 100 by default.

"travel_compensate_overlapping_walls_0_enabled": { "value": "False" },

"z_seam_type": { "value": "'back'" },
"z_seam_corner": { "value": "'z_seam_corner_weighted'" },

"infill_sparse_density": { "value": "20" },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ diagnostic-definition-redundant-override ⚠️
Overriding infill_sparse_density with the same value (value: 20) as defined in parent definition: fdmprinter

Suggested change
"infill_sparse_density": { "value": "20" },

"infill_pattern": {
"value": "'lines' if infill_sparse_density > 50 else 'cubic'"
},
"infill_before_walls": { "value": false },
"infill_overlap": { "value": 30.0 },
"skin_overlap": { "value": 10.0 },
"infill_wipe_dist": { "value": 0.0 },
"wall_0_wipe_dist": { "value": 0.0 },

"fill_perimeter_gaps": { "value": "'nowhere'" },
"fill_outline_gaps": { "value": true },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ diagnostic-definition-redundant-override ⚠️
Overriding fill_outline_gaps with the same value (value: True) as defined in parent definition: fdmprinter

Suggested change
"fill_outline_gaps": { "value": true },

"filter_out_tiny_gaps": { "value": false },

"retraction_speed": {
"deafult_value": 40,
"maximum_value_warning": "machine_max_feedrate_e if retraction_enable else float('inf')",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"maximum_value_warning": "machine_max_feedrate_e if retraction_enable else float('inf')",

Already the default, no need to repeat yourself

"maximum_value": 200
},
"retraction_retract_speed": {
"maximum_value_warning": "machine_max_feedrate_e if retraction_enable else float('inf')",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"maximum_value_warning": "machine_max_feedrate_e if retraction_enable else float('inf')",

"maximum_value": 200
},
"retraction_prime_speed": {
"maximum_value_warning": "machine_max_feedrate_e if retraction_enable else float('inf')",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"maximum_value_warning": "machine_max_feedrate_e if retraction_enable else float('inf')",

"maximum_value": 200
},

"alternate_extra_perimeter": { "default_value": true },
"roofing_layer_count": { "value": 1 },
"infill_enable_travel_optimization": { "default_value": true },
"minimum_polygon_circumference": { "default_value": 0.2 },
"wall_overhang_angle": { "default_value": 75 },
"wall_overhang_speed_factor": { "default_value": 50 },

"retraction_hop_enabled": { "value": "False" },
"retraction_hop": { "value": 0.2 },
"retraction_combing": {
"value": "'off' if retraction_hop_enabled else 'noskin'"
},
"retraction_combing_max_distance": { "value": 30 },
"travel_avoid_other_parts": { "value": true },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ diagnostic-definition-redundant-override ⚠️
Overriding travel_avoid_other_parts with the same value (value: True) as defined in parent definition: fdmprinter

Suggested change
"travel_avoid_other_parts": { "value": true },

"travel_avoid_supports": { "value": true },
"travel_retract_before_outer_wall": { "value": true },

"retraction_enable": { "value": true },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"retraction_enable": { "value": true },

This is already the default in fdmprinter, no need to repeat yourself.

"retraction_count_max": { "value": 100 },
"retraction_min_travel": { "value": 1.5 },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ diagnostic-definition-redundant-override ⚠️
Overriding retraction_min_travel with the same value (value: 1.5) as defined in parent definition: fdmprinter

Suggested change
"retraction_min_travel": { "value": 1.5 },


"cool_fan_full_at_height": { "value": "layer_height_0 + 2 * layer_height" },
"cool_fan_enabled": { "value": true },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ diagnostic-definition-redundant-override ⚠️
Overriding cool_fan_enabled with the same value (value: True) as defined in parent definition: fdmprinter

Suggested change
"cool_fan_enabled": { "value": true },

"cool_min_layer_time": { "value": 10 },

"adhesion_type": { "value": "'skirt'" },
"brim_replaces_support": { "value": false },
"skirt_gap": { "value": 10.0 },
"skirt_line_count": { "value": 3 },

"adaptive_layer_height_variation": { "value": 0.04 },
"adaptive_layer_height_variation_step": { "value": 0.04 },

"meshfix_maximum_resolution": { "value": "0.01" },
"meshfix_maximum_travel_resolution": {
"value": "meshfix_maximum_resolution"
},

"support_angle": {
"value": "math.floor(math.degrees(math.atan(line_width/2.0/layer_height)))"
},
"support_pattern": { "value": "'zigzag'" },
"support_infill_rate": {
"value": "0 if support_enable and support_structure == 'tree' else 20"
},
"support_use_towers": { "value": false },
"support_xy_distance": { "value": "wall_line_width_0 * 2" },
"support_xy_distance_overhang": { "value": "wall_line_width_0" },
"support_z_distance": {
"value": "layer_height if layer_height >= 0.16 else layer_height * 2"
},
"support_top_distance": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ diagnostic-definition-redundant-override ⚠️
Overriding support_top_distance with the same value (value: extruderValue(support_roof_extruder_nr if support_roof_enable else support_infill_extruder_nr, support_z_distance) + (layer_height if support_structure == tree else 0)) as defined in parent definition: fdmprinter

"value": "extruderValue(support_roof_extruder_nr if support_roof_enable else support_infill_extruder_nr, 'support_z_distance') + (layer_height if support_structure == 'tree' else 0)"
},
"support_xy_overrides_z": { "value": "'xy_overrides_z'" },
"support_wall_count": { "value": 1 },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ diagnostic-definition-redundant-override ⚠️
Overriding support_wall_count with the same value (value: 1) as defined in parent definition: fdmprinter

Suggested change
"support_wall_count": { "value": 1 },

"support_brim_enable": { "value": true },
"support_brim_width": { "value": 4 },

"support_interface_enable": { "value": true },
"support_interface_height": { "value": "layer_height * 4" },
"support_interface_density": { "value": 33.333 },
"support_interface_pattern": { "value": "'grid'" },
"support_interface_skip_height": { "value": 0.2 },
"minimum_support_area": { "value": 2 },
"minimum_interface_area": { "value": 10 },
"top_layers": {
"value": "math.ceil(round(top_thickness / resolveOrValue('layer_height'), 4))"
},
"bottom_layers": {
"value": "math.ceil(round(bottom_thickness / resolveOrValue('layer_height'), 4))"
},
"wall_thickness": { "value": "line_width * 2" },

"skin_monotonic" : { "value": true }
}
}
34 changes: 34 additions & 0 deletions resources/definitions/blocks_mkii.def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "Blocks One MKII",
"version": 2,
"inherits": "blocks_base",
"metadata": {
"visible": true,

"quality_definition": "blocks_base",

"platform": "blocks_mk2_platform.stl",

"machine_extruder_trains": {
"0": "blocks_mkii_extruder_0"
}
},
"overrides": {
"machine_name": { "default_value": "Blocks One MKII" },

"machine_width": { "default_value": 200 },
"machine_height": { "default_value": 210 },
"machine_depth": { "default_value": 210 },

"retraction_retract_speed": { "value": 50, "maximum_value_warning": 130 },
"retraction_prime_speed": { "value": 20, "maximum_value_warning": 130 },
"speed_print": { "value": 50 },

"machine_start_gcode": {
"default_value": "G21\nG90 ;absolute positioning\nM82 ;set extruder to absolute mode\nM107 ;start with the fan off\nG28 X0 Y0 ;move X/Y to min endstops\nG28 Z0 ;move Z to min endstops\nG29\nG1 X-14 Y0 F6000\nG1 Z0.1\nG92 E0 ;zero the extruded length\nG1 F2000 E10 ;extrude 10mm of feed stock\nG92 E0 ;zero the extruded length again\nG1 Z0.2 F6000\nG1 F6000\nM117 Printing...\n"
},
"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 F6000 ;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\n"
}
}
}
36 changes: 36 additions & 0 deletions resources/definitions/blocks_pros100.def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "Blocks Pro S100",
"version": 2,
"inherits": "blocks_base",
"metadata": {
"visible": true,

"quality_definition": "blocks_base",

"preferred_variant_name": "0.8mm Nozzle",

"platform": "blocks_pros100_platform.stl",

"machine_extruder_trains": {
"0": "blocks_pros100_extruder_0"
}
},
"overrides": {
"machine_name": { "default_value": "Blocks Pro S100" },

"machine_width": { "default_value": 1000 },
"machine_height": { "default_value": 1000 },
"machine_depth": { "default_value": 1000 },

"retraction_retract_speed": { "value": 50, "maximum_value_warning": 130 },
"retraction_prime_speed": { "value": 20, "maximum_value_warning": 130 },
"speed_print": { "value": 50 },

"machine_start_gcode": {
"default_value": "G21\nG90 ;absolute positioning\nM82 ;set extruder to absolute mode\nM107 ;start with the fan off\nG28 X0 Y0 ;move X/Y to min endstops\nG28 Z0 ;move Z to min endstops\nG29\nG1 X-14 Y0 F6000\nG1 Z0.1\nG92 E0 ;zero the extruded length\nG1 F2000 E10 ;extrude 10mm of feed stock\nG92 E0 ;zero the extruded length again\nG1 Z0.2 F6000\nG1 F6000\nM117 Printing...\n"
},
"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 F6000 ;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\n"
}
}
}
36 changes: 36 additions & 0 deletions resources/definitions/blocks_pros30.def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"version": 2,
"name": "Blocks Pro S30",
"inherits": "blocks_base",
"metadata": {
"visible": true,

"quality_definition": "blocks_base",

"platform": "blocks_pros30_platform.stl",

"machine_extruder_trains": {
"0": "blocks_pros30_extruder_0"


}
},
"overrides": {
"machine_name": { "default_value": "Blocks Pro S30" },

"machine_width": { "default_value": 310 },
"machine_height": { "default_value": 290 },
"machine_depth": { "default_value": 310 },

"retraction_retract_speed": { "value": 40, "maximum_value_warning": 130 },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just define the maximum value_warning in the base file? THey seem to be the same for all machines.

"retraction_prime_speed": { "value": 20, "maximum_value_warning": 130 },
"speed_print": { "value": 50 },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the same for all printers. So why not just put it in the base file?


"machine_start_gcode": {
"default_value": "G21\nG90 ;absolute positioning\nM82 ;set extruder to absolute mode\nM107 ;start with the fan off\nG28 X0 Y0 ;move X/Y to min endstops\nG28 Z0 ;move Z to min endstops\nG29\nG1 X-14 Y0 F6000\nG1 Z0.1\nG92 E0 ;zero the extruded length\nG1 F2000 E10 ;extrude 10mm of feed stock\nG92 E0 ;zero the extruded length again\nG1 Z0.2 F6000\nG1 F6000\nM117 Printing...\n"
},
"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 F6000 ;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\n"
}
}
}
41 changes: 41 additions & 0 deletions resources/definitions/blocks_r21.def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "Blocks R21",
"version": 2,
"inherits": "blocks_base",
"metadata": {
"visible": true,
"first_start_actions": ["MachineSettingsAction"],
"has_materials": true,
"has_variants": true,
"has_machine_quality": true,
"preferred_variant_name": "ST - 0.4mm",
"preferred_quality_type": "normal",
"preferred_material": "generic_pla",
"variants_name": "Print Core",
"quality_definition": "blocks_base",

"platform": "blocks_r21_platform.stl",

"machine_extruder_trains": {
"0": "blocks_r21_extruder_0"
}
},
"overrides": {
"machine_name": { "default_value": "Blocks R21" },

"machine_width": { "default_value": 300 },
"machine_height": { "default_value": 250 },
"machine_depth": { "default_value": 210 },

"retraction_retract_speed": { "value": 50, "maximum_value_warning": 130 },
"retraction_prime_speed": { "value": 20, "maximum_value_warning": 130 },
"speed_print": { "value": 50 },

"machine_start_gcode": {
"default_value": "G21\nG90 ;absolute positioning\nM82 ;set extruder to absolute mode\nM107 ;start with the fan off\nG28 X0 Y0 ;move X/Y to min endstops\nG28 Z0 ;move Z to min endstops\nG29\nM117 ; Purge extruder\nG92 E0 ; Reset Extruder\nG1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed\nG1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position\nG1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line\nG1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little\nG1 X0.4 Y20 Z0.3 F1500.0 E30 ; Draw the second line\nG92 E0 ; Reset Extruder\nG1 Z1.0 F3000\nG1 X0.1 Y15 F3000.0\nG1 Z0.1 F3000.0\nG1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed\nM117 Printing...\n"
},
"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 F6000 ;move Z up a bit and retract filament even more\nG28 X0;move X/Y to min endstops, so the head is out of the way\nG1 Y210 F5000.0\nG1 Z+70\nM84 ;steppers off\nG90 ;absolute positioning\n"
}
}
}
36 changes: 36 additions & 0 deletions resources/definitions/blocks_zero.def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "Blocks Zero",
"version": 2,
"inherits": "blocks_base",
"metadata": {
"visible": true,

"quality_definition": "blocks_base",

"platform": "blocks_zero_platform.stl",

"machine_extruder_trains": {
"0": "blocks_zero_extruder_0"
}
},
"overrides": {
"machine_name": { "default_value": "Blocks Zero" },

"machine_heated_bed": { "default_value": false },

"machine_width": { "default_value": 120 },
"machine_height": { "default_value": 120 },
"machine_depth": { "default_value": 140 },

"retraction_retract_speed": { "value": 50, "maximum_value_warning": 130 },
"retraction_prime_speed": { "value": 20, "maximum_value_warning": 130 },
"speed_print": { "value": 50 },

"machine_start_gcode": {
"default_value": "G21\nG90 ;absolute positioning\nM82 ;set extruder to absolute mode\nM107 ;start with the fan off\nG28 X0 Y0 ;move X/Y to min endstops\nG28 Z0 ;move Z to min endstops\nG1 X-14 Y0 F6000\nG1 Z0.1\nG92 E0 ;zero the extruded length\nG1 F2000 E10 ;extrude 10mm of feed stock\nG92 E0 ;zero the extruded length again\nG1 Z0.2 F6000\nG1 F6000\nM117 Printing...\n"
},
"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 F6000 ;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\n"
}
}
}
Loading