Conditional sentences
-
Hello. Im trying to use this feature. What I want to do is crete a routine that when there is a tool change from T0 to T1, the Z lifts up 5 mm before moving into T1, but only is Z is bigger or equal to 4 mm, if Z is smaller than that value the lifting should not happend. Can anyone tell me if this is possible to do?
-
You could try something like:
if {move.axes[2].machinePosition >= 4.0} G91 ; relative moves G1 Z+5 Fnnnnn ; move up z
you would want this in one of the tool change macros, maybe tpre1 or tpost0.
-
@Zhang-Jianyu Thank you for the time you take to help me!
I would like to learn, can you explain me where the {move.axes[2].machinePosition comes from, where can I find a list of this functions
move.axes[2] is the Z axis? where is that defined?
Thanks in advance -
@Tinchus It's conditional gcode based on the object model.
https://duet3d.dozuki.com/Wiki/Object_Model_of_RepRapFirmware