Help
-
Evening guys a question about Gcode meta commands for novices like me.
Eg: sensors.probes [0] .value [0] is part of a command set? if so, where can I find these commands? if not how do i create them? -
Do you mean like this?
-
@Phaedrux
Maybe I explained myself wrong, forgive me.
This is an example:
G1 X {move.axes [0] .max-10} Y {move.axes [1] .min + 10}
Between the braces, we find {move.axes [0] .max-10}
What I'm asking is: is move.axes part of a command set? If so, where do I find these commands -
@Phaedrux
what I don't understand is the MOVE and AXES command in the link you sent me and that I had already seen I didn't find them -
Move and Axes are part of the object model which is used to query various parameters
https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware
Think of it like a tree or a flow chart.
Each object may branch out into other objects.
Where it's necessary to identify the same parameter on many tools or axes, each one is allocated a unique identifier in an array. Arrays are surrounded by square brackets [ ]In the case of move.axes[0].min
It will give the the axis minima you set for axis 0. (X) in your config.g using M208
move.axes[1].min would be Y minima.You can the use curly brackets { } to allow you to do math based on the values.
This allows you to write macros which will automatically update if you were to change the value in M208 for example