Basic Information:
Printer Model: Ender 3 V3 SE
MCU / Printerboard: RPI
Hello
I have a macro to debug but for instance I try to print a variable in console, unfortunatly it doesnt work.
I try:
gcode:
{% set bed_temp = params.BED | default(60) | float %}
ACTION_RESPOND_INFO "Print Tempe: { bed_temp | round(1) }"
Thanks for help
Hi @michastro ,
To make a macro print in the console, you can use the RESPOND
command.
- Make sure there is a
[respond]
line in your printer.cfg
- Use in your macro:
[gcode_macro MY_MACRO]
gcode:
{% set bed_temp = params.BED | default(60) | float %}
RESPOND MSG="Print Temp: {bed_temp|round(1)}"
You can also use action_respond_info
:
{ action_respond_info("Print temp: {bed_temp|round(1)}") }