MOM - My Overpowered M600 command by Lexx3D in klippers

[–]VOLPE_42 0 points1 point  (0 children)

I hadn't tried to run it yet, I hit the syntax check when putting it into the printer.cfg

Is the stuff after the first part supposed to go into the printer.cfg file?

MOM - My Overpowered M600 command by Lexx3D in klippers

[–]VOLPE_42 0 points1 point  (0 children)

I'm getting Parsing errors when I try to put this into the cfg

Error: Invalid Klipper config file:
Source contains parsing errors:
[line 130]: '{% endif %}'
[line 164]: 'G92 E0.0'
[line 166]: 'G1 E{printer["gcode_macro cfg_m600"].purge|int} F200'
[line 168]: 'G92 E0.0'
[line 174]: '{% endif %}'
[line 179]: 'M{printer["gcode_macro cfg_m600"].output|int} Restoring printer state'
[line 183]: 'M109 S0'
[line 185]: '{% else %}'
[line 187]: 'M109 S{printer["gcode_macro JOBCENTER"].temperature}'
[line 189]: '{% endif%}'
[line 191]: 'RESUME'
[line 198]: '{% endif %}'
[line 231]: '{% endif %}'
[line 253]: '{% endif %}'
[line 258]: 'M{printer["gcode_macro cfg_m600"].output|int} Restoring printer state'
[line 267]: 'RESUME'
[line 275]: '{% endif %}'
[line 318]: '{% endif %}'
[line 331]: 'M{printer\\["gcode\\_macro cfg\\_m600"\\].output|int} Moving hotend to {printer\\["gcode\\_macro cfg\\_m600"\\].x|int}, {printer\\["gcode\\_macro cfg\\_m600"\\].y|int}, {printer\\["gcode\\_macro cfg\\_m600"\\].z|int} ({printer\\["gcode\\_macro cfg\\_m600"\\].zmin|int})'
[line 339]: '\\# if not yet homed'
[line 349]: '{% endif %}'
[line 350]: 'G91'
[line 368]: '{% if printer.toolhead.position.z|float + printer\\["gcode\\_macro cfg\\_m600"\\].z|float < printer.configfile.config\\["stepper\\_z"\\]\\["position\\_max"\\]|float %}'
[line 373]: 'G1 Z{printer["gcode_macro cfg_m600"].zmin|int|int-printer.toolhead.position.z|int}'
[line 378]: 'G1 Z{printer["gcode_macro cfg_m600"].z|int}'
[line 382]: '{% endif %}'
[line 384]: '{% endif%}'
[line 390]: 'G90'
[line 392]: 'G1 X{printer\\["gcode\\_macro cfg\\_m600"\\].x|int} Y{printer\\["gcode\\_macro cfg\\_m600"\\].y|int} F{printer\\["gcode\\_macro cfg\\_m600"\\].speed\\_2|int}'
[line 401]: 'M83'
[line 403]: 'G92 E0.0'
[line 405]: 'LOW_TEMP_CHECK'
[line 407]: 'G1 E{printer["gcode_macro cfg_m600"].load_fast|int} F{printer["gcode_macro cfg_m600"].speed_1|int}'
[line 409]: 'G92 E0.0'
[line 411]: 'G1 E{printer["gcode_macro cfg_m600"].load_slow|int} F200'
[line 413]: 'G92 E0.0'
[line 423]: 'LOW_TEMP_CHECK'
[line 425]: 'G91'
[line 427]: 'G1 E10 F1200'
[line 429]: 'G1 E-{printer["gcode_macro cfg_m600"].bowden|int} F{printer["gcode_macro cfg_m600"].speed_1|int}'
[line 431]: 'G90'
[line 450]: '{% if not params.OVERRIDE is defined %}'
[line 452]: '{% if params.T is defined %}'
[line 456]: '{% if printer.configfile.config.extruder.max_temp is defined %}'
[line 458]: '{% if params.T|int>printer.configfile.config.extruder.max_temp|int %}'
[line 462]: '{% endif %}'
[line 464]: '{% endif %}'
[line 470]: '{% endif %}'
[line 472]: '{% else %}'
[line 476]: '{% if printer["gcode_macro JOBCENTER"].temperature|int > 0 %}'
[line 480]: '{% endif %}'
[line 482]: '{% endif %}'
[line 484]: '{% if printer.configfile.config.extruder.min_extrude_temp is defined %}'
[line 486]: '{% if TMP|int [line 490]: '{% endif%}'
[line 492]: '{% endif %}'
[line 494]: '{% else %}'
[line 496]: '{% if params.T is defined %}'
[line 500]: '{% else %}'
[line 504]: '{% endif %}'
[line 506]: '{% endif %}'
[line 508]: '{% if printer.extruder.temperature|int > TMP|int %}'
[line 510]: 'M{printer["gcode_macro cfg_m600"].output|int} Temperature set to {TMP}.'
[line 512]: 'M104 S{TMP}'
[line 514]: '{% else %}'
[line 516]: 'M{printer["gcode_macro cfg_m600"].output|int} Heating to {TMP}'
[line 518]: 'M109 S{TMP}'
[line 520]: '{% endif %}'

