From e82ea69e65ba7ee53c0a5f9a4bafb90742f9304a Mon Sep 17 00:00:00 2001 From: cochcoder <103969142+cochcoder@users.noreply.github.com> Date: Fri, 29 Mar 2024 21:49:55 -0400 Subject: [PATCH] Fix syntax errors in CR-10 SE G-Code (#4769) Flip /n to \n --- .../Creality/machine/Creality CR-10 SE 0.2 nozzle.json | 4 ++-- .../Creality/machine/Creality CR-10 SE 0.4 nozzle.json | 4 ++-- .../Creality/machine/Creality CR-10 SE 0.6 nozzle.json | 4 ++-- .../Creality/machine/Creality CR-10 SE 0.8 nozzle.json | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/profiles/Creality/machine/Creality CR-10 SE 0.2 nozzle.json b/resources/profiles/Creality/machine/Creality CR-10 SE 0.2 nozzle.json index d4fdb4f7b7..4074b93881 100644 --- a/resources/profiles/Creality/machine/Creality CR-10 SE 0.2 nozzle.json +++ b/resources/profiles/Creality/machine/Creality CR-10 SE 0.2 nozzle.json @@ -118,8 +118,8 @@ "default_filament_profile": [ "Creality Generic PLA" ], - "machine_start_gcode": "M220 S100 ;Reset feed rate /nM221 S100 ;Reset flow rate /nG28 ;Home /nG92 E0 ;Reset extruder /nG1 Z2.0 F3000 ;Move Z Axis up /nG1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position /nM109 S[material_print_temperature_layer_0] /nG1 X10.1 Y145.0 Z0.28 F1500.0 E15 ;Draw the first line /nG1 X10.4 Y145.0 Z0.28 F5000.0 ;Move to side a little \nG1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line \nG92 E0 ;Reset extruder \nG1 E-1.0000 F1800 ;Retract a bit \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 E0.0000 F1800", - "machine_end_gcode": "G91 ;Relative positioning /nG1 E-2 F2700 ;Retract a bit /nG1 E-2 Z0.2 F2400 ;Retract and raise Z /nG1 X5 Y5 F3000 ;Wipe out /nG1 Z3 ;Raise Z more /nG90 ;Absolute positioning /nG1 X2 Y218 F3000 ;Present print /nM106 S0 ;Turn-off fan /nM104 S0 ;Turn-off hotend /nM140 S0 ;Turn-off bed /nM84 X Y E ;Disable all steppers but Z", + "machine_start_gcode": "M220 S100 ;Reset feed rate \nM221 S100 ;Reset flow rate \nG28 ;Home \nG92 E0 ;Reset extruder \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position \nM109 S[material_print_temperature_layer_0] \nG1 X10.1 Y145.0 Z0.28 F1500.0 E15 ;Draw the first line \nG1 X10.4 Y145.0 Z0.28 F5000.0 ;Move to side a little \nG1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line \nG92 E0 ;Reset extruder \nG1 E-1.0000 F1800 ;Retract a bit \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 E0.0000 F1800", + "machine_end_gcode": "G91 ;Relative positioning \nG1 E-2 F2700 ;Retract a bit \nG1 E-2 Z0.2 F2400 ;Retract and raise Z \nG1 X5 Y5 F3000 ;Wipe out \nG1 Z3 ;Raise Z more \nG90 ;Absolute positioning \nG1 X2 Y218 F3000 ;Present print \nM106 S0 ;Turn-off fan \nM104 S0 ;Turn-off hotend \nM140 S0 ;Turn-off bed \nM84 X Y E ;Disable all steppers but Z", "scan_first_layer": "0", "thumbnails": [ "96x96", diff --git a/resources/profiles/Creality/machine/Creality CR-10 SE 0.4 nozzle.json b/resources/profiles/Creality/machine/Creality CR-10 SE 0.4 nozzle.json index f897f97e94..cba645a1b8 100644 --- a/resources/profiles/Creality/machine/Creality CR-10 SE 0.4 nozzle.json +++ b/resources/profiles/Creality/machine/Creality CR-10 SE 0.4 nozzle.json @@ -118,8 +118,8 @@ "default_filament_profile": [ "Creality Generic PLA" ], - "machine_start_gcode": "M220 S100 ;Reset feed rate /nM221 S100 ;Reset flow rate /nG28 ;Home /nG92 E0 ;Reset extruder /nG1 Z2.0 F3000 ;Move Z Axis up /nG1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position /nM109 S[material_print_temperature_layer_0] /nG1 X10.1 Y145.0 Z0.28 F1500.0 E15 ;Draw the first line /nG1 X10.4 Y145.0 Z0.28 F5000.0 ;Move to side a little \nG1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line \nG92 E0 ;Reset extruder \nG1 E-1.0000 F1800 ;Retract a bit \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 E0.0000 F1800", - "machine_end_gcode": "G91 ;Relative positioning /nG1 E-2 F2700 ;Retract a bit /nG1 E-2 Z0.2 F2400 ;Retract and raise Z /nG1 X5 Y5 F3000 ;Wipe out /nG1 Z3 ;Raise Z more /nG90 ;Absolute positioning /nG1 X2 Y218 F3000 ;Present print /nM106 S0 ;Turn-off fan /nM104 S0 ;Turn-off hotend /nM140 S0 ;Turn-off bed /nM84 X Y E ;Disable all steppers but Z", + "machine_start_gcode": "M220 S100 ;Reset feed rate \nM221 S100 ;Reset flow rate \nG28 ;Home \nG92 E0 ;Reset extruder \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position \nM109 S[material_print_temperature_layer_0] \nG1 X10.1 Y145.0 Z0.28 F1500.0 E15 ;Draw the first line \nG1 X10.4 Y145.0 Z0.28 F5000.0 ;Move to side a little \nG1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line \nG92 E0 ;Reset extruder \nG1 E-1.0000 F1800 ;Retract a bit \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 E0.0000 F1800", + "machine_end_gcode": "G91 ;Relative positioning \nG1 E-2 F2700 ;Retract a bit \nG1 E-2 Z0.2 F2400 ;Retract and raise Z \nG1 X5 Y5 F3000 ;Wipe out \nG1 Z3 ;Raise Z more \nG90 ;Absolute positioning \nG1 X2 Y218 F3000 ;Present print \nM106 S0 ;Turn-off fan \nM104 S0 ;Turn-off hotend \nM140 S0 ;Turn-off bed \nM84 X Y E ;Disable all steppers but Z", "scan_first_layer": "0", "thumbnails": [ "96x96", diff --git a/resources/profiles/Creality/machine/Creality CR-10 SE 0.6 nozzle.json b/resources/profiles/Creality/machine/Creality CR-10 SE 0.6 nozzle.json index 468dce22ea..7689480ce9 100644 --- a/resources/profiles/Creality/machine/Creality CR-10 SE 0.6 nozzle.json +++ b/resources/profiles/Creality/machine/Creality CR-10 SE 0.6 nozzle.json @@ -118,8 +118,8 @@ "default_filament_profile": [ "Creality Generic PLA" ], - "machine_start_gcode": "M220 S100 ;Reset feed rate /nM221 S100 ;Reset flow rate /nG28 ;Home /nG92 E0 ;Reset extruder /nG1 Z2.0 F3000 ;Move Z Axis up /nG1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position /nM109 S[material_print_temperature_layer_0] /nG1 X10.1 Y145.0 Z0.28 F1500.0 E15 ;Draw the first line /nG1 X10.4 Y145.0 Z0.28 F5000.0 ;Move to side a little \nG1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line \nG92 E0 ;Reset extruder \nG1 E-1.0000 F1800 ;Retract a bit \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 E0.0000 F1800", - "machine_end_gcode": "G91 ;Relative positioning /nG1 E-2 F2700 ;Retract a bit /nG1 E-2 Z0.2 F2400 ;Retract and raise Z /nG1 X5 Y5 F3000 ;Wipe out /nG1 Z3 ;Raise Z more /nG90 ;Absolute positioning /nG1 X2 Y218 F3000 ;Present print /nM106 S0 ;Turn-off fan /nM104 S0 ;Turn-off hotend /nM140 S0 ;Turn-off bed /nM84 X Y E ;Disable all steppers but Z", + "machine_start_gcode": "M220 S100 ;Reset feed rate \nM221 S100 ;Reset flow rate \nG28 ;Home \nG92 E0 ;Reset extruder \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position \nM109 S[material_print_temperature_layer_0] \nG1 X10.1 Y145.0 Z0.28 F1500.0 E15 ;Draw the first line \nG1 X10.4 Y145.0 Z0.28 F5000.0 ;Move to side a little \nG1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line \nG92 E0 ;Reset extruder \nG1 E-1.0000 F1800 ;Retract a bit \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 E0.0000 F1800", + "machine_end_gcode": "G91 ;Relative positioning \nG1 E-2 F2700 ;Retract a bit \nG1 E-2 Z0.2 F2400 ;Retract and raise Z \nG1 X5 Y5 F3000 ;Wipe out \nG1 Z3 ;Raise Z more \nG90 ;Absolute positioning \nG1 X2 Y218 F3000 ;Present print \nM106 S0 ;Turn-off fan \nM104 S0 ;Turn-off hotend \nM140 S0 ;Turn-off bed \nM84 X Y E ;Disable all steppers but Z", "scan_first_layer": "0", "thumbnails": [ "96x96", diff --git a/resources/profiles/Creality/machine/Creality CR-10 SE 0.8 nozzle.json b/resources/profiles/Creality/machine/Creality CR-10 SE 0.8 nozzle.json index e3f18f2c0f..1420e1213a 100644 --- a/resources/profiles/Creality/machine/Creality CR-10 SE 0.8 nozzle.json +++ b/resources/profiles/Creality/machine/Creality CR-10 SE 0.8 nozzle.json @@ -118,8 +118,8 @@ "default_filament_profile": [ "Creality Generic PLA" ], - "machine_start_gcode": "M220 S100 ;Reset feed rate /nM221 S100 ;Reset flow rate /nG28 ;Home /nG92 E0 ;Reset extruder /nG1 Z2.0 F3000 ;Move Z Axis up /nG1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position /nM109 S[material_print_temperature_layer_0] /nG1 X10.1 Y145.0 Z0.28 F1500.0 E15 ;Draw the first line /nG1 X10.4 Y145.0 Z0.28 F5000.0 ;Move to side a little \nG1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line \nG92 E0 ;Reset extruder \nG1 E-1.0000 F1800 ;Retract a bit \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 E0.0000 F1800", - "machine_end_gcode": "G91 ;Relative positioning /nG1 E-2 F2700 ;Retract a bit /nG1 E-2 Z0.2 F2400 ;Retract and raise Z /nG1 X5 Y5 F3000 ;Wipe out /nG1 Z3 ;Raise Z more /nG90 ;Absolute positioning /nG1 X2 Y218 F3000 ;Present print /nM106 S0 ;Turn-off fan /nM104 S0 ;Turn-off hotend /nM140 S0 ;Turn-off bed /nM84 X Y E ;Disable all steppers but Z", + "machine_start_gcode": "M220 S100 ;Reset feed rate \nM221 S100 ;Reset flow rate \nG28 ;Home \nG92 E0 ;Reset extruder \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 X10.1 Y20 Z0.28 F5000.0 ;Move to start position \nM109 S[material_print_temperature_layer_0] \nG1 X10.1 Y145.0 Z0.28 F1500.0 E15 ;Draw the first line \nG1 X10.4 Y145.0 Z0.28 F5000.0 ;Move to side a little \nG1 X10.4 Y20 Z0.28 F1500.0 E30 ;Draw the second line \nG92 E0 ;Reset extruder \nG1 E-1.0000 F1800 ;Retract a bit \nG1 Z2.0 F3000 ;Move Z Axis up \nG1 E0.0000 F1800", + "machine_end_gcode": "G91 ;Relative positioning \nG1 E-2 F2700 ;Retract a bit \nG1 E-2 Z0.2 F2400 ;Retract and raise Z \nG1 X5 Y5 F3000 ;Wipe out \nG1 Z3 ;Raise Z more \nG90 ;Absolute positioning \nG1 X2 Y218 F3000 ;Present print \nM106 S0 ;Turn-off fan \nM104 S0 ;Turn-off hotend \nM140 S0 ;Turn-off bed \nM84 X Y E ;Disable all steppers but Z", "scan_first_layer": "0", "thumbnails": [ "96x96",