User Manual

Table Of Contents
Commands Reference
226 Advanced Digital Motor Controller User Manual V2.0, July 8, 2019
f2 = Pulse mode
f3 = Analog mode
f4 = Power stage off
f5 = Stall detected
f6 = At limit
f7 = Unused
f8 = MicroBasic script running
f9 = Motor/Sensor Tuning mode
Note:
On controller models supporting Spektrum radio mode f4 is used to indicate Spektrum. f4
to f6 are shifted to f5 to f7
HS - Read Hall Sensor States
Alias: HSENSE HexCode: 31 CANOpen id: 0x2123
Description:
Reports that status of the hall sensor inputs. This function is mostly useful for trouble-
shooting. When no sensors are connected, all inputs are pulled high and the value 7 will
be replied. For 60 degrees spaced Hall sensors, 0-1- 3-4- 6-7 are valid combinations, while
2 and 5 are invalid combinations. For 120 degrees spaced sensors, 1-2- 3-4- 5-6 are valid
combinations, while 0 and 7 are invalid combinations. In normal conditions, valid values
should appear at one time or the other as the motor shaft is rotated
Syntax Serial: ?HS [cc]
Argument: Channel
Min: 1 Max: Total Number of Motors
Syntax Scripting: result = getvalue(_HS, cc)
result = getvalue(_HSENSE, cc)
Reply:
HS= ha + 2*hb + 4*hc Type: Unsigned 8-bit Min: 0 Max: 7
Where:
cc = channel
ha = hall sensor A
hb = hall sensor B
hc = hall sensor C
Example:
Q: ?HS 1
R: HS=5 : sensors A and C are high, sensor B is low
Note:
Function not available on HBLxxxxx products