Mainsail macros throw an error as installed. #15

Closed
opened 2020-09-16 02:06:40 +02:00 by tumbleweedlabs · 0 comments
tumbleweedlabs commented 2020-09-16 02:06:40 +02:00 (Migrated from github.com)

The KIAUH script installs the following default Mainsail macros:
`[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
default_parameter_X: 230
default_parameter_Y: 230
default_parameter_Z: 10
gcode:
M104 S0
M140 S0
M141 S0
M106 S0
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT

[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 230
default_parameter_Y: 230
default_parameter_Z: 10
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-1.7 F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000
#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`

Loading Mainsail with these macros as-installed produces the following error:

"Existing command 'CANCEL_PRINT' not found in gcode_macro rename
Once the underlying issue is corrected, use the "RESTART"
command to reload the config and restart the host software.
Printer is halted"

When comparing to the example macros in the Mainsail documentation they are prefixed with [pause_resume].

`[pause_resume]

[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
default_parameter_X: 230
default_parameter_Y: 230
default_parameter_Z: 10
gcode:
M104 S0
M140 S0
M141 S0
M106 S0
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT

[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
default_parameter_X: 230
default_parameter_Y: 230
default_parameter_Z: 10
gcode:
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-1.7 F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000
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`

Inserting this extra bit into the KIAUH macros solves the issue.

The KIAUH script installs the following default Mainsail macros: `[gcode_macro CANCEL_PRINT] rename_existing: BASE_CANCEL_PRINT default_parameter_X: 230 default_parameter_Y: 230 default_parameter_Z: 10 gcode: M104 S0 M140 S0 M141 S0 M106 S0 CLEAR_PAUSE SDCARD_RESET_FILE BASE_CANCEL_PRINT [gcode_macro PAUSE] rename_existing: BASE_PAUSE default_parameter_X: 230 default_parameter_Y: 230 default_parameter_Z: 10 gcode: SAVE_GCODE_STATE NAME=PAUSE_state BASE_PAUSE G91 G1 E-1.7 F2100 G1 Z{Z} G90 G1 X{X} Y{Y} F6000 #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` Loading Mainsail with these macros as-installed produces the following error: > "Existing command 'CANCEL_PRINT' not found in gcode_macro rename > Once the underlying issue is corrected, use the "RESTART" > command to reload the config and restart the host software. > Printer is halted" When comparing to the example macros in the [Mainsail documentation](https://github.com/meteyou/mainsail/blob/master/docs/macros.md) they are prefixed with **[pause_resume]**. `[pause_resume] [gcode_macro CANCEL_PRINT] rename_existing: BASE_CANCEL_PRINT default_parameter_X: 230 default_parameter_Y: 230 default_parameter_Z: 10 gcode: M104 S0 M140 S0 M141 S0 M106 S0 CLEAR_PAUSE SDCARD_RESET_FILE BASE_CANCEL_PRINT [gcode_macro PAUSE] rename_existing: BASE_PAUSE default_parameter_X: 230 default_parameter_Y: 230 default_parameter_Z: 10 gcode: SAVE_GCODE_STATE NAME=PAUSE_state BASE_PAUSE G91 G1 E-1.7 F2100 G1 Z{Z} G90 G1 X{X} Y{Y} F6000 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` Inserting this extra bit into the KIAUH macros solves the issue.
Sign in to join this conversation.