Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 1.03 KB

accel_jerk_emulation_m204.md

File metadata and controls

46 lines (40 loc) · 1.03 KB
[printer]
max_velocity:               500
max_accel:                  5000
max_accel_to_decel:         5000
111

[gcode_macro M204]
rename_existing:            M204.1
default_parameter_F:        0.75
gcode:
    {% if 'S' in params %}
        SET_VELOCITY_LIMIT ACCEL={ S } ACCEL_TO_DECEL={ S|float * F|float }
    {% endif %}

[gcode_macro M205]
gcode:
    {% if 'X' in params %}
        SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ X }
    {% endif %}

[gcode_macro M204]
rename_existing:            M204.1
default_parameter_F:        0.75
gcode:
    {% if 'S' in params %}
        SET_VELOCITY_LIMIT ACCEL={ S } ACCEL_TO_DECEL={ S|float * F|float }
    {% endif %}

[gcode_macro M205]
gcode:
    {% if 'X' in params %}
        SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY={ X }
    {% endif %}
it results in the same terminal spam as the previous macro
i guess the easiest thing would be
         verbose = gcmd.get_int('VERBOSE', default=1, min_value=0, max_value=1)
        if verbose == 1: gcmd.respond_info(msg, log=False)