Files
teachingtechYT.github.io/js/commongcode.js
lawgicau 37752fd6df Merge gcode processing into one function
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.
2021-07-15 00:25:56 +10:00

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
`;