M5 Power Module
M5 Power Module, M5 Power Module

Configuration Mode

The diagnostic configuration menu allows for various operating parameters to be set. The parameters can also be saved in non-volatile storage.

The diagnostic configuration menu displays the motor controller serial number as well as the firmware versions number and firmware inception date.

In diagnostic configuration mode the "Enter" key must be hit after each command input.

Primary Configuration Commands:

  • Pressing "x" followed by "Enter" will exit diagnostic configuration mode and return to the diagnostic menu.
  • Pressing "s" followed by "Enter" will save the current parameters in non-volatile memory.
  • Pressing "f" followed by "Enter" will reset the all parameters to their hardcoded factory defaults.

Entering a number followed by "Enter" will prompt for a new setting for the configuration parameter. If "Enter" is pressed before a new value has been entered the current value will remain.

Motor Controller: THR0006
SW Version: 0.8.3 Dec 1, 2014 09:38:00

CommandFunctionDefault ValueDescription
1Motor control flags0x0The motor control flags are a bitfield that sets binary operation parameters.

Currently defined:

  • CONTROL_FLAG_REVERSE_ROTATION (1 << 0)
  • When set, reverses the rotation of the motor.
2Motor poles14Defines the number of poles in the attached motor.
3PWM deadband32Defines the time that band that insures that the motor driving FETs are off. This prevents both the high and low driving complementary FETs to be on at the same time. Units are in processor cycles.
4Commutation threshold0.100000This defines the trigger level at which the commutation algorithm determines it is time to commutate the motor.
5Commutation loss timeout100If the time between detected commutations is greater than this value, in mS, then the algorithm will assume the motor is stalled and reset the commutation algorithm and switch to open loop startup mode.
6Startup duty cycle0.040000The duty cycle that will be used to power the motor when in initial open-loop startup mode.
7Startup initial RPM80The initial startup RPM that will be used when the motor is in initial open-loop startup mode. The algorithm will attempt to commutate at this RPM using the Startup Duty Cycle PWM. The open loop phase will ramp up from this RPM to the startup end RPM at a rate defined by the Ramp Startup time.
8Startup final RPM100he ending startup RPM that will be used when the motor is in initial open-loop startup mode. The algorithm will attempt to commutate at this RPM using the Startup Duty Cycle PWM. The open loop phase will ramp up to this RPM from the startup initial RPM at a rate defined by the Ramp Startup time.
9Startup duration50.000000This parameter defines the duration required to ramp from startup initial RPM to startup end RPM. This value is in units of ????
10Negative deadband-0.020000This defines the largest (closest to 0) negative value that can be set as a motor thruster setpoint. It is assumed that due to stiction the motor will not spin at power levels closer to 0 than this.
11Positive deadband0.020000This defines the smallest positive (closest to 0) value that can be set as a motor thruster setpoint. It is assumed that due to stiction the motor will not spin at power levels closer to 0 than this.
12Negative duty cycle limit-0.990000This value is the limit in the negative direction of applicable power to the motor. The command setpoint will never be less than this value.
13Positive duty cycle limit0.990000This value is the limit in the positive direction of applicable power to the motor. The command setpoint will never be greater than this value.
14Acceleration rate0.000050This value defines the rate at which the motor will change from the current power setpoint to the target setpoint. This value defines the rate when the absolute value of the target setpoint is larger than the current setpoint. The units of this value are change in normalized power per mS.
15Deceleration rate0.000050This value defines the rate at which the motor will change from the current power setpoint to the target setpoint. This value defines the rate when absolute value of the target setpoint is less than the current setpoint. The units of this value are change in normalized power per mS.
16Power manager threshold200.000000This actively limits the power that the thruster will use. The default is 200W.
17Fault control0x0This is a bit-field mask is used to enable or disable the de-energizeing of the motor on the detection of a fault. Faults will still be detected, but if the bit field is cleared the controller will not de-energize on that specific fault condition.

Current fault conditions are defined as:

  • FAULT_UNDERVOLT (1<<0)
  • FAULT_OVERRVOLT (1<<1)
  • FAULT_OVERCURRENT(1<<2)
  • FAULT_OVERTEMP(1<<3)
  • FAULT_STALL(1<<4)
  • FAULT_STALL_WARN (1<<5)
18Minimum voltage19.200001Sets the undervoltage fault trip point in Volts.
19Max bus voltage50.000000Sets the over voltage fault trip point in Volts.
20Max current20.000000Sets the overcurrent fault trip point in Amps.
21Max temperature100.000000Sets the overtemp fault trip point in degrees Celsius.
22Max stall count100Sets the threshold for the number of stall event detections at which to declare a fault.
23Node Id2This is the communication protocol network node id. This is used to designate this device on a multiparty RS-485 communication network. A module will accept a packet which is addressed to its node ID, Group ID, or uses the broadcast ID.
24Group Id129This is the communication protocol network group id. This is used to designate a group of device on a multiparty RS-485 communication network. A module will accept a packet which is addressed to its node ID, Group ID, or uses the broadcast ID.
25Motor Id0This is the motor controller ID. This associates a motor with a specific datum in the motor controller propulsion command. Modules with the same motor ID will all use the same set point when sent an acceptable propulsion command.
26System control flags1The motor control flags are a bitfield that sets binary operation parameters.

Currently defined:

  • ENABLE_LOSS_OF_COMMS_TIMOUT (1 << 0)
  • DISABLE_STARTUP_TONES (1<<1)

When set the controller will set the power setpoint to 0 if communications have been lossed for 1 second.Clearing this flag allows for a greatly reduced communications bandwidth. However the motor will continue to spin even if communications have been lost.

27Fault interlock0This value must be set to the proper password to allow the faults control mask to be changed. The password is 0xdeadbeef
fResetn/aReset parameters to factory default.
sSaven/aSave parameters.
xExitn/aExit configuration mode.

Document Path: M5 Power Module Operator's Manual > Software Guide > Diagnostics / Test Mode > Configuration Mode