[3.6.0-rc.1] Code 6 Error, V1.02 6HC
-
Occurred at the start of a print - unsure if it was before the homing routine, or before it went to actually lay down plastic.
Error: Code 6 move error: info=0.00, seg: s=70911352 t=14999375 d=41498.27 u=2.7667e-3 a=0.0000e+0 f=1d
M122
=== Diagnostics === RepRapFirmware for Duet 3 MB6HC version 3.6.0-rc.1 (2025-02-28 15:00:13) running on Duet 3 MB6HC v1.02 or 1.02a (standalone mode) Board ID: 08DJM-9P63L-DJ3S0-7J1DD-3SN6L-9VMMA Used output buffers: 1 of 40 (40 max) === RTOS === Static ram: 137420 Dynamic ram: 131184 of which 32 recycled Never used RAM 69612, free system stack 110 words Tasks: NETWORK(1,ready,32.3%,159) ETHERNET(5,nWait 7,0.1%,311) HEAT(3,nWait 6,0.0%,323) TMC(4,nWait 6,3.1%,341) CanReceiv(6,nWait 1,0.0%,771) CanSender(5,nWait 7,0.0%,334) CanClock(7,delaying,0.0%,341) MAIN(1,running,64.4%,103) IDLE(0,ready,0.0%,29) USBD(3,blocked,0.0%,144), total 100.0% Owned mutexes: === Platform === Last reset 01:42:57 ago, cause: power up Last software reset at 2025-03-06 15:51, reason: User, Gcodes spinning, available RAM 75848, slot 1 Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x00400000 BFAR 0x00000000 SP 0x00000000 Task MAIN Freestk 0 n/a === Storage === Free file entries: 19 SD card 0 detected, interface speed: 25.0MBytes/sec SD card longest read time 5.2ms, write time 17.0ms, max retries 0 === Move === Segments created 242, maxWait 4091056ms, bed comp in use: none, height map offset 0.000, hiccups added 0/0 (0.00/0.00ms), max steps late 1, ebfmin 0.00, ebfmax 0.00 Pos req/act/dcf: 4000.00/4000/-0.00 1920.00/1920/0.00 128819.00/128819/0.00 26700.00/26700/0.00 Next step interrupt due in 299 ticks, disabled Driver 0: standstill, SG min 0, mspos 552, reads 34398, writes 63 timeouts 4 Driver 1: standstill, SG min 0, mspos 232, reads 34398, writes 63 timeouts 4 Driver 2: standstill, SG min 0, mspos 1000, reads 34398, writes 63 timeouts 4 Driver 3: standstill, SG min 0, mspos 24, reads 34398, writes 63 timeouts 4 Driver 4: standstill, SG min 0, mspos 56, reads 34404, writes 57 timeouts 4 Driver 5: standstill, SG min 0, mspos 24, reads 34398, writes 63 timeouts 4 Phase step loop runtime (us): min=0, max=116, frequency (Hz): min=670, max=20833 === Heat === Bed heaters 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamber heaters -1 -1 -1 -1 -1 -1 -1 -1, ordering errs 0 === GCodes === Movement locks held by File, null HTTP is idle in state(s) 0 Telnet is idle in state(s) 0 File is doing "t1" 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 File2 is idle in state(s) 0 Queue2 is idle in state(s) 0 === Filament sensors === Driver 31: no data received, errs: frame 0 parity 0 ovrun 0 pol 0 ovdue 0 === CAN === Messages queued 53990, received 74124, lost 0, ignored 0, errs 4966, boc 0 Longest wait 2ms for reply type 6027, peak Tx sync delay 24151, free buffers 50 (min 49), ts 29280/29275/0 Tx timeouts 0,0,4,0,0,0 last cancelled message type 30 dest 127 === Network === Slowest loop: 692.36ms; fastest: 0.03ms Responder states: MQTT(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0) HTTP sessions: 1 of 8 === Multicast handler === Responder is inactive, messages received 0, responses 0 = Ethernet = Interface state: active Error counts: 0 0 0 0 0 0 Socket states: 6 2 2 2 2 0 0 0 0 === WiFi === Interface state: disabled Module is disabled Failed messages: pending 0, notrdy 0, noresp 0 Socket states: 0 0 0 0 0 0 0 0
Config.g (its ugly)
M98 P"/sys/GlobalVars.g" ; General preferences G90 ; Send absolute coordinates... M83 G4 S1 ; wait for CANBUS to start ; Enable network if {network.interfaces[0].type = "ethernet"} M552 P0.0.0.0 S1 else M552 S1 M586 P0 S1 ; Enable HTTP M586 P1 S0 ; Disable FTP M586 P2 S0 ; Disable Telnet M550 P"Duet3 IDEX" ; Set machine name ;Enable PanelDue M575 P1 S1 B57600 ; Type M669 K0 ; Drives M569 P0 S1 ; Physical drive 0 goes forwards X M569 P1 S0 ; Physical drive 1 goes backwards Y DISABLE FOR CLOSED LOOP ;M569.1 P50.0 T2 C1000 S200 R200 I2000 D0.075 V1000.0 A100000.0 ; tweaked 1/27 ENABLE FOR CLOSED LOOP ;M569 P50.0 D4 S0 ;ENABLE FOR CLOSED LOOP G4 S1 ; wait for CANBUS to start M569 P2 S0 ; Physical drive 2 goes backwards Z M569 P3 S0 ; Physical drive 3 goes Backwards U M569 P4 S0 ; Physical drive 4 goes forwards E0 M569 P5 S1 ; Physical drive x goes forwards E1 ;M584 X0 Y50.0 Z2 U3 E4:5 ; create the U axis and assign stepper driver 5 ENABLE FOR CLOSED LOOP M584 X0 Y1 Z2 U3 E4:5 ; create the U axis and assign stepper driver 5 DISABLE FOR CLOSED LOOP M350 X16 Y16 Z16 U16 E16:16 I1 ; Configure microstepping with interpolation removed 32x for Y ;M92 X100.00 Y96 Z1280.00 U100.00 E2292.00:415.00 ; changed 192steps/mm for Y back to 96 after changing microstepping back to 16 M92 X100.00 Y96 Z1280.00 U100.00 E415.00:415.00 M566 X600.00 Y600.00 Z500.00 U600.00 E36000.00:36000.00 ; Set maximum instantaneous speed changes (mm/min) - the extruder jerk settings are a mistake... but I also haven't seen any downsides to them. original M566 P1 ;Jerk Policy M203 X36000.00 Y36000.00 Z1320.00 U36000.00 E6000.00:3000.00 ; Set maximum speeds (mm/min original M201 X4000.00 Y4000.00 Z450.00 U4000.00 E3000.00:3000.00 ; Set accelerations (mm/s^2) ;M906 X2100.00 Y3200.00 Z2400.00 U2100.00 E350.00:1960.00 I30 ; Set motor currents (mA) and motor idle factor in per cent original M906 X2100.00 Y3200.00 Z2400.00 U2100.00 E1960.00:1960.00 I30 ; Set motor currents (mA) and motor idle factor in per cent original M84 S30 ; Set idle timeout ; Axis Limits ;M208 X-260 Y-220 Z-4.65 U-150 S1 ; Set axis minima ;M208 X156 Y220 Z210.35 U267 S0 ; Set axis maxima M208 X{global.minx} Y{global.miny} Z{global.minz} U{global.minu} S1 ; Set axis minima M208 X{global.maxx} Y{global.maxy} Z{global.maxz} U{global.maxu} S0 ; Set axis maxima ; Endstops M574 X1 S1 P"io1.in" ;X Endstop M574 Y2 S1 P"io2.in" ; Y Endstop M574 U2 S1 P"io4.in" ; U/E0 Endstop ; Z-Probe M574 Z1 S2 ;probe M558 P9 C"io5.in" H5 F1000:200 A8 R0.75 T6000 S.02 ; set Z probe type to bltouch and the dive height + speeds M950 S0 C"io5.out" ;This was experimental extruder (I hope) ;G31 P25 X36.5 Y16.26 Z2.14 ; set Z probe trigger value, offset and trigger height. Increase value to bring it closer to the bed, decrease to move it away Z2.25 for .8mm nozzle, 1.4mm for .4 G31 P25 X32.56 Y0 Z1.35 M557 X-220:160 Y-200:200 S20:25 ; define mesh grid ; Heaters M140 H0 ;heated bed H0 M308 S0 P"temp0" Y"thermistor" T100000 B3950 A"Bed Temperature" ; set thermistor + ADC parameters for heater 0 ;M950 H0 C"out0" T0 Q5 ;heater 0 uses the bed_heat pin, sensor 0 M950 H0 C"pson" T0 Q5 ;heater 0 uses the pson pin, sensor 0, Q5 5hz M143 H0 S170 ; set temperature limit for heater 0 to 170C M308 S1 P"temp2" Y"thermistor" T500000 C1.196220e-7 A"T0 Temperature" ; Set thermistor + ADC parameters for heater 1 M950 H1 C"out1" T1 M143 H1 S450 ; Set temperature limit for heater 1 to 450C M308 S2 P"temp3" Y"thermistor" T500000 C1.196220e-7 A"T1 Temperature" ; Set thermistor + ADC parameters for heater 2 M950 H2 C"out2" T2 M143 H2 S450 ; Set temperature limit for heater 2 to 450C ;M308 S3 P"e2_temp" Y"thermistor" T100000 B4725 C7.060000e-8 R4700 A"Chamber1" ; Chamber M308 S4 P"temp1" Y"thermistor" T100000 B4725 C7.06e-8 A"Y-Stepper" ; Y-Stepper ;Fans M950 F6 C"out7" ;12v E0 fan assignment M950 F7 C"out8" ;12v E1 fan assignment M950 F5 C"out9" ;12v T0 part fan M106 P6 S255 C"E0 Heatsink Fan" ;12v E0 fan always on M106 P7 S255 C"E1 Heatsink Fan" ;12v E1 fan always on ;M106 P5 S128 H4 T68 C"Chamber Fan" ;24v fan thermostat - chamber M106 P5 S0 C"T0 Part Fan" ;12v T0 part fan ; Tools M563 P0 D0 H1 F5 ; Define tool 0, extruder 0, heater 1, fan 5 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 H2 X3 ; Define tool 1, extruder 1, heater 2, maps X to U G10 P1 X0 Y.0 U0 Z0 ; Set tool 1 axis offsets G10 P1 R0 S0 ; Set initial tool 1 active and standby temperatures to 0C M563 P2 D0:1 H1:2 X0:3 F5 ; tool 2 uses both extruders and hot end heaters, maps X to both X and U, both fans G10 P2 X0 Y0 U-263.5 S0 R0 ; set tool offsets and temperatures for tool 2 ;;;;G10 P2 X131.75 Y0 U-131.75 S0 R0 ; set tool offsets and temperatures for tool 2 - a different mechanism for IDEX duplication printing. I much prefer how I have it above. M567 P2 E1:1 ; set mix ratio 100% on both extruders ;Other M593 P"ei3" F49 L.2 ;L is 20% of accel ;M572 D0 S0.07 ; set extruder 0 pressure advance to 0.04 seconds .4mm 11/5/2022 M572 D0 S0.009 ; 01/31/2025 ;M572 D0 S0.039 ; .8mm nozzle 11/5/2022 M572 D1 S0.009 ; set extruder 1 pressure advance to 0.066 seconds ;M955 P0 I52 C"spi.cs3+spi.cs4" ; T0 accelerometer ;M955 P0 I65 C"spi.cs3+spi.cs4" ; bed ; Automatic saving after power loss is not enabled M591 D0 P3 C"io3.in" S1 L25.76 R0:200 ; filament monitor connected to E1_stop M207 P0 S.75 F2100 Z.5 M501 M950 F8 C"50.io0.out" M106 P8 C"Dir1" B0 M950 F9 C"50.io1.out" M106 P9 C"Dir2" B0
-
undefined sebkritikel marked this topic as a question
-
@sebkritikel thanks for reporting this. I don't think we have had a Code 6 error reported before and I am looking into it.
-
@sebkritikel at the time it was trying to extrude 100mm of filament at 5mm/sec and it was almost certainly an extruder-only move. A few questions:
-
Do you have such a move in the gcode you run prior to printing, or at the start of a print, perhaps to load or prime filament?
-
Had the printer already done a lot of printing since power up when this occurred?
-
Are you the user who reported the filament position showing as negative after a number of prints?
-
-
@dc42 said in [3.6.0-rc.1] Code 6 Error, V1.02 6HC:
@sebkritikel at the time it was trying to extrude 100mm of filament at 5mm/sec and it was almost certainly an extruder-only ove. A few questions:
-
Do you have such a move in the gcode you run prior to printing, or at the start of a print, perhaps to load or prime filament?
-
Had the printer already done a lot of printing since power up when this occurred?
-
Are you the user who reported the filament position showing as negative after a number of prints?
Ah interesting! This Code 6 coincided with me upgrading Cura to 5.9.1. This resulted in some (unfortunate) changes in the print start and print end configurations. One of which was a print end change (in Cura) that resulted in changing to absolute extrusion once the print was completed and then resetting the extrusion amount to zero (resulting in the extruder running backwards for a very long time). I believe I noticed this issue after I reported the Code 6 error from this thread.
To answer the questions directly:
- I may have, via DWC or the PanelDue, commanded a 100mm extrusion at 5mm, prior to starting the print (I did manually load filament, but unsure if it was directly before this error code; or several hours previously).
- I believe I had done ~ 1.5hrs of printing before hand. After I corrected my Cura config (see above) I went on to do 5+ hours of printing over the weekend without incident
- No, I am not that user.
-
-
@sebkritikel thanks. The reason for questions 2 and 3 are that another user reported a minor issue after extruding more than 2^31 steps of filament (which would be 5km of filament in your case) caused by the step counter wrapping round, and I wondered whether your Code 6 report might be related to that issue.