isDirectionReversed()

描述

機器在指定軸是否被設定為反向移動。

語法


machine.isDirectionReversed(axis);

參數

machine:為 Machine物件。

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

回傳

bool:

true: 該軸為反向運動。

false: 該軸無反向。或者設定錯誤,代表機器不存在或者在機器啟動之後才做設定。
請確保機器存在,並確保對機器做設定必須在啟動機器之前。

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.