motor not moving
-
[15:30:25:735] === Diagnostics ===␊ [15:30:25:735] RepRapFirmware for Duet 3 MB6XD version 3.5.1 (2024-04-19 14:39:48) running on Duet 3 MB6XD v1.01 or later (standalone mode)␊ [15:30:25:735] Board ID: 0JD2M-999AL-D25SW-6JKDG-3S06P-K4Z31␊ [15:30:25:735] Used output buffers: 1 of 40 (19 max)␊ [15:30:25:735] === RTOS ===␊ [15:30:25:735] Static ram: 153624␊ [15:30:25:963] Dynamic ram: 117852 of which 0 recycled␊ [15:30:25:963] Never used RAM 71588, free system stack 168 words␊ [15:30:25:963] Tasks: NETWORK(1,ready,131.1%,183) ETHERNET(5,nWait 7,0.1%,314) HEAT(3,nWait 6,0.0%,356) Move(4,nWait 6,0.0%,238) CanReceiv(6,nWait 1,0.0%,940) CanSender(5,nWait 7,0.0%,334) CanClock(7,delaying,0.0%,339) MAIN(1,running,120.9%,130) IDLE(0,ready,0.0%,30), total 252.1%␊ [15:30:25:963] Owned mutexes: USB(MAIN)␊ [15:30:25:963] === Platform ===␊ [15:30:25:963] Last reset 04:13:37 ago, cause: software␊ [15:30:25:963] Last software reset at 2024-06-05 16:15, reason: User, Gcodes spinning, available RAM 104140, slot 0␊ [15:30:25:963] Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00400000 BFAR 0x00000000 SP 0x00000000 Task MAIN Freestk 0 n/a␊ [15:30:25:963] Error status: 0x00␊ [15:30:25:963] MCU temperature: min 33.7, current 40.5, max 40.7␊ [15:30:25:963] Supply voltage: min 24.0, current 24.0, max 24.1, under voltage events: 0, over voltage events: 0, power good: yes␊ [15:30:25:963] 12V rail voltage: min 12.2, current 12.2, max 12.3, under voltage events: 0␊ [15:30:25:963] Heap OK, handles allocated/used 99/0, heap memory allocated/used/recyclable 2048/36/36, gc cycles 0␊ [15:30:25:963] Events: 0 queued, 0 completed␊ [15:30:25:963] Driver 0: ok␊ [15:30:25:963] Driver 1: ok␊ [15:30:25:963] Driver 2: ok␊ [15:30:25:963] Driver 3: ok␊ [15:30:25:963] Driver 4: ok␊ [15:30:25:963] Driver 5: ok␊ [15:30:25:963] Date/time: 2024-06-08 15:30:22␊ [15:30:25:963] Slowest loop: 10.69ms; fastest: 0.07ms␊ [15:30:25:963] === Storage ===␊ [15:30:25:963] Free file entries: 20␊ [15:30:25:963] SD card 0 detected, interface speed: 25.0MBytes/sec␊ [15:30:25:963] SD card longest read time 2.4ms, write time 2.6ms, max retries 0␊ [15:30:25:963] === Move ===␊ [15:30:25:963] DMs created 125, segments created 3, maxWait 26859ms, bed compensation in use: none, height map offset 0.000, max steps late 0, min interval 0, bad calcs 0, ebfmin 0.00, ebfmax 0.00␊ [15:30:25:963] no step interrupt scheduled␊ [15:30:25:963] Moves shaped first try 0, on retry 0, too short 0, wrong shape 0, maybepossible 0␊ [15:30:25:963] === DDARing 0 ===␊ [15:30:25:963] Scheduled moves 14, completed 14, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 1], CDDA state -1␊ [15:30:25:963] === DDARing 1 ===␊ [15:30:25:963] Scheduled moves 0, completed 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1␊ [15:30:25:963] === Heat ===␊ [15:30:25:963] Bed heaters -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamber heaters -1 -1 -1 -1, ordering errs 0␊ [15:30:25:963] === GCodes ===␊ [15:30:25:963] Movement locks held by null, null␊ [15:30:25:963] HTTP is idle in state(s) 0␊ [15:30:25:963] Telnet is idle in state(s) 0␊ [15:30:25:963] File is idle in state(s) 0␊ [15:30:25:963] USB is ready with "M122" in state(s) 0␊ [15:30:25:963] Aux is idle in state(s) 0␊ [15:30:25:963] Trigger is idle in state(s) 0␊ [15:30:25:963] Queue is idle in state(s) 0␊ [15:30:25:963] LCD is idle in state(s) 0␊ [15:30:25:963] SBC is idle in state(s) 0␊ [15:30:25:963] Daemon is idle in state(s) 0␊ [15:30:25:963] Aux2 is idle in state(s) 0␊ [15:30:25:963] Autopause is idle in state(s) 0␊ [15:30:25:963] File2 is idle in state(s) 0␊ [15:30:25:963] Queue2 is idle in state(s) 0␊ [15:30:25:963] Q0 segments left 0, axes/extruders owned 0x0000001␊ [15:30:25:963] Code queue 0 is empty␊ [15:30:25:963] Q1 segments left 0, axes/extruders owned 0x0000000␊ [15:30:25:963] Code queue 1 is empty␊ [15:30:25:963] === CAN ===␊ [15:30:25:963] Messages queued 76087, received 0, lost 0, errs 71960786, boc 0␊ [15:30:25:963] Longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 50 (min 50), ts 76087/0/0␊ [15:30:25:963] Tx timeouts 0,0,76086,0,0,0 last cancelled message type 30 dest 127␊ [15:30:25:963] === Network ===␊ [15:30:25:963] Slowest loop: 30.19ms; fastest: 0.03ms␊ [15:30:25:963] Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)␊ [15:30:25:963] HTTP sessions: 1 of 8␊ [15:30:25:963] = Ethernet =␊ [15:30:25:963] Interface state: active␊ [15:30:25:963] Error counts: 0 0 0 1 0 0␊ [15:30:25:963] Socket states: 2 2 2 2 2 0 0 0␊ [15:30:25:963] === Multicast handler ===␊ [15:30:25:963] Responder is inactive, messages received 0, responses 0␊
-
@droftarts config.g file
; General G90 ; absolute coordinates M83 ; relative extruder moves M550 P"printer" ; set hostname ; Network M551 P"Raphaelbreton2008" ; set machine password M552 P0.0.0.0 S1 ; configure Ethernet adapter M586 P0 S1 ; configure HTTP ; Motor Idle Current Reduction M906 I30 ; set motor current idle factor M84 S30 ; set motor current idle timeout ; External Drivers M569 P0.0 S1 R0 T5:5:10:0 ; driver 0.0 goes forwards and requires an active-low enable signal (X axis) M569 P0.1 S1 R0 T5:5:10:0 ; driver 0.1 goes forwards and requires an active-low enable signal (extruder 0) M569 P0.2 S1 R0 T5:5:10:0 ; driver 0.2 goes forwards and requires an active-low enable signal (Y axis) M569 P0.3 S1 R0 T5:5:10:0 ; driver 0.3 goes forwards and requires an active-low enable signal (Z axis) ; Axes M584 X0.0 Y0.2 Z0.3 ; set axis mapping M350 X16 Y16 Z16 I0 ; configure microstepping without interpolation M92 X80 Y80 Z400 ; configure steps per mm M208 X0:1200 Y0:200 Z0:200 ; set minimum and maximum axis limits M566 X900 Y900 Z12 ; set maximum instantaneous speed changes (mm/min) M203 X6000 Y6000 Z180 ; set maximum speeds (mm/min) M201 X500 Y500 Z20 ; set accelerations (mm/s^2) ; Extruders M584 E0.1 ; set extruder mapping M350 E16 I0 ; configure microstepping without interpolation M92 E420 ; configure steps per mm M566 E120 ; set maximum instantaneous speed changes (mm/min) M203 E3600 ; set maximum speeds (mm/min) M201 E250 ; set accelerations (mm/s^2) ; Kinematics M669 K0 ; configure Cartesian kinematics ; Endstops M574 X1 P"io0.in" S1 ; configure X axis endstop M574 Y1 P"io1.in" S1 ; configure Y axis endstop M574 Z1 P"io2.in" S1 ; configure Z axis endstop
-
@droftarts said in motor not moving:
@zecreton Please post your config.g, send M122 in the console and post the response, and post a picture of how you have wired the external driver.
Ian
-
@zecreton As far as I can tell your wiring looks correct, and so does the config.g. How are you powering the 6XD? By USB? The power wires have no connection.
What commands are you sending? The stepper driver is connected to Driver 0 on the Duet, which you have mapped to the X axis. The X axis has a range of 0 to 1200mm. For the motor to move, it must be homed, or the position set by G92, and any move must be within the axis limits. Alternatively, send
M564 S0 H0
to allow movement of axes that have not been homed, and allow movement outside boundaries. Then try moving the X axis. Are there any messages in the console?How are SW5, SW6, SW7 and SW8 set on the driver?
Ian
-
@droftarts switch 5,6,7 and 8 are off
-
@zecreton i disconnected the power wires for the picture
-
@droftarts i am sending this : g92 [X400]
-
@zecreton said in motor not moving:
@droftarts i am sending this : g92 [X400]
That sets the axis position, but doesn't move the axis. Are you sending anything after that? eg
G1 X500 F1000
. Or move the X axis using the buttons in DWC.@droftarts switch 5,6,7 and 8 are off
I think that's correct.
Ian
-
@droftarts the brake seem to be always on, is that normal?
-
@droftarts still nothing works
-
@droftarts hello?
-
@zecreton Does your motor have a brake? Post a picture of the motor and model number. If the motor does have a brake, you'll need to wire the brake wires to the BRK/PEND outputs of the driver, and change SW8 to off. If there's no brake, the setting of this switch doesn't matter. If you mean that you can't turn it once it's switched on, that probably means it is enabled.
Try switching SW6 to 'on', to enable open loop mode. If there's a wiring problem for the encoder that is stopping the motor turning, this should ignore it.
How are the switches SW1 to SW4 set? Perhaps post a photo of the switches. They should be set for 3200 steps per revolution to match the config.g, ie SW1 to SW4 should be off, off, on, on.
Please list the exact commands you are sending before and while trying to move the axis.
Ian
-
-
@droftarts i am sending G1 X200
-
@zecreton that motor does not look like it has brake.
Have you changed SW1 to SW4 and SW6 as I suggested? What voltage is the power supply you have connected to the driver?
After power on, send the following:
G92 X100
This sets the axis position. In DWC, check that the axis position for X is 100.
G1 X600 F2000
This should move the motor 500mm to X600, and will take 15 seconds (500mm / 2000mm/m = 1/4 minute = 15 seconds). Check in DWC that it reports the axis position at the end of the move as X600.
If this doesn’t work, check for any error messages in the console.Please report what of the above works or doesn’t work, and the reported axis position after each step.
Does the red LED on the driver flash? If so, this signifies an error. See the driver manual to interpret the error code.
3.5 LED Status Lights
There are two LED lights. The GREEN one is the power indicator which should be always on in normal circumstance. The RED one is a alarm status indication light, which will be OFF while working normally but ON and flash some times in a 3-second period in the case of enabled alarm protections.Driver and motor product page and manual: https://www.omc-stepperonline.com/ts-series-12-0-nm-1699-68oz-in-1-axis-closed-loop-stepper-cnc-kit-nema-34-motor-driver-1-cl86t-s120-v41
Ian
-
@droftarts yes i did change the switches, the power supply has a voltage of 24v
-
@droftarts the reported axis position is correct, there is no error anywhere
-
@droftarts but the motor doesn't move at all
-
@zecreton that means that the 6XD is most likely sending the correct signal.
Please answer my other questions.
Ian
-
@droftarts the reported axis position after the first step is 100, and after the second, 600, the reported speed is 33.33mm/s and it takes about 15 seconds