Machine.isDirectionReversed()

[Motion86]

描述

Whether the machine is set to move in the reverse direction in the specified axis.

語法

machine.isDirectionReversed(axis);

參數

  • machine: is the Machine object.
  • axis: is the axis of motion to get information, can be AXIS_X, AXIS_Y or AXIS_Z.

回傳

bool.

  • true: The axis is reverse motion.
  • false: The axis is not reversed. Or the setting is wrong, which means the machine does not exist or the setting is done after the machine is started.

Please make sure the machine exists and make sure the machine is set up before starting the machine.

參考


函式庫參考主頁面

86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。

發表評論

上部へスクロール