migrate config.g
-
When connected to the DWC, the system tab on the left side is used to show you your config and homing files. Is that where you are editing your files?
Your homing files isn't quite right for corexy.
; HOME X/Y
G1 H1 Y-400 X-400 F10000 ;
G1 Y175 X175 F5000 ;This section will home both x and y but will stop both axis when either one hits. So the second move at least one of the axis will not yet be homed.
Use something like this instead for corexy
https://duet3d.dozuki.com/Wiki/ConfiguringRepRapFirmwareCoreXYPrinter#Section_homeall_g_file
G91 ; relative mode G1 H1 X-240 Y-240 F3000 ; coarse home X or Y G1 H1 X-240 ; coarse home X G1 H1 Y-240 ; coarse home Y G1 X4 Y4 F600 ; move away from the endstops G1 H1 X-10 ; fine home X G1 H1 Y-10 ; fine home Y ''' Z homing section follows'''
-
@Phaedrux
I did foloowed those instructions:
"On a CoreXY printer, the whole move will be terminated when the first homing switch is triggered. Therefore, to do simultaneous XY homing, your homeall.g file needs to first home X and Y together, then home them separately. " My homeall.g is the same, I just changed the number:; HOME X/Y
G1 H1 Y-400 X-400 F10000 ; Home at the same time as the instructions says
G1 Y175 X175 F5000 ; Dont remember why but I added this just to move the carriage to the "center"
M400; this is not necessary I guess
G1 H1 Y-400 F10000 ; and from here it is as instructed
G1 Y175
G1 H1 X-400 F10000
G1 X175
M400But this is not the problem, question and problems remains: this config works OK when I use it on the duet as stand alone or with octiprint. What Im doing wrong that nothing is working ok with the DWC? All my tool change routines also don't work at all. The servo is not being activated, or it actives and moves to a position and immediately returns to the old position all by itself while the printer is doing nothing.A faulty board can be the reason for this? (I guess no, because as I said, in stand alone or with octoprint it is working ok)
Z motors don't work for example. I tried switching back to the duet+octoprint just to discard hardware issues, and the Z motors work okMore info: if I do a manual tool change, To > T1 the head should move to a position, activate servo to position 47 (lowers the tool).
When I try to do that, the servo moves, then by itself goes back to original position and then the board resets. These are the messages I see in console when that happens:11/21/2020, 7:46:08 AM Warning: Controller has been reset
11/21/2020, 7:46:08 AM Connection to Duet established
11/21/2020, 7:46:08 AM Warning: Lost connection to Duet (Board is not available (no header)) -
I found many solutions to my problems, I post my findings, it might be useful for somebody:
.- The ribbon cable used for the SPI connection, it handles high frequency signals, and it is a source os strong "noise". My servo motor is passing just on top of the ribbon cable, and the noise was getting into this cable and making my servo to have this "ghost" movements. I shielded the cable and the problem is gone. This was not happening with the USB connection so the source of the noise comes from the ribbon cable. I will test and watched more closely this flat cable, probably I will shield it too just in caso in order to not get noise in other cables.
.- The Z motors not working: the same exact config I was using with DUET3 connected by USB to raspberry is not working with duet3 connected through SPI to raspberry and using DWC. I guess the problem is with DWC, because I changed my original config to this:
350 X16 Y16 Z16 E16:16 I1 ; configure microstepping with interpolation. Changed Z to 16 from 32
; M92 X160.32 Y160.32 Z3200 E827.22 set steps per mm
M92 X80.16 Y80.16 Z1600 E428.25:428.25 ; set steps per mm changed Z from 3200 to 1600
M566 X900.00 Y900.00 Z300.00 E450:450 ; set maximum instantaneous speed changes (mm/min)
M203 X18000.00 Y18000.00 Z340.00 E2400.00 ; set maximum speeds (mm/min)
M201 X1000.00 Y1000.00 Z20 E500.00 ; set accelerations (mm/s^2)
M906 X1500 Y1500 Z900 E1000:1000 I30Notice that I removed the Z configuration. Correct or not, the original configuration was working, on the same duet board, so the problem must bu DWC?
I hope it helps somebody. I will keep solving issues
-
@Tinchus said in migrate config.g:
; HOME X/Y
G1 H1 Y-400 X-400 F10000 ; Home at the same time as the instructions says
G1 Y175 X175 F5000 ; Dont remember why but I added this just to move the carriage to the "center"The first move will only ever home one of the axis, therefore, the following move will provoke the error message because at least one of those axis are not yet homed.
That's why in the example the following two moves home the axis individually again to ensure that whichever one was missed gets homed.
It really sounds like the config you're looking at isn't the same as what the duet is executing.
How are you viewing and editing these files? When you make a change does it actually take effect?
-
@Phaedrux Just to be sure Im ONLY using the duet web interface for editing. And believe it or not... the conf I posted above is working now perfectly.
I have one not related question: I'm trying to create my own combination of colors for the interface (since I have some color distinctions problems jajaja.... where do I find the CSS file, the ones located at boot/www seems not to be the ones being used -
@Tinchus said in migrate config.g:
boot/www
/opt/dsf/sd/www but they should be minimized and less than usefull?
https://github.com/Duet3D/DuetWebControl might be more apropriate
-
@bearer You I should rebuild the DWC from scratch? Im a little afraid of doing that after having to do such a work to have my config running.
The sd card that came with the board seems to have a 3.2 version of the DWC because I can see that have plugins wich in theory are not suppose to be in 3.1.1 version. After I did a sudo apt updete/upgrade, the DWC seems to be downgraded, but plugins were still working, but everything was very unstable (for example after doing a homing the status remained in "busy" for ever": Installing a fresh duetpi image and doing the upgrade seems to work much better)
So in your opinion I can upgrade manually the DWC ? I can see wich version ti is the one available in that github -
What version of DWC does it report in the interface itself?
-
@Phaedrux Duet Web Control 3.1.1
-
For the time being stick with 3.1.1. The next release 3.2 is around the corner and should improve the Pi experience.
There is a dark theme in DWC. I'm kind of hoping for a return of multiple themes in future updates.