Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    M308 error with the W value, doc has - config does not

    Scheduled Pinned Locked Moved Solved
    Config Tool
    4
    5
    155
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • magnets99undefined
      magnets99
      last edited by

      Hi All,
      So i'm rebuilding my sd card to work with the new firmware.
      (config.g was from 2.3 and i was advised to just start again for 3.5.4)

      so that's what ii've done
      config.g
      I'm getting these errors at startup:

      Messages 0m47 Info: successfully initialized. 
      0m47 Error: in file macro line 61 column 50: M308: expected number after 'W' 
      0m47 Error: in file macro line 62 column 46: M308: expected number after 'W' 
      0m47 Warning: Sensor number 0 has not been defined 
      0m47 Warning: Heater 0 predicted maximum temperature at full power is 321°C 
      0m46 Warning: Sensor number 1 has not been defined 
      0m46 Error: in file macro line 89: M591: parameter 'D' too high Control Status Console Setup
      

      The config tool has created the config.g file, i have not edited it yet.
      line 61 and 62 is

      ; Sensors
      M308 S0 P"spi.cs2" Y"rtdmax31865" A"Heated Bed" W"K" F50 ; configure sensor #0
      M308 S1 P"spi.cs1" Y"rtdmax31865" A"Nozzle" W"K" F50 ; configure sensor #1
      

      The documentation for m308 states:

      Y"sensor_type" The sensor and interface type, one of: "thermistor", "pt1000", "rtd-max31865", "thermocouple-max31855", "thermocouple-max31856", "linear-analog", "dht21", "dht22", "dht-humidity", "bme280", "bme-pressure", "bme-humidity", "current-loop-pyro", "drivers", "mcu-temp" (see note below regarding "mcu-temp" support on Duet 3 Mini 5+). Duet WiFi/Ethernet with an attached DueX...

      but the config is showing rtdmax31865 no hyphen, is that an issue? which is correct?

      Next issue is even though i have selected 4 as my number of wires, it is submitting the W argument as "K"

      Shouldn't it be W4?
      And i think K is an argument for the thermister type letter.

      To reproduce:
      Visit the configurator (i'm using chromium on linux mint)
      select version 3.5 or 3.6
      choose start new configuration from scratch
      scroll straight down to temperature sensors
      leave eveything default then change
      type to PT100 (MAX31865)
      change input port to spi.cs1
      number of wires to 4
      Click on Show g-code preview for that section, the output is
      M308 S0 P"spi.cs1" Y"rtdmax31865" A"Heated Bed" W"K" F50 ; configure sensor #0

      the expected output is (maybe, i'm not sure hence this post)
      M308 S0 P"spi.cs1" Y"rtd-max31865" A"Heated Bed" W4 K"c" F50 ; configure sensor #0

      Newbie, but tries hard. Has a duet 2 Wifi with a Zesty nimble extruder driver on a watercooled block built into some sort ultimaker 3 chassis.

      jay_s_ukundefined chrishammundefined 2 Replies Last reply Reply Quote 1
      • jay_s_ukundefined
        jay_s_uk @magnets99
        last edited by

        @magnets99 this is one for @chrishamm as he maintains the config tool.
        I agree that your suggested M308 line at the end of your post looks correct

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        magnets99undefined 1 Reply Last reply Reply Quote 0
        • magnets99undefined
          magnets99 @jay_s_uk
          last edited by

          @jay_s_uk
          Thanks Jay!
          I've found the github repository so i'll post it as a bug on there

          Newbie, but tries hard. Has a duet 2 Wifi with a Zesty nimble extruder driver on a watercooled block built into some sort ultimaker 3 chassis.

          dc42undefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @magnets99
            last edited by

            @magnets99 the hyphen doesn't matter but the W parameter is indeed wrong.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • chrishammundefined
              chrishamm administrators @magnets99
              last edited by

              @magnets99 said in M308 error with the W value, doc has - config does not:

              Next issue is even though i have selected 4 as my number of wires, it is submitting the W argument as "K"

              Shouldn't it be W4?
              And i think K is an argument for the thermister type letter.

              Thanks for reporting this, it's now fixed.

              Duet software engineer

              1 Reply Last reply Reply Quote 1
              • T3P3Tonyundefined T3P3Tony marked this topic as a question
              • T3P3Tonyundefined T3P3Tony has marked this topic as solved
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA