duet 3 endstop wiring
-
this is what i have for config file
; Drives
M569 P0.0 S1 ; physical drive 0.0 goes forwards
M569 P0.1 S1 ; physical drive 0.1 goes forwards
M569 P0.2 S1 ; physical drive 0.2 goes forwards
M569 P0.5 S1 ; physical drive 0.5 goes forwards
M569 P0.4 S0 ; physical drive 0.4 goes forwards
M584 X0.0 Y0.1 Z0.2 E0.5:0.4 ; set drive mapping
M350 X16 Y16 Z16 E16:16 I1 ; configure microstepping with interpolation
M92 X160.00 Y160.00 Z6400.00 E172.64:172.64 ; set steps per mm
M566 X900.00 Y900.00 Z12.00 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z180.00 E1200.00:1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20.00 E250.00:250.00 ; set accelerations (mm/s^2)
M906 X800 Y800 Z800 E800:800 I50 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout; Axis Limits
M208 X0 Y0 Z0 S1 ; set axis minima
M208 X360 Y260 Z700 S0 ; set axis maxima; Endstops
M574 X1 S1 P"io0.in" ; configure active-low endstop for low end on X via pin io0.in
M574 Y2 S1 P"io2.in" ; configure active-low endstop for high end on Y via pin io2.in
M574 Z2 S1 P"io1.in" ; configure active-low endstop for low end on Z via pin io1.in; Z-Probe
M558 P0 H5 F120 T6000 ; disable Z probe but set dive height, probe speed and travel speed
M557 X15:215 Y15:195 S20 ; define mesh grid; Heaters
M308 S0 P"temp3" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp3
M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
M307 H0 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit
M140 H0 ; map heated bed to heater 0
M308 S1 P"spi.cs0" Y"thermocouple-max31856" ; configure sensor 1 as thermocouple via CS pin spi.cs0
M950 H1 C"out1" T1 ; create nozzle heater output on out1 and map it to sensor 1
M143 H1 S260 ; set temperature limit for heater 1 to 260C
M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M308 S2 P"spi.cs1" Y"thermocouple-max31856" ; configure sensor 2 as thermocouple via CS pin spi.cs1
M950 H2 C"out2" T2 ; create nozzle heater output on out2 and map it to sensor 2
M143 H2 S290 ; set temperature limit for heater 2 to 290C
M307 H2 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit; Fans
M950 F0 C"out7" Q500 ; create fan 0 on pin out7 and set its frequency
M106 P0 C"extruder 1" S1 H1 T45 ; set fan 0 name and value. Thermostatic control is turned on
M950 F1 C"out8" Q500 ; create fan 1 on pin out8 and set its frequency
M106 P1 C"extruder 2" S1 H2 T45 ; set fan 1 name and value. Thermostatic control is turned on
M950 F2 C"out9" Q500 ; create fan 2 on pin out9 and set its frequency
M106 P2 C"blower" S0 H-1 ; set fan 2 name and value. Thermostatic control is turned off
M950 F3 C"out6" Q500 ; create fan 3 on pin out6 and set its frequency
M106 P3 C"electrical" S1 H1:2 T30 ; set fan 3 name and value. Thermostatic control is turned on; Tools
M563 P1 D0 H1 F0 ; define tool 1
G10 P1 X0 Y0 Z0 ; set tool 1 axis offsets
G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C
M563 P2 D1 H2 F0 ; define tool 2
G10 P2 X0 Y0 Z0 ; set tool 2 axis offsets
G10 P2 R0 S0 ; set initial tool 2 active and standby temperatures to 0C; Custom settings are not defined
; Miscellaneous
M501 ; load saved parameters from non-volatile memory
M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
T1 ; select first tool -
@Dad003 said in duet 3 endstop wiring:
M574 X1 S1 P"io0.in" ; configure active-low endstop for low end on X via pin io0.in
M574 Y2 S1 P"io2.in" ; configure active-low endstop for high end on Y via pin io2.in
M574 Z2 S1 P"io1.in" ; configure active-low endstop for low end on Z via pin io1.intry
M574 X1 S1 P"!io0.in"and so on
-
my endstop are assigne to io_0 , io_1 and io_2
-
note the exclamation point before the pin name, should invert the pin so its active when pressed instead of the other way around.
-
@bearer said in duet 3 endstop wiring:
M574 X1 S1 P"!io0.in"
thank you , that solved my problem !
and another problem gone , now i need to figure out why the bed heat so slow
-
so here another development after finally having the limit switch in the right state , trying to home the axis , X will move and do what need to be done , Y will move but not hit the switch or ram into the switch without stopping and say it home and the Z axis will move like 10mm and nothing else without even ever getting close of the switch
him using the basic g code from the RRF Config tool, i even copy pasted the X home code that was working and switching the coordinate and axis and it still doesnt work
; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 03 2020 01:01:37 GMT-0600 (Mountain Daylight Time)
G91 ; relative positioning
G1 H2 Z-5 F3000 ; lift Z relative to current position
G1 H1 X-365 Y255 F1800 ; move quickly to X and Y axis endstops and stop there (first pass)
G1 H2 X5 Y-5 F3000 ; go back a few mm
G1 H1 X-365 Y255 F360 ; move slowly to X and Y axis endstops once more (second pass)
G1 H1 Z-805 F360 ; move Z down stopping at the endstop
G90 ; absolute positioning
G92 Z0 ; set Z position to axis minimum (you may want to adjust this); Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z-5 F50 ; lift Z relative to current position
;G90 ; absolute positioning -
Please reset the homing files to the ones the the configurator generated, and post them here along with your current config.g file.
-
@dc42 ok,
here the Z home
**; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 03 2020 01:01:37 GMT-0600 (Mountain Daylight Time)
G91 ; relative positioning
G1 H2 Z-5 F3000 ; lift Z relative to current position
G1 H1 Z-805 F1800 ; move Z down until the endstop is triggered
G92 Z0 ; set Z position to axis minimum (you may want to adjust this); Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z-5 F50 ; lift Z relative to current position
;G90 ; absolute positioning**here the Y home
; homey.g
; called to home the Y axis
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 03 2020 01:01:37 GMT-0600 (Mountain Daylight Time)
G91 ; relative positioning
G1 H2 Z-5 F3000 ; lift Z relative to current position
G1 H1 Y255 F1800 ; move quickly to Y axis endstop and stop there (first pass)
G1 H2 Y-5 F3000 ; go back a few mm
G1 H1 Y255 F360 ; move slowly to Y axis endstop once more (second pass)
G1 H2 Z5 F3000 ; lower Z again
G90 ; absolute positioningthe X files
; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 03 2020 01:01:37 GMT-0600 (Mountain Daylight Time)
G91 ; relative positioning
G1 H2 Z-5 F3000 ; lift Z relative to current position
G1 H1 X-365 F1800 ; move quickly to X axis endstop and stop there (first pass)
G1 H2 X5 F3000 ; go back a few mm
G1 H1 X-365 F360 ; move slowly to X axis endstop once more (second pass)
G1 H2 Z5 F3000 ; lower Z again
G90 ; absolute positioningANd my config file
**; Configuration file for Duet 3 (firmware version 3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 03 2020 01:01:37 GMT-0600 (Mountain Daylight Time); General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"The mean printer" ; set printer name; Network
M551 P"9410648" ; set password
M552 P0.0.0.0 S1 ; enable network and acquire dynamic address via DHCP
M586 P0 S1 ; enable HTTP
M586 P1 S1 ; enable FTP
M586 P2 S0 ; disable Telnet; Drives
M569 P0.0 S1 ; physical drive 0.0 goes forwards
M569 P0.1 S1 ; physical drive 0.1 goes forwards
M569 P0.2 S1 ; physical drive 0.2 goes forwards
M569 P0.5 S0 ; physical drive 0.5 goes backwards
M569 P0.4 S1 ; physical drive 0.4 goes forwards
M584 X0.0 Y0.1 Z0.2 E0.5:0.4 ; set drive mapping
M350 X16 Y16 Z16 E16:16 I1 ; configure microstepping with interpolation
M92 X160.00 Y160.00 Z3200.00 E172.64:172.60 ; set steps per mm
M566 X900.00 Y900.00 Z12.00 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z180.00 E1200.00:1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20.00 E250.00:250.00 ; set accelerations (mm/s^2)
M906 X1500 Y1500 Z1200 E1500:1500 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout; Axis Limits
M208 X0 Y0 Z0 S1 ; set axis minima
M208 X360 Y250 Z800 S0 ; set axis maxima; Endstops
M574 X1 S1 P"!io0.in" ; configure active-high endstop for low end on X via pin io0.in
M574 Y2 S1 P"!io2.in" ; configure active-high endstop for high end on Y via pin io2.in
M574 Z2 S1 P"!io1.in" ; configure active-high endstop for low end on Z via pin io1.in; Z-Probe
M558 P0 H-5 F120 T3000 ; disable Z probe but set dive height, probe speed and travel speed
M557 X15:215 Y15:195 S20 ; define mesh grid; Heaters
M308 S0 P"temp3" Y"thermistor" T100000 B4092 ; configure sensor 0 as thermistor on pin temp3
M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
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
M308 S1 P"spi.cs0" Y"thermocouple-max31856" ; configure sensor 1 as thermocouple via CS pin spi.cs0
M950 H1 C"out1" T1 ; create nozzle heater output on out1 and map it to sensor 1
M143 H1 S260 ; set temperature limit for heater 1 to 260C
M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M308 S2 P"spi.cs1" Y"thermocouple-max31856" ; configure sensor 2 as thermocouple via CS pin spi.cs1
M950 H2 C"out2" T2 ; create nozzle heater output on out2 and map it to sensor 2
M143 H2 S290 ; set temperature limit for heater 2 to 290C
M307 H2 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit; Fans
M950 F0 C"out7" Q500 ; create fan 0 on pin out7 and set its frequency
M106 P0 C"extruder 1" S1 H1 T45 ; set fan 0 name and value. Thermostatic control is turned on
M950 F1 C"out8" Q500 ; create fan 1 on pin out8 and set its frequency
M106 P1 C"extruder 2" S1 H2 T45 ; set fan 1 name and value. Thermostatic control is turned on
M950 F2 C"out9" Q500 ; create fan 2 on pin out9 and set its frequency
M106 P2 C"blower" S0 H-1 ; set fan 2 name and value. Thermostatic control is turned off
M950 F3 C"out6" Q500 ; create fan 3 on pin out6 and set its frequency
M106 P3 C"electrical" S1 H1:2 T30 ; set fan 3 name and value. Thermostatic control is turned on; Tools
M563 P1 D0 H1 F0 ; define tool 1
G10 P1 X0 Y0 Z0 ; set tool 1 axis offsets
G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C
M563 P2 D1 H2 F0 ; define tool 2
G10 P2 X0 Y0 Z0 ; set tool 2 axis offsets
G10 P2 R0 S0 ; set initial tool 2 active and standby temperatures to 0C; Custom settings are not defined
; Miscellaneous
M501 ; load saved parameters from non-volatile memory
T1 ; select first tool**MY bed should go down hit the limit switch and back up but nothing happen when i try to home that one but it will move when using control
-
Here something weird , i was trying to tune the heat bed and started homing Y actually worked like intended i didn't change anything in the config when it wasnt working 15 min earlier
-
So i tested something here , tried ot home the Z with heat bed OFF it move 10mm and stop , started heated bed and boom Z axis keep moving , ANy idea what G CODE i should had or remove or modify ?
-
You're set up to home to Z max. Where is the endstop located? Is it at the bottom when the be is closest to the nozzle or is it at the opposite end?
-
@Phaedrux ends stop is at the bottom the opposite side of the hot end ,
-
@Dad003 said in duet 3 endstop wiring:
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 03 2020 01:01:37 GMT-0600 (Mountain Daylight Time)
G91 ; relative positioning
G1 H2 Z-5 F3000 ; lift Z relative to current position
G1 H1 Z-805 F1800 ; move Z down until the endstop is triggered
G92 Z0 ; set Z position to axis minimum (you may want to adjust this)
; Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z-5 F50 ; lift Z relative to current position
;G90 ; absolute positioningOk, in that case your homez should have a positive Z movement to the endstop rather than negative.
G1 H1 Z805 F1800
-
So after a few frustrating days i still have problem , my Y axis and Z axis will not home , they move a little and the duet web control show as home when they didnt even touch the limit switch
here a video of the Y axis showing my problem , if i run a macro to move the axis after they home everything move fine but homing Y and Z unless they are already next to the limit switch doesnt work they start moving than stop sometime they move more like the video show . Either it a parameter that i dont see somewhere in the config but it not the gcode in the home files since the X work fine , if it neither in the file than is a firmware issue and it a big one , him running the last available firmware 3.01 RC11.
https://www.youtube.com/watch?v=VYiLlLr1R1s
; homey.g
; called to home the Y axis
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 03 2020 01:01:37 GMT-0600 (Mountain Daylight Time)
G91 ; relative positioning
G1 H2 Z5 F3000 ; lower Z relative to current position
G1 H2 Y-5 F3000
G1 H1 Y300 F3000 ; move quickly to Y axis endstop and stop there (first pass)
G1 H2 Y-5 F3000 ; go back a few mm
G1 H1 Y300 F360 ; move slowly to Y axis endstop once more (second pass)
G90 ; absolute positioning; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 03 2020 01:01:37 GMT-0600 (Mountain Daylight Time)
G91 ; relative positioning
G1 H2 Z10 F3000 ; lift Z relative to current position
G1 H1 Z805 F3000 ; move Z down until the endstop is triggered
G92 Z572 ; set Z position to axis minimum (you may want to adjust this); Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 Z-5 F50 ; lift Z relative to current position
;G90 ; absolute positioning; Configuration file for Duet 3 (firmware version 3)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun May 03 2020 01:01:37 GMT-0600 (Mountain Daylight Time); General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"The mean printer" ; set printer name; Network
M551 P"9410648" ; set password
M552 P0.0.0.0 S1 ; enable network and acquire dynamic address via DHCP
M586 P0 S1 ; enable HTTP
M586 P1 S1 ; enable FTP
M586 P2 S0 ; disable Telnet; Drives
M569 P0.0 S1 ; physical drive 0.0 goes forwards
M569 P0.1 S1 ; physical drive 0.1 goes forwards
M569 P0.2 S1 ; physical drive 0.2 goes forwards
M569 P0.5 S0 ; physical drive 0.5 goes backwards
M569 P0.4 S1 ; physical drive 0.4 goes forwards
M584 X0.0 Y0.1 Z0.2 E0.5:0.4 ; set drive mapping
M350 X16 Y16 Z16 E16:16 I1 ; configure microstepping with interpolation
M92 X160.00 Y160.00 Z3200.00 E172.64:172.60 ; set steps per mm
M566 X900.00 Y900.00 Z12.00 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z180.00 E1200.00:1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z20.00 E250.00:250.00 ; set accelerations (mm/s^2)
M906 X1600 Y1600 Z1200 E1600:1600 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout; Axis Limits
M208 X0 Y0 Z0 S1 ; set axis minima
M208 X360 Y250 Z572 S0 ; set axis maxima; Endstops
M574 X1 S1 P"!io0.in" ; configure active-high endstop for low end on X via pin io0.in
M574 Y2 S1 P"!io2.in" ; configure active-high endstop for high end on Y via pin io2.in
M574 Z2 S1 P"!io1.in" ; configure active-high endstop for low end on Z via pin io1.in; Z-Probe
M558 P0 H-5 F120 T3000 ; disable Z probe but set dive height, probe speed and travel speed
M557 X15:215 Y15:195 S20 ; define mesh grid; Heaters
M308 S0 P"temp3" Y"thermistor" T100000 B4725 ; configure sensor 0 as thermistor on pin temp3
M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0
M143 H0 S120 ; set temperature limit for heater 0 to 120C
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
M308 S1 P"spi.cs0" Y"thermocouple-max31856" ; configure sensor 1 as thermocouple via CS pin spi.cs0
M950 H1 C"out1" T1 ; create nozzle heater output on out1 and map it to sensor 1
M143 H1 S260 ; set temperature limit for heater 1 to 260C
M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
M308 S2 P"spi.cs1" Y"thermocouple-max31856" ; configure sensor 2 as thermocouple via CS pin spi.cs1
M950 H2 C"out2" T2 ; create nozzle heater output on out2 and map it to sensor 2
M143 H2 S290 ; set temperature limit for heater 2 to 290C
M307 H2 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit; Fans
M950 F0 C"out7" Q500 ; create fan 0 on pin out7 and set its frequency
M106 P0 C"extruder 1" S1 H1 T45 ; set fan 0 name and value. Thermostatic control is turned on
M950 F1 C"out8" Q500 ; create fan 1 on pin out8 and set its frequency
M106 P1 C"extruder 2" S1 H2 T45 ; set fan 1 name and value. Thermostatic control is turned on
M950 F2 C"out9" Q500 ; create fan 2 on pin out9 and set its frequency
M106 P2 C"blower" S0 H-1 ; set fan 2 name and value. Thermostatic control is turned off
M950 F3 C"out6" Q500 ; create fan 3 on pin out6 and set its frequency
M106 P3 C"electrical" S1 H1:2 T30 ; set fan 3 name and value. Thermostatic control is turned on; Tools
M563 P1 D0 H1 F0 ; define tool 1
G10 P1 X0 Y0 Z0 ; set tool 1 axis offsets
G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C
M563 P2 D1 H2 F0 ; define tool 2
G10 P2 X0 Y34.05 Z0 ; set tool 2 axis offsets
G10 P2 R0 S0 ; set initial tool 2 active and standby temperatures to 0C; Custom settings are not defined
; Miscellaneous
M501 ; load saved parameters from non-volatile memory
T1 ; select first tool -
@Dad003 said in duet 3 endstop wiring:
M574 X1 S1 P"!io0.in" ; configure active-high endstop for low end on X via pin io0.in
If you have physical normally closed switches, you do not need the !
Go to the "machine specific" tab and look lower right. There is a sub-screen that shows endstop status. Verify the say "No" under triggered. Then press them with your finger and be sure each says "yes" .
-
they are all on no and they all work , when i press them
-
@Dad003 said in duet 3 endstop wiring:
they are all on no and they all work , when i press them
Then the switches themselves are working and configured correctly.
Therefore, look at the homing files, or axis configuration, or other similar things.
-
everything move like it should be excepted the homing of Y and Z axis and g code is directly from the tools and check it and check so many time tryed to change value trying to find the problem and nothing , nothing work the homing of the Y or Z never seem to move the same distance every time i call them
-
here something interesting out of the 3 axis stepper , i had to make the wire longer and one motor i only did was to cut the connector to put the duet one in place , so i swapped this connector from the X that was working fine to the Y and the Y suddenly home like it should ! i got rid of the cable and than Z work like it should now , i might have a bad cable it look now