Thermocouple M308: string too long 3.3 beta
-
Hi,
I have a Duet 6hc motherboard, and a thermocouple connected to the thermocouple daughterboard V1.1
Firmware Name: RepRapFirmware for Duet 3 MB6HC
Firmware Electronics: Duet 3 MB6HC v0.6 or 1.0
Firmware Version: 3.3beta2 (2021-03-10)
WiFi Server Version: n/a
Web Interface Version: 1.22.6the output for bedtemp is always 2000°C
; Configuration file for Duet 3 (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.1.4 on Mon Aug 31 2020 15:45:57 GMT+0800 (中国标准时间) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Big-40" ; set printer name ; Network M552 P0.0.0.0 S1 ; enable network and acquire dynamic address via DHCP M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet ; Drives M569 P0 S1 ; Physical drive 0 goes forwards. X-Axis. M569 P1 S0 ; Physical drive 1 goes backwards. Y-Axis. M569 P2 S0 ; Physical drive 2 goes backwards. ZL-Axis. M569 P3 S0 ; Physical drive 3 goes backwards. ZR-Axis. M569 P4 S1 ; Physical drive 4 goes backwards. E0-Extruder. M569 P5 R-1 ; Physical drive 4 goes backwards. E0-Extruder. M584 X0 Y1 Z2:3 E4 ; set drive mapping M350 X16 Y16 Z16:16 E16 I1 ; configure microstepping with interpolation M92 X100.00 Y100.00 Z2000.00 E418.500 ; set steps per mm M566 X240 Y360 Z30.00 E120.00 P1 ; set maximum instantaneous speed changes (mm/min) M203 X9000.00 Y9000.00 Z360.00 E1200.00 ; set maximum speeds (mm/min) M201 X1000.00 Y1000.00 Z120.00 E250.00 ; set accelerations (mm/s^2) M204 P500 T1000 ; Set print and travel accelerations (mm/s^2) M906 X1800.00 Y1800.00 Z1800.00 E1000.00 I40 ; set motor currents (mA) and motor idle factor in per cent M84 S60 X Y E0 ; Set idle timeout ; Axis Limits M208 X0:400 Y0:400 Z0:800 ; set axis maxima ; Endstops M574 X1 S1 P"io1.in" ; configure active-high endstop for low end on X via pin io1.in M574 Y1 S1 P"io2.in" ; configure active-high endstop for low end on Y via pin io2.in M574 Z1 S2 ; configure Z-probe endstop for low end on Z ; Z-Probe M950 S0 C"io4.out" ; create servo pin 0 for BLTouch M558 P9 C"^io4.in" H5 F120 T9000 A1 R0.7 ; set Z probe type to bltouch and the dive height + speeds G31 P500 X-14 Y21 Z1.503 ; set Z probe trigger value, offset and trigger height M557 X-14:382 Y21:417 S66 ; define mesh grid M376 H10 ; Height (mm) over which to taper off the bed compensation ; Heaters M308 S0 P"spi.cs2" Y"thermocouple-max31856" T"K" F50 ; define temperature sensor number 0 as a K Type M950 H0 C"out3" T0 ; create bed heater output on out3 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 ;Extruder0 M308 S1 P"spi.cs1" Y"rtd-max31865" F50 M950 H1 C"out1" T1 ; create nozzle heater output on out1 and map it to sensor 1 M307 H1 R2.146 C220.3 D4.33 S1.00 V23.9 M143 H1 S400 ;MCU M308 S2 Y"drivers" A"DRIVERS" ; configure sensor 2 as temperature warning and overheat flags on the TMC2660 on Duet M308 S3 Y"mcu-temp" A"MCU" ; configure sensor 3 as thermistor on pin e1temp for left stepper M950 F2 C"out4" Q500 ; create fan 2 on pin "out4" and set its frequency M106 P2 H2:3 L0.15 X1 B0.1 T40:70 ; set fan 2 to turn on at 40° and goes proportionally to full speed at 70° ; Fans M950 F0 C"out7" Q500 ; create fan 0 on pin out7 and set its frequency M106 P0 S0 H-1 C"Part Fan" ; set fan 0 value. Thermostatic control is turned off M950 F1 C"out8" Q500 ; create fan 1 on pin out8 and set its frequency M106 P1 I-1 C"Led" ; Disable fan channel for LED ; Tools M563 P0 S"Extruder" D0 H1 F0 ; define tool 0 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S210 ; set initial tool 0 active and standby temperatures to 0C ;M563 P1 D5 H2 F1 ; 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 ;M563 P2 D2 H3 F2 ; define tool 2 ;G10 P2 X0 Y0 Z0 ; set tool 2 axis offsets ;G10 P2 R0 S0 ; set initial tool 2 active and standby temperatures to 0C ; Automatic power saving____________________________________________ M911 S22.5 R29.0 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss. Power Failure Pause ; Custom settings are not defined ; Miscellaneous M591 D0 P1 S1 C"io5.in" ; Regular filament sensor for E0 M575 P1 S1 B57600 ; enable support for PanelDue ;M564 H0 M302 P1 ;Allows cold extrudes
when I do M98 P"config.g"
I get the following response
HTTP is enabled on port 80
FTP is disabled
TELNET is disabled
Error: in file macro line 53 column 43: M308: string too long
Warning: Sensor number 0 has not been definedwhat am I doing wrong?
-
This is what I get from the config tool for a thermocouple. Try this.
; Heaters M308 S0 P"spi.cs2" Y"thermocouple-max31856" ; configure sensor 0 as thermocouple via CS pin spi.cs2 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 M308 S1 P"spi.cs1" Y"thermocouple-max31856" ; configure sensor 1 as thermocouple via CS pin spi.cs1 M950 H1 C"out1" 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 S280 ; set temperature limit for heater 1 to 280C
@ludo said in Thermocouple not working:
Web Interface Version: 1.22.6
Are you really using 1.22.6? Using the old DWC with RRF3 can be unpredictable sometimes. Best to keep in sync with the firmware releases. Which at the moment is 3.3 beta3 for both firmware and DWC.
-
@phaedrux
When I install FW 3.2.2 , it works fine.
seem like a bug in FW3.3beta2 and 3.3beta3 (both give the same error back) -
Did you try the shorter line I posted in both?
The T"K" wouldn't be required because K is the default.
I'll let DC42 know that something has changed in 3.3 beta for the line length.
-
The strong too long should be fixed in 3.3 RC1.