Skip to content

Instantly share code, notes, and snippets.

@theanam
Last active September 16, 2023 06:10
Show Gist options
  • Save theanam/289324c9f32010998ed944f4b2a74c8a to your computer and use it in GitHub Desktop.
Save theanam/289324c9f32010998ed944f4b2a74c8a to your computer and use it in GitHub Desktop.
Tronxy Crux 1 Start G-Code for cura
; Tronxy Crux1 Start Code
; Forked from the Tronxy XY 2 Pro Start code on cura
; Improvement: Start nozzle and bed heating together
; Imorovement: Fixed purge line (XY2 version was for a bigger bed and would draw out of build area)
; Bugfix: On glass bed Crux 1, the nozzle would bump on the retainer trying to draw the purge line. Fixed in this version.
; Cleanup: Removed all ABL related code since Crux 1 does not have ABL.
G21 ; Set units to millimeters
G90 ; Set all axis to Absolute
M82 ; Set extrusion to Absolute
M107 ; Disable all fans
; start heating up the bed and nozzle together
M140 S{material_bed_temperature_layer_0} ; Set bed temperature
M104 S{material_print_temperature_layer_0} T0 ; Set nozzle temp
G28 ; Home all axis
G1 Z5.0 ; Raise nozzle to prevent scratching of heat bed
G1 X0 Y0 ; Move nozzle to Home before heating
M190 S{material_bed_temperature_layer_0} ; Set bed temperature and wait
M109 S{material_print_temperature_layer_0} T0 ; Set nozzle temp and wait
G92 E0 ; Set Extruder position to zero
; Draw a purge line
G1 Z2.0 F3000 ; Raise Z axis
G1 X16.1 Y40 Z0.2 F3600.0 ; Move to purge line start position
G1 Y160 F1500.0 E10 ; Draw first purge line
G1 X16.4 F3600.0 ; Move to side
G1 Y40 F1500.0 E20 ; Draw second purge line
G92 E0 ; Reset Extruder
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X18 Y40 Z0.2 F3600.0 ; Move over to finish nozzle wipe
G92 E0
@theanam
Copy link
Author

theanam commented Oct 20, 2022

Set up the printer as instructed in the user manual (From XY2-Pro). then replace the start G-code with this one

@theanam
Copy link
Author

theanam commented Nov 18, 2022

End Gode :

M83 ; Set extrder to Relative
G1 E-5 F3000 ; Retract 5mm of filament at 50mm/s
G91 ; set all axis to relative
G1 Z5 ; Move up 5mm
G90 ; Set all axis to Absolute 
G1 X0 Y{machine_depth} ; Park print head
M106 S0 ; Set fan speed to 0
M104 S0 ; Set bed temp to 0
M140 S0 ; Set Nozzle temp to 0
M84 ; Disable all stepper motors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment