User Manual

Table Of Contents
Commands Reference
296 Advanced Digital Motor Controller User Manual V2.0, July 8, 2019
Syntax Scripting: setconfig(_PMOD, cc, nn)
Number of Arguments: 2
Argument 1: InputNbr
Min: 1 Max: Total Number of Pulse Inputs
Argument 2: Mode
Type: Unsigned 8-bit
Min: 0 Max: 4
Default: See note
Where:
cc = Pulse input number
nn =
0: Disabled
1: Pulse width
2: Frequency
3: Duty cycle
4: Magsensor
5: BMS
6: Pulse Count
7: Flow Sensor
Example:
^PMOD 4 4 : Sets Pulse input 4 in Multi-PWM for Robteq’s MGS1600 magnetic guide
sensor
Note:
Pulse width is designed for capturing RC radio commands. Pulse width must be beween
500us and 3000us, and repeat rate 50Hz or higher
On some products, enabling a pulse input will cause a an offset voltage to be present
when that same input is read as analog
PPOL - Pulse Input Polarity
HexCode: 26
Description:
Inverts the pulse capture value after conversion. When this configuration bit is cleared, the
pulse capture is converted into a -1000 to +1000 command or feedback value. When set,
the converted range is inverted to +1000 to -1000. Center value must always be a number
greater of equal to Min, and smaller or equal to Max. Make the center value the same
as the min value in order to produce a converted output range that is positive only (0 to
+1000)
Syntax Serial: ^PPOL cc nn
~PPOL
Syntax Scripting: setconfig(_PPOL, cc, nn)
Number of Arguments: 2