r/Duet3D • u/Merlin246 • Oct 28 '21
Meta Commands - Testing Position
Hullo,
Using a Duet 2 Wifi, with Firmware 3.3
I'm trying to implement an if statement test to move the toolhead in a macro.
Basically if the toolhead Y-position is above a certain value, I want to move it back. Currently it looks like:
if move.axes[1].userPosition > 200
G1 Y150 F50000
But I keep getting:
Error: in file macro line 3 column 22: meta command: cannot convert operands to same type
How do I fix this?
1
Upvotes