@dc42 Thank for replying.
But I was wondering what parameters I have to put in the motor settings to have a perfect rotation of 360°. Because the 33 is a value that I approximated using my eyes but it's not a perfect rotation. Or is there a command to control a stepper motor only in degrees of rotation and not in a linear axis ?
Otherwise, thank you very much for your response!
Posts made by JeanC
-
RE: Control of stepper motor
-
Control of stepper motor
Hello, I use a stepper to rotate a turntable and I would like to control his rotation with degrees. Currently, I have only found a value in X to enter to make a 360° rotation (G1 X33 F1000). But this is not at all optimal, do you know a command or a way to perfectly control the rotation of the stepper motor shaft in degrees?
;config.g ;drives M569 P0 S1 R0 ; set direction of movement and polarity M584 X0 ; set drive mapping M350 X16 ; set microstepping mode for x axis M92 X80 ; set steps per mm M566 X900 ; set maximum instantaneous speed changes (mm/min) M203 X1000 ; set maximum speeds (mm/min) M201 X500 ; set accelerations (mm/s^2) M906 X800 I10 ; set motor currents (mA) and motor idle factor in per cent M84 S5 ; set idle timeout M564 H0 ; allow movement of axes that have not been homed M400 M18 ; disable the motor
;macro G91 ; set to relative positioning M564 H0 ; allow movement of axes that have not been homed ;motor settings M569 P0 S1 R0 ; set direction of movement and polarity M350 X16 ; set microstepping mode for x axis M92 X200 ; set steps per mm for x axis G1 X33 F1000 ; move on x axis M400 ; wait for the movements to end M18 ; disable the motor G90 ; set to absolute positioning
I'm using a Duet 3 6XD 3.4.6 with a NEMA 17 0.5Nm 1.7A with a step of 1.8° (M1173041). I also have to use an external driver for the motor (TB6600).
-
RE: Temperatures not displaying on PanelDue
Hello @Phaedrux, I'm not trying to control a printer, I make a machine with a stepper motor, 3 thermocouples and 3 ssr that control heating lamps.
Since the last time, I changed my config with the config tool in order to make it more complete but it does the same thing.; Configuration file for Duet 3 MB 6XD (firmware version 3.3) ; executed by the firmware on start-up ;general preferences G90 ; send absolute coordinates M550 P"proj" ; set name ;network and communications M552 S1 P0.0.0.0 ; enable DHCP network M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet M575 P1 B57600 S1 ; set communication parameters with the PanelDue : 57600 bauds ;thermocouples M308 S1 P"spi.cs1" Y"thermocouple-max31856" K"K" A"TC1"; create temp sensor 1 M308 S2 P"spi.cs2" Y"thermocouple-max31856" K"K" A"TC2" M308 S3 P"spi.cs3" Y"thermocouple-max31856" K"K" A"TC3" ;ssr M950 P0 C"out0" ; create output for ssr 1 M950 P1 C"out1" M950 P2 C"out2" ;drives M569 P0 S1 ; physical drive 0.0 goes forwards M584 X0 ; set drive mapping M350 X16 ; set microstepping mode for x axis M92 X80 ; set steps per mm M566 X900 ; set maximum instantaneous speed changes (mm/min) M203 X1000 ; set maximum speeds (mm/min) M201 X500 ; set accelerations (mm/s^2) M906 X800 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S5 ; set idle timeout M564 H0 ; allow movement of axes that have not been homed M501
And as long as I'm in conversation, do you know how to control the motor to make it turn a certain number of degrees (it controls a turntable).
Thank you for replying
-
RE: Temperatures not displaying on PanelDue
@Phaedrux Here is my config file :
;config.g
M552 S1 P0.0.0.0 ;enable DHCP network
M575 P1 B57600 S1 ;set communication parameters with the PanelDue : 57600 bauds;configure termocouples and ssr pins
M308 S1 P"spi.cs1"Y"thermocouple-max31856" K"K" ;create temp sensor 1
M308 S2 P"spi.cs2"Y"thermocouple-max31856" K"K"
M308 S3 P"spi.cs3"Y"thermocouple-max31856" K"K"
;M308 S4 P"spi.cs4"Y"thermocouple-max31856" K"K"
M950 P0 C"out0" ;create output for ssr 1
M950 P1 C"out1"
M950 P2 C"out2"M564 H0 ;allow movement of axes that have not been homed
-
Temperatures not displaying on PanelDue
Hello, I'm working on a Duet 3 XD with PanelDue 7i 3.5.0
On DWC, I can display temperatures on the tools board but how can I show them on the PanelDue. Is-there commands to add ?
In the config file, I define the temp sensors like this :
M308 S1 P"spi.cs1"Y"thermocouple-max31856" K"K"
Can someone help me ? -
Controlling SSR
I working on a project with a Duet 3 6XD and I have to control, using macros, a SSR. I still can't manage to control pins, I tried with heaters pins, fans pins and IO.
Per example, I create a pin heater : M950 H1 P1 C"out0" T1
Then I try to power the pin with M42 command but nothing happens, there is no voltage difference between the pins. Can someone guide me ? -
RE: Issue with firmware
@jay_s_uk Thank you really ! The board works
-
Issue with firmware
I just got a Duet 3 6XD and after a few tests, the status led turned off, the PanelDue is white, and the ethernet leds are off. By looking on the documentation, this means that the firmware is erased. But when I go looking on the board SD card, the files with the firmware etc are still there. What does this means so ?
Thank you in advance