initial setup, no motor movement or endstop triggering.



  • Im setting up a duet2 wifi with a bltouch, when i try to home from the web page its gives me a home failed and no motors attempt to move.
    ive read this thread
    https://forum.duet3d.com/topic/2915/wiring-or-settings-issue-stepper-motors-not-moving
    i have 3.3v on the endstop pin.
    checked motor wiring with mulimeter.
    using bltouch with the plastic tip (its wired correctly but im not sure if i have to cut the trace for 3.3v or if the firmware setting are correct.)
    the machine properties page says XYZ are no and E0 is yes (i cant get that to change to no if i try changing the Snn setting. is it supposed to be like that?)
    then one time i tried to home and it crashed or something so i reset it and the config.g file was gone, so i just copied the config.bak and replaced it.
    im using two wire normally open switches, connected to the 3.3/stp pins.
    but when i press and endstop i get no red leds and no change in the machine property page.

    config file

    ; Communication and general
    M111 S0 ; Debug off
    M550 PDuetTest ; Machine name and Netbios name (can be anything you like)
    M551 Preprap ; Machine password (used for FTP)

    ;*** Networking
    M552 S1 ; Turn network on

    M555 P2 ; Set output to look like Marlin
    G21 ; Work in millimetres
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    ; Disable Fan 1 thermostatic mode
    M106 P1 H-1

    ; Axis and motor configuration
    M569 P0 S1 ; Drive 0 goes forwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S1 ; Drive 2 goes forwards
    M569 P3 S1 ; Drive 3 goes forwards
    M569 P4 S1 ; Drive 4 goes forwards

    ; ENDSTOPS
    M574 X1 Y1 S2 ; X home to min. Y home to min. Normally open limit switches.
    M574 Z1 S2 ; Define Z to use Probe. Home to Min

    ;*** The homed height is deliberately set too high in the following - you will adjust it during calibration
    M665 R105.6 L215.0 B85 H250 ; set delta radius, diagonal rod length, printable radius and homed height
    M666 X0 Y0 Z0 ; put your endstop adjustments here, or let auto calibration find them
    M350 X16 Y16 Z16 E16:16 I1 ; Set 16x microstepping with interpolation
    M92 X80 Y80 Z405 ; Set axis steps/mm
    M906 X1000 Y1000 Z900 E800 I60 ; Set motor currents (mA) and increase idle current to 60%
    M201 X700 Y700 Z1000 E1000 ; Accelerations (mm/s^2)
    M203 X20000 Y20000 Z20000 E3600 ; Maximum speeds (mm/min)
    M566 X1200 Y1200 Z1200 E1200 ; Maximum instant speed changes mm/minute

    ; Thermistors
    M305 P1 X150
    M305 P0 T100000 B3950 R4700 H30 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
    ;M305 P1 T100000 B3974 R4700 H30 L0 ; Put your own H and/or L values here to set first nozzle thermistor ADC correction
    ;M305 P2 T100000 B3974 R4700 H30 L0 ; Put your own H and/or L values here to set 2nd nozzle thermistor ADC correction

    M570 S180 ; Hot end may be a little slow to heat up so allow it 180 seconds

    ; Adjustments for dummy heaters on test rig
    M307 H0 A250 C140 D5.5 B1
    M307 H1 A250 C140 D5.5 B0
    M307 H2 A250 C140 D5.5 B0
    M307 H7 A-1 C-1 D-1 ; Disable the 7th Heater to free up PWM channel 5 on the Duex board.
    ; Fans
    M106 P1 S-1 ; disable thermostatic mode for fan 1

    ; Tool definitions
    M563 P0 D0 H1 ; Define tool 0
    G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
    ;*** If you have a single-nozzle build, comment the next 2 lines
    ;M563 P1 D1 H2 ; Define tool 1
    ;G10 P1 S0 R0 ; Set tool 1 operating and standby temperatures
    M92 E837:837 ; Set extruder steps per mm

    ; Z probe and compensation definition
    ;*** If you have a switch instead of an IR probe, change P1 to P4 in the following M558 command.
    M558 P9 F100 T6000 X0 Y0 Z1 H4 😜 is probe type
    ;H how far bed moves down/hotend up, between each probes
    ;F is the speed of bed up/down movement.
    ;T is the movement speed between probepoints.
    R0.4 not used. Reduced F300 to 100
    G31 P25 X39 Y-33 Z0.0 ; Z probe trigger value, offset in relation to nozzle. And trigger height adjustment

    ;*** If you are using axis compensation, put the figures in the following command
    ;M556 S78 X0 Y0 Z0 ; Axis compensation here
    M557 X5:180 Y5:180 S30 ; Define mesh grid

    M208 S1 Z-0.2 ; set minimum Z

    T0 ; select first hot end
    ; M117 Use https://configurator.reprapfirmware.org/ to set up your printer config



  • @deltajegga said in initial setup, no motor movement or endstop triggering.:

    M574 X1 Y1 S2 ; X home to min. Y home to min. Normally open limit switches.

    I think you need to set your end stops in the M574 line to S0, active low. At the moment you have them set as probes.



  • ok,i switched that. i still get no leds when i manually press the endstop.


  • administrators

    Check your endstop connector wiring. For simple 2-wire switch endstops, use the two outer pins on the 3-pin connector on the Duet. See https://duet3d.dozuki.com/Wiki/Connecting_endstop_switches.



  • @dc42 thats how i have them. even if i short the 3.3 and stp pins at the board, nothing happens.



  • @deltajegga oh you mean on the switch? i know youre not supposed to use normally open switches, but i thought you could reverse the logic with the Snn?


  • administrators

    @deltajegga said in initial setup, no motor movement or endstop triggering.:

    @dc42 thats how i have them. even if i short the 3.3 and stp pins at the board, nothing happens.

    Wrong pins. You need to short the STP and ground pins (the outer 2 pins of the 3).



  • interesting, im confused. did i miss that somewhere on the endstop page?



  • ok, i switched the wires to the outer pins and that got the leds working properly. but i still get a homing failed error.



  • Are the motors moving now?
    Did you change the M574 line to S1 (Active high) now?



  • just so i have this straight i saw this on some page but i cant remember which one.
    S0 is no switch
    S1 is NO
    S2 is NC right?
    i switched it to S1 and still get home error.



  • Nope, from the wiki:

    https://duet3d.dozuki.com/Wiki/Gcode#Section_M574_Set_endstop_configuration

    Snnn Endstop type: 0 = active low endstop input, 1 = active high endstop input, 2 = Z probe, 3 = motor load detection



  • oh ok, thanks. so ive got the xyz endstops working, but the bltouch is displayed on the machine properties page as E0 yes. would this stop the motors from moving?


  • administrators

    @deltajegga said in initial setup, no motor movement or endstop triggering.:

    oh ok, thanks. so ive got the xyz endstops working, but the bltouch is displayed on the machine properties page as E0 yes. would this stop the motors from moving?

    BLTouch should not be connected to E0, it should be connected to the Z probe connector. if correctly wired and configured, it should give you a Z probe reading of 0 when not active.

    Common things that prevent motors moving:

    1. Not setting the currents. Send M906 to check that they are set.
    2. Not having VIN power applied.
    3. Having VIN power applied, but the voltage is too low. The M122 diagnostic report includes a "power good" indication.
    4. Trying to do regular moves before the printer has been homed. You will get error messages in the GCode Console if that is the reason. If you want to allow regular movement before homing, you can send M564 H0 or include that in config.g.


  • ok, so ive updated to 2.02 and have got everything working, i think my main problem was in you're wiki you link to betrue3d site and his information is not up to date, so i was going back and forth and mixed a bit from the old way with the new way. but after just following you're guide i got everything working and have got it to run a mesh compensation.



  • @deltajegga Which link in which wiki? That should be fixed.



  • https://betrue3d.dk/bltouch-on-duet-wifi-configuratio-and-usage/
    the define probe type section got me the first time. it says to use P5 for probe type.



  • @deltajegga P5 will still work, and is required for older firmware versions. But P9 is preferred.


 

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