Machine.getActualPos()

[Motion86]

Description

Get the position of the machine in the workspace.

Syntax

machine.getActualPos(axis);
machine.getActualPos(x, y, z);

Parameters

  • machine: the machine object.
  • axis: the motion axis to get the position, it can be AXIS_X, AXIS_Y or AXIS_Z.
  • x: the target position of X-axis.
  • y: The target position of Y-axis.
  • z: The target position of Z-axis.

Returns

  • getActualPos(axis): double: return the position of the motion axis.
  • getActualPos(x, y, z): no return value, directly use the reference to get the X, Y, Z axis position.

See also


Libraries Reference Home

The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Leave a Comment

Scroll to Top