I am experiencing a problem with the temperature switch. When I try to use an mcode to arm the switch, it does not work. If I comment out the temperatureswitch.module_name.arm_mcode, it works fine. Below is what I have in my config file
switch.fan.enable true #
switch.fan.input_on_command M106 #
switch.fan.input_off_command M107 #
switch.fan.output_pin 1.22 #
switch.fan.output_type pwm # pwm output settable with S parameter in the input_on_comand
switch.fan.max_pwm 70 # set max pwm for the pin default is 255
switch.chamber.enable true #
switch.chamber.input_on_command M42 #
switch.chamber.input_off_command M43 #
switch.chamber.output_pin 2.6 #
switch.chamber.output_type pwm # just an on or off pin
switch.chamber.max_pwm 255
## Temperatureswitch
# automatically toggle a switch at a specified temperature. Different ones of these may be defined to monitor different temperatures and switch different swithxes
# useful to turn on a fan or water pump to cool the hotend
temperatureswitch.chamber.enable true #
temperatureswitch.chamber.designator C # first character of the temperature control designator to use as the temperature sensor to monitor
temperatureswitch.chamber.switch chamber # select which switch to use, matches the name of the defined switch
temperatureswitch.chamber.threshold_temp 80 # temperature to turn on (if rising) or off the switch
temperatureswitch.chamber.heatup_poll 15 # poll heatup at 15 sec intervals
temperatureswitch.chamber.cooldown_poll 15 # poll cooldown at 60 sec intervals
temperatureswitch.chamber.trigger level # can be level, rising, falling - level is the default
temperatureswitch.chamber.inverted true # will turn the switch off when the temp > target and vice versa when set true
#temperatureswitch.chamber.arm_mcode 1100 # M code used to arm the edge triggered switch (eg. M1100 S1 arms it)
temperatureswitch.fan.enable true #
temperatureswitch.fan.designator C # first character of the temperature control designator to use as the temperature sensor to monitor
temperatureswitch.fan.switch fan # select which switch to use, matches the name of the defined switch
temperatureswitch.fan.threshold_temp 80 # temperature to turn on (if rising) or off the switch
temperatureswitch.fan.heatup_poll 15 # poll heatup at 15 sec intervals
temperatureswitch.fan.cooldown_poll 15 # poll cooldown at 60 sec intervals
temperatureswitch.fan.trigger level # can be level, rising, falling - level is the default
temperatureswitch.fan.inverted true # will turn the switch off when the temp > target and vice versa when set true
#temperatureswitch.fan.arm_mcode 1100 # M code used to arm the edge triggered switch (eg. M1100 S1 arms it)
What I am trying to achieve is the ability to press a macro (set to send M1100 S1) that turns on both a fan and heater, which heats my build chamber to a predetermined temperature, then turns off the heater and fan till the temperature drops and needs reheating.. I currently have to arm_mcode commented out which turns my heater and fan on at the same time the board turns on, which works, but I would like to be able to turn on and off the heated chamber based on what material I am running. I have tried changing the trigger and inverted settings to all 6 possible configurations with no success. Any help would be appreciated. Thanks.