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