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

    Where can I find RRF3.0 Object Model reference material?

    Scheduled Pinned Locked Moved
    Tuning and tweaking
    3
    5
    405
    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.
    • SteveYYCundefined
      SteveYYC
      last edited by

      Is there a reference somewhere I can refer too or is the Object Model currently undocumented?

      The GCode Meta Command example references :

      machine.autocal.stddev
      

      and earlier on the page :

      G1 X{Move.Axes[0].Max-10} Y{Move.Axes[1].Min+10}
      

      so that's two more:

      Move.Axes[n].Max 
      Move.Axes[n].Min 
      

      Is there a complete or semi-complete list somewhere?
      The first example is all lower-case and the second is mixed-case. Are the names case sensitive?

      1 Reply Last reply Reply Quote 0
      • gtj0undefined
        gtj0
        last edited by

        The only real reference for the Object Model right now is the model itself. You can get it
        at http://<duetpi>/machine/status

        If you have json_pp or json_reformat installed, the following will get you a better formatted document
        curl http://<duetpi>/machine/status | json_pp

        Beware though, it is still incomplete in places.

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

          Alternatively you can clone https://github.com/chrishamm/DuetSoftwareFramework to your PC, then open file docs/index.html in your browser.

          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

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

            Yet another way: below I have pasted a sample output from M408 P1 with no filter. Paste it into an online JSON reformatter such as http://jsonviewer.stack.hu/ or https://codebeautify.org/jsonviewer.

            Some of the fields will change, for example MainBoard will be replaced by Boards[0].

            {"Electronics":{"MainBoard":{"MaxHeaters":10,"MaxMotors":12,"Name":"Duet 2 WiFi","ShortName":"2WiFi"}},"Heat":{"ColdExtrudeTemperature":160.0,"ColdRetractTemperature":90.0,"Heaters":[{"Current":25.7,"Sensor":0,"State":"Off"}],"Sensors":[{"LastReading":25.7,"Name":"","Type":"Thermistor"},{"LastReading":21.8,"Name":"","Type":"PT100 (MAX31865)"},null,null,null,null,null,null,null,null,{"LastReading":30.7,"Name":"Mcu","Type":"microcontroller embedded temperature sensor"},{"LastReading":0.0,"Name":"","Type":"TMC2660 temperature warnings"}]},"Job":{"File":{"Filament":[],"FirstLayerHeight":0.0,"GeneratedBy":"","Height":0.0,"LastModified":"5358-12-18T06:44:26","LayerHeight":0.0,"NumLayers":0,"PrintTime":0,"SimulatedTime":0,"Size":0},"LastFileName":"","Layer":0,"TimesLeft":{"Filament":0.0,"File":0.0,"Layer":0.0}},"Move":{"Axes":[{"Homed":true,"Letter":"X","Max":150.0,"Min":-150.0,"UserPosition":-18.328,"Visible":true},{"Homed":true,"Letter":"Y","Max":150.0,"Min":-150.0,"UserPosition":-7.264,"Visible":true},{"Homed":true,"Letter":"Z","Max":470.1,"Min":0.0,"UserPosition":465.087,"Visible":true}],"CalibrationDeviation":0.795,"Daa":{"Enabled":false,"MinimumAcceleration":10.0,"Period":0.0},"Idle":{"Factor":0.3,"Timeout":30000},"MeshDeviation":0.000,"PrintingAcceleration":10000.0,"TravelAcceleration":10000.0,"SpeedFactor":100.0},"Network":{"Interfaces":[{"ActualIP":"192.168.1.125","FirmwareVersion":null,"Gateway":"0.0.0.0","Subnet":"0.255.255.255","Type":"wifi"}]},"State":{"CurrentTool":-1,"MachineMode":"FFF","Status":"Idle"}}
            

            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 1
            • SteveYYCundefined
              SteveYYC
              last edited by

              Thank you very much for this!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA