workplace.Offset and virtual axes
-
Hi gents,
I'm trying to use move.axes[n].workplaceOffsets[1] as variable array. To allow 9 values to be stored I have to define virtual axes.
I triedM584 X0 Y1 Z2 E3:4 U5 V6 W7 A8 B9 C10 P3
and they all appeared in the object model. But when try to init them all with "-1"
G55 G10 L2 X-1 Y-1 Z-1 U-1 V-1 W-1 A-1 B-1 C-1 G54
only the real XYZ offsets show a value of -1
echo move.axes[4].workplaceOffsets[1] 0.000 echo move.axes[5].workplaceOffsets[1] 0.000 echo move.axes[0].workplaceOffsets[1] -1.000
What else does it need, to make the virtual axes accept workplace offsets?
-
@o_lampe the axes need to be visible to set workplace offsets for them using G10, and to retrieve them from the object model.
-
@dc42
...and G10 L2 is the only way to fill the array or alter single values later?