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

Issue getting endstops to work on duex5

Scheduled Pinned Locked Moved
General Discussion
3
9
408
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.
  • undefined
    3DPrintingWorld
    last edited by 9 Jan 2021, 20:00

    I am trying to add two filament sensors to my IDEX printer but I am having a hard time getting the endstop that needs to go on the Duex5 to read the input. I have a; X, U, Y1, Y2 endstops so one of them have to go the duex5 since I am adding two filament sensors.

    The X and two Y endstops function fine but any idea why my U axis endstop on "e2stop" on the duex5 will not read a input?

    ; Drives
    M569 P0 S0 ; X physical drive 0 goes backwards
    M569 P1 S0 ; Y right physical drive 1 goes forwards
    M569 P2 S1 ; Y left physical drive 8 goes backwards
    M569 P3 S1 ; U physical drive 2 goes backwards
    M569 P4 S0 ; E1 physical drive 3 goes forwards
    M569 P5 S0 ; Z left physical drive 5 goes backwards
    M569 P6 S0 ; Z center physical drive 6 goes backwards
    M569 P7 S1 ; Z right physical drive 7 goes forwards
    M569 P8 S0 ; E2 physical drive 4 goes forwards
    ; Endstops new
    M574 X1 S1 P"xstop" ;X axis active high endstop switch
    M574 Y2 S1 P"ystop+zstop" ; Y Double max active high endstop switch
    M574 U2 S1 P"e2stop" ;U axis active high endstop switch
    ; Filament Sensor
    M591 D0 P3 C"e0stop" S1 R70:130 L24.8 E3.0 ; Duet3D rotating magnet sensor for extruder drive 0 is connected to E0 endstop input, enabled, sensitivity 24.8mm.rev, 70% to 130% tolerance, 3mm detection length
    M591 D1 P3 C"e1stop" S0 R70:130 L24.8 E3.0 ; Duet3D rotating magnet sensor for extruder drive 0 is connected to E0 endstop input, enabled, sensitivity 24.8mm.rev, 70% to 130% tolerance, 3mm detection length
    M591 D0 ; display filament sensor parameters for extruder drive 0
    M591 D1 ; display filament sensor parameters for extruder drive 0
    1 Reply Last reply Reply Quote 0
    • undefined
      Phaedrux Moderator
      last edited by 9 Jan 2021, 23:20

      Can you provide the results of M122 and M98 P"config.g"?

      Z-Bot CoreXY Build | Thingiverse Profile

      undefined 1 Reply Last reply 13 Jan 2021, 23:08 Reply Quote 0
      • undefined
        RandyL00123
        last edited by Phaedrux 10 Jan 2021, 03:30

        I'm having the exact same issue. Please let me know if you find the answer.

        ; Configuration file for Duet WiFi (firmware version 3)
        ; executed by the firmware on start-up
        ;
        ; Randy's corexy idex 4 jan 2021
        ; General preferences
        M111 S1 ; Debugging off
        G21 ; Work in millimetres
        G90 ; send absolute coordinates...
        M83 ; ...but relative extruder moves
        M669 K5 ; select 5=corexyu 8=CoreXYUV mode
        M555 P2 ; Set firmware compatibility to look like Marlin P1 to look like rrf
        M404 N1.75 D0.6 ; Set nominal filament diameter to 1.75 and nozzle width to 0.4
        M575 P0 B250000 ; Set baud rate for USB port for Octoprint
        M575 P1 S1 B57600 ; enable support for PanelDue (Default B57600)
        ; Network
        M550 P"Randy corexy idex" ; set printer name
        ;M551 Preprap ; Set password. Use reprap for no password prompt.
        M552 S1 ; enable network
        M586 P0 S1 ; enable HTTP
        M586 P1 S1 ; enable FTP
        M586 P2 S0 ; disable Telnet
        ; Drives
        M569 P0 S0 ;Drive 0(XX) change to a 1 for forwards
        M569 P1 S0 ;Drive 1(XY)
        M569 P2 S0 ;Drive 2(ZRR5)
        M569 P3 S0 ;Drive 3(e0)
        M569 P4 S0 ;Drive 4(e1)
        M569 P5 S0 ;Drive 5(ZCF2)
        M569 P6 S0 ;Drive 6(ZRL6)
        M569 P7 S0 ;Drive 7(UX)
        M569 P8 S0 ;Drive 8(UY)
        ;Create U axis for second X carriage before we try to configure it, hide the V
        M584 X0 Y1 Z2:5:6 U7 V8 E3:4 P4 ;this one works! X0 and Y0 are corexy X carriage. 7,8 U carriage 2=ZRR5, 5=ZCF2,6=ZRL6
        ;Use M671 to define the leadscrew positions
        ;Axis Limits
        M208 X170 Y260 U240 Z300 ;set axis maxima S0 means maxima V350 - V240
        M208 S1 X0 Y0 U80 Z-0.50 ;set axis minima S1 means minima V80
        ;endstops all switches are active high, NC when not triggered
        ;X and Y home to zero, Z home down to positive, U homes to max X
        ;S3 = stall detection stop all s4=stop that axis motor only
        M574 X1 S1 P"xstop" ; X min active high endstop switch
        M574 Y1 S1 P"ystop" ; Y min active high endstop switch
        M574 U2 S1 P"duex.e4stop"
        M574 Z2 S1 P"zstop+duex.e2stop+duex.e3stop" ; configure active-high endstops for high end on Z
        ;M574 E0 S1
        ;M574 E1 S1
        ;M574 Z1 S2 ; set Z endstops controlled by bltouch
        ;Heaters
        M308 S0 P"bedtemp" Y"thermistor" ;A"bed" ; configure sensor 0 as PT1000 on pin bedtemp
        M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
        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
        M143 H0 S120 ; set temperature limit for heater 0 to 120C
        M308 S1 P"e0temp" Y"thermistor" ;A"X" ; configure sensor 1 as thermistor on pin e0temp
        M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1
        M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
        M143 H1 S280 ; set temperature limit for heater 1 to 280C
        M308 S2 P"e1temp" Y"thermistor" ;A"U" ; configure sensor 2 as PT1000 on pin e1temp
        M950 H2 C"e1heat" T2 ; create nozzle heater output on e1heat and map it to sensor 2
        M307 H2 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit
        M143 H2 S280 ; set temperature limit for heater 2 to 280C
        ; BLTouch
        M307 H7 A-1 C-1 D-1 ;Disable the 7th Heater to free up PWM channel 7 on the Duex board.
        ;M308 S7 P"exp.heater7"
        M558 P9 F100 H5 R0.2 T6000 A5 B1
        ;M558 P9 C"^zprobe.in" H5 F100 T2000
        ;M950 S0 C"!duex.pwm5" ; create output for bltouch on heater 7 on duex board
        ;M558 P9 H5 F500 T4000 X0 Y0 Z1 ;Set Z probe type/mode 5. H=Dive Height. F=Speed the bed moves. P10 is stall detection
        ;G31 P25 X0 Y48 Z-1.4 ;Z probe trigger sensitivity, offset in relation to nozzle. And trigger height adjustment
        ;M557 X5:205 Y5:165 S20 ;Define mesh grid
        ;BL Touch
        ;M307 H7 A-1 C-1 D-1 ; Disable the 7th Heater to free up PWM channel 5 on the Duex board
        ;M558 P8 X0 Y0 Z1 H10 F75 T6400 ; Set Z Probe to type Switch or Digital output where Z probe connector is used. Used for z only.
        ;G31 X26.7 Y22.2 Z.476 P1 ; Set Z probe trigger value, offset and trigger height
        ;M557 X30:385 Y30:385 S100 ; Define mesh grid
        ; Fans
        M950 F0 C"fan0" Q100 ; create fan 0 on pin fan0 and set its frequency
        M106 P0 S0 H-1 B0.5 ; set fan 0 value. Thermostatic control is turned off
        M950 F1 C"fan1" Q1000 ; create fan 1 on pin fan1 and set its frequency
        M106 P1 S1 H1 T45 B0.5 ; set fan 1 value. Thermostatic control is turned on
        M950 F2 C"fan1" Q500 ; create fan 2 on pin fan2 and set its frequency
        M106 P2 S0.33 H1:0 T45 B0.5 ; set fan 2 value. Thermostatic control is turned on
        ; Tools
        M563 P0 D0 H1 F1 S"X" ; define tool X
        M563 P1 D1 H2 X5 F4 S"U" ; define tool U
        ;example code from a post that doesn't work...
        M563 P2 D0:1 H1:2 X5 F1:4 S"Copy mode" ; define tool X+U copy mode
        M563 P3 D0:1 H1:2 X0:5 F1:4 S"Mirror mode" ; define tool X+U mirror mode
        G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets
        G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C
        ;To print with both carriages at once you need to map X movement to both X and U, like this:
        ;M563 P2 D0:1 H1:2 X0:3 F1:1 ;tool2 use both extruders and hot end heaters, maps X to both X and U, and use both print cooling ;fans
        ;G10 P2 X50 Y0 U-50 S0 R0 ; set tool offsets and temperatures for tool 2
        ;machine
        M92 X80 Y80 U80 V80 Z400 ; set axis steps per mm
        M92 E163.4:163.4 ; set extruder steps per mm
        M350 X16 Y16 U16 V16 Z16 E16:16 I1 ; configure microstepping with interpolation
        M566 X1200 Y1200 U1200 V1200 Z12 E120:120 ; set maximum instantaneous speed changes (mm/min)
        M203 X9000 Y9000 U9000 V9000 Z360 E1200:1200 ; set maximum speeds (mm/min)
        M201 X1000 Y1000 U1000 V1000 Z500 E250:250 ; set accelerations (mm/s^2)
        M906 X1400 Y1400 U1400 V1400 Z1400 E1200:1200 I30 ; set motor currents (mA) and motor idle factor in per cent
        M84 S30 ; Set idle timeout
        M204 P666 T2666 ; set print and travel accel
        M566 P0 ; uses jerk between all moves. yes or no.
        ; PRESSURE ADVANCE
        ;M572 D0 S0.035 ; set extruder 0 pressure advance. Default for PLA direct drive is 0.05 ;seconds, PETG 0.07
        ; NON-LINEAR EXTRUSION
        ;M592 D0 A0.1214 B0.1786 ; set parameters for extruder drive 0
        ; RETRACTION
        ;M207 S0.9 R0.0 F6000 T6000 Z0.0 ; speeds for 64x microstepping
        ; M207: Set retract length
        ; Parameters
        ; Snnn positive length to retract, in mm
        ; Rnnn positive or negative additional length to un-retract, in mm, default zero
        ; Fnnn retraction feedrate, in mm/min
        ; Tnnn feedrate for un-retraction if different from retraction, mm/min (RepRapFirmware 1.16 and later only)
        ; Znnn additional zlift/hop
        ; Example: M207 S4.0 F2400 Z0.075
        ; FEEDRATE CONVERSIONS
        ; 20mm/s = F1200
        ; 35mm/s = F2100
        ; 50mm/s = F3000
        ; 70mm/s = F4200
        ; 100mm/s = F6000
        ; 120mm/s = F7200
        ; 133mm/s = F8000
        ; ############################
        ; ## 10 - MISCELLANEOUS
        ; ############################
        ; POWER LOSS RECOVERY
        ;
        ;M911 S21 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-1 F500" ; Configure automatic saving on power loss
        ; FILAMENT RUNOUT SENSOR
        ; DYNAMIC ACCELERATION
        ;
        ;M593 F60 ; Attempt to vary acceleration to cancel ringing at specified frequency in ;Hz
        ; LOAD CONFIG-OVERRIDE.G
        M501 ; Load saved parameters from non-volatile memory
        ; Retract probe just in case it's down
        ; Miscellaneous
        ;T0 ; select first tool
        1 Reply Last reply Reply Quote 0
        • undefined
          3DPrintingWorld @Phaedrux
          last edited by Phaedrux 13 Jan 2021, 23:08

          @Phaedrux said in Issue getting endstops to work on duex5:

          Can you provide the results of M122 and M98 P"config.g"?

          M122
          === Diagnostics ===
          RepRapFirmware for Duet 2 WiFi/Ethernet version 3.2 running on Duet WiFi 1.02 or later + DueX5
          Board ID: 08DGM-9T6BU-FG3SJ-6J1FA-3SN6J-1VYRG
          Used output buffers: 3 of 24 (13 max)
          === RTOS ===
          Static ram: 23460
          Dynamic ram: 75092 of which 24 recycled
          Never used RAM 13504, free system stack 189 words
          Tasks: NETWORK(ready,169) HEAT(blocked,309) DUEX(blocked,35) MAIN(running,466) IDLE(ready,19)
          Owned mutexes: WiFi(NETWORK)
          === Platform ===
          Last reset 00:01:18 ago, cause: power up
          Last software reset at 2021-01-12 18:46, reason: User, GCodes spinning, available RAM 13260, slot 1
          Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
          Error status: 0x00
          Aux0 errors 0,0,0
          MCU temperature: min 26.5, current 31.5, max 31.8
          Supply voltage: min 24.0, current 24.2, max 24.4, under voltage events: 0, over voltage events: 0, power good: yes
          Driver 0: position 0, standstill, SG min/max not available
          Driver 1: position 0, standstill, SG min/max not available
          Driver 2: position 0, standstill, SG min/max not available
          Driver 3: position 0, standstill, SG min/max not available
          Driver 4: position 0, standstill, SG min/max not available
          Driver 5: position 0, standstill, SG min/max not available
          Driver 6: position 0, standstill, SG min/max not available
          Driver 7: position 0, standstill, SG min/max not available
          Driver 8: position 0, standstill, SG min/max not available
          Driver 9: position 0, standstill, SG min/max not available
          Driver 10: position 0
          Driver 11: position 0
          Date/time: 2021-01-13 18:03:42
          Cache data hit count 95297428
          Slowest loop: 6.68ms; fastest: 0.21ms
          I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
          === Storage ===
          Free file entries: 10
          SD card 0 detected, interface speed: 20.0MBytes/sec
          SD card longest read time 4.1ms, write time 0.0ms, max retries 0
          === Move ===
          DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000
          === MainDDARing ===
          Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
          === AuxDDARing ===
          Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
          === Heat ===
          Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
          === GCodes ===
          Segments left: 0
          Movement lock held by null
          HTTP is idle in state(s) 0
          Telnet is idle in state(s) 0
          File is idle in state(s) 0
          USB is idle in state(s) 0
          Aux is idle in state(s) 0
          Trigger is idle in state(s) 0
          Queue is idle in state(s) 0
          LCD is idle in state(s) 0
          Daemon is idle in state(s) 0
          Autopause is idle in state(s) 0
          Code queue is empty.
          === Network ===
          Slowest loop: 15.60ms; fastest: 0.00ms
          Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
          HTTP sessions: 1 of 8
          - WiFi -
          Network state is active
          WiFi module is connected to access point
          Failed messages: pending 0, notready 0, noresp 0
          WiFi firmware version 1.25
          WiFi MAC address 60:01:94:2e:09:23
          WiFi Vcc 3.39, reset reason Turned on by main processor
          WiFi flash size 4194304, free heap 24800
          WiFi IP address 192.168.0.55
          WiFi signal strength -56dBm, mode 802.11n, reconnections 0, sleep mode modem
          Clock register 00002002
          Socket states: 0 0 0 0 0 0 0 0
          === DueX ===
          Read count 1, 0.77 reads/min

          edit

          1 Reply Last reply Reply Quote 0
          • undefined
            Phaedrux Moderator
            last edited by 14 Jan 2021, 00:29

            How bout M98 P"config.g"?

            How is your Duex and Duet connected to power?
            As shown here?
            https://duet3d.dozuki.com/Wiki/Duex2_and_Duex5_Features#Section_Wiring

            I think the issue may be your pin name, which should show up as an error in the M98 Pconfig.

            e2stop should be duex.e2stop

            https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_Pin_names_for_Duet_2_WiFi_Ethernet

            Z-Bot CoreXY Build | Thingiverse Profile

            undefined undefined 2 Replies Last reply 15 Jan 2021, 16:15 Reply Quote 0
            • undefined
              3DPrintingWorld
              last edited by 14 Jan 2021, 12:15

              The power is wired as shown but I think you are right about the pin name. That should be it as I didn't realize that I address the pin names for the led's connected to the duex in the same manor. I'll try it shortly.

              1 Reply Last reply Reply Quote 0
              • undefined
                3DPrintingWorld @Phaedrux
                last edited by 15 Jan 2021, 16:15

                @Phaedrux said in Issue getting endstops to work on duex5:

                e2stop should be duex.e2stop

                It works! This was it, missing the "duex" on the pin name. This would be way easier to troubleshoot if the pin names were published somewhere. If this exists somewhere, I am unable to find it.

                1 Reply Last reply Reply Quote 0
                • undefined
                  Phaedrux Moderator @Phaedrux
                  last edited by 15 Jan 2021, 17:02

                  @Phaedrux said in Issue getting endstops to work on duex5:

                  e2stop should be duex.e2stop
                  https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_Pin_names_for_Duet_2_WiFi_Ethernet

                  @3DPrintingWorld said in Issue getting endstops to work on duex5:

                  if the pin names were published somewhere. If this exists somewhere, I am unable to find it.

                  I literally linked it last post.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  undefined 1 Reply Last reply 15 Jan 2021, 17:39 Reply Quote 0
                  • undefined
                    3DPrintingWorld @Phaedrux
                    last edited by 15 Jan 2021, 17:39

                    @Phaedrux I thought that link was just part of your signature. 😁

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