mirror of
https://github.com/teachingtechYT/teachingtechYT.github.io.git
synced 2024-08-30 18:23:26 +00:00
Instead of functions for each gcode generator, one function that processes common changes plus specific for each test. Much less code and easier to add future tests.
24 lines
603 B
JavaScript
24 lines
603 B
JavaScript
var commonStart =`; G-Code originally generated by Simplify3D(R) Version 4.1.2
|
|
;This calibration test gcode modified by the Teaching Tech Calibration website: https://teachingtechyt.github.io/calibration.html
|
|
;M80 ; power supply on
|
|
G90
|
|
M82
|
|
M106 S0
|
|
M140 S60
|
|
M190 S60
|
|
;temp0a
|
|
;temp0b
|
|
G28 ; home all axes
|
|
;G29 ; probe ABL
|
|
;M420 S1 ; restore ABL mesh
|
|
;customstart
|
|
G0 Z3; fix for delta printers that home at max`;
|
|
|
|
var commonEnd = `G28 X0 ; home X axis
|
|
M106 S0 ; turn off cooling fan
|
|
M104 S0 ; turn off extruder
|
|
M140 S0 ; turn off bed
|
|
M84 ; disable motors
|
|
M501 ; restore previous EEPROM values
|
|
;customend
|
|
`; |