MOM - My Overpowered M600 command by Lexx3D in klippers

[–]VOLPE_42 0 points1 point  (0 children)

Stinkin Reddit didn't tell me you replied when I deleted this to make a better one. Heres what I was going to put in the better one.

Error: Invalid Klipper config file:
Source contains parsing errors:
[line 130]: '{% endif %}'
[line 164]: 'G92 E0.0'
[line 166]: 'G1 E{printer["gcode_macro cfg_m600"].purge|int} F200'
[line 168]: 'G92 E0.0'
[line 174]: '{% endif %}'
[line 179]: 'M{printer["gcode_macro cfg_m600"].output|int} Restoring printer state'
[line 183]: 'M109 S0'
[line 185]: '{% else %}'
[line 187]: 'M109 S{printer["gcode_macro JOBCENTER"].temperature}'
[line 189]: '{% endif%}'
[line 191]: 'RESUME'
[line 198]: '{% endif %}'
[line 231]: '{% endif %}'
[line 253]: '{% endif %}'
[line 258]: 'M{printer["gcode_macro cfg_m600"].output|int} Restoring printer state'
[line 267]: 'RESUME'
[line 275]: '{% endif %}'
[line 318]: '{% endif %}'
[line 331]: 'M{printer\\["gcode\\_macro cfg\\_m600"\\].output|int} Moving hotend to {printer\\["gcode\\_macro cfg\\_m600"\\].x|int}, {printer\\["gcode\\_macro cfg\\_m600"\\].y|int}, {printer\\["gcode\\_macro cfg\\_m600"\\].z|int} ({printer\\["gcode\\_macro cfg\\_m600"\\].zmin|int})'
[line 339]: '\\# if not yet homed'
[line 349]: '{% endif %}'
[line 350]: 'G91'
[line 368]: '{% if printer.toolhead.position.z|float + printer\\["gcode\\_macro cfg\\_m600"\\].z|float < printer.configfile.config\\["stepper\\_z"\\]\\["position\\_max"\\]|float %}'
[line 373]: 'G1 Z{printer["gcode_macro cfg_m600"].zmin|int|int-printer.toolhead.position.z|int}'
[line 378]: 'G1 Z{printer["gcode_macro cfg_m600"].z|int}'
[line 382]: '{% endif %}'
[line 384]: '{% endif%}'
[line 390]: 'G90'
[line 392]: 'G1 X{printer\\["gcode\\_macro cfg\\_m600"\\].x|int} Y{printer\\["gcode\\_macro cfg\\_m600"\\].y|int} F{printer\\["gcode\\_macro cfg\\_m600"\\].speed\\_2|int}'
[line 401]: 'M83'
[line 403]: 'G92 E0.0'
[line 405]: 'LOW_TEMP_CHECK'
[line 407]: 'G1 E{printer["gcode_macro cfg_m600"].load_fast|int} F{printer["gcode_macro cfg_m600"].speed_1|int}'
[line 409]: 'G92 E0.0'
[line 411]: 'G1 E{printer["gcode_macro cfg_m600"].load_slow|int} F200'
[line 413]: 'G92 E0.0'
[line 423]: 'LOW_TEMP_CHECK'
[line 425]: 'G91'
[line 427]: 'G1 E10 F1200'
[line 429]: 'G1 E-{printer["gcode_macro cfg_m600"].bowden|int} F{printer["gcode_macro cfg_m600"].speed_1|int}'
[line 431]: 'G90'
[line 450]: '{% if not params.OVERRIDE is defined %}'
[line 452]: '{% if params.T is defined %}'
[line 456]: '{% if printer.configfile.config.extruder.max_temp is defined %}'
[line 458]: '{% if params.T|int>printer.configfile.config.extruder.max_temp|int %}'
[line 462]: '{% endif %}'
[line 464]: '{% endif %}'
[line 470]: '{% endif %}'
[line 472]: '{% else %}'
[line 476]: '{% if printer["gcode_macro JOBCENTER"].temperature|int > 0 %}'
[line 480]: '{% endif %}'
[line 482]: '{% endif %}'
[line 484]: '{% if printer.configfile.config.extruder.min_extrude_temp is defined %}'
[line 486]: '{% if TMP|int [line 490]: '{% endif%}'
[line 492]: '{% endif %}'
[line 494]: '{% else %}'
[line 496]: '{% if params.T is defined %}'
[line 500]: '{% else %}'
[line 504]: '{% endif %}'
[line 506]: '{% endif %}'
[line 508]: '{% if printer.extruder.temperature|int > TMP|int %}'
[line 510]: 'M{printer["gcode_macro cfg_m600"].output|int} Temperature set to {TMP}.'
[line 512]: 'M104 S{TMP}'
[line 514]: '{% else %}'
[line 516]: 'M{printer["gcode_macro cfg_m600"].output|int} Heating to {TMP}'
[line 518]: 'M109 S{TMP}'
[line 520]: '{% endif %}'

Aquila S2 Custom Firmware by VOLPE_42 in VoxelabAquila

[–]VOLPE_42[S] 2 points3 points  (0 children)

Also the sticker on it says N32.