duet 3d HC : Can Bus failed
-
I uses a duet 6hc (sbc mode raspi4) + 5x 1XD + tool distribution board + 4x toolboard for a change tool 4 tool with external stepper in X, 2xY, 2xZ
this morning by plugging in the machine to test the canbus connection no longer works on all external boards
yesterday it works perfectly (programming switch for toolchanger dock)
what will be the procedure to determine the failure pleasem122 === Diagnostics === RepRapFirmware for Duet 3 MB6HC version 3.3 (2021-06-15 21:45:47) running on Duet 3 MB6HC v1.01 or later (SBC mode) Board ID: 08DJM-956BA-NA3TJ-6JTDA-3SD6P-9A96T Used output buffers: 2 of 40 (15 max) === RTOS === Static ram: 150904 Dynamic ram: 60600 of which 0 recycled Never used RAM 142688, free system stack 202 words Tasks: SBC(ready,42.2%,314) HEAT(delaying,0.0%,405) Move(notifyWait,0.0%,352) CanReceiv(notifyWait,0.0%,908) CanSender(notifyWait,0.0%,374) CanClock(delaying,0.0%,339) TMC(notifyWait,6.4%,93) MAIN(running,31.0%,922) IDLE(ready,20.3%,29), total 100.0% Owned mutexes: HTTP(MAIN) === Platform === Last reset 00:01:10 ago, cause: power up Last software reset at 2021-10-19 12:26, reason: User, GCodes spinning, available RAM 142264, slot 0 Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00400000 BFAR 0x00000000 SP 0x00000000 Task SBC Freestk 0 n/a Error status: 0x00 Step timer max interval 14997 MCU temperature: min 32.3, current 36.6, max 36.6 Supply voltage: min 24.0, current 24.0, max 24.0, under voltage events: 0, over voltage events: 0, power good: yes 12V rail voltage: min 12.0, current 12.1, max 12.1, 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 4622, writes 11 timeouts 0, SG min/max 0/0 Driver 1: position 0, standstill, reads 4619, writes 14 timeouts 0, SG min/max 0/0 Driver 2: position 0, standstill, reads 4622, writes 11 timeouts 0, SG min/max 0/0 Driver 3: position 0, standstill, reads 4622, writes 11 timeouts 0, SG min/max 0/0 Driver 4: position 0, standstill, reads 4622, writes 11 timeouts 0, SG min/max 0/0 Driver 5: position 0, standstill, reads 4622, writes 11 timeouts 0, SG min/max 0/0 Date/time: 2021-10-19 13:46:04 Slowest loop: 10808.64ms; fastest: 0.00ms === 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 = -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -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 doing "M950 J4 C"23.io0.in"" in state(s) 0 0, running macro 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 396, received 6, lost 0, longest wait 0ms for reply type 0, peak Tx sync delay 0, free buffers 49 (min 48), ts 352/0/0 Tx timeouts 0,0,351,37,5,0 last cancelled message type 30 dest 127 === SBC interface === State: 0, failed transfers: 1, checksum errors: 0 Last transfer: 15ms ago RX/TX seq numbers: 1668/1669 SPI underruns 0, overruns 0 Disconnects: 0, timeouts: 0, IAP RAM available 0x2c83c Buffer RX/TX: 2068/2660-0 === Duet Control Server === Duet Control Server v3.3.0 Trigger: Buffered code: M950 J4 C"23.io0.in" ;Gpin4 = Tool 3 Dock switch (on Toolboard 23);Gpin 4= T3 dock switch on 6hc Buffered code: M308 S0 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp0 Buffered code: M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0 Buffered code: M307 H0 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit Buffered code: M140 H0 ; map heated bed to heater 0 Buffered code: M143 H0 S120 ; set temperature limit for heater 0 to 120C Buffered code: M308 S1 P"20.temp0" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermocouple via CS pin spi.cs1 Buffered code: M950 H1 C"20.out0" T1 ; create nozzle heater output on out1 and map it to sensor 1 Buffered code: M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit Buffered code: M143 H1 S300 ; set temperature limit for heater 1 to 280C Buffered code: M308 S2 P"21.temp0" Y"thermistor" T100000 B4138 ; configure sensor 2 as thermistor on pin 121.temp0 Buffered code: M950 H2 C"21.out0" T2 ; create nozzle heater output on 121.out0 and map it to sensor 2 ==> 676 bytes Executing macro config.g, started by system > Next stack level Pending code: M905 P"2021-10-19" S"13:48:16" Code buffer space: 2012 Configured SPI speed: 8000000Hz Full transfers per second: 8.44, max wait times: 18.7ms/0.0ms Codes per second: 0.27 Maximum length of RX/TX data transfers: 3599/608
config.g
; configuration file for Duet 3 (firmware version 3) ; General preferences M111 S0 ;debugging off G21 ;Work in mm G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"********" ; set printer name M669 K0 X1:0:0 Y0:1:0 Z0:0:1 ; select Cartesian mode G4 S1 ;Wait for expension boards to start M555 S1 ;firmware mode 1-RRf 2-marlin ;Network ;M552 S1 ;enable network ;M586 P0 S1 ;enable http ;M586 P1 S0 ;disable ftp ;M586 P2 S0 ;disable Telnet ; Drives XYZ M569 P40.0 S1 R0 T2.6:2.6:2.6:2.6 ; physical drive 40.0 goes forwards X MOONST T2.6:2.6:2.6:2.6 M569 P41.0 S0 R0 T2.6:2.6:2.6:2.6 ; physical drive 41.0 goes forwards Y1 MOONS M569 P42.0 S0 R0 T2.6:2.6:2.6:2.6 ; physical drive 42.0 goes forwards Y2 MOONS M569 P43.0 S0 R0 T2.6:2.6:5:5 ; physical drive 43.0 goes forwards Z1 BRAKE MOTOR T2.6:2.6:5:5 M569 P44.0 S0 R0 T2.6:2.6:5:5 ; physical drive 44.0 goes forwards Z2 BRAKE MOTOR ;MOTOR BRAKE Z ;M950 J0 C"!43.io1.in" ;M950 P0 C"!43.out1" ;control Brake Z1 (port 43) (signal control from stepper alarm) ;M42 P0 S0 ;Z1 BRAKE desactivate it (power 0-24v) ;M950 J0 C"!44.io1.in" ;M950 P1 C"!44.out1" ;control Brake Z2 (port 44) (signal control from stepper alarm) ;M42 P1 S0 ;Z2 BRAKE desactivate it (power 0-24v) ; Extruder M569 P20.0 S1 ; TO0LBoard T0 physical drive 20.0 goes forwards E1 toolboard M569 P21.0 S1 ; TO0LBoard T1 physical drive 21.0 goes forwards E1 toolboard M569 P22.0 S1 ; TO0LBoard T2 physical drive 22.0 goes forwards E1 toolboard M569 P23.0 S1 ; TO0LBoard T3 physical drive 23.0 goes forwards E1 toolboard ;Coupler ChangeTools M569 P0.1 S1 ;Coupler ChangeTools axe C (duet 6hc) M915 C S3 F0 H200 ;Stall detection coupler (endstop axe C) ;Drive Configuration M584 X40.0 Y41.0:42.0 Z43.0:44.0 C0.1 E20.0:21.0:22.0:23.0 ; set drive mapping M350 E16:16:16:16 I1 ; configure microstepping with interpolation M350 X16 Y16 Z16 E16:16 I1 M350 C8 I0 M92 X512 Y512 Z512 C100 E415:415:415:415 ; set steps per mm- M566 X200 Y200 Z20 C2 E120:120:120:120 ; set maximum instantaneous speed changes (mm/min)- M203 X20000 Y20000 Z500 C5000 E1200:1200:1200:1200 ; set maximum speeds (mm/min)- M201 X1000 Y1000 Z500 C400 E250:250:250:250 ; set accelerations (mm/s^2)- M906 C500 E800:800:800:800 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S120 ; Set idle timeout ; Axis Limits M208 X0 Y0 C0 S1 ; set axis minima/maxima Z0 M208 X850 Y850 Z500 C260 S0 ; ; Endstops M574 X1 S1 P"io0.in" ; configure active-high endstop for low end on X via pin io0.in M574 X1 S1 P"!io0.in">capteur meca 3fils) M574 Y1 S1 P"io1.in" ; configure active-high endstop for low end on Y via pin io1.in M574 Z2 S2 ; configure active-high endstop for low end on Y via pin io1.in- M574 Z2 S2 zprobe-M574 Z1 S1 P"io2.in" ; Z-Probe switch ONRON M558 P5 C"^io2.in" H5 F500:120 T8000 ; disable Z probe but set dive height, probe speed and travel speed1 G31 P200 X-0.3 Y60.2 Z1 M557 X250:550 Y250:550 P6:6 ; define mesh grid ;DOCK switch for toolchange parking verification M950 J1 C"20.io0.in" ;Gpin1 = Tool 0 Dock switch (on Toolboard 20);Gpin 1= T0 dock switch on 6hc M950 J2 C"21.io0.in" ;Gpin2 = Tool 1 Dock switch (on Toolboard 21);Gpin 2= T1 dock switch on 6hc M950 J3 C"22.io0.in" ;Gpin3 = Tool 2 Dock switch (on Toolboard 22);Gpin 3= T2 dock switch on 6hc M950 J4 C"23.io0.in" ;Gpin4 = Tool 3 Dock switch (on Toolboard 23);Gpin 4= T3 dock switch on 6hc ; Heaters ;BED M308 S0 P"temp0" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp0 M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0 M307 H0 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C ;Extruder 0 (T0) CANbus 20 M308 S1 P"20.temp0" Y"thermistor" T100000 B4138 ; configure sensor 1 as thermocouple via CS pin spi.cs1 M950 H1 C"20.out0" T1 ; create nozzle heater output on out1 and map it to sensor 1 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 280C ;Extruder 1 (T1) CANbus 21 M308 S2 P"21.temp0" Y"thermistor" T100000 B4138 ; configure sensor 2 as thermistor on pin 121.temp0 M950 H2 C"21.out0" T2 ; create nozzle heater output on 121.out0 and map it to sensor 2 M307 H2 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M143 H2 S300 ; set temperature limit for heater 2 to 280C ;Extruder 2 (T2) CANbus 22 M308 S3 P"22.temp0" Y"thermistor" T100000 B4138 ; configure sensor 2 as thermistor on pin 121.temp0 M950 H3 C"22.out0" T3 ; create nozzle heater output on 121.out0 and map it to sensor 2 M307 H3 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M143 H3 S300 ; set temperature limit for heater 2 to 280C ;Extruder 3 (T3) CANbus 23 M308 S4 P"23.temp0" Y"pt1000" ; configure sensor 2 as thermistor on pin 121.temp0 M950 H4 C"23.out0" T4 ; create nozzle heater output on 121.out0 and map it to sensor 2 M307 H4 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M143 H4 S280 ; set temperature limit for heater 2 to 280C ; Fans ;T0 fan M950 F0 C"20.out1" Q500 ; T0-part cooling fan M106 P0 C"T1 partcooling fan" S0 B0.1 H-1 ; Default off.bootstart for 0.1s (B0.1);thermostatic control off M950 F1 C"20.out2" Q500 ; T0-Hotend cooling fan M106 P1 C"T1 hotend fan" S1 H1 T40 ; Default ON. Thermostatic control above 40°C ;T1 fan M950 F2 C"21.out1" Q500 ; T1-part cooling fan M106 P2 C"T1 partcooling fan" S0 B0.1 H-1 ; Default off.bootstart for 0.1s (B0.1);thermostatic control off M950 F3 C"21.out2" Q500 ; T1-Hotend cooling fan M106 P3 C"T1 hotend fan" S1 H1 T40 ; Default ON. Thermostatic control above 40°C ;T2 fan M950 F4 C"22.out1" Q500 ; T2-part cooling fan 106 P4 S0 B0.1 H-1 ; Default off.bootstart for 0.1s (B0.1);thermostatic control off M950 F5 C"22.out2" Q500 ; T2-Hotend cooling fan M106 P5 S1 H1 T40 ; Default ON. Thermostatic control above 40°C ;T3 fan M950 F6 C"23.out1" Q500 ; T3-part cooling fan M106 P6 S0 B0.1 H-1 ; Default off.bootstart for 0.1s (B0.1);thermostatic control off M950 F7 C"23.out2" Q500 ; T3-Hotend cooling fan M106 P7 S1 H1 T40 ; Default ON. Thermostatic control above 40°C ;Z-Offset: If nozzle is too close to bed _reduce_ offset (negative number becomes more negative) ; If nozzle is too far away, _increase_ offset (negative number becomes less negative) ; Tools ;T0 M563 P0 D0 H1 F0 S"T0" ; 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 ;T1 M563 P1 D1 H2 F2 S"T1" ; 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 ;T2 M563 P2 D2 H3 F0 S"T2" ; define tool 1 G10 P2 X0 Y0 Z0 ; set tool 1 axis offsets G10 P2 R0 S0 ; set initial tool 1 active and standby temperatures to 0C ;T3 M563 P3 D3 H4 F0 S"T3" ; define tool 1 G10 P3 X0 Y0 Z0 ; set tool 1 axis offsets G10 P3 R0 S0 ; set initial tool 1 active and standby temperatures to 0C ;TOOLS OFFSET ; estimed offset for : ; Copperhead-tool >>> Z-74.6 G10 P0 X-9 Y39 Z-100 ;TO Z-60.4 G10 P1 X-9 Y39 Z-100 ;T1 G10 P2 X-9 Y39 Z-100 ;T2 G10 P3 X-9 Y39 Z-100 ;T3 ; Custom settings are not defined ; deselect Tools T-1 ; BTT filament sensor ;M591 D0 P0 C"^io_6.in" L6.2 R90:110 E6 S1 ; Pressure Advance ;M572 D0 S0.5 ;Pressure Advance T0_direct drive bondtech +volcano ;M572 D1 S0.5 ;Pressure Advance T1_direct drive bondtech +volcano ;M572 D2 S0.5 ;Pressure Advance T2_direct drive bondtech +volcano ;M572 D3 S0.5 ;Pressure Advance T3_direct drive bondtech +volcano ; Miscellaneous M575 P1 S1 B57600 ; enable support for PanelDue M501 ; load saved parameters from non-volatile memory M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; set voltage thresholds and actions to run on power loss
thanks
-
@bast said in duet 3d HC : Can Bus failed:
if you send M122 Bn to all the boards do you get an error for each one?
-
@bast what are the status LEDs on the main board and on the tool bards doing? Flashing in sync, or something else?
-
yes all failed
19/10/2021, 14:09:16 m122 b20 Error: M122: Response timeout: CAN addr 20, req type 6024, RID=51 19/10/2021, 14:09:11 Warning: Controller has been reset 19/10/2021, 14:09:11 Connection to Duet established 19/10/2021, 14:09:08 Warning: Lost connection to Duet (Timeout while waiting for transfer ready pin) 19/10/2021, 14:09:04 Error: M308: Response timeout: CAN addr 21, req type 6031, RID=43 19/10/2021, 14:09:01 Error: M143: Heater 1 does not exist 19/10/2021, 14:09:01 Error: M307: Heater 1 not found 19/10/2021, 14:09:01 Error: M950: Response timeout: CAN addr 20, req type 6026, RID=41 19/10/2021, 14:08:59 Error: M308: Response timeout: CAN addr 20, req type 6031, RID=39 19/10/2021, 14:08:56 Error: M950: Response timeout: CAN addr 23, req type 6036, RID=38 19/10/2021, 14:08:55 Error: M950: Response timeout: CAN addr 22, req type 6036, RID=37 19/10/2021, 14:08:54 Error: M950: Response timeout: CAN addr 21, req type 6036, RID=36 19/10/2021, 14:08:54 Error: M950: Response timeout: CAN addr 20, req type 6036, RID=35 19/10/2021, 14:08:51 Error: M906: Response timeout: CAN addr 20, req type 6043, RID=31 Response timeout: CAN addr 21, req type 6043, RID=32 Response timeout: CAN addr 22, req type 6043, RID=33 Response timeout: CAN addr 23, req type 6043, RID=34 19/10/2021, 14:08:51 Error: Response timeout: CAN addr 20, req type 6042, RID=22 Response timeout: CAN addr 21, req type 6042, RID=23 Response timeout: CAN addr 22, req type 6042, RID=24 Response timeout: CAN addr 23, req type 6042, RID=25 Response timeout: CAN addr 40, req type 6042 19/10/2021, 14:08:36 Error: M350: Response timeout: CAN addr 20, req type 6042, RID=18 Response timeout: CAN addr 21, req type 6042, RID=19 Response timeout: CAN addr 22, req type 6042, RID=20 Response timeout: CAN addr 23, req type 6042, RID=21 19/10/2021, 14:03:34 Error: Response timeout: CAN addr 20, req type 6042, RID=9 Response timeout: CAN addr 21, req type 6042, RID=10 Response timeout: CAN addr 22, req type 6042, RID=11 Response timeout: CAN addr 23, req type 6042, RID=12 Response timeout: CAN addr 40, req type 6042,
-
@dc42
all led flashes quickly
this config worked yesteday
i do some other test
when i plug just toolboard ,it s ok -
@bast try each of the 1XDs in turn to see if one of them is causing the problem.
-
@bast if the status LED on the 6HC is flashing at 1Hz, and the tool boards LEDs are flashing continuously and rapidly, then it indicates that CAN communication isn't working.
The most likely reason is a bad CAN cable between the Duet 3 and the tool distribution board, or between the tool distribution board and the first tool board.
Another possibility is that something is shorting the CAN bus out. You could try connecting just one tool board to the CAN bus at a time, to see if a tool board is shorting the bus. Remember to fit the jumpers on the tool distribution board to bypass any missing tool boards.
-
I tested all the boards independently
I have toolboard 0 (adress20) which creates a conflict for me in the general can bus
I am reconfiguring a toolboard to replace it
thank you