-
Notifications
You must be signed in to change notification settings - Fork 130
Expand file tree
/
Copy pathcommongcode.js
More file actions
28 lines (27 loc) · 777 Bytes
/
commongcode.js
File metadata and controls
28 lines (27 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
;bed0a
;bed0b
;temp0a
;temp0b
G28 ; home all axes
;G29 ; probe ABL
;M420 S1 ; restore ABL mesh
;customstart
G92 E0.0 ; set current extruder position as 0
G90 ; set all axes back to absolute mode
M82 ; set extruder back to absolute mode ; required for newer RepRapFirmware revisions
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
`;