max_temp not working

HI,
Just added thermocouple to hotend to have double control of the temperature for safety, but it is not shutting off as expected.
Reading is just fine.
Any suggestions?
Config file section:

[# Thermocouple to control hotend temperature

temperature_control.thermocouple.enable true #
temperature_control.thermocouple.sensor max31855 #
temperature_control.thermocouple.chip_select_pin 0.16 #
temperature_control.thermocouple.spi_channel 0 # SPI channel 0 or 1
temperature_control.thermocouple.designator C #
temperature_control.thermocouple.max_temp 200
]

Imported from wikidot

What are you expecting max_temp to do ?

do halt state like M143 works in config override file
;Max temperature setting:
M143 S0 P300.0000
;PID settings:
M301 S1 P195.2020 I5.1538 D1848.3186 X255.0000 Y255
;Max temperature setting:
M143 S1 P300.0000

by the way, can I see and control S2 (if I creat it) in the config override file as well
Thanks and regards

Hi Arthur,
Now I have this section in the config file to run safety thermocouple, but still it does not work the way it should be. Can you have a look? What is wrong? Thermocouple reads temperature just fine. But the temperatureswitch does not work. Thanks.

switch.psu.enable true #
switch.psu.input_on_command M80 #
switch.psu.input_off_command M81 #
switch.psu.output_pin 1.30 #
switch.psu.otput_type digital #
switch.psu.fail_safe_set_to 1 #
switch.psu.ignore_on_hault false #

temperatureswitch.psu_switch.enable true #
temperatureswitch.psu_switch.switch psu #
temperatureswitch.psu_switch.designator C #
temperatureswitch.psu_switch.threshold_temp 100 #

temperature_control.thermocouple.enable true #
temperature_control.thermocouple.sensor max31855
temperature_control.thermocouple.chip_select_pin 0.16
temperature_control.thermocouple.spi_channel 0
temperature_control.thermocouple.designator C

The config looks fine I have no idea why it wouldn’t work.
Maybe a typo or some invisible character somewhere in there ?
Maybe try starting that part of your config over from the example config file and see if it helps ?