@dc42
Hi,
Upgraded to 3.6.0-rc.1.
And if I run this code:
var ind = 0
var driverAddress = 50.0
while exists (move.axes[{var.ind}].letter)
if move.axes[{var.ind}].letter == "'a"
set var.driverAddress = move.axes[{var.ind}].drivers[0]
set var.ind = var.ind +1;
M569.1 P{var.driverAddress} T2 C1000 S200 R150 I50 D0.1 V500 A1 E4.0:2.0 D1;
it fails with "Error: in file macro line 9 column 29: M569: expected numeric operand"
If I echo what the variable is. Ie this code:
var ind = 0
var driverAddress = 50.0
echo var.driverAddress
while exists (move.axes[{var.ind}].letter) ;go through all axis in order till I find the correct one.
if move.axes[{var.ind}].letter == "'a"
set var.driverAddress = move.axes[{var.ind}].drivers[0]
set var.ind = var.ind +1;
echo var.driverAddress
M569.1 P{var.driverAddress} T2 C1000 S200 R150 I50 D0.1 V500 A1 E4.0:2.0 D1;
I get this from the console:
50.0
51.0
Error: in file macro line 9 column 29: M569: expected numeric operand
But if I run it with just a hard set driverAddress like below.
var ind = 0
var driverAddress = 51.0
echo var.driverAddress
M569.1 P{var.driverAddress} T2 C1000 S200 R150 I50 D0.1 V500 A1 E4.0:2.0 D1;
It works fine with no error.
Output from console:
51.0
This is all on a duet3 in standalone mode.