getPulseMode()

Description

Get the Servo Module control mode of the machine on the specified axis.

Syntax

machine.getPulseMode(axis);

Parameters

machine: Machine object.

axis: The motion axis for which the Servo Module control mode is to be obtained, which can be AXIS_X, AXIS_Y or AXIS_Z.

Return

pulseMode_t: The control mode set for the machine on the specified axis. There are the following types:

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

See also

getPPU()


Library Reference

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.