Hi,
The gcodes generated by Cura (4.11.0)with multi extruders only show the filament usage of the last extruder in DWC 3.3.0 (SBC mode).
I am attaching the gcodes I used to test it (I shortened the files so they are not too heavy).
In the first one, both extruders are used, and only the filament usage of the last extruder (T1) is reported, and 1 extruder only appears in the OM.
TEST_FILAMENT_USAGE_1.gcode
In the second one, both extruders are activated, but one only (T0) is used. The OM report an unvalid type code 15 (the gcode shows a filament use of 0m).
TEST_FILAMENT_USAGE_2.gcode
Does anybody knows if it comes from the 4.11.0 Cura (the parser is looking for "ilament" so it should work) or from a bug in DWC 3.3.0?
Thanks for you feedbacks.
Posts made by MathV
-
Cura slicer filament usage in multi extrusion
-
RE: mod function doesn't work with variable or constant name
@dc42 , Thanks for your feedback.
I got this error message when I run it:
Error: Failed to read code from macro test: Failed to evaluate "mod(iterations, 50) = 0": expected ','
I am sure it is a very obvious mistake from me, but I can't find it. -
mod function doesn't work with variable or constant name
Hi everybody,
I am using the mod(,) function in a while loop and I noticed that the function doesn't work with the contstant "iterations" in it.
Here is my while loop:while iterations < 1000 if mod(iterations, 50) = 0 M117 "mod function OK!" G4 P100 continue
The evaluation of mod(140,50) returns the proper value.
If I create a global variable [name], set it to 140 (and check the assignment with M117) and evaluate mod(global.[name],50), it doesn't return any value.Is there somehing I missed?
Thanks in advance.
-
RE: Error: Failed to switch off remote heater 0: (while printing)
I double checked my setup, and the SSR wasn't a zero cross as I thought I purchased. Replacing it by a zero cross solved the issue.
Thanks for your support. -
RE: Error: Failed to switch off remote heater 0: (while printing)
@dc42 I tried to connect power the bed with cable running outside the machine, but still the same issue.
I found again more elements this morning:
- If I start a print with heating bed ON (with a PID control for the bed temp) when the bed is already at 55°C (for a 60°C target), then the error doesn't occur.
- I started the gcode below --> no error.
; no error T0 M190 S60
- I started the gcode below --> no error
; no error T0 M190 S60 M104 S213
- I started the gcode below --> no error
; no error T0 M190 S60 M109 S213
- I started the gcode below --> error
; error T0 M190 S60 M104 S213 M109 S213
- I started the gocde below --> error
; error T0 M190 S60 G90 G1 X0 Y0 Z200 M400
- The error also occur with the last gcode ran as a macro (so without the start.g)
I emptied my tpre0.g and tpost0.g without any impact.
Any idea?
-
RE: Error: Failed to switch off remote heater 0: (while printing)
Thanks @dc42.
I do not have a PanelDue, but the 220V bed cable is running close to the CAN bus cables. I will isolate the bed cables from my other cables, test it again and come back with some results. -
RE: Error: Failed to switch off remote heater 0: (while printing)
Observation:
After couple of tries, I noticed a pattern:
If I want to print a gcode with the heating bed ON (let's say 60°C), then as soon as the temperature of the bed is around 55-58°C, the error appears.Error: Failed to switch off remote heater 0: Error: Failed to switch off remote heater 1: Cancelled printing file 0:/gcodes/IDX420_Left_2x_Impeller_4h43min_93g.gcode, print time was 0h 0m Emergency Stop! Reset the controller to continue.
It looks like the error occurs as soon as the regulation (as soon as the command is not 100% any more) of the bed heat starts.
I do not explain the link between the bed and the heater 0 and 1 (respectively the hotend left and right on my setup).
I am controling the bed in 220V with an SSR zero cross (line frequency 60Hz) with a control frequency of 6Hz (although still 10Hz on the config I sent).
I am controlling the SSR with the 2-wire fan output out7 from the 6HC.Test:
- I tried to print with the bed controled in bangbang, and the error appears more randomly (sometimes at the beginning of the print, sometimes after couple of hours).
- I am trying to suppress the bed heating. The print starts properly, but I will let it print over night to confirm that it prints without any issue).
-
RE: Error: Failed to switch off remote heater 0: (while printing)
@phaedrux , sorry for the very long delay to answer due to my holiday trip.
I updated the firmware to the 3.3 release and checked that the 6HC and both 1LC are running on it (M122, M122 B#).
I also now run on standalone mode to keep it as simple as possible.Please find below my config and the M122, M122 B20 and M122 B21 responses below.
config.txt
M122.txt
M122 B21.txt
M122 B20.txtI continue the investigation and keep you updated.
Thanks a lot for your help. -
Error: Failed to switch off remote heater 0: (while printing)
Hi,
I am experiencing an unexpected error while printing (Error: Failed to switch off remote heater 0:). After this, an emergency stop is triggered.
I am running the 3.3 release on a 6HC + 2x 1LC with a SBC.
Here are the logs of the event:05/07/2021, 13:25:09 Connection established 05/07/2021, 13:24:59 Connection interrupted, attempting to reconnect... 05/07/2021, 13:06:36 Emergency stop, attemping to reconnect... 05/07/2021, 13:06:36 Emergency Stop! Reset the controller to continue. 05/07/2021, 13:06:36 Cancelled printing file 0:/gcodes/IDX420_Duplicate_2x_Impeller_4h08min_79g.gcode, print time was 0h 16m 05/07/2021, 13:06:36 Error: Failed to switch off remote heater 1: 05/07/2021, 13:06:36 Error: Failed to switch off remote heater 0: 05/07/2021, 12:54:37 Height map saved to file heightmap.csv 05/07/2021, 12:49:37 M32 "0:/gcodes/IDX420_Duplicate_2x_Impeller_4h08min_79g.gcode" File 0:/gcodes/Impeller_4h08min_79g.gcode selected for printing 05/07/2021, 12:49:29 Upload of Impeller_4h08min_79g.gcode successful after 1s
It happens sporadically, sometimes after 1min, sometimes after 16min or more.
I am surprised by the non existing message following the error message.
Does anybody have an idea about the cause of this issue?
Thanks in advance.
-
RE: Trouble connecting Toolboards 1LC to Duet 3 6HC
@dc42 Thanks again.
I will purchase the ATMEL ICE and try this procedure keeping the bootloader. -
RE: Trouble connecting Toolboards 1LC to Duet 3 6HC
@dc42 @t3p3tony @phaedrux, Thanks a lot for your help and time. It is now much more clear.
I managed to catch a sync between toolboard and 6HC, I ran an M997 B121, and it is now working perfectly.
Just to know, is there a procedure to flash the firmware (I only found it for the bootloader) directly to the 1LC with an ATMEL ICE?
-
RE: Trouble connecting Toolboards 1LC to Duet 3 6HC
@t3p3tony , Can the toolboards 1LC communicate with the 6HC, enven if their firmware version are different? (6HC-->3.3RC3 and 1LC-->3.1.0)
Just in case my explanation was not very clear:- the 6HC is currently in 3.3RC3
- the 1LC are currently in 3.1.0 (I cannot communicate with them, so I cannot update the firmware)
- the idea was to downgrade the 6HC to match the 1LC version, then, if the communication is back again, upgrade the 1LC to 3.3RC3 and finish with the upgrade of the 6HC to 3.3RC3.
But may be I am misunderstanding something.
-
RE: Trouble connecting Toolboards 1LC to Duet 3 6HC
@dc42 Thanks a lot.
As I understand, it is going to be risky to perform this on the 6HC directly (unless I missed something).
I will connect the tools to the 24V PSU with external relays on the high side (in addiction with G4 S5, also suggested by @Phaedrux ). That way, the current surge while switching on the tools shouldn't be a problem anymore.I have now plugged the tools directly on the PSU, and indeed, some strange behaviours disappeared.
The connection issue is still there, but I noticed the tools were running the firmware 3.1.0 while the 6HC was running on 3.3RC3.
I will downgrade the firmware to 3.1.0, and then try to connect again via the CAN bus.
Is there an update order to respect? (Tools first, and the 6HC at the end?) -
RE: Trouble connecting Toolboards 1LC to Duet 3 6HC
@phaedrux
I just catched a connection with a toolboard, but only managed to send a M409 K"boards", which result is:01/06/2021, 10:08:10: m409 K"boards": {"key":"boards","flags":"","result": [{"canAddress":0, "firmwareDate":"2021-05-26", "firmwareFileName":"Duet3Firmware_MB6HC.bin", "firmwareName":"RepRapFirmware for Duet 3 MB6HC", "firmwareVersion":"3.3RC3", "iapFileNameSBC":"Duet3_SBCiap32_MB6HC.bin", "iapFileNameSD":"Duet3_SDiap32_MB6HC.bin", "mcuTemp":{"current":37.5,"max":37.9,"min":28.7}, "name":"Duet 3 MB6HC", "shortName":"MB6HC", "uniqueId":"08DJM-956BA-NA3TJ-6J1DD-3S86T-KU9AS", "v12":{"current":12.1,"max":12.2,"min":12.1}, "vIn":{"current":24.1,"max":24.1,"min":24.0}}, {"canAddress":121, "firmwareFileName":"Duet3Firmware_TOOL1LC.bin", "firmwareVersion":"3.1.0 (2020-05-15b1)", "mcuTemp":{"current":0,"max":0,"min":0}, "shortName":"TOOL1LC", "state":"running", "v12":{"current":0,"max":0,"min":0}, "vIn":{"current":0,"max":0,"min":0}}], "next":0}
-
RE: Trouble connecting Toolboards 1LC to Duet 3 6HC
Thanks @phaedrux
Please find below my actual config.g file (I will replace the 1s delay by a 5s delay, thanks for this information):
; Configuration file for Duet 3 (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.2.3 on Tue Apr 06 2021 17:21:14 GMT+0200 (CEST) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"ubuntu" ; set printer name G21 ; work in millimetres ; Tools M950 P0 C"0.out1" ; create the power port of the tool left on P0 M950 P1 C"0.out2" ; create the power port of the tool right on P1 M42 P0 S1.0 ; switch on tool 0 (left) M42 P1 S1.0 ; switch on tool 1 (right) G4 S1 ; wait 1 second for the tools to init ; Drives M569 P0.5 S1 ; physical drive 0.5 goes forwards M569 P0.4 S0 ; physical drive 0.4 goes forwards M569 P0.3 S1 ; physical drive 0.3 goes forwards M569 P0.2 S1 ; physical drive 0.2 goes forwards M569 P0.1 S1 ; physical drive 0.1 goes forwards M569 P0.0 S1 ; physical drive 0.0 goes forwards M584 X0.3 Y0.2 Z0.1:0.0 U0.4 V0.5 ; set drive mapping M350 X16 Y16 Z16 U16 I1 ; configure microstepping with interpolation M92 X53.33 Y53.33 Z800.00 U53.33 V163.00 ; set steps per mm M566 X900.00 Y900.00 Z60.00 U900.00 V900.00 ; set maximum instantaneous speed changes (mm/min) M203 X18000.00 Y18000.00 Z1000.00 U18000.00 V5000.00 ; set maximum speeds (mm/min) M201 X2000.00 Y2000.00 Z20.00 U2000.00 V250.00 ; set accelerations (mm/s^2) M906 X1150 Y1500 Z1150 U1150 V1200 I60 ; set motor currents (mA) and motor idle factor in per cent M84 S0 ; Disable idle timeout ; Axis Limits M208 X-150 Y-150 Z0 U-150 V0 S1 ; set axis minima M208 X150 Y150 Z300 U150 V10000 S0 ; set axis maxima ; Endstops M574 X1 S1 P"!0.io4.in" ; configure active-high endstop for low end on X via pin !io3.in M574 Y2 S1 P"!0.io2.in" ; configure active-high endstop for high end on Y via pin !io2.in M574 Z2 S1 P"!0.io0.in+!0.io1.in" ; configure active-high endstop for high end on Z via pin !io0.in M574 U2 S1 P"!0.io3.in" ; configure active-high endstop for high end on U via pin !io4.in M574 V1 S1 P"^0.io5.in" ; configure active-high endstop for low end on V via pin !^0.io5.in ; Heaters M308 S0 P"0.temp0" Y"thermistor" A"Bed" T100000 B3950 ; configure sensor 0 as thermistor on pin temp0 M950 H0 C"0.out7" T0 ; create bed heater output on out7 and map it to sensor 0 M307 H0 B0 S1.00 ; disable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M307 H0 R0.791 C392.0 D4.77 S1.00 ; set the heating parameters of the bed M143 H0 P0 S110 ; raise a heater fault if heater 0 exceeds 110C M143 H0 P1 S120 A3 ; shut down the printer if heater 0 exceeds 120C ; Fans M950 F2 C"0.out9" Q500 ; create fan 2 on pin out9 and set its frequency M106 P2 S1.0 H-1 C"Material and Electronics" ; set fan 2 value. Thermostatic control is turned off ; Light M950 P2 C"0.out3" ; create the power port of the light on P2 M42 P2 S1.0 ; set P2 to 100% ; Miscellaneous M911 S21 R22 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
I, unfortunately, lately cannot communicate with the tools. I already had some issues when I was on firmware version 3.2.2, and no connection at all since I upgraded to 3.3RC3.
Please find below the M112 result (6HC only here with firmware 3.3RC3):01/06/2021, 08:45:35: m122: === Diagnostics === RepRapFirmware for Duet 3 MB6HC version 3.3RC3 (2021-05-26 12:29:42) running on Duet 3 MB6HC v0.6 or 1.0 (SBC mode) Board ID: 08DJM-956BA-NA3TJ-6J1DD-3S86T-KU9AS Used output buffers: 1 of 40 (12 max) === RTOS === Static ram: 150784 Dynamic ram: 61428 of which 0 recycled Never used RAM 141980, free system stack 200 words Tasks: SBC(ready,5.1%,298) HEAT(delaying,0.0%,301) Move(notifyWait,0.0%,352) CanReceiv(notifyWait,0.0%,945) CanSender(notifyWait,0.0%,374) CanClock(delaying,0.0%,333) TMC(notifyWait,7.6%,93) MAIN(running,87.2%,1272) IDLE(ready,0.0%,29), total 100.0% Owned mutexes: HTTP(MAIN) === Platform === Last reset 00:04:40 ago, cause: power up Last software reset at 2021-05-31 14:50, reason: User, none spinning, available RAM 141372, slot 2 Software reset code 0x0012 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0044a000 BFAR 0x00000000 SP 0x00000000 Task SBC Freestk 0 n/a Error status: 0x00 Aux0 errors 0,0,0 Aux1 errors 0,0,0 Step timer max interval 139 MCU temperature: min 23.1, current 35.8, max 35.9 Supply voltage: min 24.0, current 24.1, max 24.2, under voltage events: 0, over voltage events: 0, power good: yes 12V rail voltage: min 12.1, current 12.1, max 12.2, under voltage events: 0 Heap OK, handles allocated/used 0/0, heap memory allocated/used/recyclable 0/0/0, gc cycles 0 Driver 0: position 0, standstill, reads 59521, writes 14 timeouts 0, SG min/max 0/0 Driver 1: position 0, standstill, reads 59521, writes 14 timeouts 0, SG min/max 0/0 Driver 2: position 0, standstill, reads 59521, writes 14 timeouts 0, SG min/max 0/0 Driver 3: position 0, standstill, reads 59521, writes 14 timeouts 0, SG min/max 0/0 Driver 4: position 0, standstill, reads 59522, writes 14 timeouts 0, SG min/max 0/0 Driver 5: position 0, standstill, reads 59523, writes 13 timeouts 0, SG min/max 0/0 Date/time: 2021-06-01 06:45:32 Slowest loop: 0.46ms; fastest: 0.04ms === Storage === Free file entries: 10 SD card 0 not detected, interface speed: 37.5MBytes/sec SD card longest read time 0.0ms, write time 0.0ms, max retries 0 === Move === DMs created 125, maxWait 0ms, bed compensation in use: none, comp offset 0.000 === MainDDARing === Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === AuxDDARing === Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1 === Heat === Bed heaters = 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = 3 -1 -1 -1 === GCodes === Segments left: 0 Movement lock held by null HTTP* is doing "M122" in state(s) 0 Telnet is idle in state(s) 0 File is idle in state(s) 0 USB is idle in state(s) 0 Aux is idle in state(s) 0 Trigger* is idle in state(s) 0 Queue is idle in state(s) 0 LCD is idle in state(s) 0 SBC is idle in state(s) 0 Daemon is idle in state(s) 0 Aux2 is idle in state(s) 0 Autopause is idle in state(s) 0 Code queue is empty. === CAN === Messages queued 2338, send timeouts 2332, received 0, lost 0, longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 49 (min 49), ts 1402/0/0 Last cancelled message type 4514 dest 127 === SBC interface === State: 4, failed transfers: 0 Last transfer: 1ms ago RX/TX seq numbers: 8996/8996 SPI underruns 0, overruns 0 Number of disconnects: 0, IAP RAM available 0x2c8bc Buffer RX/TX: 0/0-0 === Duet Control Server === Duet Control Server v3.3-rc3 Code buffer space: 4096 Configured SPI speed: 8000000 Hz Full transfers per second: 0.16 Codes per second: 0.00 Maximum length of RX/TX data transfers: 2948/692
I also stored an old (most probably irrelevant) M112 B121 answer (so for the toolboard only) when I was running firmware 3.2.2. If needed, I can transfert it too.
I can downgrade the firmware version if needed. I will be working on it all day, so I will try to be as reactive as possible.@phaedrux said in Trouble connecting Toolboards 1LC to Duet 3 6HC:
Is this still the case? Just rapid blinking?
Yes, both of them are blinking rapidely.
-
RE: Trouble connecting Toolboards 1LC to Duet 3 6HC
@mathv said in Trouble connecting Toolboards 1LC to Duet 3 6HC:
Investigation:
In case it could give more information about the issue:
I tried to set back the CAN bus data rate (in case I would have change it by mistake) with:M953 S1.0
The board responds:
Error: M953: Command is not supported -
RE: Trouble connecting Toolboards 1LC to Duet 3 6HC
@mathv said in Trouble connecting Toolboards 1LC to Duet 3 6HC:
To be tested:
I will now try to power the SBC with a 24V/5V converter, so both the 6HC and the SBC are powered by the 24V power supply (even though indirectly for the SBC).I just tested it. --> No effect
I also tested to power the SBC with the 6HC. --> No effect -
RE: Trouble connecting Toolboards 1LC to Duet 3 6HC
@paulhew said in Trouble connecting Toolboards 1LC to Duet 3 6HC:
Why not take a separate feed from the 24V PSU via an inline fuse or two to the 2 1LC's??
I configured OUT1 and OUT2 as outputs (not heater), so I can power the tools even before configuring the drivers.
The idea behind it is to be able to change the tools while the printer is running. -
Trouble connecting Toolboards 1LC to Duet 3 6HC
Hi,
I am trying to connect 2 toolboards 1LC to a Duet 3 6HC.
Configuration:
- To do so, I am not using the Duet 3 Tool Distribution Board, but I chained my 2 toolboards 1LC with the 6HC as below:
CAN1_L (6HC) --> CAN_L (1LC#1) --> CAN_L (1LC#2) --> R120 --> CAN_H (1LC#2) --> CAN_H (1LC#1) --> CAN1_H (6HC) - I am using non twisted pair cable (total length 6m).
- The toolboards 1LC are V1.0 and the mainboard 6HV is V1.01.
- I am powering the toolboards with 24V from the OUT1 (1LC#1) and OUT2 (1LC#2).
- I am using a SBC to pilot the mainboard 6HC, and the SBC powers the 6HC with 5V.
- The SBC and the 6HC are not powered from a common power supply, so there are 2 power supplies (220V/5V for the SBC and 220V/24V for the 6HC)
- I am using the 3.2.2 firmware release.
What I did before:
I succeeded in "pinging" the two boards sparetly with a M115 B121.
I changed the ID of the boards to 20 and 21 with M952 B121 A20 and M952 B121 A21, rebooted the boards with M999 B121, and controled the ID change by powering them both with a M115.Issue:
The next day (machine switched off over night), I struggle to connect with the toolboards: the red LED blink rapidely on one tool, and/or the other.
The connection issue is confirmed when I send a M409 K"boards" (only the 6HC visible, and the 1LC eventually connected).
Since then, I do not succeed in establishing a connection between the 6HC and the two 1LC (not even one of them any more).Investigation:
Here are the operations I realised in order to find the root cause of the issue:- I checked my cables: CAN_H connected together, CAN_L connected together and 120ohm on the RJ11 connector. --> Cable mapping OK
- I connected only one 1LC with a short cable (~60cm, but still untwisted pair cable). --> No effect
- I changed the 1LC (I purchased 4 of them). --> No effect
- I resetted the 1LC by powering it up with both buttons pushed. --> No effect
- I installed the latest duet firmware version (3.3RC3). --> No effect
To be tested:
I will now try to power the SBC with a 24V/5V converter, so both the 6HC and the SBC are powered by the 24V power supply (even though indirectly for the SBC).I start to be out of idea, and a bit of help would be very welcome.
Thanks a lot.Mathieu
- To do so, I am not using the Duet 3 Tool Distribution Board, but I chained my 2 toolboards 1LC with the 6HC as below:
-
RE: External trigger doesn't call trigger#.g after software reset
Further information:
- M98 P"trigger3.g" works
- even when the status is "busy", M98 P"trigger3.g" works