Configuring stepper motor as filament feeder motor
-
Hi Everyone,
This is in regards to configuring a stepper motor as an axis ¨U¨ for operating it as a filament feeder motor only simulated via 5V normal relay as an endstop. This motor operation is to be interfaced with Print head state which two states ON & OFF controlled via a 5V normal Relay.
In summary two relays are used to control the state of the Print head and second as input to the ¨U¨ axis feeder motor. I am attaching the duet board layout and pasting the G Code of in context to U axis. Further two macro files ¨Print Head ON¨ and ¨Print Head OFF¨ are called by M98 codes in the print file.
; Endstops
M574 U2 S1 P"io7.in" ; simple switch on high end; Fans
M950 P4 C"out6" ; Allocate GPIO port 4 to OUT_6, U Axis feeder motor RELAY, 5V normal Relay; Print Head State
global.PrintHeadState = 0 ; Assume initially off, change to 1 for ON; Print Head ON
M42 P3 S1 ; turns on the relay to start welder
; set Print Head state to ON
global.PrintHeadState = 1
G4 S{global.waitTime} ; wait for arc and pool to form
M42 P4 S0 ; set the endstop low
G91
G92 U0 ; Set U axis position to zero
G1 H4 U99999 F{global.feedRate} ; commence feeding; Print Head OFF
M42 P3 S0 ; turns on the welder relay
M42 P4 S1 ; set the endstop high to stop feeding
G91 U-3 ; retract some wire
; set Print Head state to OFF
global.PrintHeadState = 0
G4 S{global.postGasTime} ; wait for post gasRequesting your thoughts about this configuration setup plz......
Any additional informatin i would be glad to provide.
-
This requirement is completed. Hence can be closed
-
-