3DP1000 Duet Ethernet Conversion
-
Z HOME
; homez.g
; called to home the Z axis
;
; generated by RepRapFirmware Configuration Tool v2.0.4 on Tue Sep 17 2019 17:44:51 GMT+1000 (Australian Eastern Standard Time)
G91 ; relative positioning
G1 Z0 F6000 S2 ; lift Z relative to current position
G1 S1 Z-505 F3600 ; move Z down until the endstop is triggered
G92 Z0 ; set Z position to axis minimum (you may want to adjust this); Uncomment the following lines to lift Z after probing
;G91 ; relative positioning
;G1 S2 Z0 F100 ; lift Z relative to current position
;G90 ; absolute positioning -
CONFIG FILE
; Configuration file for Duet WiFi (firmware version 2.03)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v2.0.4 on Tue Sep 17 2019 17:44:50 GMT+1000 (Australian Eastern Standard Time); General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"3DP Duet" ; set printer name; Network
M552 P192.168.1.14 S1 ; enable network and set IP address
M553 P255.255.255.0 ; set netmask
M554 P192.168.1.1 ; set gateway
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet; Drives
M569 P5 S1 ; physical drive 5 goes forwards
M569 P6 S0 ; physical drive 6 goes backwards
M569 P7 S1 ; physical drive 7 goes forwards
M569 P3 S1 ; physical drive 3 goes forwards
M569 P4 S1 ; physical drive 4 goes forwards
M584 X5 Y6 Z7 E3:4 ; set drive mapping
M350 X16 Y16 Z16 E16:16 I1 ; configure microstepping with interpolation
M92 X128.00 Y128.00 Z1600.00 E420.00:420.00 ; set steps per mm
M566 X900.00 Y900.00 Z12.00 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z60.00 E1200.00:1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z5.00 E250.00:250.00 ; set accelerations (mm/s^2)
M906 X800 Y800 Z800 E800:800 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout; Axis Limits
M208 X0 Y0 Z0 S1 ; set axis minima
M208 X1000 Y1000 Z500 S0 ; set axis maxima; Endstops
M574 X1 Y1 Z1 S0 ; set active low and disabled endstops; Z-Probe
M558 P0 H0 F120 T6000 ; disable Z probe but set dive height, probe speed and travel speed
M557 X100:800 Y100:800 S200 ; define mesh grid; Heaters
M305 P0 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 0
M143 H0 S140 ; set temperature limit for heater 0 to 140C
M305 P1 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 1
M143 H1 S280 ; set temperature limit for heater 1 to 280C
M305 P2 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 2
M143 H2 S280 ; set temperature limit for heater 2 to 280C; Fans
M106 P0 S1 I0 F500 H1 T45 ; set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P1 S1 I0 F500 H2 T45 ; set fan 1 value, PWM signal inversion and frequency. 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
M563 P1 D1 H2 F0 ; define tool 1
G10 P1 X0 Y0 Z0 ; set tool 1 axis offsets
G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C; Custom settings are not defined
-
HOME X
This Axis is functioning correctly, so I thought I would also post this as well just to provide further information.; homex.g
; called to home the X axis
;
; generated by RepRapFirmware Configuration Tool v2.0.4 on Tue Sep 17 2019 17:44:50 GMT+1000 (Australian Eastern Standard Time)
G91 ; relative positioning
G1 Z0 F6000 S2 ; lift Z relative to current position
G1 S1 X-1005 F3600 ; move quickly to X axis endstop and stop there (first pass)
G1 X5 F6000 ; go back a few mm
G1 S1 X-1005 F300 ; move slowly to X axis endstop once more (second pass)
G1 Z0 F6000 S2 ; lower Z again
G90 ; absolute positioning -
Does Z axis travel correctly normally?
Note that the motors probably have a minimum pulse width of 3us, so you may have to guarantee this in order for the motors to run properly at higher step rates.
Something like:
M569 P5 S1 T3 M569 P6 S1 T3 M569 P6 S1 T3
Depending on what machine you have the motors will either be these: https://www.applied-motion.com/sites/default/files/hardware-manuals/STM23R Hardware Manual 920-0056D.pdf
Just look at the connectors.
-
@nhof
Thanks for the advice. I will have a look and test to see how that goes. -
A Bit of an update.
After getting my mate to spend way to much time on it troubleshooting the problematic Z axis issue, he decided to make the nema 23s just motors instead of integrated steppers. Not long after I had a fully functioning Z axis. The X and Y axes are still the integrated stepper and work well.
Printer is calibrated on the XYZ axes. Tested the extruder side as well all functioning. Only thing really left to do is put the bondtech on it and the usual bed calibrations etc. Then we are off and printing.
Thanks for all the assistance in getting this up and running.
Brad
-
Some good news but also some bad news.
Everything is working so to speak. Ran the first print, and I am getting layer shift on the X and Y axis on every layer. Different prints different direction.
I am using Ideamaker as the slicer, I do not think this is the issue, but it is information.The X and Y axis are still controlled by the integrated steppers.
As the print continues it gets progressively worse.See below for the config file.
; Configuration file for Duet WiFi (firmware version 2.03)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool v2.0.4 on Tue Sep 24 2019 14:17:15 GMT+1000 (Australian Eastern Standard Time); General preferences
G90 ; send absolute coordinates...
M83 ; ...but relative extruder moves
M550 P"Unicorns are not Fucking Real" ; set printer name; Network
M552 P192.168.1.14 S1 ; enable network and set IP address
M553 P255.255.255.0 ; set netmask
M554 P192.168.1.1 ; set gateway
M586 P0 S1 ; enable HTTP
M586 P1 S0 ; disable FTP
M586 P2 S0 ; disable Telnet; Drives
M569 P5 S1 ; physical drive 5 goes forwards
M569 P6 S0 ; physical drive 6 goes backwards
M569 P2 S1 ; physical drive 2 goes forwards
M569 P3 S1 ; physical drive 3 goes forwards
M569 P4 S1 ; physical drive 4 goes forwards
M584 X5 Y6 Z2 E3:4 ; set drive mapping
M350 X16 Y16 Z16 E16:16 I1 ; configure microstepping with interpolation
M92 X128.25 Y128.25 Z1600.00 E425.00:425.00 ; set steps per mm
M566 X900.00 Y900.00 Z12.00 E120.00:120.00 ; set maximum instantaneous speed changes (mm/min)
M203 X6000.00 Y6000.00 Z300.00 E1200.00:1200.00 ; set maximum speeds (mm/min)
M201 X500.00 Y500.00 Z5.00 E250.00:250.00 ; set accelerations (mm/s^2)
M906 X1000 Y1000 Z1600 E800:800 I30 ; set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout; Axis Limits
M208 X0 Y0 Z0 S1 ; set axis minima
M208 X1000 Y1000 Z500 S0 ; set axis maxima; Endstops
M574 X1 Y1 Z1 S0 ; set active low and disabled endstops; Z-Probe
M558 P0 H2 F120 T6000 ; disable Z probe but set dive height, probe speed and travel speed
M557 X100:800 Y100:800 S200 ; define mesh grid; Heaters
M140 H-1 ; disable heated bed
M305 P1 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 1
M143 H1 S280 ; set temperature limit for heater 1 to 280C
M305 P2 T100000 B4138 R4700 ; set thermistor + ADC parameters for heater 2
M143 H2 S280 ; set temperature limit for heater 2 to 280C; Fans
M106 P0 S1 I0 F500 H1 T45 ; set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P1 S1 I0 F500 H2 T45 ; set fan 1 value, PWM signal inversion and frequency. 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
M563 P1 D1 H2 F0 ; define tool 1
G10 P1 X0 Y0 Z0 ; set tool 1 axis offsets
G10 P1 R0 S0 ; set initial tool 1 active and standby temperatures to 0C; Custom settings are not defined
-
@Cherno-Alpha said in 3DP1000 Duet Ethernet Conversion:
M906 X1000 Y1000 Z1600 E800:800 I30 ; set motor currents (mA) and motor idle factor in per cent
You should set your motor currents to be around 85% of the rated current for the motor.
If it's already in that range I would ask if the printer is over extruding causing the nozzle to drag excessively?
If that's not the case I would ask if the X and Y mechanism slides freely by hand with no linkage to the motors? Free of binding, rough travel, etc?
-
Hi im the silly cat playing with this meany,
so the current for the x and y axis is determined by the dip switches on the driver on the back of the steppers, (which i will check)
The layer shift is every layer and can be either the x or y or both and normally one direction or the other., never a zig zag effect .. always in one direction. So a wall would come out at like 30deg from the bed, if it could print in air.
The lead screws are a helical type with about 25mm per revolution (both axises) Z is a std 2mm lead screw, as by the config file the steps are only 128.25 i think this is due to the large pitch of 25mm.
The layer shift is approx 2mm each shift this seems consistant each layer.
So every layer it would seem it loses steps or gains steps.
This is where it gets confusing, as if it were consistant in a direction it would make more sense.
The X and Y are driven from the expansion board using step+ dir+ and ground.
We are getting the correct movement when manually joging the gantry around ie: 500mm = 500mm
I have not changed any dip switches on the stepper/drivers from when it was driven from the ramps1.4 board running marlin.
The other thing im not 100% on was the micro stepping being now 32bit and the duets config lets you choose the micro step, could it be a conflict between the config and the drivers on the stepper motors, being micro stepped differently. I know micro stepping has some dips switches settings on the drivers on the steppers.One thing i have noticed, these steppers X and Y are (by the spec sheet) seem to be 5amp capable, they are being powered by a 48volt psu. Where the Duet2 is being powered by a 24volt psu, heat bed is a 240v unit ( it is 1000x1000)
As a last resort i can remove the inbuilt driver from the steppers and just use the Duet drivers but im not sure the Duet would drive 3 additional steppers at 2.4 amps each with that 25mm pitch lead screw.Anyway any help ideas are greatfully accepted.
Troy
-
@Antipasta @Cherno-Alpha This is almost certainly a step or dir timing issue.
Basically what is happening (most likely) is the dir signal from the board is flipping, but the next few step signals don't get applied in the correct direction, so over time it results in a gradual shift.
The way to fix it is the M569 command as my post above. Use the T parameter to guarantee dir setup and hold timings. From the data sheet it looks like the step pulse width should be 0.25us which is ok, but the dir timing signal is probably off (spec sheet doesn't provide these values).
So do something like this for all the M569 commands connected to external drivers
M569 Pn Sn T1:1:5:5 ; 1us pulse width, 1us interval, 5us dir setup, 5 us dir hold
This should make sure that when the DIR line changes, the steps are counted in the proper direction. If it doesn't work at first, increase from 5 to 10 or 20 or something until it fixed the issue.
-
I know this is an old topic, but I just wanted to reply in regards to how 3DP sets these machines up using a Duet board from the factory in case anyone needs the info in the future.
3DP uses the Duet Expansion Breakout Board to command the X, Y and Z axes while power to the servo motors is provided by an external source. For the TSM23P servo motors they use a 2us minimum pulse width (M569 Pnnn T2), but they do not specify a T parameter in the stock firmware. They also specify using x16 microstepping with interpolation for all drives (M350 X16 Y16 Z16 E16:16 I1) although I'm not sure what tuning the servo motors might need to accept that as we purchased ours from the factory with a Duet board.
I'll also add that if you use the firmware available on their website (which is v1.19.2) there are a lot of holes in the stock configuration where they just didn't bother to set things up correctly so make sure you double check your settings.
-
Anyone use 3p1000 servo with Taurino Power/RAMPS?
-
@jzagaja Yep I am familiar with those machines although it's been a while since I have touched any of them. What's up? May want to start a new topic as this one is p old.
-
@nhof Continued here: https://forum.duet3d.com/topic/22190/3dp1000-duet-conversion