#heater not supported

28 messages · Page 1 of 1 (latest)

earnest zephyrBOT
#

Ahoi @vital orchid!
It looks like you did not provide all the necessary information we need to help you.
Please upload your logfiles and a detailed description of your problem.
For further information see: https://docs.mainsail.xyz/faq/getting-help/discord#provide-information
Note: We only accept .log and .txt files as log files.
This is an automated message

We are glad to help and chat with you on our Community Discord, but if you need help and want the best support possible you should, follow a few simple rules:

vital orchid
onyx glen
#

Try SET_HEATER_TEMPERATURE HEATER="heater_generic chamber_heater" TARGET=50

vital orchid
#

hi

#

dont work :/

#

I really don't understand why it is not detected

#

I just tried your command that you just removed and it says it is malformed

onyx glen
#

Why do you have that:


[gcode_macro SET_HEATER_TEMPERATURE]
rename_existing = _SET_HEATER_TEMPERATURE
gcode = 
    
    {% set HEATER = params.HEATER|default("None") %}
    {% set TARGET = params.TARGET|default(0)|int %}
    
    {% set THRESHOLD = printer["gcode_macro _BEDFANVARS"].threshold|int %}
    
    {% if HEATER|lower == "extruder" %}
    M104 S{TARGET}
    {% elif HEATER|lower == "heater_bed" %}
    M99140 S{TARGET}
    {% else %}
    {action_respond_info("Heater %s not supported" % HEATER)}
    {% endif %}
    
    
    {% if HEATER|lower == "heater_bed" %}
    {% if TARGET >= THRESHOLD %}
    BEDFANSSLOW
    UPDATE_DELAYED_GCODE ID=bedfanloop DURATION=1
    {% else %}
    BEDFANSOFF
    UPDATE_DELAYED_GCODE ID=bedfanloop DURATION=0
    {% endif %}
    {% endif %}
onyx glen
vital orchid
#

heee where do you see that ?

onyx glen
#

In your log

#

You overwrite the base macro for some reason and that acts up

vital orchid
#

I didn't even implement this macro

onyx glen
#

But you copy pasted it from somewhere....

#

Or some include adds it

vital orchid
#

wait wait

onyx glen
#

So you definitely got it through some gcode macro collection, maybe for some specific device

vital orchid
onyx glen
#

Still there

#

It's part of those macros:

[gcode_macro _BEDFANVARS]
variable_threshold = 40
variable_fast = 1.0
variable_slow = 1.0
gcode = 

[fan_generic Auxiliary_fan]
pin = PD12
kick_start_time = 0.5

[gcode_macro BEDFANSSLOW]
gcode = 
    
    {% set SLOW = printer["gcode_macro _BEDFANVARS"].slow|float %}
    
    SET_FAN_SPEED FAN=Auxiliary_fan SPEED={SLOW}

[gcode_macro BEDFANSFAST]
gcode = 
    
    {% set FAST = printer["gcode_macro _BEDFANVARS"].fast|float %}
    
    SET_FAN_SPEED FAN=Auxiliary_fan SPEED={FAST}

[gcode_macro BEDFANSOFF]
gcode = 
    SET_FAN_SPEED FAN=Auxiliary_fan SPEED=0
#

So wherever you got them from, you got that override from

vital orchid
#

omg thank you

#

I just saw the problem... it works now

#

thank you very much for your time I'm starting to get discouraged you solved the problem in 2 minutes lol

onyx glen
#

Like I said, I googled it and found exactly that issue...

#

But if there are no further questions, please close this post 😄