Running the Drive from the Control Computer
Starting the motor, changing its speed and reading the cause of a trip all involve a handful of registers. In Modbus RTU motor drive integration, the difficult part is often the detail: whether addresses are 0-based or 1-based, how signed values are written, which CRC byte comes first, and which requests reset the watchdog.
TEDEG's Mil-Drive-55 military induction motor drive provides the example for frame settings, control and status words, and selected registers. The example telegrams come from its operating manual; we recalculated their CRCs before publishing. For the physical side of the line (topology, termination, shielding), see wiring a MIL-DTL-38999 motor drive.
Physical Layer and Frame
The Mil-Drive-55 has two isolated RS-485 ports: SER2 (KN5) for platform operation and SER1 (KN9) for test and configuration. Both ports use the same register map and slave address. A service PC can therefore access the same data without using the platform line.
| Parameter | Value |
|---|---|
| Frame | Modbus RTU slave; 8 data bits, no parity, 1 stop bit; CRC-16 |
| Baud rate | 9 600 · 19 200 · 38 400 · 57 600 · 115 200 (default 115 200) |
| Slave address | 1–63; broadcast (0) accepted for write requests without response |
| Function codes | 03 read holding registers (≤ 125) · 06 write single register · 16 write multiple registers (≤ 123) |
| Exception codes | 01 illegal function · 02 illegal address · 03 illegal value · 06 busy |
| Data format | 16-bit registers, big-endian; addresses are 0-based protocol addresses |
| Response time | ≤ 2 ms |
Two details often cause confusion in the field. Addresses are 0-based, so address 17 appears in the telegram as 0x0011. Tools using 1-based "40001"-style numbering need one added. Exception 06 ("busy"), returned when changing a parameter while the drive is running, indicates drive protection rather than a communication fault.
Control Word and Status Word
Control centres on two registers: the control word you write (address 0) and the status word you read (address 17).
Address 0: control word
| Bit | Meaning |
|---|---|
| 0 | Run enable |
| 2 | Fault reset |
| 3 | Emergency stop (coast) |
With run enable set, the motor starts on the active ramp; when it is cleared, the motor stops in the selected stop mode. The emergency stop bit gives a software coast stop. It does not replace the platform's hardware E-stop and STO chain.
Address 17: status word
| Bit | Meaning |
|---|---|
| 0 | Running |
| 1 | Fault (trip) active |
| 2 | Limit switch 1 active |
| 3 | Limit switch 2 active |
| 6 | Ready to run |
| High byte | Active fault code |
One read of the status word tells the control computer whether the motor is running, whether it is ready, and which fault code is active.
Selected Register Addresses
The table selects register addresses from the manual for integration work. It represents an example configuration. The communication data map is adapted to each project; the project documentation contains the valid map for the delivered unit.
| Address | Name | Access | Unit / scale |
|---|---|---|---|
| 0 | Drive control command | RW | bits |
| 1 | Frequency set point | RW | 0.1 Hz, signed |
| 13 | Control mode | RW | enum |
| 17 | Drive status / fault code | R | bits |
| 18 | Output frequency | R | 0.1 Hz, signed |
| 21–23 | Motor phase A / B / C current | R | 0.1 A, signed |
| 29 | Motor temperature | R | °C, signed |
| 35 | Heatsink temperature | R | °C, signed |
| 36 | DC link voltage | R | V |
| 45 | System / safety status | R | bits |
| 70 | Communication settings | RW | bits |
The frequency set point is signed and scaled in 0.1 Hz units: 10.0 Hz is written as 100, and a negative value means reverse. Commands (addresses 0 and 1) are not stored in non-volatile memory. Parameters are retained in CRC-protected non-volatile memory.
Example Telegrams
These examples use slave address 1. All values are hexadecimal, and the CRC low byte comes first. They are taken verbatim from the Mil-Drive-55 operating manual.
Reading
| Function | Request (master → drive) | Response / note |
|---|---|---|
| Read status word (address 17) | 01 03 00 11 00 01 D4 0F | 01 03 02 00 41 78 74: 0x0041 = running + ready, no fault |
| Status with a fault | — | 01 03 02 07 02 3B B5: high byte 07 = DC link overvoltage, low byte bit 1 = trip |
| Read status and measurements (addresses 17–36) | 01 03 00 11 00 14 15 C0 | 20 registers in one request |
Writing
| Function | Request (master → drive) | Note |
|---|---|---|
| Frequency +10.0 Hz (address 1 = 100) | 01 06 00 01 00 64 D9 E1 | Response echoes the request |
| Frequency −10.0 Hz (address 1 = −100) | 01 06 00 01 FF 9C 99 93 | Negative value = reverse |
| Run enable (address 0 = 0x0001) | 01 06 00 00 00 01 48 0A | Motor starts on the active ramp |
| Stop (address 0 = 0x0000) | 01 06 00 00 00 00 89 CA | Stops in the selected stop mode |
| Fault reset (address 0 = 0x0004) | 01 06 00 00 00 04 88 09 | Clears latched faults if the cause is removed |
| Emergency stop (address 0 = 0x0008) | 01 06 00 00 00 08 88 0C | Coast stop |
The −10.0 Hz example shows signed encoding: −100 in 16-bit two's complement is 0xFF9C. The 20-register read saves bus time compared with polling each value separately.
A Typical Control Cycle
The manual's typical sequence is:
- 1.Set the frequency (address 1).
- 2.Give run enable (address 0 = 1).
- 3.Read address 17 cyclically, at least once per watchdog time.
- 4.To stop, write 0 to address 0.
The motor does not start on its own at power-up. Commands are not stored, so the software must resend the frequency and run enable after every power-up.
Watchdog and Fault Handling
The communication-loss watchdog is set to 30, 300, 1,000 or 3,000 ms. When it expires, the motor stops by coasting or on a ramp and the drive reports a fault. Every valid request, read or write, resets the watchdog. The cyclic status read in step 3 therefore resets the watchdog while monitoring the drive.
Faults latch. Once the cause is removed, they are cleared by writing fault reset (0x0004) to address 0; emergency stop and STO faults clear themselves when the signal returns. The control software should read the fault code from the high byte of the status word and show the operator a meaningful message. Showing the cause and resetting on operator confirmation is a safer design than a loop that retries the reset automatically.
Event Log
The Mil-Drive-55 keeps 1,000 time-stamped events in non-volatile memory. The log occupies a separate service area starting at address 1000 and is read and cleared with the same function codes. A single request cannot span both this area and the main map. Log operations are carried out with the motor stopped. Time-stamped records complement live status readings when investigating the conditions in which a field fault occurred.
For platforms that use a CAN-based vehicle network instead of RS-485, see our CAN-Bus and SAE J1939 guide. On the Mil-Drive-55, CAN/CANopen and Ethernet are project options; Modbus RTU is the standard interface. For the drive's control method and STO, see our military motor drive guide; for application examples, see induction motor drives in defence platforms.
Frequently Asked Questions
Are Modbus RTU register addresses 0-based or 1-based?
The addresses in the Mil-Drive-55 manual are 0-based protocol addresses; address 17 is written as 0x0011 in the telegram. In software that uses 1-based numbering, add one to the table address.
How do I write a negative frequency to a motor drive?
The frequency set point is a signed 16-bit value in 0.1 Hz units. For −10.0 Hz, write −100, which is 0xFF9C in two's complement. A negative value means reverse.
Which requests reset the watchdog?
Every valid request, read or write. If the control computer reads the status word at least once per watchdog time, the watchdog will not trip.
How many drives can one RS-485 line control?
The slave address is set from 1 to 63, so up to 63 drives can share one line. For the physical rules of the line, see our wiring guide.
Settle the Data Map for Your Project
Use the map and telegrams as a starting point. Each delivered unit's communication data map and parameter set are defined for its project. Download the Mil-Drive-55 operating manual and technical overview from the technical documents section of the product page. For projects combining the drive, power distribution and interlock logic in one box, see the Mil-Drive MCU-400 military motor control unit. Other models are listed in the military motor drives category. Send integration questions through the contact page, or your motor and application data through the quote form.

