Pause.g is not working.
-
@t3p3tony that is exactly what happens. all actions that result in M25 DO NOT execute the pause.g
Like you said and as the video shows, the m25 will stop the hot-end but nothing else. None of the pause.g code is executed (I've also put a M291 in pause.g to see if it would pop up something).
This applies to all pause actions:
Pause from PanelDue
Pause from Web interface
Pause from filement sensor.The M25 you see in the log above comes from pressing pause (I've actually no called M25 directly from console). The log above is the output from M111 P3 (it captures all gcodes)
I will try what @dc42 suggested and move things over to another sd card. That said, it did also delete the pause.g from web interface and recreated it to see it that made a difference yesterday. It did not.
-
@core3d-tech move all files to different SD card which made no difference. I took a video (shorter one this time) of the process
M98 P"pause.g" DOES execute it properly.
Here is my config.g:
; Configuration file for Duet WiFi (firmware version 1.21)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v2 on Sat Nov 17 2018 21:05:24 GMT-0600 (Central Standard Time); General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves
M665 R182 L360 B150 H1240 ; Set delta radius, diagonal rod length, printable radius and homed height
M666 X0 Y0 Z0 ; Put your endstop adjustments here, or let auto calibration find them
M584 X0 Y1 Z2 E3 U4 ; using extra stepper using the second extruder driver; Network
M550 P"C3Dt/bd" ; Set machine name
M552 S1
;M552 S2 ; Enable network
;*** Access point is configured manually via M587
M586 P0 S1 ; Enable HTTP
M586 P1 S1 ; Disable FTP
M586 P2 S1 ; Disable Telnet; Drives
M569 P0 S1 ; Drive 0 goes forwards
M569 P1 S1 ; Drive 1 goes forwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S0 ; Drive 3 goes backwards
M569 P4 S0 ; Drive 4 goes backwards
M350 X16 Y16 Z16 E16 U16 I1 ; Configure microstepping with interpolation
M92 X80.00 Y80.00 Z80.00 E415.00 U100 ; Set steps per mm
M566 X600.00 Y600.00 Z600.00 E1200.00 U400 ; Set maximum instantaneous speed changes (mm/min)
M203 X30000.00 Y30000.00 Z30000.00 E1200.00 U6000 ; Set maximum speeds (mm/min)
M201 X8000.00 Y8000.00 Z8000.00 E1000.00 U1000 ; Set accelerations (mm/s^2)
M906 X2100.00 Y2100.00 Z2100.00 E800.00 U600 I30 ; Set motor currents (mA) and motor idle factor in per cent
M84 U S10 ; Set idle timeout; Axis Limits
M208 Z0 U0 S1 ; Set minimum Z and U
M208 U85 S0 ; set maximum U to 85; Endstops
M574 X2 Y2 Z2 S0 ; Set active high endstops; Z-Probe
M558 P5 R0.4 H10 F2400 T6000 ; Set Z probe type to effector and the dive height + speeds
;*** Remove this line after delta calibration has been done and new delta parameters have been saved
G31 P100 X0 Y0 Z-0.1 ; Set Z probe trigger value, offset and trigger height
M557 R145 S40 ; Define mesh grid; Heaters
M305 P0 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 0
M143 H0 S160 ; Set temperature limit for heater 0 to 160C
M305 P1 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S280 ; Set temperature limit for heater 1 to 280C;bed pid
M307 H0 A90.0 C700.0 D10.0 S1.00 V0.0 B1;volcano pid
;M307 H1 A630.3 C313.2 D5.9 S1.00 V21.6 B0;e3d pid
M307 H1 A521.7 C247.7 D2.8 S1.00 V22.3 B0; heater fault detection
M570 H1 P30 T30; Fans
M106 P0 S0.0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P1 T45 S0.999 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P2 L230 T40:65 H100:101:102 ;controller fan turn on when MCU reaches 40Celcius or when TMC26.. report over temp; Tools
M563 P0 D0 H1 ; Define tool 0
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C; Automatic power saving
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss;load detailed z-probe file
G29 S1; set the laser filament monitor
M591 D0 P5 C3 R40:120 E3.0 S0; Custom settings are not configured
; turn off camera pins (from 3.3 to 0)
M42 P60 S0
M42 P61 S0M501
Here is my pause.g:
; pause.g
; called when a print from SD card is paused
;
; generated by RepRapFirmware Configuration Tool v2 on Sat Nov 17 2018 21:05:25 GMT-0600 (Central Standard Time)M83 ; relative extruder moves
G1 E-10 F3600 ; retract 10mm of filament
;move hot end up
G91 ; relative positioning
G1 Z20 F6000 ; lift Z by 20mm
G90 ; absolute positioning
G1 X0 Y-150 F6000 ; go to X=0 Y=0 -
Not got a upper/lower case issue have you? Does the system expect a Pause.g rather than pause.g?
-
@doctrucker tried that (renamed to Pause.g) did not change anything. Thx
-
Can you confirm that you have put pause.g in /sys not in /macros ?
-
@dc42 confirmed. I did try to put a pause.g under macros to chain call the pause.g under sys. Didn’t help either
-
@dc42 any way to turn on full blown debugging?
-
@dc42 Okay found the solution (or I should say the cause to the problem). My printer, the crazy Delta one with a moveable bed, uses a 4th axis defined as U. Since it's defined as U it becomes part of the homing process. The problem is that U is used only a few times a year (mostly at shows) but runs hot every time after it homes.
Because of that every print of mine starts with M84 U (to shut it down). This the cause of the problem.
All code has DoFileMacro(gb, PAUSE_G, true); made conditional with AllAxesAreHomed()
because of M84 U they are not and thus pause.g is not executed.
I'll have to do something else to stop U from overheating.
-
@core3d-tech, you can just send G92 U0 to tell RRF that U has been homed. I think making U invisible using M564 P3 may work too.
-
@dc42 Thx, M84 U followed by G92 U0 does the trick