question about use M581
-
I have a question if it is possible.
I came across a link on how to use M581.
am currently using a duet 2 with rrf2 with an emergency stop on trigger9.git is possible to add more buttons to trigger.g folders i read
but is it right what i think ?
exemple :
button 1 extrude 100mm = trigger1.g G1 E100 F300
button 2 retract 100mm = trigger2.g G1 E-100 F300
button 3 G32 = trigger3.g Bed.g
emergency stop = trigger4.g M24and what I read normal push buttons can be used,
pressing once is then going through trigger.g commandI hope it's easy to understand with google transstate
-
If you want a true emergency stop you need to specify trigger 0 in the M581 command.
Triggers 0 and 1 are acted upon immediately.
Triggers 2 and up don't execute until the current move is finished.
If you want trigger 3 to execute bed.g just put G32 into the trigger3.g file.
Frederick
-
the emergency stop runs on M24 pause during printing.
; Input/Output
M581 E2 S1 T1 C1 ; Pause - trigger1.g
M581 E3 S1 T2 C0 ; extrude 100mm - trigger2.g
M581 E4 S1 T3 C0 ; retract 100mm- trigger3.g
M581 E5 S1 T4 C0 ; G32- trigger4.g; trigger1.g
M24
; trigger2.g
G1 E100 F300
; trigger3.g
G1 E-100 F300
; trigger4.g
G32so it is explained a bit more clearly what I was planning
-
@kevin said in question about use M581:
the emergency stop runs on M24 pause during printing.
; Input/Output
M581 E2 S1 T1 C1 ; Pause - trigger1.g
M581 E3 S1 T2 C0 ; extrude 100mm - trigger2.g
M581 E4 S1 T3 C0 ; retract 100mm- trigger3.g
M581 E5 S1 T4 C0 ; G32- trigger4.g; trigger1.g
M24
; trigger2.g
G1 E100 F300
; trigger3.g
G1 E-100 F300
; trigger4.g
G32so it is explained a bit more clearly what I was planning
When using trigger 0 (emergency stop - as if M122 was received) or trigger 1 (pause - as if M25 was received) there is no actual file used - it is handled directly by the firmware.
Only triggers 2 and higher run a file.
Frederick
-
@fcwilt
thanks for the quick response ,I know enough for now -
-