Skip to content

MST 400-200 WK — RS-232 Communication Reference

Complete reference for serial communication, configuration, and parameter programming of the Plettenberg MST 400-200 WK motor controller.


Table of Contents


Physical Connection

Required Hardware

You will need one of the following to connect a PC:

  • USB → RS-232 serial adapter
  • MST programming adapter (optional order)
  • Standard serial cable (not a null-modem cable)

IMPORTANT

Do not use a null-modem (crossover) cable. Use a straight-through serial cable.

For cable lengths over 2 m, screened CAT5 cable must be used. Cable length and quality directly affect signal integrity.

Part NumberTypeConductors
Alpha Wire 3306 SL005Sensor cable6 × AWG28
Alpha Wire 3308 SL005Sensor cable8 × AWG28
Alpha Wire 3310 SL005Sensor cable10 × AWG28

All cables comply with MIL-W 16878 Type B specification.


Interface Parameters

The RS-232 interface is fixed at the following settings:

ParameterValue
Baud rate115,200 baud
Data bits8
ParityNone
Stop bits1

NOTE

This is commonly written as 115200/8N1. Make sure your serial terminal is configured exactly to these values or the controller will not respond correctly.


Pin Allocation

The MST uses a DE-9 (Sub-D 9-pin male) connector for RS-232, analog, and digital signals.

Standard Analog / Digital / RS-232 Variant

DE-9 (front view, male connector)

 ┌─────────────────────┐
 │  1   2   3   4   5  │
 │  ●   ●   ●   ●   ●  │
 │    6   7   8   9    │
 │    ●   ●   ●   ●    │
 └──○─────────────────○┘
PinDesignationDescription
1Brake input (Aux)Analog input 0–5 V
2RxDRS-232 receive signal
3TxDRS-232 transmit signal
4Reverse switch0 V = Forward / 5 V = Reverse
5GNDSignal Ground
6Throttle inputAnalog input 0–5 V
7DNCDo not connect
8Impulse input5 V Digital input
9+5 V (max. 30 mA)Potentiometer supply

Optional CAN 2.0 / RS-232 Variant

PinDesignationDescription
1RxDRS-232 receive signal
2CAN-HCAN high signal
3CAN-LCAN low signal
4NCNot connected
5NCNot connected
6TxDRS-232 transmit signal
7GNDSignal Ground
8DNCDo not connect
9+5 V (max. 30 mA)Supply for additional equipment

WARNING

The cable shield should be connected to Pin 9 (GND) only. Do not connect the shield to the battery negative terminal or the motor controller housing.

CAUTION

The interfaces are not galvanically isolated. A short-circuit on the 5 V supply can destroy the Hall sensor power supply and potentially damage the controller while the motor is running.


Minimal Wiring

For RS-232-only configuration (no analog control), connect only the essential signals between the MST and the PC/RS-232 adapter:

MST (DE-9)          PC / RS-232
──────────          ───────────
  Pin 2 (RxD)  ←── Pin 3 (TxD)
  Pin 3 (TxD)  ──→ Pin 2 (RxD)
  Pin 5 (GND)  ─── Pin 5 (GND)

TIP

When adding analog throttle, analog braking, and a reverse switch, also connect:

  • Pin 6 (Throttle input) via a 5 kΩ potentiometer between Pin 9 (+5 V) and Pin 5 (GND)
  • Pin 1 (Brake/Aux input) via a 5 kΩ potentiometer similarly
  • Pin 4 (Reverse switch) to a toggle switch between Pin 5 (GND) and Pin 9 (+5 V)

Startup Behaviour

When power is applied, the MST immediately outputs a startup message over RS-232 containing the current configuration and command list:

* Kommandoliste:
* 's' Serieller Sollwert
* 'p' Poti Sollwert
* 'i' Impuls Sollwert
* 'f' Forward
* 'r' Reverse
* '0' Off
* 'b' Brake
* 'm' 100% PWM(max)
* '9' 90% PWM
...
* 'w' write setup
* 'h' Help

MST400-200 V8.4
Input = Analog
AnalogStop/Start/Full/BrakeMax = 500mV/549mV/4499mV/4499mV
ImpulsStop/Start/Full = 1150µs/1200µs/1900µs
Timing Forward/Reverse = 0° / 40°
...

NOTE

On power-up, the controller always defaults to Analog input mode, regardless of previous serial sessions. You must send s to switch to serial control each time.

IMPORTANT

If the MST was delivered with CAN 2.0 firmware, the CAN bus interface is active immediately after power-up. While CAN messages are being received, switching to serial control input is blocked.


Operational Commands

All commands are single-byte (1 character). No CR/LF is required at the end of any command.

Input Source Selection

CommandDescription
sSwitch to serial RS-232 input
pSwitch to analog input (potentiometer)
iSwitch to pulse (PWM) input

Direction Control

CommandDescription
fForward
rReverse

WARNING

