A loco decoder converts the digital track signal into motor control, lighting and sound. This loco decoder overview explains what they do, which protocols exist, which brands are available and how to choose.
A loco decoder is a small circuit board installed inside the loco. It receives the digital signal on the track — DCC, Motorola (MM) or mfx — and translates it into control signals for the motor, front and rear lighting and additional functions such as sound or smoke unit. Without a decoder a loco runs on analogue DC; on a fully digital layout it either stops or runs uncontrollably.
The command station (such as a Z21 or DCC-EX) sends a drive command with an address: "address 42 at speed 50%". Only the loco with address 42 responds. All other locos ignore the command. This allows running multiple locos independently — the core of digital model railway control.
Address settings and driving behaviour are configurable via CVs (Configuration Variables). The most commonly used is CV29, which sets direction, step mode and address type. See the DCC tools page for the free CV29 calculator.
Not all decoders speak the same protocol:
A sound decoder has a built-in DAC, amplifier and speaker output. It plays driving sounds (diesel, steam, electric), horn, whistles and other sounds based on function commands. Sound decoders are larger and heavier than non-sound variants; in smaller scales (N, TT) the available space is a limiting factor.
Well-known sound brands: ESU LokSound 5 / LokSound 5 micro, Zimo MS series, Doehler & Haass (sound variants). Well-known decoders without sound: ESU LokPilot 5, Zimo MX series, Lenz, Tams, Kühn, Uhlenbrock IntelliDrive.
| Brand | Key lines | Protocols | Sound |
|---|---|---|---|
| ESU | LokPilot 5, LokSound 5 | DCC, MM, Selectrix, M4 (mfx-compatible) | LokSound: yes · LokPilot: no |
| Zimo | MX series (no sound), MS series (sound) | DCC, MM | MS series: yes · MX series: no |
| Doehler & Haass | DH, PD | DCC, Selectrix | Sound variants available |
| Lenz | Gold, Silver, Standard | DCC only | No |
| Uhlenbrock | IntelliDrive | DCC, MM | Variants available |
| Tams Elektronik | LD-G, LD-W | DCC, MM | No |
| Kühn | N series, T series | DCC only | No |
| Märklin / Trix | mfx decoders | mfx, mfx+, MM, DCC | Variants available |
| Roco | various | DCC | No (generally) |
| Piko | various | DCC to be confirmed | No (generally) |
CV8 holds the decoder's NMRA manufacturer ID — a unique number that says who made the decoder, not which model it is. On virtually all decoders CV8 is read-only: you read the value to identify an unknown decoder. Note: on many manufacturers, writing CV8 (for example the value 8) triggers a factory reset — that is a manufacturer convention, not an NMRA requirement (Zimo, for instance, uses CV8=0). See the DCC tools for more on resetting. CV8 says nothing about the decoder version; that is in CV7.
| Manufacturer | CV8 (decimal) | CV8 (hex) |
|---|---|---|
| ESU | 151 | 0x97 |
| Zimo | 145 | 0x91 |
| Lenz | 99 | 0x63 |
| Doehler & Haass | 97 | 0x61 |
| Uhlenbrock | 85 | 0x55 |
| Tams Elektronik | 62 | 0x3E |
| Kühn | 157 | 0x9D |
| Trix | 131 | 0x83 |
| Roco | 161 | 0xA1 |
| Fleischmann | 155 | 0x9B |
| Piko | 162 | 0xA2 |
| Viessmann | 109 | 0x6D |
| Massoth | 123 | 0x7B |
| CT Elektronik | 117 | 0x75 |
| Digitrax | 129 | 0x81 |
| NCE | 11 | 0x0B |
| TCS (Train Control Systems) | 153 | 0x99 |
| SoundTraxx | 141 | 0x8D |
Source: NMRA S-9.2.2, Appendix A (Manufacturer ID codes), rev. 20 Jan 2020. Kühn is listed as "Kuehn Ing." (does not necessarily cover KM1-branded products). SoundTraxx appears under the company name "Throttle-Up". Märklin is not in the NMRA list — Märklin decoders work primarily via mfx/Motorola, not via an NMRA CV8 ID. Roco (161) and Fleischmann (155) have merged into Modelleisenbahn GmbH; which ID recent decoders actually return is to be confirmed on a layout.
F0 is the headlight (front/rear, automatically switched by the decoder based on direction). F1 to F28 are freely assignable: each brand maps different functions to these keys, such as motor sound on/off, shunting mode (limited top speed), pantograph up/down, smoke unit, cab light. ModelRailPro operates F0 to F28 as standard via the driving interface.
The upper limit of function count varies by decoder brand and protocol; above F28, availability is brand- and protocol-dependent and not uniformly supported across all command stations.
Need a command station comparison? See Z21 vs DCC-EX or Z21 vs Märklin CS3. Setting CV values? Use the free DCC tools.