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