Complete sample config file for using Duex2 with 2 Z motors
-
Make sure that your M584 command is earlier in config.g than your M906 command.
-
Ok:
I have rewired and reset my DuetWifi board without the Duex2, but still under the 24V power supply.
My axis motors do not operate via the Web interface.
All new G Code files were created and put on the SD card with the configuration utility.
For some reason, Wifi is dropping and then not connecting.
If I go into the Machine Control Panel of Simplify 3D, I can move each axis and home each axis with the Jog Controls via USB.
Config below
; Configuration file for Duet WiFi (firmware version 1.20 or newer)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool on Thu Apr 12 2018 10:19:25 GMT-0400 (Eastern Daylight Time); General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves; Network
M550 PCustom Cartesian ; Set machine name
M552 S1 ; Enable network
M587 S"BELL137" P"xxxxxxxxxxxxx" ; Configure access point. You can delete this line once connected
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet; Drives
M569 P0 S1 ; Drive 0 goes forwards
M569 P1 S1 ; Drive 1 goes forwards
M569 P2 S0 ; Drive 2 goes backwards
M569 P3 S0 ; Drive 3 goes backwards
M569 P4 S0 ; Drive 4 goes backwards
M350 X128 Y128 Z128 E16:16 I0 ; Configure microstepping without interpolation
M92 X750 Y400 Z364.446 E329.37:329.39 ; Set steps per mm
M566 X54000 Y54000 Z18000 E7200:7200 ; Set maximum instantaneous speed changes (mm/min)
M203 X60000 Y60000 Z16800 E72000:72000 ; Set maximum speeds (mm/min)
M201 X500 Y250 Z250 E250:250 ; Set accelerations (mm/s^2)
M906 X855 Y855 Z855 E855:855 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 X250 Y250 Z220 S0 ; Set axis maxima; Endstops
M574 X0 Y0 Z0 S1 ; Set active high endstops; Z-Probe
M558 P0 H5 F120 T6000 ; Set Z probe type to switch and the dive height + speeds
G31 P500 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
M557 X25:175 Y25:175 S20 ; Define mesh grid; Heaters
M305 P0 T100000 B3988 C0 R4700 ; Set thermistor + ADC parameters for heater 0
M143 H0 S120 ; Set temperature limit for heater 0 to 120C
M305 P1 T100000 B4725 C0 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S280 ; Set temperature limit for heater 1 to 280C; Fans
M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P1 S1 I0 F500 H0 T50 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P2 S1 I0 F500 H T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on; Tools
M563 P0 D0 H1 ; 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 H ; 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; Automatic saving after power loss is not enabled
; Custom settings are not configured
; Miscellaneous
T0 ; Select first tool
M501I'm still looking into possible reasons.
-
Ignore for now. I will heat up the hot end and retest the movement.
-
I suggest you also use M122 to check that you have compatible versions of main and WiFi firmware, preferably both 1.21.
-
@dc42
Hi and thanks for your input on checking the firmware versions. I had updated the Firmware version to 1.21, but not the Wifi Server and Web Interface.All three are now at version 1.21
I now have a working machine in that with only the DuetWifi connected, I can home all of my axes. I can't really do Z because it physically has two motors and I only connected 1 on the board just to make sure it would work. It does, and the directions are correct.
Today I will add the M584 code if I can understand the dozuki wiki. Not a board fault, or missing information, just me and my lack of the full knowledge of gcodes and their interaction / order.
thanks
Tim -
@timvukman
Hi
I have added the M584 as I understand it.; Drives
M569 P0 S1 ; Drive 0 (X) goes forwards
M569 P1 S1 ; Drive 1 (Y) goes forwards
; M569 P2 S0 ; Drive 2 goes backwards original (Z) port on DuetWifi
M569 P3 S0 ; Drive 3 (E0)goes backwards
M569 P4 S0 ; Drive 4 (E1)goes backwards
M584 X0 Y1 Z5:6 E3:4 ; Z left is on Port 5 (Duex2 E2) and Z right is on Port 6 (Duex2 E3)
M350 X128 Y128 Z128 E16:16 I0 ; Configure microstepping without interpolation
M92 X750 Y400 Z364.446 E329.37:329.39 ; Set steps per mm
M566 X54000 Y54000 Z18000 E7200:7200 ; Set maximum instantaneous speed changes (mm/min)
M203 X60000 Y60000 Z16800 E72000:72000 ; Set maximum speeds (mm/min)
M201 X500 Y250 Z250 E250:250 ; Set accelerations (mm/s^2)
M906 X855 Y855 Z855 E855:855 I30 ; Set motor currents (mA) and motor idle factor in per cent
M84 S30 ; Set idle timeout
The comments will describe what I am trying to do. I would appreciate verification.
The example for the M671 is based on three leadscrews and I only have two.What I have measured is what the locations would be if the bed were large enough to cover the whole area. I will be getting a larger bed at some point, so I would like to confirm my understanding so that I will be comfortable making changes later.
M671 X-165:200 Y200:X330 is where the leadscrews would be if my bed was one large plane moving up and down on Z
Please confirm my M584 / M671 if there is enough information to do so.
Thanks
Tim -
Hi:
I think I'm ok now.
X, Y and Z home successfully. Both Z motors appear to be in sync.
G32 returned an error which I saw flash by, but did not catch.
It appears as though all of my steps / mm settings on my drive motors are way off.
My question is if this is because I am now on 24V instead of 12V. Ie, is this expected?
For others who may follow, here is my config.g file
; Configuration file for Duet WiFi (firmware version 1.20 or newer)
; executed by the firmware on start-up
;
; generated by RepRapFirmware Configuration Tool on Thu Apr 12 2018 10:19:25 GMT-0400 (Eastern Daylight Time); General preferences
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves; Network
M550 PCustom Cartesian ; Set machine name
M552 S1 ; Enable network
M587 S"BELL137" P"DAAE9D3D996E" ; Configure access point. You can delete this line once connected
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable Telnet; Drives
M569 P0 S1 ; Drive 0 (X) goes forwards
M569 P1 S1 ; Drive 1 (Y) goes forwards
; M569 P2 S0 ; Drive 2 goes backwards original (Z) port on DuetWifi
M569 P3 S0 ; Drive 3 (E0)goes backwards
M569 P4 S0 ; Drive 4 (E1)goes backwards
M584 X0 Y1 Z5:6 E3:4 ; Z left is on Port 5 (Duex2 E2) and Z right is on Port 6 (Duex2 E3)
M671 X-165:200 Y200:X330
M350 X128 Y128 Z128 E16:16 I0 ; Configure microstepping without interpolation
M92 X750 Y400 Z364.446 E329.37:329.39 ; Set steps per mm
M566 X54000 Y54000 Z18000 E7200:7200 ; Set maximum instantaneous speed changes (mm/min)
M203 X60000 Y60000 Z16800 E72000:72000 ; Set maximum speeds (mm/min)
M201 X500 Y250 Z250 E250:250 ; Set accelerations (mm/s^2)
M906 X855 Y855 Z855 E855:855 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 X250 Y250 Z220 S0 ; Set axis maxima; Endstops
M574 X0 Y0 Z0 S1 ; Set active low endstops; Z-Probe
M558 P0 H5 F120 T6000 ; Set Z probe type to switch and the dive height + speeds
G31 P500 X0 Y0 Z0 ; Set Z probe trigger value, offset and trigger height
M557 X25:175 Y25:175 S20 ; Define mesh grid; Heaters
M305 P0 T100000 B3988 C0 R4700 ; Set thermistor + ADC parameters for heater 0
M143 H0 S120 ; Set temperature limit for heater 0 to 120C
M305 P1 T100000 B4725 C0 R4700 ; Set thermistor + ADC parameters for heater 1
M143 H1 S280 ; Set temperature limit for heater 1 to 280C; Fans
M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
M106 P1 S1 I0 F500 H0 T50 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
M106 P2 S1 I0 F500 H T45 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned on; Tools
M563 P0 D0 H1 ; 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 H ; 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; Automatic saving after power loss is not enabled
; Custom settings are not configured
; Miscellaneous
T0 ; Select first tool
M501thanks,
Tim -
Note:
My microstepping is shown above as 128. I have changed that back to the default of 16. Now my distances are correct.
Tim -
This line is incorrect:
M671 X-165:200 Y200:X330
Did you mean M671 X-165:200 Y200:330 (I removed the second X)? That would mean your first leadscrew is at X-165 Y200 and the second is at X200 Y330. It's ok for the leadscrew coordinates to be a long way outside the bed.
-
Hi dc42
Yes, thankyou! That was a typing error on my part. I will correct that right now.
I'm actually having a different issue which I believe I have figure out, but don't know how to correct.
When I engage the bed heater, I have a 50% voltage drop. That might be what is causing my heater fault if I have the hot end heating and then try to heat the bed.
In researching heated beds, I see that they are not all created equal. I see different wiring connections at the bed for some, based on 12 or 24 volt connections. A common arrangement is 3 terminals, where the connections are different for 24V than they are for 12V.
Since my heated bed came from my Tevo Tarantula, it is wired for 12V. There are 6 wires that go to the bed. 2 toward the center of the bed, 2 yellow in the center of the connector, and two black toward the right side of the bed.
Red is +12, black is ground and yellow is the temperature sensor. There is a pad glued to the back, which then has insulation and then a foil plate, so if there is a wiring diagram, it cannot be seen.
I think I should hold up until I get a new heated bed.
I'm looking at this one (I'd appreciate an ok) https://spool3d.ca/300mm-x-300mm-heat-bed/ as it looks like I should be able to solder it up fairly easily.
Any chance of converting the old one?
Thanks
Tim -
@timvukman, it may be possible to convert the old bed heater. If you post some pictures of it then I may be able to advise you. Someone else who has the same printer may already know the answer.
-
Hi:
In the interest of safety I have decided to replace the heated bed without trying to convert it for 24V. I scraped the insulation off the back and there is no key table printed on it to identify which connections to use for 12V or 24V. It is quite possible / likely that it is not intended for use with 24V.
Thanks
Tim