M558 and fan question



  • Should the M558 setting match between the Endstop section and the Probe section in the config?

    ; Endstops
    M574 X2 Y2 Z2 S1 ; Define active high microswitches
    M558 P1 X0 Y0 Z0 H5 F120 T6000 ; Set Z probe type to unmodulated, the axes for which it is used and the probe + travel speeds
    M557 R130 S20 ; Define mesh grid

    ; Z-Probe
    M307 H3 A-1 C-1 D-1 ; reserve pin 21 for M42 or servo use
    M558 P5 R0.4 F1000
    G31 P100 X0 Y0 Z-0.1; Set Z probe trigger value, offset and trigger height

    When I disconnect from the Duet and turn the machine off then back on the fans are set to 100% even if I have turned them off the last time. The hotend cooling fan is thermostatically set to 60, the heaters are reading properly @ 26c. Also it used to test the fans on start up, run them for a few seconds and then turn them off. now they come on and stay on.

    ; Fans
    M106 P0 S0 I0 F255 H-1; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P2 S1 I0 F255 T60 H-1; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
    ; Needs Repair M106 P1 S0 I0 F255 H-1; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off


  • administrators

    The M574 homing switch setting and the M558 Z probe setting are independent, unless you use nonzero X, Y or Z parameters in the M558 command, which is rarely needed.

    Fans 0 and 2 default to off. S0 means use zero PWM and S1 means use full PWM. Therefore the M106 commands you listed should turn fan 2 on and leave fan 0 off.

    Fan 1 defaults to on and thermostatic mode. So it will turn on when the board is reset, then if the hot end and bed are both found to be cold it will turn off.



  • So if I change fan 2 to S0 with the therm trigger set it should behave like Fan1 until I can get parts to fix Fan1 MOSFET?


  • administrators

    You can set fan 2 to S1 (not S0) with thermostatic trigger and it will behave like fan 1 should, except that it probably won't turn on for a second when you start up because it defaults to being off.



  • Okay, set as above, it is not coming on at 60c, I had to over ride it when running M303 just now


  • administrators

    H-1 turns thermostat control off. See the description of M106 in the gcode wiki page.



  • Got it, been a while since I set this up, thanks for the help 😄


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.