Cartessian U drive/endstop Homing Issues



  • I am here to humbly ask for assistance. I have recently completed a very large cartesian 3d printer build. I have outfitted it with dual Z's and dual Y's. I am a newbie to the Duet community. I do have other printers but they are running Marlin. I have completed the configuration, utilizing the configuration tool as an aid. The rest of the files I have updated through following the documentation available. The Z axis probing is being handled with a bl touch. Everything seems to be working perfect for all axis except the endstop on the U. The X and Y will home, but the U try's to drive through the endstop. I am using NPN inductive sensors. When configured as active high the drives will move about 10mm opposite the endstop claiming to be homed. When configured as active low they operate as they should except for the U trying to continue on past the endstop limit. The sensor lights trigger on the board and the sensors themselves (when activated). The sensors are supplied with 12 volts routed through SSR's. The sensors are Huling LJ12A3-4-Z/BX. I tried a new sensor but it did not fix the issue. I also checked the continuity of the signal wire back to the E0 endstop. Please review the attached config files and direct me as to my next step.. Thank you!
    ; 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 S1 ; Drive 3 goes forwards y2
    M569 P4 S1 ; Drive 4 goes forwards z2
    M569 P5 S1 ; Drive 5 goes forwards E0
    M569 P9 S1 ; Drive 9 goes forwards E1
    M584 X0 Y1:3 U3 Z2:4 V4 E5:9 ; Define X, Y, Z, E drives
    M671 X345:345 Y-150:1230 S3 ; Leadscrew Coordinates
    M350 X16 Y16:16 U16 Z16:16 V16 E16:16 I1 ; Configure microstepping with interpolation
    M92 X100 Y100:100 U100 Z3200:3200 V3200 E400:400 ; Set steps per mm
    M566 X900 Y900:900 U900 Z12:12 V12 E120:120 ; Set maximum instantaneous speed changes (mm/min)
    M203 X12000 Y12000:12000 U12000 Z180:180 V180 E3000:3000 ; Set maximum speeds (mm/min)
    M201 X500 Y500:500 U500 Z250:250 V250 E250:250 ; Set accelerations (mm/s^2)
    M906 X800 Y800:800 U1800 Z2800:2800 V2800 E800:800 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X0 Y0 U0 Z0 S1 ; Set axis minima
    M208 X690 Y1130 U1130 Z1000 S0 ; Set axis maxima

    ; Endstops
    M574 X1 Y1 U1 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 S1 X-690 F1800 ; move quickly to X axis endstop and stop there (first pass)
    G1 X5 F6000 ; go back a few mm
    G1 S1 X-870 F360 ; 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
    M584 Y1 U3 ; Split Y into 2 Y+U
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 Y-1130 U-1130 F1800 ; move quickly to Y axis endstop and stop there (first pass)
    G1 Y5 U5 F6000 ; go back a few mm
    G1 S1 Y-1130 U-1130 F360 ; move slowly to Y axis endstop once more (second pass)
    G1 Z-5 F6000 S2 ; lower Z again
    M584 Y1:3 ; Join U to Y again
    G90 ; absolute positioning
    ; homeu.g
    ; called to home the u axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Fri Jul 20 2018 18:58:43 GMT-0700 (Pacific Daylight Time)
    G91 ; relative positioning
    M584 U3 Y1 ; Split Y into 2 Y+U
    G1 Z5 F6000 S2 ; lift Z relative to current position
    G1 S1 U-1130 Y-1130 F1800 ; move quickly to Y axis endstop and stop there (first pass)
    G1 U5 Y5 F6000 ; go back a few mm
    G1 S1 U-1130 Y-1130 F360 ; move slowly to Y axis endstop once more (second pass)
    G1 Z-5 F6000 S2 ; lower Z again
    M584 U3:1 ; Join U to Y again
    G90 ; absolute positioning
    ; homez.g
    ; called to home the Z 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
    G90 ; absolute positioning
    G1 X-20 Y40 F6000 ; go to first probe point
    G30 ; home Z by probing the bed

    ; Uncomment the following lines to lift Z after probing
    ;G91 ; relative positioning
    ;G1 Z5 F100 S2 ; lift Z relative to current position
    ;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
    M584 Y1 U3 ; Split Y into 2 axis Y and U
    G1 S1 X-690 Y-1130 U-1130 F1800 ; move quickly to X, Y and U axis endstops and stop there (first pass)
    G1 X5 Y5 U5 F6000 ; go back a few mm
    G1 S1 X-690 Y-1130 U-1130 F360 ; move slowly to X and Y axis endstops once more (second pass)
    M584 Y1:3 ;Join Y to U again
    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 homing

    M98 Pretractprobe.g ; retract mechanical Z probe



  • @vernon1xx I use U and V on my CoreXY for homing so although it's not exactly the same as yours, there are similarities.

    Comparing your config.g with mine, there is one thing that stands out but it might not be relevant. I'm not sure if you can have Drive 3 mapped to both the Y axis and the U axis as you have it in M584. I my U and V to unused axes so in your case, you would map U to say 10. So you'd have M584 X0 Y1:3 U10 Z2:4 E5:9 (also leave out V if you don't need it or map it to 11 rather than have it mapped to 4 which is also used for Z).

    Then homing I do slightly differently to you. I think your problem might be related to the combined YU move which will stop when either switch triggers. Probably the easiest way is if I copy and paste my Home Y so that you can see the differences. You don't really need separate HomeY and HomeU as they are doing essentially the same thing. Here is what I use:

    ; homey.g
    ; called to home the Y axis

    M584 X0 U3 Y1 V4 P5; temporarily map drives to U and V axes - I have to map both axes even though only U is being used due to both motors being employed per axis on a CoreXY
    ; P5 is necessary to make the axes visible otherwise they won't move

    M906 X400 U400 Y400 V400 Z1200 ; reduce motor currents - this is just a safety thing to limit damage in case of a crash.

    G91 ; set relative coordinates

    ; Lift Z relative to current position
    G1 Z5 F300 ; move bed down 5mm

    G1 Y-380 V-380 F4800 S1; move both axes fairly quickly left until one or other triggers a switch

    G1 Y-380 S1; course home Y
    G1 V-380 S1; course home V

    G1 Y10 V10 F600; Go back a few mm

    G1 Y-380 V-380 F360 S1; Move slowly to Y and V axis endstops once more and stop when one triggers

    G1 Y-380 F360 S1 ; fine home Y
    G1 V-380 F360 S1 ; fine home V

    M906 X1800 U1800 Y1800 V1800 Z1800; reset motor currents

    ; put motor mapping back to normal so that X uses drives 0 and 3, Y uses 1 and 4
    M584 X0:3 Y1:4 Z2 U10 V11 E5:6:7:8:9 P3;

    G90; set to absolute coordinates

    G1 Y180 F6000; move to more or less the centre of the bed

    ; Lower Z again
    G91
    G1 Z-5 F300
    G90

    Hope that helps



  • deckingman I made the changes per your suggestion, including the elimination of the V, and the homeu.g file. Unfortunately it did not resolve my issues. I ran M119 and found that the endstop y and u both show at min when triggered separately. However, when triggered simultaneously, they show they are not triggered. The configuration of the Y and U follow the blog post by betrue3d. The name of the article is Duet wifi/eth-use m584 to autolevel or sync z-axis using 2 or more motors. The homeu.g file was me trying to be thorough.... Any new thoughts???



  • @vernon1xx Hmmm. Something at the back of my mind tells me that estops are assigned to axes in a certain order, so you have to be careful which estop is used for which axis. I can't off hand remember exactly. Maybe check the Wiki and then your wiring. Sorry I can't be more specific.



  • I checked wiring, changed U3 to U8. I checked the #3 endstop again using M119 and it still shows it as U. I am curious how can it still be mapped to the U drive when I now have it tied to drive 8?? Both Y drives 1,3 endstops still trigger separate, but not together. I also rearranged the order per your suggestion. However I have found reference from DC42 Adminstrator that the order does not matter. Non the less all reference to U drive is after Z.


  • administrators

    @vernon1xx, I see that you have deleted your posts. Did you solve the problem?



  • Yes and no. I was able to remove the U drive button from the Duet Web Console by deleting all reference to the U drive in the configuration files. I can now home with one (1) endstop on the Y axis. My goal was to be able to home both stepper motors on Y axis separately using dual endstops. Unfortunately when they were both triggered simultaneously, the M119 command shows no endstops triggered, and the drives continue to try to run past the endstop. If I trigger the endstops separately the M119 command shows the separate endstops as triggered and at min. All lights work properly and the X endstop works excellent. I had the 2nd Y drive mapped as "U3" and Y1:3. I followed the BeTrue3D Blog Post "Duet wifi/eth-use m584 to autolevel or sync z-axis using 2 or more motors". However, Deckingham suggested mapping U to another unused drive. After remapping U to drive 8 and reconfiguring the "home" files I noticed that when I triggered the 2nd Y endstop (and issuing the M119 command) the g-code console still showed the end stop triggered. Obviously the association of U to drive 3 was still there. I felt it was necessary to delete the U drive from the DWC and try again. I finally realized I needed to delete all reference to the "U" drive for it to disappear. My plan is to reconfigure U again using drive 8 and then while homing split Y to 1 and U to 3 and then combine Y1:3 again. I have not found any reference within the forum, facebook page or other associated documentation were Y has been successfully homed using separate drives and endstops, only "Z". Is it possible with Y?? I appreciate your assistance and recognition of my post.



  • Update: I deleted all reference to the U drive in the config files. The U drive button on the DWC was gone. I have since re-entered all the parameters with U assigning it to drive 8. However, the endstop connected to the number 3 drive when triggered shows up as U at min stop when entering M119. How can U still have association with the number 3 drive and endstop?? Thank you....



  • Another update: Things are becoming more interesting. The problem with the simultaneous endstop triggering is not isolated to the Y and U drives. If I trigger the X endstop by itself the homing works as it should, and M119 shows it as triggered. If I trigger the Y by itself it works as it should also including the M119 command. However, if I trigger x and y simultaneously and check the M119 command they both show they are not triggered. This is the same problem I was having with the U and Y drives earlier. Any thoughts/comments???



  • 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 E1

    M584 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 homing

    M98 Pretractprobe.g ; retract mechanical Z probe


  • administrators

    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???


  • administrators

    What type of endstops are they?



  • Huling Inductive proximity NPN NO Model No. LJ12A3-4 Z/BX


  • administrators

    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???


  • administrators

    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????


 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.