Macro. Strange returned values in the loop

Basic Information:

Printer Model: kp3s
MCU / Printerboard: kp3s
klippy.log (6.2 MB)

When i request values from status reference object in the loop it always returned the same value even if the value was changed.
That is the simple example of the issue.

[gcode_macro test2]
gcode:
M140 S40
{% for i in range (10) %}
RESPOND TYPE=echo MSG=‘{printer.heater_bed.temperature}’
G4 P2000 # Wait for one second
{% endfor %}
M140 S0

See

and following posts for an explanation.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.