Resurrect.g overriding or ignoring commands in Resume.g



  • Hi there,

    So I have a management system setup to watch my 3D printer that is keyed on one of the LED outputs on the Duex5 to tell me via msg if the printer pauses for any reason.

    I have this command in the Pause.g:
    ;Set Pause LED - for ESP8266 monitoring
    M106 P5 S255

    Then in Resume.g I have this:
    ;Clear Pause LED - for ESP8266 monitoring
    M106 P5 S0

    But I am seeing Resurrect.g kind of randomly it seems picks the values to put into the file for the fans. And regardless, even if it says M106 P5 S0 in the listing it still leaves the LED lit 100% when the print resumes.

    ; File "0:/gcodes/Test Camera Mount.gcode" resume print after print paused at 2020-01-12 18:11
    G21
    M140 P0 S55.0
    G29 S1
    T-1 P0
    G92 X-57.854 Y8.159 Z8.500 U201.000
    G60 S1
    G10 P1 S0 R0
    G10 P2 S0:0 R0:0
    G10 P3 S0:0 R0:0
    G10 P0 S210 R210
    T0 P0
    M98 P"resurrect-prologue.g"
    M116
    M290 X0.000 Y0.000 Z0.000 U0.000 R0
    T-1 P0
    T0 P6
    G10 L2 P1 X0.00 Y0.00 Z0.00 U0.00
    G10 L2 P2 X0.00 Y0.00 Z0.00 U0.00
    G10 L2 P3 X0.00 Y0.00 Z0.00 U0.00
    G10 L2 P4 X0.00 Y0.00 Z0.00 U0.00
    G10 L2 P5 X0.00 Y0.00 Z0.00 U0.00
    G10 L2 P6 X0.00 Y0.00 Z0.00 U0.00
    G10 L2 P7 X0.00 Y0.00 Z0.00 U0.00
    G10 L2 P8 X0.00 Y0.00 Z0.00 U0.00
    G10 L2 P9 X0.00 Y0.00 Z0.00 U0.00
    G54
    M106 S0.93
    M106 P0 S0.93
    M106 P1 S0.00
    M106 P5 S0.00
    M106 P6 S1.00
    M106 P7 S0.00
    M106 P8 S0.29
    M116
    G92 E10.90090
    M82
    M23 "0:/gcodes/Test Camera Mount.gcode"
    M26 S636096
    G0 F6000 Z10.500
    G0 F6000 X-57.854 Y8.159 U201.000
    G0 F6000 Z8.500
    G1 F4644.0 P0
    G21
    M24
    

    But even with the file above showing the M106 P5 (the LED is on fan header 5), it still maintains the S255 state... I can't seem to programmatically clear it on a resume.


Log in to reply