I work on a code for a “filament drying” feature for the P1S. This code works well
G28 X ; re-home XY
M106 P3 S180 ; set chamber fan to 70%
M190 S90 ; wait for bed temp
;M400 U1
M106 P3 S104 ; set chamber fan to 40%
G4 P360000 ; wait 360.000 ms - 5 minutes
M106 P3 S0 ; set chamber fan to 0
M107 P3 ; set chamber fan off
M140 S0 ; set bed temp off
I wanted to use M400 U1, to notify the user to insert a spool, after bed and head are relyably homed and bed is heated. When I activate this, some strange things happen:
- The code execution seems to stop (pause message on LCD). OK
- From the moment the pause message appeares, the hotend starts to heat up to 90°C, which is not part of my gcode. Why?
- On user input the hot end stops heating up, regardless whether 90°C are reached, or not.
- Though user input restarted the print process, the next command (here: set fan speed) is executed about 120 seconds after user input.
Can anybody explain this behavior?