Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Endstop on second x axis not detected

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    6
    131
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nevurundefined
      nevur
      last edited by

      Afternoon all,

      I have designed and built my own IDEX printer, it has 2 independent X and Z axis.
      My V axis which is the second X axis refuses to home, limit switch is configured to NC, the Duet 2 wifi and Duex boards LED indicate when limit switches are compressed.

      Any help would be greatly appreciated

      ; General preferences
      G21 ; Work in mm
      G90 ; send absolute coordinates...
      M83 ; ...but relative extruder moves
      M550 P"" ; set printer name

      ; Network
      M551 P"" ; set password
      M552 S1 ; enable network
      M586 P0 S1 ; enable HTTP
      M586 P1 S0 ; disable FTP
      M586 P2 S0 ; disable Telnet

      ; Drives
      M569 P0 S1 ; physical drive 0 goes Forwards X
      M569 P1 S0 ; physical drive 1 goes Backwards Y
      M569 P2 S0 ; physical drive 2 goes Backwards Z
      M569 P3 S0 ; physical drive 3 goes Backwards Vx
      M569 P4 S1 ; physical drive 4 goes Forwards Uz
      M569 P5 S0 ; physical drive 5 goes backwards E0
      M569 P6 S0 ; physical drive 7 goes forwards E1

      M584 X0 Y1 Z2 V3 U4 E5:6 ; set drive mapping
      M350 X16 V16 U16 Y16 Z16 E16:16 I1 ; configure microstepping with interpolation,
      M92 X160.00 V160.00 Y160.00 Z800.00 U800.00 E873.08:873.08 ; set steps per mm
      M566 X900.00 V900.00 U12.00 Y900.00 Z12.00 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min)
      M203 X6000.00 V6000.00 U360.00 Y6000.00 Z360.00 E1200.00:1200.00 ; set maximum speeds (mm/min)
      M201 X500.00 V500.00 U20.00 Y500.00 Z20.00 E250.00:250.00 ; set accelerations (mm/s^2)
      M906 X1000 U1000 V1000 Y1000 Z1000 E1000:1000 I30 ; set motor currents (mA) and motor idle factor in per cent
      M84 S30 ; Set idle timeout

      ; Axis Limits
      M208 X0 Y0 Z0 V0 U0 Y0 Z0 S1 ; set axis minima
      M208 X210 V210 U210 Y360 Z210 S0 ; set axis maxima

      ; Endstops
      M574 X1 V1 Y1 S0 ; set active low endstops
      M574 Z0 U0 S2 ; set endstops controlled by probe

      ; Z-Probe
      M558 P7 H5 F240 T6000 ; set Z probe type to switch and the dive height + speeds
      G31 P500 X0 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height
      M557 X15:210 Y15:360 S20 ; define mesh grid

      ; U-Probe
      M558 P7 H5 F240 T6000 ; set U probe type to switch and the dive height + speeds
      G31 P500 V0 Y0 U2.5 ; set U probe trigger value, offset and trigger height
      M557 V15:210 Y15:360 S20 ; define mesh grid

      ; Heaters
      M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
      M143 H0 S120 ; set temperature limit for heater 0 to 120C
      M305 P1 T100000 B4725 C7.060000e-8 R4700 ; set thermistor + ADC parameters for heater 1
      M143 H1 S260 ; set temperature limit for heater 1 to 260C
      M305 P2 T100000 B4725 C7.060000e-8 R4700 ; set thermistor + ADC parameters for heater 2
      M143 H2 S260 ; set temperature limit for heater 2 to 260C

      ; Fans
      M106 P0 S0 I0 F500 H-1 ; set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
      M106 P1 S1 I0 F500 H-1 ; set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off
      M106 P2 S1 I0 F500 H1 T45 ; set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on
      M106 P3 S1 I0 F500 H2 T45 ; set fan 3 value, PWM signal inversion and frequency. Thermostatic control is turned on

      ; Tools
      M563 P0 D0 H1 F0 ; 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 F1 ; define tool 1
      G10 P1 V0 Y0 U0 ; set tool 1 axis offsets
      G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C

      ; Custom settings are not defined

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by dc42

        Can you confirm that you have the V endstop switch connected to E0stop, and the U endstop switch connected to E1stop ?

        Edit: I just spotted this in your config.g:

        M574 Z0 U0 S2 ; set endstops controlled by probe

        S2 in that line is wrong for both Z and U, unless you really are using the Z probe as the U endstop.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        nevurundefined 1 Reply Last reply Reply Quote 0
        • nevurundefined
          nevur
          last edited by

          I can confirm V is in E0, compressing the switch also confirms by LED

          Nothing in E1stop

          I am currently using z probe for both Z and U

          1 Reply Last reply Reply Quote 0
          • nevurundefined
            nevur
            last edited by nevur

            although the probe says triggered when not compressed and not triggered when I compress it, seems to be backwards

            dc42undefined 1 Reply Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators @nevur
              last edited by

              @nevur said in Endstop on second x axis not detected:

              although the probe says triggered when not compressed and not triggered when I compress it, seems to be backwards

              then you need to add parameter i1 to your m558 command.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 0
              • nevurundefined
                nevur @dc42
                last edited by

                @dc42

                now fixed! I didn't realise drive mapping didnt map end stops and V is E1
                now working as intended

                thank you

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Unless otherwise noted, all forum content is licensed under CC-BY-SA