getActualPos()

描述

取得機器在工作空間中的位置。

語法


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

參數

machine:為 Machine物件。

axis:欲取得位置之運動軸,可為 AXIS_X, AXIS_Y or AXIS_Z。

x:取得 X 軸的目標位置。

y:取得 Y 軸的目標位置。

z:取得 Z 軸的目標位置。

回傳

getActualPos(axis):

double:回傳該運動軸之位置。

getActualPos(x, y, z):

無回傳值,直接使用參考獲取 X, Y, Z 軸位置。

See also


函式庫參考主頁面

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