From 57b2fec144dc5b4208d04bbc68ce53df34df4565 Mon Sep 17 00:00:00 2001 From: Rock Storm Date: Sun, 15 Jan 2017 13:25:24 +0100 Subject: [PATCH 2/2] Add G-code specification --- freedesktop.org.xml.in | 7 + tests/list | 1 + tests/test.gcode | 407 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 415 insertions(+) create mode 100644 tests/test.gcode diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index 32d23fd..0884ddb 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -6948,4 +6948,11 @@ command to generate the output files. + + <_comment>G-code file + + + + + diff --git a/tests/list b/tests/list index cd45c95..5588f19 100644 --- a/tests/list +++ b/tests/list @@ -631,3 +631,4 @@ binary.stl model/vnd.stl-binary ascii.stl model/vnd.stl-ascii binary.stl model/vnd.stl-ascii ox ascii.stl model/vnd.stl-binary ox +test.gcode application/x-gcode diff --git a/tests/test.gcode b/tests/test.gcode new file mode 100644 index 0000000..4a9d4f5 --- /dev/null +++ b/tests/test.gcode @@ -0,0 +1,407 @@ +; generated by Slic3r 1.2.9 on 2017-01-15 at 12:00:32 + +; external perimeters extrusion width = 0.50mm +; perimeters extrusion width = 0.58mm +; infill extrusion width = 0.58mm +; solid infill extrusion width = 0.58mm +; top infill extrusion width = 0.58mm + +M107 +M104 S205 ; set temperature +G28 ; home all axes +G1 Z5 F5000 ; lift nozzle + +M109 S205 ; wait for temperature to be reached +G21 ; set units to millimeters +G90 ; use absolute coordinates +M82 ; use absolute distances for extrusion +G92 E0 +G1 Z0.500 F7800.000 +G1 E-2.00000 F2400.00000 +G92 E0 +G1 X92.681 Y93.686 F7800.000 +G1 E2.00000 F2400.00000 +G1 X94.443 Y92.146 E2.14774 F899.921 +G1 X96.619 Y91.285 E2.29548 +G1 X98.031 Y91.139 E2.38516 +G1 X101.969 Y91.139 E2.63377 +G1 X104.274 Y91.536 E2.78151 +G1 X106.314 Y92.681 E2.92925 F899.921 +G1 X107.854 Y94.443 E3.07699 +G1 X108.715 Y96.619 E3.22473 +G1 X108.861 Y98.031 E3.31441 +G1 X108.861 Y101.969 E3.56302 +G1 X108.464 Y104.274 E3.71076 +G1 X107.319 Y106.314 E3.85850 +G1 X105.557 Y107.854 E4.00624 +G1 X103.381 Y108.715 E4.15398 +G1 X101.969 Y108.861 E4.24366 +G1 X98.031 Y108.861 E4.49226 +G1 X95.726 Y108.464 E4.64001 +G1 X93.686 Y107.319 E4.78775 +G1 X92.146 Y105.557 E4.93549 +G1 X91.285 Y103.381 E5.08323 +G1 X91.139 Y101.969 E5.17291 +G1 X91.139 Y98.031 E5.42151 +G1 X91.536 Y95.726 E5.56925 +G1 X92.645 Y93.751 E5.71226 +G1 E3.71226 F2400.00000 +G92 E0 +G1 X100.576 Y100.576 F7800.000 +G1 E2.00000 F2400.00000 +G1 X99.424 Y100.576 E2.07272 F899.921 +G1 X99.424 Y99.424 E2.14544 +G1 X100.576 Y99.424 E2.21816 +G1 X100.576 Y100.501 E2.28614 +G1 X101.469 Y101.469 F7800.000 +G1 X98.531 Y101.469 E2.47160 F899.921 +G1 X98.531 Y98.531 E2.65706 +G1 X101.469 Y98.531 E2.84252 +G1 X101.469 Y101.394 E3.02324 +G1 X101.035 Y101.219 F7800.000 +M104 S200 ; set temperature +G1 Z0.900 F7800.000 +G1 X100.775 Y100.775 F7800.000 +G1 X99.225 Y100.775 E3.06630 F600.000 +G1 X99.225 Y99.225 E3.10936 +G1 X100.775 Y99.225 E3.15243 +G1 X100.775 Y100.700 E3.19340 +G1 X101.266 Y101.266 F7800.000 +G1 X98.734 Y101.266 E3.26374 F600.000 +G1 X98.734 Y98.734 E3.33407 +G1 X101.266 Y98.734 E3.40440 +G1 X101.266 Y101.191 E3.47265 +G1 X101.719 Y101.719 F7800.000 +G1 X98.281 Y101.719 E3.55320 F600.000 +G1 X98.281 Y98.281 E3.63375 +G1 X101.719 Y98.281 E3.71431 +G1 X101.719 Y101.644 E3.79310 +G1 X101.285 Y101.469 F7800.000 +G1 X100.234 Y100.482 F7800.000 +G1 X100.482 Y100.234 E3.80316 F600.000 +G1 X100.462 Y99.538 E3.82309 +G1 X99.538 Y100.462 E3.86052 +G1 X99.518 Y99.766 E3.88046 +G1 X99.766 Y99.518 E3.89051 +G1 Z1.300 F7800.000 +G1 X100.775 Y100.775 F7800.000 +G1 X99.225 Y100.775 E3.93358 F600.000 +G1 X99.225 Y99.225 E3.97664 +G1 X100.775 Y99.225 E4.01970 +G1 X100.775 Y100.700 E4.06068 +G1 X101.266 Y101.266 F7800.000 +G1 X98.734 Y101.266 E4.13101 F600.000 +G1 X98.734 Y98.734 E4.20134 +G1 X101.266 Y98.734 E4.27168 +G1 X101.266 Y101.191 E4.33993 +G1 X101.719 Y101.719 F7800.000 +G1 X98.281 Y101.719 E4.42048 F600.000 +G1 X98.281 Y98.281 E4.50103 +G1 X101.719 Y98.281 E4.58158 +G1 X101.719 Y101.644 E4.66038 +G1 X101.285 Y101.469 F7800.000 +G1 X100.482 Y99.766 F7800.000 +G1 X100.234 Y99.518 E4.67043 F600.000 +G1 X99.538 Y99.538 E4.69037 +G1 X100.462 Y100.462 E4.72780 +G1 X99.766 Y100.482 E4.74773 +G1 X99.518 Y100.234 E4.75779 +M106 S255 +G1 Z1.700 F7800.000 +G1 X100.775 Y100.775 F7800.000 +G1 X99.225 Y100.775 E4.80085 F600.000 +G1 X99.225 Y99.225 E4.84391 +G1 X100.775 Y99.225 E4.88698 +G1 X100.775 Y100.700 E4.92795 +G1 X101.266 Y101.266 F7800.000 +G1 X98.734 Y101.266 E4.99829 F600.000 +G1 X98.734 Y98.734 E5.06862 +G1 X101.266 Y98.734 E5.13895 +G1 X101.266 Y101.191 E5.20720 +G1 X101.719 Y101.719 F7800.000 +G1 X98.281 Y101.719 E5.28775 F600.000 +G1 X98.281 Y98.281 E5.36830 +G1 X101.719 Y98.281 E5.44886 +G1 X101.719 Y101.644 E5.52765 +G1 X101.285 Y101.469 F7800.000 +G1 X100.234 Y100.482 F7800.000 +G1 X100.482 Y100.234 E5.53771 F600.000 +G1 X100.462 Y99.538 E5.55764 +G1 X99.538 Y100.462 E5.59507 +G1 X99.518 Y99.766 E5.61500 +G1 X99.766 Y99.518 E5.62506 +G1 Z2.100 F7800.000 +G1 X100.775 Y100.775 F7800.000 +G1 X99.225 Y100.775 E5.66812 F600.000 +G1 X99.225 Y99.225 E5.71118 +G1 X100.775 Y99.225 E5.75425 +G1 X100.775 Y100.700 E5.79522 +G1 X101.266 Y101.266 F7800.000 +G1 X98.734 Y101.266 E5.86556 F600.000 +G1 X98.734 Y98.734 E5.93589 +G1 X101.266 Y98.734 E6.00622 +G1 X101.266 Y101.191 E6.07447 +G1 X101.719 Y101.719 F7800.000 +G1 X98.281 Y101.719 E6.15502 F600.000 +G1 X98.281 Y98.281 E6.23558 +G1 X101.719 Y98.281 E6.31613 +G1 X101.719 Y101.644 E6.39492 +G1 X101.285 Y101.469 F7800.000 +G1 X100.482 Y99.766 F7800.000 +G1 X100.234 Y99.518 E6.40498 F600.000 +G1 X99.538 Y99.538 E6.42491 +G1 X100.462 Y100.462 E6.46234 +G1 X99.766 Y100.482 E6.48227 +G1 X99.518 Y100.234 E6.49233 +G1 Z2.500 F7800.000 +G1 X100.775 Y100.775 F7800.000 +G1 X99.225 Y100.775 E6.53539 F600.000 +G1 X99.225 Y99.225 E6.57845 +G1 X100.775 Y99.225 E6.62152 +G1 X100.775 Y100.700 E6.66249 +G1 X101.266 Y101.266 F7800.000 +G1 X98.734 Y101.266 E6.73283 F600.000 +G1 X98.734 Y98.734 E6.80316 +G1 X101.266 Y98.734 E6.87349 +G1 X101.266 Y101.191 E6.94174 +G1 X101.719 Y101.719 F7800.000 +G1 X98.281 Y101.719 E7.02229 F600.000 +G1 X98.281 Y98.281 E7.10285 +G1 X101.719 Y98.281 E7.18340 +G1 X101.719 Y101.644 E7.26219 +G1 X101.285 Y101.469 F7800.000 +G1 X100.234 Y100.482 F7800.000 +G1 X100.482 Y100.234 E7.27225 F600.000 +G1 X100.462 Y99.538 E7.29218 +G1 X99.538 Y100.462 E7.32961 +G1 X99.518 Y99.766 E7.34955 +G1 X99.766 Y99.518 E7.35960 +G1 Z2.900 F7800.000 +G1 X100.775 Y100.775 F7800.000 +G1 X99.225 Y100.775 E7.40266 F600.000 +G1 X99.225 Y99.225 E7.44572 +G1 X100.775 Y99.225 E7.48879 +G1 X100.775 Y100.700 E7.52976 +G1 X101.266 Y101.266 F7800.000 +G1 X98.734 Y101.266 E7.60010 F600.000 +G1 X98.734 Y98.734 E7.67043 +G1 X101.266 Y98.734 E7.74076 +G1 X101.266 Y101.191 E7.80901 +G1 X101.719 Y101.719 F7800.000 +G1 X98.281 Y101.719 E7.88956 F600.000 +G1 X98.281 Y98.281 E7.97012 +G1 X101.719 Y98.281 E8.05067 +G1 X101.719 Y101.644 E8.12946 +G1 X101.285 Y101.469 F7800.000 +G1 X100.482 Y99.766 F7800.000 +G1 X100.234 Y99.518 E8.13952 F600.000 +G1 X99.538 Y99.538 E8.15945 +G1 X100.462 Y100.462 E8.19688 +G1 X99.766 Y100.482 E8.21682 +G1 X99.518 Y100.234 E8.22687 +G1 Z3.300 F7800.000 +G1 X100.775 Y100.775 F7800.000 +G1 X99.225 Y100.775 E8.26993 F600.000 +G1 X99.225 Y99.225 E8.31299 +G1 X100.775 Y99.225 E8.35606 +G1 X100.775 Y100.700 E8.39704 +G1 X101.266 Y101.266 F7800.000 +G1 X98.734 Y101.266 E8.46737 F600.000 +G1 X98.734 Y98.734 E8.53770 +G1 X101.266 Y98.734 E8.60803 +G1 X101.266 Y101.191 E8.67628 +G1 X101.719 Y101.719 F7800.000 +G1 X98.281 Y101.719 E8.75683 F600.000 +G1 X98.281 Y98.281 E8.83739 +G1 X101.719 Y98.281 E8.91794 +G1 X101.719 Y101.644 E8.99673 +G1 X101.285 Y101.469 F7800.000 +G1 X100.234 Y100.482 F7800.000 +G1 X100.482 Y100.234 E9.00679 F600.000 +G1 X100.462 Y99.538 E9.02672 +G1 X99.538 Y100.462 E9.06415 +G1 X99.518 Y99.766 E9.08409 +G1 X99.766 Y99.518 E9.09415 +G1 Z3.700 F7800.000 +G1 X100.775 Y100.775 F7800.000 +G1 X99.225 Y100.775 E9.13721 F600.000 +G1 X99.225 Y99.225 E9.18027 +G1 X100.775 Y99.225 E9.22333 +G1 X100.775 Y100.700 E9.26431 +G1 X101.266 Y101.266 F7800.000 +G1 X98.734 Y101.266 E9.33464 F600.000 +G1 X98.734 Y98.734 E9.40498 +G1 X101.266 Y98.734 E9.47531 +G1 X101.266 Y101.191 E9.54356 +G1 X101.719 Y101.719 F7800.000 +G1 X98.281 Y101.719 E9.62411 F600.000 +G1 X98.281 Y98.281 E9.70466 +G1 X101.719 Y98.281 E9.78521 +G1 X101.719 Y101.644 E9.86401 +G1 X101.285 Y101.469 F7800.000 +G1 X100.482 Y99.766 F7800.000 +G1 X100.234 Y99.518 E9.87406 F600.000 +G1 X99.538 Y99.538 E9.89400 +G1 X100.462 Y100.462 E9.93143 +G1 X99.766 Y100.482 E9.95137 +G1 X99.518 Y100.234 E9.96142 +G1 Z4.100 F7800.000 +G1 X100.775 Y100.775 F7800.000 +G1 X99.225 Y100.775 E10.00448 F600.000 +G1 X99.225 Y99.225 E10.04754 +G1 X100.775 Y99.225 E10.09061 +G1 X100.775 Y100.700 E10.13159 +G1 X101.266 Y101.266 F7800.000 +G1 X98.734 Y101.266 E10.20192 F600.000 +G1 X98.734 Y98.734 E10.27225 +G1 X101.266 Y98.734 E10.34258 +G1 X101.266 Y101.191 E10.41083 +G1 X101.719 Y101.719 F7800.000 +G1 X98.281 Y101.719 E10.49138 F600.000 +G1 X98.281 Y98.281 E10.57194 +G1 X101.719 Y98.281 E10.65249 +G1 X101.719 Y101.644 E10.73128 +G1 X101.285 Y101.469 F7800.000 +G1 X100.234 Y100.482 F7800.000 +G1 X100.482 Y100.234 E10.74134 F600.000 +G1 X100.462 Y99.538 E10.76127 +G1 X99.538 Y100.462 E10.79870 +G1 X99.518 Y99.766 E10.81864 +G1 X99.766 Y99.518 E10.82870 +G1 E8.82870 F2400.00000 +G92 E0 +M107 +M104 S0 ; turn off temperature +G28 X0 ; home X axis +M84 ; disable motors + +; filament used = 12.5mm (0.1cm3) + +; avoid_crossing_perimeters = 1 +; bed_shape = 0x0,200x0,200x200,0x200 +; bed_temperature = 0 +; before_layer_gcode = +; bridge_acceleration = 0 +; bridge_fan_speed = 100 +; brim_width = 0 +; complete_objects = 0 +; cooling = 1 +; default_acceleration = 0 +; disable_fan_first_layers = 3 +; duplicate_distance = 6 +; end_gcode = M104 S0 ; turn off temperature\nG28 X0 ; home X axis\nM84 ; disable motors\n +; extruder_clearance_height = 20 +; extruder_clearance_radius = 20 +; extruder_offset = 0x0 +; extrusion_axis = E +; extrusion_multiplier = 1 +; fan_always_on = 0 +; fan_below_layer_time = 60 +; filament_colour = #FFFFFF +; filament_diameter = 3 +; first_layer_acceleration = 0 +; first_layer_bed_temperature = 0 +; first_layer_extrusion_width = 200% +; first_layer_speed = 30 +; first_layer_temperature = 205 +; gcode_arcs = 0 +; gcode_comments = 0 +; gcode_flavor = reprap +; infill_acceleration = 0 +; infill_first = 0 +; layer_gcode = +; max_fan_speed = 100 +; max_print_speed = 80 +; max_volumetric_speed = 0 +; min_fan_speed = 35 +; min_print_speed = 10 +; min_skirt_length = 0 +; notes = +; nozzle_diameter = 0.5 +; only_retract_when_crossing_perimeters = 1 +; ooze_prevention = 0 +; output_filename_format = [input_filename_base].gcode +; perimeter_acceleration = 0 +; post_process = +; pressure_advance = 0 +; resolution = 0 +; retract_before_travel = 2 +; retract_layer_change = 0 +; retract_length = 2 +; retract_length_toolchange = 10 +; retract_lift = 0 +; retract_restart_extra = 0 +; retract_restart_extra_toolchange = 0 +; retract_speed = 40 +; skirt_distance = 6 +; skirt_height = 1 +; skirts = 1 +; slowdown_below_layer_time = 5 +; spiral_vase = 0 +; standby_temperature_delta = -5 +; start_gcode = G28 ; home all axes\nG1 Z5 F5000 ; lift nozzle\n +; temperature = 200 +; threads = 2 +; toolchange_gcode = +; travel_speed = 130 +; use_firmware_retraction = 0 +; use_relative_e_distances = 0 +; use_volumetric_e = 0 +; vibration_limit = 0 +; wipe = 0 +; z_offset = 0 +; dont_support_bridges = 1 +; extrusion_width = 0 +; first_layer_height = 0.5 +; infill_only_where_needed = 0 +; interface_shells = 0 +; layer_height = 0.4 +; raft_layers = 0 +; seam_position = aligned +; support_material = 0 +; support_material_angle = 0 +; support_material_contact_distance = 0.2 +; support_material_enforce_layers = 0 +; support_material_extruder = 1 +; support_material_extrusion_width = 0 +; support_material_interface_extruder = 1 +; support_material_interface_layers = 3 +; support_material_interface_spacing = 0 +; support_material_interface_speed = 100% +; support_material_pattern = pillars +; support_material_spacing = 2.5 +; support_material_speed = 60 +; support_material_threshold = 0 +; xy_size_compensation = 0 +; bottom_solid_layers = 3 +; bridge_flow_ratio = 1 +; bridge_speed = 60 +; external_fill_pattern = rectilinear +; external_perimeter_extrusion_width = 0 +; external_perimeter_speed = 50% +; external_perimeters_first = 0 +; extra_perimeters = 1 +; fill_angle = 45 +; fill_density = 20% +; fill_pattern = honeycomb +; gap_fill_speed = 20 +; infill_every_layers = 10 +; infill_extruder = 1 +; infill_extrusion_width = 0 +; infill_overlap = 15% +; infill_speed = 80 +; overhangs = 1 +; perimeter_extruder = 1 +; perimeter_extrusion_width = 0 +; perimeter_speed = 60 +; perimeters = 3 +; small_perimeter_speed = 15 +; solid_infill_below_area = 70 +; solid_infill_every_layers = 0 +; solid_infill_extruder = 1 +; solid_infill_extrusion_width = 0 +; solid_infill_speed = 20 +; thin_walls = 1 +; top_infill_extrusion_width = 0 +; top_solid_infill_speed = 15 +; top_solid_layers = 3 -- 2.11.0