update install doc with link zu macros and update macros.md

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2020-09-19 22:59:28 +02:00
parent 75d742acbe
commit bc0d1ed6df
2 changed files with 49 additions and 27 deletions

View File

@ -245,6 +245,12 @@ wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0
``` ```
Now it should be possible to open the interface: `http://<printer-ip>/`. Now it should be possible to open the interface: `http://<printer-ip>/`.
### Important macros
if you want to get the full experience with mainsail and klipper virtual_sdcard print,
you should use these macros, or use them as templates for your own.
[Link to the macros doc](macros.md)
### Change the Hostname (optional) ### Change the Hostname (optional)
to use the hostname instate of the ip, you can install the avahi-daemon: to use the hostname instate of the ip, you can install the avahi-daemon:
``` ```

View File

@ -1,15 +1,40 @@
# Useful macros for Moonraker/Mainsail # Useful macros for Moonraker/Mainsail
These macros are important for pause/resume/cancel. ## pause / resume / cancel
``` ```
#is required to load the pause_resume module in klipper
[pause_resume] [pause_resume]
[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 230 #edit to your park position
default_parameter_Y: 230 #edit to your park position
default_parameter_Z: 10 #edit to your park position
default_parameter_E: 1 #edit to your retract length
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{E} F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000
[gcode_macro RESUME]
rename_existing: BASE_RESUME
default_parameter_E: 1 #edit to your retract length
gcode:
G91
G1 E{E} F2100
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
[gcode_macro CANCEL_PRINT] [gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT rename_existing: BASE_CANCEL_PRINT
default_parameter_X: 230 default_parameter_X: 230 #edit to your park position
default_parameter_Y: 230 default_parameter_Y: 230 #edit to your park position
default_parameter_Z: 10 default_parameter_Z: 10 #edit to your park position
gcode: gcode:
M104 S0 M104 S0
M140 S0 M140 S0
@ -18,28 +43,19 @@ gcode:
CLEAR_PAUSE CLEAR_PAUSE
SDCARD_RESET_FILE SDCARD_RESET_FILE
BASE_CANCEL_PRINT BASE_CANCEL_PRINT
```
[gcode_macro PAUSE] ## customize klipper default commands
rename_existing: BASE_PAUSE for example, if you want to adjust the BED_MESH_CALIBRATE command, which will execute under "heightmap > calibrate".
default_parameter_X: 230 ```
default_parameter_Y: 230 [gcode_macro BED_MESH_CALIBRATE]
default_parameter_Z: 10 rename_existing: BASE_BED_MESH_CALIBRATE
gcode: gcode:
SAVE_GCODE_STATE NAME=PAUSE_state #before the original gcode
BASE_PAUSE BED_MESH_CLEAR
G91 QUAD_GANTRY_LEVEL
G1 E-1.7 F2100 G1 X125 Y125 Z5 F6000
G1 Z{Z} #the original gcode
G90 BASE_BED_MESH_CALIBRATE
G1 X{X} Y{Y} F6000 #after the original gcode
G91
[gcode_macro RESUME]
rename_existing: BASE_RESUME
gcode:
G91
G1 E1.7 F2100
G91
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME
``` ```