position

position#

method

MAX31X.position(channel: int, percent: int = None) int#

Sets the position of the requested channel when in closed loop mode. If no position is specified, simply returns the current position.

Parameters:
channelint

The channel to get or set the position for (1-n).

percentint, optional

The position as a percentage of maximum travel, range 0 to 32767, equivalent to 0 to 100%. If not specified (None), current position is returned.

Returns:
posint

The position as a percentage of maximum travel, range -32767 to 32767, equivalent to -100 to 100%. The result is undefined if not in closed loop mode.