UNSOLVED wiring an external Estop button to one of these avalable pins ?
tracar last edited by tracar
i have the Duet Expansion Breakout Board. with a couple of empty pin headers:
*H6_pwm (pin 23 )
E6 is also blank:
on the board E0 ( all3 pins are free)
can any of the above pins be used to connect an estop button too, and also with the alarm+ and alarm- pins on the external drivers..
so if for any reason when the external stepper driver goes to an alarm and stops, the drivers alarm is NO or NC ( configurable ) this signal is connected to the same pin as the mechanical estop button , and when triggered , halts the print and shuts things down
how do i configure the estop button?
tracar last edited by
i have E1STOP pin set up as the input
when triggerd the led on the board works
but nothing happens.
this is in the config.g:
M950 J1 C"e1stop"
M581 P1 T0 C0
hayseed_byte last edited by
I did a small write up on external triggers. https://duet3d.dozuki.com/Wiki/Using_M581_-_External_Triggers_and_Building_a_Control_Panel
I think at the time, the duet asked for confirmation on estop so triggering it externally wasn't doable but I think they've fixed that so it should work now.
peter247 last edited by peter247
I looked at your write up on External Triggers, but got a little confused on converting it to version 3.1 .
I got a lost on the alphabet soup of version 3.1 do you use p , h , j etc .
So if you have upgraded you could do a version 3.1 example too.
peter247 last edited by peter247
stupid question I know , but what version of the firmware are you on ?
; External Triggers M950 J0 C"!^e0stop" M950 J1 C"!^e1stop" M581 P0 T1 S1 R1 ; M581 P1 T3 S1 R0 ;
These are my triggers which work.
The first is connected to the filament run out and the second a switch , both switches are normal open and trigger on closed switches .
Trigger 3 macro just is a resume button.
tracar last edited by
n I know , but what version of the firmwar
; Configuration file for Duet WiFi (firmware version 3)
; executed by the firmware on start-up
; generated by RepRapFirmware Configuration Tool v3.1.4 on Sun Aug 30 2020 09:00:14 GMT-0600 (Mountain Daylight Time)
; General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Duet2" ; set printer name
M669 K1 ; select CoreXY mode
M552 S1 ; enable network
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet
; Input/Output Physical Estop
M950 J1 C"e1stop" ; e1_stop pin on the mainboard
M581 P1 T0 C0 S0 ; T0 = emergency stop on trigger
M569 P5 S1 T5 R1 ; physical drive x goes forwards
M569 P6 S1 T5 R1 ; physical drive y goes forwards
M569 P7 S1 T5 R1 ; physical drive z goes forwards
M569 P8 S1 T5 R1 ; physical drive U goes forwards
M569 P3 S1 ; physical drive extruder goes forwards
M584 X6 Y5 Z7:8 E3 ; set drive mapping
M671 X-50:490 Y330:330 S5 ; x leadscrew position left to right from o,o on y axis , S5 means can adjust up to 5 mm
M350 X16 Y16 Z16 E16 I1 ; configure micro stepping with interpolation
M92 X200.5 Y200.5 Z800.00 E93 ; set steps per mm
; FEEDRATE CONVERSIONS
; 1.6mm/s = F100
; 10mm/s = F600
; 16mm/s = F1000
; 20mm/s = F1200
; 35mm/s = F2100
; 50mm/s = F3000
; 70mm/s = F4200
; 100mm/s = F6000
; 120mm/s = F7200
; 133mm/s = F8000
; 160mm/s = F10000
; 250mm/s = F15000
;M566 X1200 Y1200 Z60 E3000 ; jerk settings testing
M566 X250.00 Y250.00 Z12.00 E120.00 ; set maximum instantaneous speed changes (mm/min) (original jerk settings)
M203 X10000.00 Y10000.00 Z1000.00 E2400.00 ; set maximum speeds (mm/min)
M201 X200.00 Y200.00 Z15.00 E400.00 ; set accelerations (mm/s^2)
M906 X300 Y300 Z300 E1800 I30 ; set motor currents (mA)
M84 S30 ; Set idle timeout
; Axis Limits
M208 X0 Y0 Z0 S1 ; set axis minima
M208 X440 Y535 Z900 S0 ; set axis maxima
M574 X1 S1 P"!xstop" ; configure active-low endstop for high end on X via pin xstop
M574 Y2 S1 P"!ystop" ; configure active-low endstop for high end on Y via pin ystop
M574 Z1 S1 P"!zstop+!e0stop" ; configure active-high endstops for low end on Z via pins zstop and e0stop
M950 S0 C"!exp.heater7" ; create servo pin 0 for BLTouch
M558 P9 C"^zprobe.in" H5 F120 T24000 ; set Z probe type to bltouch and the dive height + speeds
G31 P500 X-.04 Y-26.5 Z3.582 ; set Z probe trigger value, offset and trigger height
M557 X20:430 S205 Y80:535 S212.5 ; define mesh grid
M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp
M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit
M140 H0 ; map heated bed to heater 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M308 S1 P"e0temp" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermistor on pin e0temp
M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
M307 H1 A385.4 C119.0 D3.5 S1.00 V24.2 B0 ; disable bang-bang mode for heater and set PWM limit
M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
M106 P0 C"Tool fan" P1 S0 H-1 T45 ; set fan 0 value. Thermostatic control is turned on "H-1 disables thermostatic mode" or H1 enables. "S" parameter turns that fan on or off S0 or S1 T45 is fan on at 45 degrees
M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
M106 P1 C"Parts cooling fan" S0 H-1 ; set fan 1 value. Thermostatic control is turned on
M950 F2 C"fan2" Q20000 ; create fan 2 on pin fan2 and set its frequency
M106 P2 C"LED's Brightness" S0 H-1 ;set fan 2 name and value. Thermostatic control is turned off
M563 P0 S"swiss" D0 H1 F0 ; 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
; Custom settings are not defined
M575 P1 S1 B57600 ; enable support for PanelDue
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
peter247 last edited by
You are on the version 3.1 of the config.g , but what version of the firmware are you on ? use M122
M122 === Diagnostics === RepRapFirmware for Duet 2 WiFi/Ethernet version 3.1.1 running on Duet WiFi 1.02 or later Board ID: 08DGM-95BLL-N6PSS-6JTD6-3SJ6K-K0UZJ Used output buffers: 3 of 24 (17 max)
But if you are on version 3 of the firmware and config.g try adding the !^ which is pull up and invert .