getPulseMode()

描述

取得機器在指定軸的 Servo Module 控制模式。

語法


machine.getPulseMode(axis);

參數

machine:為 Machine物件。

axis:為欲取得 Servo Module 控制模式之運動軸,可為 AXIS_X, AXIS_Y or AXIS_Z。

回傳

pulseMode_t:為該機器在指定軸所設定的控制模式。共有以下幾種:

  1. PULSE/DIR
  2. CW/CCW
  3. PULSE A/B

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.