Where can I find RRF3.0 Object Model reference material?
-
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? -
The only real reference for the Object Model right now is the model itself. You can get it
at http://<duetpi>/machine/statusIf 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.
-
Alternatively you can clone https://github.com/chrishamm/DuetSoftwareFramework to your PC, then open file docs/index.html in your browser.
-
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"}}
-
Thank you very much for this!