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

    Using a close loop stepper motor

    Scheduled Pinned Locked Moved
    General Discussion
    2
    5
    212
    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.
    • Yaronundefined
      Yaron
      last edited by Yaron

      Hi,
      For several years, I have been using these MKS SERVO42B ( now there is a new version MKS SERVO42C) . I added them as external drives for the DUET 3D, on X and Y axes. They are connected to the LCD DRIVER 10 and Driver 11 of the duet 3d.
      Recently I did a system upgrade to version 3.4 from version 2.05.
      Unfortunately, I can not find a way to operate the X and Y axes anymore ( the Z-axis works fine).
      I am adding here the config.g and the m122 output.non_working_config.g m122_not_working,txt.txt.

      I would appreciate any help,
      Thanks

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        Was it working in 2.05? Do you have that config still?

        1 Reply Last reply Reply Quote 0
        • Yaronundefined
          Yaron
          last edited by

          Here is the old config: config.g
          if you look carefully there seems to be a mistake in the M584 command, at the start of the file ( but this is how it used to work).
          In the remark section of the m584 command instead of starting with a ";" it starts with a "#" (UNIX likes comma - my mistake).

          Hope it clears something.
          Thanks

          Yaronundefined 1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • Yaronundefined
              Yaron @Yaron
              last edited by

              @yaron

              Hi
              I got everything to work (in Version 3.4)

              Here is the config file if someone is interested :

              ; executed by the firmware on start-up
              ;https://duet3d.dozuki.com/Wiki/Using_external_stepper_motor_drivers -- reassining the motors for use
              ; Drives
              M584 X10 Y11 E3:4:0:1 ; # X10 ( lcd 10 ) , Y11 ( LCD 11) , reassign 3-> e0 ( as was), 4-> e1 ( as was) , old X -> e2 old Y -> e4.NEED TO BE FIRST INSTRUCSION IN FILE
              M584 P3 ; Number of visible axes, defaults to the total number of axes configured.
              M569 P10 S0 ; reverse the direction of the motor attached to driver P10 ->X
              M569 P11 S0 ; reverse the direction of the motor attached to driver P11 -> Y
              M569 P2 S1 ; Drive 2 goes forwards -> z
              M569 P3 S1 ; Extruder (driver 3) goes fo rwards

              ; General preferences
              M575 P1 S1 B57600 ; enable support for PanelDue
              G90 ; Send absolute coordinates...
              M83 ; ...but relative extruder moves

              ; Network
              M550 PENDER3 ; Set machine name
              M552 S0 ; disable the network
              M587 S"MyNet" P"LLLL" ; set passwword for the network
              M552 S1 ; Enable network
              ;*** Access point is configured manually via M587
              M586 P0 S1 ; Enable HTTP
              M586 P1 S1 ; Enable FTP
              M586 P2 S1 ; Enable Telnet

              M350 X16 Y16 Z16 E16 I1 ; Configure microstepping with interpolation
              M92 X1600.00 Y1600.00 Z416 E400 ; Set steps per mm
              M566 X1000 Y1000 Z100 E30000 ; Set maximum instantaneous speed changes (mm/min)
              M203 X6000 Y6000 Z500 E1500 ; Set maximum speeds (mm/min)
              M201 X300 Y300 Z100 E5000 ; Set accelerations (mm/s^2) was 500 you changed it to 300 for stall guard
              M906 X500 Y500 Z500 E1000 I30 ; Set motor currents (mA) and motor idle factor in per cent
              M84 S300 ; Set idle timeout

              ; Axis Limits
              M208 X0 Y0 Z0 S1 ; Set axis minima
              M208 X235 Y235 Z260 S0 ; Set axis maxima

              ; Endstops
              M574 X1 S1 P"xstop" ; configure switch-type (e.g. microswitch) endstop for low end on X via pin xstop
              M574 Y1 S1 P"ystop" ; configure switch-type (e.g. microswitch) endstop for low end on Y via pin ystop
              M574 Z1 S2 ; configure Z-probe endstop for low end on Z

              ; Z-Probe
              M950 S0 C"exp.heater7" ; create servo pin 0 for BLTouch
              M558 P9 C"^zprobe.in" H5 F200 T2000 ; set Z probe type to bltouch and the dive height + speeds
              G31 P25 X-31 Y0 Z2.060 ; set Z probe trigger value, offset and trigger height
              M557 X30:205 Y20:220 S20 ; Define mesh grid

              ; Heaters
              M308 S0 P"bedtemp" Y"thermistor" T100000 B4092 ; configure sensor 0 as thermistor on pin bedtemp
              M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0
              M307 H0 B0 S1.00 R0.25 ; disable 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 150C
              M308 S1 P"e0temp" Y"thermistor" T100000 B4092 ; 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 S275 ; set temperature limit for heater 1 to 275C

              ; Fans
              M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency
              M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off
              M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency
              M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on
              M950 F2 C"fan2" Q500 ; create fan 2 on pin fan2 and set its frequency
              M106 P2 S1 H1:0 T45 ; set fan 2 value. 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
              T0 ; Select tool 0

              ; Heaters
              ;M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
              ;143 H0 S120 ; Set temperature limit for heater 0 to 120C
              ;M305 P1 X150 T"K" ; Set THERMOCOUPLE parameters for heater 1 X150 is the right channel (terminal block) on the daughterboard. X151 is the right channel.
              ;M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1 - set E0 thermistor parameters
              ;M143 H1 S280 ; Set temperature limit for heater 1 to 260C

              ; Fans
              ;M106 P0 S0 I0 B0.5 F250 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
              ;M106 P1 S1 I0 B0.5 F500 L255 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Minimum Speed is 1/3 aka 87 Thermostatic control is turned on triggered at nozzle temp 45;
              ;M106 P2 S0 I0 B0.5 F500 H-1 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on

              ; Tools
              ;M563 P0 D0 H1 ; Define tool P0 to be D0 ( EXTRUDER E0 in gcode commands )
              ;G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
              ;G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C

              ; Automatic power saving
              M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss

              ;filament monitor
              M591 D0 P1 C3 S1 ; filament monitor connected to E0_stop (C3) On Extruder 0 (D0) S1 - simple sensor (high signal when filament present)

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