Cartessian U drive/endstop Homing Issues
-
Another update: I tried moving the S1 flag from one end of the homing code to the other with no apparent change. I am able to trigger one endstop and it shows as triggered in the M119. However when I trigger the second endstop while leaving the 1st triggered M119 shows the 2nd as not triggered. Comments????? I will attach the associated config files.
; Configuration file for Duet WiFi (firmware version 1.20 or newer)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool on Fri Jul 20 2018 18:58:43 GMT-0700 (Pacific Daylight Time); General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves; Network
M550 PMy printer ; Set machine name
M552 S1 ; Enable network
;*** Access point is configured manually via M587
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet; Drives
M569 P0 S0 ; Drive 0 goes backwards x
M569 P1 S1 ; Drive 1 goes forwards y1
M569 P2 S1 ; Drive 2 goes forwards z1
M569 P3 S0 ; Drive 3 goes backwards y2
M569 P4 S1 ; Drive 4 goes forwards z2
M569 P5 S1 ; Drive 5 goes forwards E0
M569 P9 S1 ; Drive 9 goes forwards E1M584 X0 Y1:3 Z2:4 E5:9 ; Define X, Y, Z, E drives
M671 X345:345 Y-150:1230 S3 ; Leadscrew Coordinates
M350 X16 Y16:16 Z16:16 E16:16 I1 ; Configure microstepping with interpolation
M92 X100 Y100:100 Z3200:3200 E400:400 ; Set steps per mm
M566 X900 Y900:900 Z12:12 E120:120 ; Set maximum instantaneous speed changes (mm/min)
M203 X12000 Y12000:12000 Z180:180 E3000:3000 ; Set maximum speeds (mm/min)
M201 X500 Y500:500 Z250:250 E250:250 ; Set accelerations (mm/s^2)
M906 X800 Y800:800 Z2800:2800 E800:800 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 X690 Y1130 Z1000 S0 ; Set axis maxima; Endstops
M574 X1 Y1 S0 ; Set active Low endstops; Z-Probe
M574 Z1 S2 ; Set endstops controlled by probe
M307 H7 A-1 C-1 D-1 ; Disable heater on PWM channel for BLTouch
M558 P5 H5 F500 T4000 X0 Y0 Z1 ; Set Z probe type to bltouch and the dive height + speeds
G31 P25 X35 Y-25 Z0 ; Set Z probe trigger value, offset and trigger height
M557 X15:725 Y15:1100 S20 ; Define mesh grid; Heaters
;Bed Zone 5,6
M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
M143 H0 S85 ; Set temperature limit for heater 0 to 85C Bed, heat zones 5,6
M307 H0 A28.2 C78.3 D10 S1.0 B0
;Extruder 0
M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S240 ; Set temperature limit for heater 1 to 240C E0
M307 H1 A177.4 C115.6 D8.1 S0.5 B0
;Extruder 1
M305 P2 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 2
M143 H2 S240 ; Set temperature limit for heater 2 to 280C E1
M307 H2 A288.7 C190.4 D5.6 S0.5 B0
;Bed Zone 1
M305 P3 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 3
M143 H3 S85 ; Set temperature limit for heater 0 to 85C Bed, heat zone 1
M307 H3 A27.7 C69.3 D10 S1.0 B0
;Bed Zone 2
M305 P4 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 4
M143 H4 S85 ; Set temperature limit for heater 4 to 85C Bed, heat zone 2
M307 H4 A21.8 C65.8 D10 S1.0 B0
;Bed Zone 3
M305 P5 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 5
M143 H5 S85 ; Set temperature limit for heater 5 to 85C Bed, heat zone 3
M307 H5 A21.1 C53.1 D10 S1.0 B0
;Bed Zone 4
M305 P6 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 6
M143 H6 S85 ; Set temperature limit for heater 6 to 85C Bed, heat zone 4
M307 H6 A21.1 C45.6 D10 S1.0 B0; Fans
M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P1 S1 I0 F500 H1:2 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P2 S1 I0 F500 H1:2 T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on; Tools
M563 P0 D0 H1 ; 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
M563 P1 D1 H2 ; Define tool 1
G10 P1 X-65 Y0 Z0 ; Set tool 1 axis offsets
G10 P1 R0 S0 ; Set initial tool 1 active and standby temperatures to 0C
M563 P2 H3 ; Define tool 2
G10 P2 R0 S0 ; Set initial tool 2 active and standby temperatures to 0C
M563 P3 H4 ; Define tool 3
G10 P3 R0 S0 ; Set initial tool 3 active and standby temperatures to 0C
M563 P4 H5 ; Define tool 4
G10 P4 R0 S0 ; Set initial tool 4 active and standby temperatures to 0C
M563 P5 H6 ; Define tool 5
G10 P5 R0 S0 ; Set initial tool 5 active and standby temperatures to 0C; Automatic saving after power loss is not enabled
; Custom settings are not configured
; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool on Fri Jul 20 2018 18:58:43 GMT-0700 (Pacific Daylight Time)
G91 ; relative positioning
G1 Z5 F6000 S2 ; lift Z relative to current position
M98 Pdeployprobe.g ; deploy mechanical Z probe
G1 X-690 F1800 S1 ; move quickly to X axis endstop and stop there (first pass)
G1 X5 F6000 ; go back a few mm
G1 X-870 F360 S1 ; move slowly to X axis endstop once more (second pass)
M98 Pretractprobe.g ; retract the mechanical Z probe
G1 Z-5 F6000 S2 ; lower Z again
G90 ; absolute positioning; homey.g
; called to home the Y axis
;
; generated by RepRapFirmware Configuration Tool on Fri Jul 20 2018 18:58:43 GMT-0700 (Pacific Daylight Time)
G91 ; relative positioning
G1 Z5 F6000 S2 ; lift Z relative to current position
G1 Y-1130 F1800 S1 ; move quickly to Y axis endstop and stop there (first pass)
G1 Y5 F6000 ; go back a few mm
G1 Y-1130 F360 S1 ; move slowly to Y axis endstop once more (second pass)
G1 Z-5 F6000 S2 ; lower Z again
G90 ; absolute positioning; homeall.g
; called to home all axes
;
; generated by RepRapFirmware Configuration Tool on Fri Jul 20 2018 18:58:43 GMT-0700 (Pacific Daylight Time)
G91 ; relative positioning
G1 Z5 F6000 S2 ; lift Z relative to current position
M98 Pdeployprobe.g ; deploy mechanical Z probe
G1 X-690 Y-1130 F1800 S1 ; move quickly to X, Y and U axis endstops and stop there (first pass)
G1 X5 Y5 F6000 ; go back a few mm
G1 X-690 Y-1130 F360 S1 ; move slowly to X and Y axis endstops once more (second pass)
G90 ; absolute positioning
G1 X-20 Y40 F6000 ; go to first bed probe point and home Z
G30 ; home Z by probing the bed
;G1 Z5 F100 S2 ; uncomment this line to lift the nozzle after homingM98 Pretractprobe.g ; retract mechanical Z probe
-
You need to use parameter P3 in the M584 command to hide the U axis most of the time, and use P4 to un-hide it only during Y homing.
-
Thank you. I believe I understand the reference to the P3/P4 designation now. I originally thought it was simply to hide it from view of the DWC. Additionally, I have checked voltage across my endstop signal wire and the ground wire. I now realize I have 24 volts registering prior to it being triggered, and 0 voltage after being triggered. I have ordered bat43 diodes and plan to install them upon arrival. I am not sure if this is why I cannot trigger 2 endstops at once or not. Can you advise me in this area also???
-
What type of endstops are they?
-
Huling Inductive proximity NPN NO Model No. LJ12A3-4 Z/BX
-
Without the diodes, there is a risk of damaging the Duet if you connect them directly and the ground wire breaks. That's the reason I recommend the diodes. Other than that risk, they should work if they are connected directly to the endstop input.
-
Thank you.! They do work separately just fine. It is when I trigger them simultaneously that they do not work properly. I cannot leave either axis in its home position and then successfully home the other axis. The second axis will continue trying to move past the endstop. Can you please direct me on what to do next. I am at a loss???
-
How have you connected the endstops to the Duet? The one for the motor that is always assigned to Z should be connected to the Z endstop input. The one for the motor that becomes the U axis during homing should be connected to the E0 endstop input.
-
David, I currently have no endstops for Z only the bltouch. It appears to be working flawlessly as/for the Z endstop. It is configured to E6 on the Duex 5 expansion board and the Z-probe in and ground to the Duet wifi Z-probe connector. I updated my config files to eliminate the U-drive and posted the new config file recently. I am now trying to sort out the endstop issue, since it is the problem stopping me from homing the axis correctly. Once I have them homing correctly, I will follow your instructions and reestablish the U drive. The endstops are wired to their respective endstop inputs/drives and operate as they should when triggered separately. I have the positive and negative outputs wired to ssr's. The ssrs provide the endstops with 24 volts. The signal wire is wired back to the appropriate signal pin on the endstop plugs associated with the endstop/drive. I have tried to separate models of NPN NO endstops. Both models are operating in the same manner. They both have 24 volts across the positive and signal wires when not triggered. When they are triggered they show zero (0) voltage. If you like I can provide diagrams and photos.
-
David, I apologize I do still have the Z endstops attached to the Z drive/endstop and the EI drive/endstop. I unplugged both the endstop for E1 and the endstop for Z. After doing that none of the endstops show up as triggered when activated in the DWC using M119. However the led on the endstop does light up and the led on the board light up. When I plug both of the configured Z endstops back in, everything goes back to as it was. I am able to only home each axis separately, and the bltouch works as it should.
-
David I have now unplugged all 3 of the "currently" unused endstops. However, if I get the machine to home correctly, I would like to use E0, E1, Z endstops with the bltouch. However I could do away with the Z endstops completely. After powering the board back up and reconnecting the DWC. The DWC machine properties tab shows EO and E1 as hit (without doing anything) and x,y,z as no. I cannot get x and y to show a hit after they are triggered now that the others are unplugged. If I plug them back in they will show as a hit on the machine properties page and using the M119 command but only separately. Thoughts????
-
David, Problem solved! I have found that the unused but still plugged in Z max endstop did have 24volts across the signal wire and the ground, but unfortunately they were inverted. The endstop ground was wired to the signal wire on the board and the endstop signal wire was wired to the ground. I have since swapped the wires and I am now able to home and trigger 2 endstops simultaneously. Thank you David for your assistance. I will continue on to the next step of setting up the printer.
-
@vernon1xx said in Cartessian U drive/endstop Homing Issues:
I have found that the unused but still plugged in Z max endstop did have 24volts across the signal wire and the ground
Does the endstop LED on that input still work?
-
David, luckily yes. The only questionable thing for my limited knowledge is that the EO and EI endstops show a yes in the DWC for an endstop hit. The other endstops say no. However, when I trigger the other endstops, they all show yes in the DWC machine properties tab. The lights on the endstop and the board light up when triggered as they should. Not sure why the DWC registers as yes for EO and E1?? Both of them light up appropriately as well. Any thoughts??
-
David, I have found another forum member that has posted the table from the DWC and it shows the exact view I am seeing from the web page, machine properties. I will provide a link. https://forum.duet3d.com/topic/6261/cannot-understand-web-page-for-machine-properties
-
Any endstops that are not configured for use with visible axes using M574 are assumed to be active high in the Machine Properties report. This means that they show as triggered when nothing is connected to them (LED off), and as not triggered if the outer 2 pins of the connector are shorted together (LED on).