Reversing direction on motors with advanced timing significantly reduces power and efficiency. For high-power reverse applications, use a motor with neutral timing.

Throttle Control

CommandPWM Level
m100% (maximum)
990%
880%
770%
660%
550%
440%
330%
220%
110%
++1% (increment)
-−1% (decrement)
g+0.1% (firmware V2+)
l−0.1% (firmware V2+)

Stop & Brake

CommandDescription
0Stop (cut motor current)
bBrake

Utility

CommandDescription
hHelp — re-outputs the command list
tActivate timeout for serial interface (firmware V2+)
aEnter Adjust mode (configuration)
eExit Adjust mode (without saving)

Adjust Mode

Adjust mode allows reading and writing persistent configuration parameters.

Entering Adjust Mode

1. Power on the MST
2. Send:  s    ← switch to serial input
3. Send:  a    ← enter Adjust mode

NOTE

Both s and a must be sent after the initialisation phase completes (i.e. after the startup message has been printed).

2-Byte Commands (Adjust Mode)

CommandDescription
sdSet all parameters to default values
spShow (print) current parameters
wpWrite (save) parameters to non-volatile memory
seShow the last 8 errors

TIP

Always end a configuration session with wp to persist your changes. Sending e exits without saving.

Exiting Adjust Mode

CommandEffect
wpSave and remain in Adjust mode
eExit without saving

Configuration Parameters

All configuration uses 5-byte commands: a 2-letter code followed by a zero-padded 3-digit value (e.g. cl200 sets current limit to 200 A).

Speed & Current Limits

CommandDescriptionRangeDefaultUnit
rpRPM limit001–240240× 1000 rpm
clPhase current limit010–300300A
ilInput (battery) current limit010–300300A

IMPORTANT

Set pole pairs (pp) before setting the RPM limit (rp). The pole pair count directly affects the real shaft speed limit.

To set a finer speed limit (e.g. ~2500 RPM on a 30-pole motor):

  1. pp001 — temporarily set pole pairs to 1
  2. Calculate: 15 pp × 2500 RPM = 37,500 eRPM
  3. rp038 — set limit (38 × 1000 = 38,000 eRPM)
  4. pp015 — set correct pole pairs (15 pairs = 30 poles)
  5. Verify with sp → should show ~2533 RPM
  6. wp — save

Voltage Limits

CommandDescriptionRangeDefaultUnit
uvUndervoltage cutoff010–050010V
ovOvervoltage cutoff014–063060V

CAUTION

Hardware overvoltage protection triggers at 400 V (shutdown) and 405 V (risk of damage), regardless of the ov software setting.

Temperature Limits

CommandDescriptionRangeDefaultUnit
mtMotor temperature limit070–100100°C
ctController temperature limit070–110110°C

WARNING

The controller will hard-shut down at 110 °C internally, regardless of the ct setting. Always ensure adequate water cooling (recommended: 4–7 L/min at ≤ 1.5 bar, 25 °C inlet temperature).

Throttle — Forward Direction

CommandDescriptionRangeDefaultUnit
teThrottle exponential curve000–100000%
tiThrottle increase rate001–653131count/ms
tdThrottle decrease rate001–999328count/ms
tlThrottle limit (max position)005–100100%
tmThrottle minimum (start point)001–100002%

Throttle — Reverse Direction

CommandDescriptionRangeDefaultUnit
riReverse throttle increase rate001–653066count/ms
rdReverse throttle decrease rate001–999328count/ms
rlReverse throttle limit005–100100%
rmReverse throttle minimum001–100002%

Brake Parameters

CommandDescriptionRangeDefaultUnit
biBrake increase rate001–653131count/ms
bdBrake decrease rate001–653328count/ms
blBrake limit001–100100%
bmBrake minimum000–100005%

TIP

At bl100 (100% brake), the motor is fully short-circuited and no braking energy is returned to the battery. If a mechanical brake is also present, set bl to a maximum of 90%.

Analog Input Calibration

CommandDescriptionRangeDefaultUnit
abFull braking analog input voltage006–498450× 1/100 V
afFull throttle analog input voltage122–498450× 1/100 V
ahStop (halt) analog input voltage012–366050× 1/100 V
asStart analog input voltage018–379055× 1/100 V

NOTE

Values are in units of 1/100 V, so 450 = 4.50 V, 050 = 0.50 V.

TIP

Dual-input vs. single-input mode is controlled by the ab value:

  • If ab > ah: controller uses Throttle for acceleration + Aux for braking (two separate inputs)
  • If ab < ah: controller uses the Throttle input only for both — suited for a centre-neutral lever

CAUTION

If ah is set too low, a Hall-sensor throttle grip (min output ~1.2 V) may prevent the controller from detecting "stop" on power-up, leaving the motor locked out. Set as at least 0.02–0.1 V above ah to avoid rapid on/off switching at low throttle.

WARNING

If af is set too high (above ~4.1 V), Hall-sensor throttle grips may never reach full throttle due to their limited output voltage range.

