[Motion86]
描述
Get the position of the machine in the workspace.
語法
machine.getActualPos(axis);
machine.getActualPos(x, y, z);
參數
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.
回傳
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.
參考
函式庫參考主頁面
86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。