M950 and M581 issues
-
HI,
I've just try to install a filament sensor on E0 stop, trying different configurations and finally got this :
; filament jam and run out switches
M950 P3 C"e0stop"
M581 P3 T1 S1 R0 ; Filament run-out sensor triggers a pauseI've careful read the discussion here :
https://forum.duet3d.com/topic/4952/inputs-for-a-simple-switch-filament-sensor/19and make adaptation for RFF 3.11 but it's not working
Firstly I put E P0 but M950 P0 gave me this :
M950 P0
GPIO/servo port 0 pin (exp.heater3,exp.8) frequency 50HzNow I have this with P3 :
M950 P3
GPIO/servo port 3 pin e0stop frequency 500HzBut nothing trigger (I want to pause) when a test (the led on the board is changing state when switch on and off, so my wiring appears to be good)
And by the way, I don't understand the documentation here :
https://duet3d.dozuki.com/Wiki/Gcode#Section_M581_RepRapFirmware_3_01RC2_and_laterIt says "P Specify one or more input pin numbers that you created using M950 with the J parameter"
What is this J parameters ???
Thanks
-
@toufou54 said in M950 and M581 issues:
It says "P Specify one or more input pin numbers that you created using M950 with the J parameter"
What is this J parameters ???https://duet3d.dozuki.com/Wiki/Gcode#Section_M950_Create_heater_fan_or_GPIO_servo_pin
-
Thanks I just found why I didn't see the informations, I was looking at new 3.0 firmware commands here :
https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_M950_Create_heater_fan_or_GPIO_servo_portBut that's not help me for what it doesn't work for me.
Anybody help please ?
-->
; filament jam and run out switches
M950 P3 C"e0stop"
M581 P3 T1 S1 R0 ; Filament run-out sensor triggers a pauseNot pausing anything when switch change...
-
@toufou54 said in M950 and M581 issues:
M950 P3 C"e0stop"
M581 P3 T1 S1 R0 ; Filament run-out sensor triggers a pauseYou need to use M950 J3 C"e0stop" in order to configure that pin as an GpIn. M950 P configures it as a GpOut.
-
Thanks, it's working great now, except that when I resume after the test, when the nozzle came back to X and Y position, just when the Z go down the extruder begin to extrude before the Z final position !!!
Andwhat about the :
M582 T1 ; check if filament is present
in the console I have no responses...In the meanwhile I've tested the M951 code, without success too :
M591 D0 P2 C"e0stop"What I do wrong ?
Thanks again for your quick answer
-
@toufou54 said in M950 and M581 issues:
Thanks, it's working great now, except that when I resume after the test, when the nozzle came back to X and Y position, just when the Z go down the extruder begin to extrude before the Z final position !!!
What do you have in your resume.g file?
Andwhat about the :
M582 T1 ; check if filament is present
in the console I have no responses...
If you don't have a print from SD card in progress at the time, a pause command is ignored.
-
@dc42 said in M950 and M581 issues:
What do you have in your resume.g file?
Ok I understand now, I have this:
; resume.g
; called before a print from SD card is resumed
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Thu May 21 2020 00:01:33 GMT+0200 (heure d’été d’Europe centrale)
G1 R1 X0 Y0 Z5 F6000 ; go to 5mm above position of the last print move
G1 R1 X0 Y0 ; go back to the last print move
M83 ; relative extruder moves
G1 E10 F3600 ; extrude 10mm of filamentSo I will remove or put the last line before moving...
Thanks