Pulse (PWM/RC) Input Calibration

CommandDescriptionRangeDefaultUnit
ifFull throttle pulse width120–220190× 10 µs
ihStop (halt) pulse width080–170115× 10 µs
isStart pulse width085–175120× 10 µs

NOTE

Values are in units of 10 µs, so 190 = 1.90 ms, 115 = 1.15 ms. Most RC receivers default to 1.1 ms (stop) and 1.9 ms (full throttle). Set is around 5 counts (50 µs) above ih to avoid hunting at low throttle.

Motor & Interface Settings

CommandDescriptionRangeDefaultUnit
ppNumber of motor pole pairs001–100001
otRS-232 output repeat interval007–999200ms
idCAN bus base ID000–999256

Output Repeat Time Reference (ot)

ValueUpdate Rate
2005 Hz
10010 Hz
05020 Hz
02540 Hz
02050 Hz
010100 Hz
008125 Hz

Acceleration/Deceleration Rate Reference

Applies to ti, td, ri, rd, bi, bd:

ValueRamp Time
6530.1 s
3260.2 s
2180.3 s
1630.4 s
1310.5 s
0930.7 s
0651.0 s
0441.5 s
0332.0 s
00165.3 s

Live Data Output Protocol

While the motor is running, the MST continuously sends telemetry over RS-232 at the interval defined by ot.

Analog Control Mode Output

T=3.649V,a=0.000V,PWM= 787,U= 34.9V,I= 3.7A,RPM= 1482,con= 28°C,mot= 26°C

Serial Control Mode Output

S=3.649V,a=0.000V,PWM=1000,U= 35.0V,I= 4.0A,RPM= 1896,con= 28°C,mot= 26°C

NOTE

The first field changes designator depending on active input mode:

  • T = Throttle (analog input active)
  • S = Serial input active

Brake Active Output

When braking is active, the throttle and aux designators swap case:

t=0.000V,A=2.501V,PWM= 500,U= 35.0V,I= 0.0A,RPM= 0,con= 28°C,mot= 26°C
  • t (lowercase) = throttle is inactive
  • A (uppercase) = Aux/Brake input is active

Field Reference

FieldDescriptionUnit
T / tThrottle input voltageV
a / AAux/Brake input voltageV
PWMPulse width modulation value‰ (0–1000)
UInput (battery) voltageV
IPhase currentA
RPMRotational speedrpm
conMotor controller temperature°C
motMotor temperature°C

NOTE

PWM is reported in per-mille (‰), not percent. A value of 1000 = 100%.


RS-232 Control Examples

Basic Drive Sequence

s          ← switch to serial control (required after power-up)
f          ← set direction: forward
1          ← 10% throttle PWM
+++        ← 13% throttle (three +1% steps)
3          ← jump to 30% throttle
m          ← full throttle (100%)
0          ← stop motor

Combined Command Sequences

1f         ← run forward at 10% throttle
3+++       ← increase throttle to 33%
m          ← increase to maximum throttle
0          ← switch off motor current
1b         ← brake at 10% brake PWM
3+++       ← increase brake to 33%
1--r       ← run at 8% throttle in reverse

Configuration Session Example

s          ← switch to serial mode
a          ← enter Adjust mode

sp         ← show all current parameters

cl180      ← set phase current limit to 180 A
il150      ← set input current limit to 150 A
uv028      ← set undervoltage cutoff to 28 V
mt090      ← set motor temperature limit to 90 °C
pp025      ← set motor pole pairs to 25
rp240      ← set RPM limit to 240,000 eRPM
ti131      ← throttle ramp up: 0.5 s
td328      ← throttle ramp down: 0.2 s
ot010      ← set output to 100 Hz

wp         ← write (save) all parameters

e          ← exit Adjust mode

TIP

Use se in Adjust mode to retrieve the last 8 error codes — useful for diagnosing intermittent faults that have already cleared.

IMPORTANT

Use sd with caution — it resets all parameters to factory defaults and requires a full reconfiguration of your setup.


Error Codes & Status LED

The status LED on the connection side reflects the controller's fault state.

LED BehaviourFaultError Code
Steady ONNo fault
1 flashUndervoltage0x0001
2 flashesOvervoltage0x0002
3 flashesOvercurrent0x0004
4 flashesController overtemperature0x0008
5 flashesMotor overtemperature0x0010
6 flashesMotor jammed0x0020
7 flashesSensor fault0x0040
9 flashesAnalog input fault (wire break)0x0100
10 flashesPulse width fault0x0200

NOTE

Multiple faults can be active simultaneously. Error codes are bitwise OR'd together. For example: 0x0240 = Pulse width fault (0x0200) + Sensor fault (0x0040).


Document based on Plettenberg MST 400-200 WK Operating Manual — OM_MST_400-200_WK_V8.10_ENFirmware Version 8 · © 2022 Plettenberg Elektromotoren GmbH & Co. KG

Released under the MIT License.