Large Format Dowell to Duet conversion
-
I am trying to work out how to calculate the steps per mm if 2000 s/mm is giving me 52mm translation when I send 50. I can't seem to work out how to work it out embarrassingly
-
M92 X80.00 Y1280.00 Z1926.78 E420.00 ; set steps per mm
okay this seems to be near enough
If I divide 100,000 steps by 52mm I get
1926.78 s/mm ifWhen I use value z1926.00 I get the following on a 50mm command
If I divide 51.9 mm by 100,000 steps I get 1926.78
That translates toThey are both .1 of a mm out. Is that okay if I am printing big things. No not really it needs to be less.
So I go between those two z1926.39
-
@t3p3tony iwhen I hit home all the z axis goes the wrong way
In fact, when I hit any of the home buttons, all it does is send the z axis the wrong way
-
@charles-fraser for Z when you jog it using DWC by a few mm does it move in the expected direction?
For the steps/mm this is really not something you measure for XYZ it something to calculate.
So
lead = 5mm
motor microsteps/rev = 3200 (with 16 microstepping and 1.8 degree motors it would be 3200)
the unknown to me is the ratio between the pully teeth on the motor and the larger pully on the Z rods. how many teeth are on each?Once you know that we work out the steps/mm for Z.
For the homing files, the first command is raise Z by 100mm (you can read the comments in the homing files).
So looking at home X.
; homex.g ; called to home the X axis ; ; generated by RepRapFirmware Configuration Tool v3.3.3 on Fri Oct 01 2021 16:59:55 GMT+0100 (British Summer Time) G91 ; relative positioning G1 H2 Z100 F6000 ; lift Z relative to current position G1 H1 X-1205 F1800 ; move quickly to X axis endstop and stop there (first pass) G1 H2 X5 F6000 ; go back a few mm G1 H1 X-1205 F360 ; move slowly to X axis endstop once more (second pass) G1 H2 Z-100 F6000 ; lower Z again G90 ; absolute positioning
if you don't need to increase Z gap by 100 mm before homing then you can modify that line to a more appropriate amount. (but be sure to change the value on line 10 to match!)
Then the file moves X in a negative direction (which is correct assuming the end stop is at X minimum)
once its triggered it backs off and then tests again slower
then it decreases the Z gap (again this should match the amount in line 6).
Similar with the Home Y
Home all just puts it together into a fewer steps and then homes Z however as it stands that home all wont work correctly as its setup for a Z probe.
You mentioned you added a Z switch, where is it located (Z min or Z max?)
-
Thanks Tony, I think I worked out the steps for Z
The Z switch is triggered when the bed comes too close to the nozzle and pushes up against a switch. I’m not sure if that is min or Max?
-
ya so I swapped the z probe for a z switch for now but think we can reattach the 3d touch to the other extruder block and set that up now too if you are game? Is there a way to speed up the fast z movement please? It's now much slower than it was before. Now all the switches are open for all axis.
; Endstops M574 X1 S1 P"io1.in" ; configure active-high endstop for low end on X via pin io1.in M574 Y1 S1 P"io2.in" ; configure active-high endstop for low end on Y via pin io2.in M574 Z1 S1 P"io0.in"
-
@charles-fraser said in Large Format Dowell to Duet conversion:
Thanks Tony, I think I worked out the steps for Z
what did you come up with?
@charles-fraser said in Large Format Dowell to Duet conversion:
The Z switch is triggered when the bed comes too close to the nozzle and pushes up against a switch. I’m not sure if that is min or Max?
That is a t Z min (Z gap = 0)
@charles-fraser said in Large Format Dowell to Duet conversion:
reattach the 3d touch to the other extruder block
I believe that caused issues before, or did you get a new 3d touch?
@charles-fraser said in Large Format Dowell to Duet conversion:
Is there a way to speed up the fast z movement please?
The overall Z speed limit is set in config.g with the following line in mm/min
M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min)
so you are currently set to a max speed of 3mm/s or 180mm/min. For testing you can increase this to , e.g. 30mm/sM203 X6000.00 Y6000.00 Z1800.00 E1200.00 ; set maximum speeds (mm/min)
. this may be higher than the max speeds that the Z axis can achieve so don't just jog the bed/home the bed to test this.
The next step is to set the bed be "homed" at roughly the right height for testing (e.g. if its at ~Z0 then send G92 Z0 to tell the printer where it is).The send commands like this:
G1 Z20 F180
(to get the bed at least 20mm away from the nozzle)
G1 Z40 F180 G1 Z20 F180
Thats a base line moving only 20mm, at at the same slow speed.
Then you can increase the speed (and distance) while checking that all 4 motors are moving smoothly and not binding. Given the weight of the bed you will probably find the speed for raising will max out at a lower speed than for dropping it.
G1 Z60 F360 G1 Z20 F360 G1 Z60 F480 G1 Z20 F480
If you get all the way to F1800 and the bed is still moving smoothly then you can go and adjust the M203 value to even higher. Given the size of the bed. its also worth considering the weight of the print on the bed. Now given that you would generally be moving the bed down as the mass of the print increased this may not be a big issue, but its worth testing whatever speed you arrive at that is working well by trying moving the bed with a similar weight on to a large print you are likely to do.
-
@t3p3tony said in Large Format Dowell to Duet conversion:
@charles-fraser said in Large Format Dowell to Duet conversion:
Thanks Tony, I think I worked out the steps for Z
what did you come up with?
I used 128 microsteps and 160 x 4 steps per mm I think. I’m now away for meetings for the next few days so cant share the code.
@charles-fraser said in Large Format Dowell to Duet conversion:
The Z switch is triggered when the bed comes too close to the nozzle and pushes up against a switch. I’m not sure if that is min or Max?
That is a t Z min (Z gap = 0)
Thanks!
@charles-fraser said in Large Format Dowell to Duet conversion:
reattach the 3d touch to the other extruder block
I believe that caused issues before, or did you get a new 3d touch?
I can’t afford the £40 for a new BL touch for now so started re-wiring the 3D touch to the second extruder block. All my income is outgoings as soon as it comes in until about the 10th so I have to make do for now.
@charles-fraser said in Large Format Dowell to Duet conversion:
Is there a way to speed up the fast z movement please?
The overall Z speed limit is set in config.g with the following line in mm/min
M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min)
so you are currently set to a max speed of 3mm/s or 180mm/min. For testing you can increase this to , e.g. 30mm/sM203 X6000.00 Y6000.00 Z1800.00 E1200.00 ; set maximum speeds (mm/min)
. this may be higher than the max speeds that the Z axis can achieve so don't just jog the bed/home the bed to test this.So I doubled the Z speed and it looks like it’s at the speed that it was at with the last board with the Chinese Mobo.
The next step is to set the bed be "homed" at roughly the right height for testing (e.g. if its at ~Z0 then send G92 Z0 to tell the printer where it is).
Will this change the Z home position forever? So whenever I press home it will home to Znnn ?
The send commands like this:
G1 Z20 F180
(to get the bed at least 20mm away from the nozzle)
G1 Z40 F180 G1 Z20 F180
Thats a base line moving only 20mm, at at the same slow speed.
Then you can increase the speed (and distance) while checking that all 4 motors are moving smoothly and not binding. Given the weight of the bed you will probably find the speed for raising will max out at a lower speed than for dropping it.
G1 Z60 F360 G1 Z20 F360 G1 Z60 F480 G1 Z20 F480
If you get all the way to F1800 and the bed is still moving smoothly then you can go and adjust the M203 value to even higher. Given the size of the bed. its also worth considering the weight of the print on the bed. Now given that you would generally be moving the bed down as the mass of the print increased this may not be a big issue, but its worth testing whatever speed you arrive at that is working well by trying moving the bed with a similar weight on to a large print you are likely to do.
Very thorough answer thank you! I think it’s fine at 360. Thank you so much!
-
@charles-fraser said in Large Format Dowell to Duet conversion:
Will this change the Z home position forever? So whenever I press home it will home to Znnn ?
nope - it was just to run the following test.
-
@charles-fraser said in Large Format Dowell to Duet conversion:
NB I still cant find a 3x15mm pt1000 thermistor anywhere!
-
I’ve got that PT1000 now and will spend the next few days getting this all calibrated again.
I will fit the PT1000 into the heating block but the block is now separated from the screw and needs to be heated up whilst on the screw in order for the hardened plastic to become soft enough to allow it to be pushed all the way up against and bolted to the mounting block.
I can do that by just setting ‘active’ to 190C right? After that what’s the command for the PID autotune for the nozzle again please?
The homing seems to be working on the x and y and I set a z min endstop up in the same way as the x and y as a fallback option to the 3D touch.
I’ll rewire the 3D touch to the second extruder mounting block that seems to be free of shorts. I’ll follow the earlier instructions on how to do that. Is that possible to have a 3D touch and second z endstop? I replaced the probe code with the z min endstop switch code so wonder if you could point me in the right direction for the 3D touch code please?
Many thanks
Charles -
@charles-fraser said in Large Format Dowell to Duet conversion:
can do that by just setting ‘active’ to 190C right?
Yes once you are happy the thermistor is reading properly and the heater wiring is not shocking anything!
@charles-fraser said in Large Format Dowell to Duet conversion:
After that what’s the command for the PID autotune for the nozzle again please?
See the description here:
https://duet3d.dozuki.com/Wiki/M303
At its simplest its:
M303 T0 S200@charles-fraser said in Large Format Dowell to Duet conversion:
Is that possible to have a 3D touch and second z endstop?
Yes one as a Z probe and one as an endstop. I would have the endstop at Z max because it will allow you to home Z onto the endstop even with a print on the bed (e.g. a power fail part way through a print).
@charles-fraser said in Large Format Dowell to Duet conversion:
I replaced the probe code with the z min endstop switch code so wonder if you could point me in the right direction for the 3D touch code please?
Its here:
https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_Software_setup_RepRapFirmware_Num_3You will need to modify it based on which inputs you put the probe. The probe should be on the same board as your Z motors.
-
Thank you Tony, I stupidly seem to have forgotten the thermistor. If I use the thermistor that came with the extruder it's a NTC 100k. Is that easily copatible if I just change the code please? Many thanks
-
@charles-fraser oops sorry i meant the PT1000 that you have bought to replace the thermistor! I thought we had determined that the extruder thermistor was faulty way earlier in this thread?
-
No we didnt establish that thermistor was faulty,I just didn't know what kind it was. It's type 13 in marlin, that's the type listed above. Can we edit the config.g file to use this one please?
-
@charles-fraser said in Large Format Dowell to Duet conversion:
type 13 in marlin
13 : 100kΩ Hisens up to 300°C - for "Simple ONE" & "All In ONE" hotend - beta 3950, 1%
from:
https://github.com/MarlinFirmware/Marlin/blob/2.0.x/Marlin/Configuration.hSo
M308 S1 P"1.temp1" Y"thermistor" T100000 B3950
this is plugging it into port temp1 on the 3HC (which you currently have setup for the PT1000 on the hotend.
-
Thanks, regarding PID autotune: when the extruder is extruding pellets at full flow rate through a 3mm nozzle the heating characteristics are very different then when just sat idle. Is there a way to autotune while the extruder is extruding please?
Regarding endstops: is this okay? The z switch is so that if the bed comes so close to the nozzle and starts to push against it the switch is closed and the z motion should stop
; Endstops M574 X1 S1 P"io1.in" ; configure active-high endstop for low end on X via pin io1.in M574 Y1 S1 P"io2.in" ; configure active-high endstop for low end on Y via pin io2.in M574 Z1 S1 P"io0.in"
For the z probe I have.
; Z-Probe M558 P9 C"^1.io1.in" H100 F120 T6000 ; set Z probe type to switch and the dive height + speeds G31 P500 X0 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height M556 S50 X0 Y0 Z0 ; set orthogonal axis compensation parameters M557 X15:215 Y15:195 S20 ; define mesh grid
if I want to change it to io3 on the 6HC should I change it to
M558 P9 C"^0.io3.in" H100 F120 T6000
-
Great that is working well and PID tuning now.
-
Just for the record
Edit the M307 H1 command in config.g to match this. Omit the V parameter if the heater is not powered from VIN. 03/11/2021, 13:42:50 Auto tuning heater 1 completed after 3 idle and 30 tuning cycles in 1842 seconds. This heater needs the following M307 command: M307 H1 B0 R1.465 C296.7:296.7 D8.30 S1.00 V24.0 03/11/2021, 13:42:49 Warning: Turning on the print cooling fan did not increase hot end cooling. Check that the correct fan has been configured. 03/11/2021, 13:38:35 Auto tune starting phase 5, tuning with fan on 03/11/2021, 13:38:34 Warning: heater behaviour was not consistent during tuning 03/11/2021, 13:18:05 Auto tune starting phase 4, tuning with fan off 03/11/2021, 13:14:58 Auto tune starting phase 3, heating system settling 03/11/2021, 13:12:11 Auto tune starting phase 2, heating up 03/11/2021, 13:12:07 M303 T0 S200 Auto tuning heater 1 using target temperature 200.0°C and PWM 1.00 - do not leave printer unattended
I have now wired the two fans either side of the pellet loading chamber in parallelp to out8 on the 6HC. I can't here it idling however. Maybe I should swap polarity.
Is it possible to wire the 3D touch to the 3HC as the wires can't reach the 6HC where it is?
For reference:
Configuration file for Duet 3 (firmware version 3.3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.3.3 on Fri Oct 01 2021 16:59:54 GMT+0100 (British Summer Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves ; Wait a moment for the CAN expansion boards to start G4 S2 ; Drives M569 P0.0 S1 ; physical drive 0.0 goes forwards M569 P0.1 S1 ; physical drive 0.1 goes forwards M569 P0.2 S0 ; physical drive 0.2 goes forwards M569 P0.3 S0 ; physical drive 0.3 goes forwards M569 P0.4 S0 ; physical drive 0.4 goes forwards M569 P0.5 S0 ; physical drive 0.5 goes forwards M569 P1.0 S1 ; physical drive 1.0 goes forwards M584 X0.0 Y0.1 Z0.2:0.4:0.5:0.3 E1.0 M350 X16 Y128 Z16 E16 I1 ; configure microstepping with interpolation M92 X80.00 Y1280.00 Z1926.00 E420.00 ; set steps per mm M566 X900.00 Y900.00 Z60.00 E120.00 ; set maximum instantaneous speed changes (mm/min) M203 X6000.00 Y6000.00 Z500.00 E1200.00 ; set maximum speeds (mm/min) M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2) M906 X2800 Y2800 Z1200 E1200 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 X1200 Y2000 Z1600 S0 ; set axis maxima ; Endstops M574 X1 S1 P"io1.in" ; configure active-high endstop for low end on X via pin io1.in M574 Y1 S1 P"io2.in" ; configure active-high endstop for low end on Y via pin io2.in M574 Z1 S1 P"io0.in" ; Z-Probe M558 P9 C"^1.io1.in" H100 F120 T6000 ; set Z probe type to switch and the dive height + speeds G31 P500 X0 Y0 Z2.5 ; set Z probe trigger value, offset and trigger height M556 S50 X0 Y0 Z0 ; set orthogonal axis compensation parameters M557 X15:215 Y15:195 S20 ; define mesh grid ; Heaters M308 S0 P"1.temp0" Y"PT1000" M950 H0 C"1.out0" T0 M307 H0 B1 R0.138 C790.6 D13.87 S1.00 V24.0 ; enable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S80 ; set temperature limit for heater 0 to 80C M308 S1 P"1.temp1" Y"thermistor" T100000 B3950 ; configure sensor 1 as thermistor on pin temp0 M950 H1 C"1.out1" T1 ; create nozzle heater output on out1 and map it to sensor 1 M307 H1 B0 R1.465 C296.7:296.7 D8.30 S1.00 V24.0 M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M143 H1 S300 ; set temperature limit for heater 1 to 300C ; Fans M950 F0 C"out8" Q500 ; create fan 0 on pin out8 and set its frequency M106 P0 S0 H T45 ; set fan 0 value. Thermostatic control is turned on M950 F1 C"out9" Q500 ; create fan 1 on pin out9 and set its frequency M106 P1 S1 H-1 ; set fan 1 value. Thermostatic control is turned off ; Tools M563 P0 S"lily" D0 H1 F0:1 ; define tool 0 G10 P0 X100 Y100 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C ; Custom settings are not defined
-
@t3p3tony the fans are not working. Not sure why I’ve tried reversing the poles