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

    Filament totalDistance

    Scheduled Pinned Locked Moved
    Filament Monitor
    2
    2
    165
    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.
    • Grant_fmundefined
      Grant_fm
      last edited by

      I'm trying to use sensors.filamentMonitors[0].calibrated.totalDistance but I'm failing badly. The call worked twice but then it stopped after I rebooted. I've not worked out how to get it working again? I'm using this variable to set up an ercf to measure the distance of filament retracted for a change over.

      I'm able to call attributes such as .status, .type, mmPerPulse etc.... everything but the one I need (.totalDistance). The configuration of the pulse filament meter is

      M591 D0 P7 C"e0stop" S2 A1 R80:120 L1.95 E4.0

      The error I get is:
      M118 S{sensors.filamentMonitors[0].calibrated.totalDistance}
      Error: line 22 column 8: M118: reached null object before end of selector string

      ??

      M115
      FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.5.0-rc.3 ELECTRONICS: Duet WiFi 1.02 or later + DueX5 FIRMWARE_DATE: 2024-01-24 17:56:24

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

        @Grant_fm you have to extrude a minimum amount of filament (usually 10mm) with associated XY movement before calibrated values are available.

        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
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA