Modellbahn Keks
Welcome!
Our cookies offer you a fast, relaxed and full-featured shopping experience. Some are necessary to operate the website and its functions. Others help us to improve our services. If you agree to this, simply consent to the use of cookies for preferences, statistics and marketing by clicking on "OK". Alternatively, you can deactivate individual cookies under "Customise cookies" or all cookies, except those required for the function of our website, under "Reject all".
Align the direction, motor and lighting correctly

Locomotive Runs the Wrong Way After Installation: Correct the Direction

If the command station shows “forward” while the locomotive moves backwards, the cause may be CV 29, reversed motor wires, an incorrectly orientated plug or an unsuitable definition of the vehicle front. The decisive question is whether the headlights and tail lights also respond incorrectly.

Observe the motor and lighting separately Do not overwrite CV 29 blindly Inspect plugs only with the power switched off
The quick answer

How should a locomotive running in the wrong direction be corrected?

If the locomotive moves backwards in response to a forward command and the direction-dependent lamps also illuminate at the wrong end of the vehicle, Bit 0 in CV 29 can be toggled in DCC operation. This setting reverses both the digital direction and the direction-dependent lighting functions.

If only the motor runs in the wrong direction while the white headlight already illuminates at the intended front of the vehicle, the motor wires have probably been reversed. On a freely wired decoder, the orange and grey motor wires are swapped after the power has been disconnected completely. Some decoder families alternatively provide a separate motor-reversal setting.

If only the lighting appears at the wrong end while the locomotive moves correctly, this is not a direction error. In that case, inspect the lighting outputs, white and yellow wires or the function mapping .

Before making any changes
Define the front of the vehicle clearly

On a steam locomotive, the smokebox door is usually considered the front. On a multiple unit, cab 1 is often used. Some diesel prototypes were routinely operated with the long bonnet leading. The model instructions, cab numbers and intended operating concept remain decisive.

Observe the motor and lighting separately

Identify the symptoms in a few seconds

Locomotive backwards, front headlight correct

The motor is running against the lighting logic. Check the orange and grey motor wires, plug orientation or a separate motor-reversal setting.

Locomotive backwards, light at the rear

The motor and lighting are reversed together. With DCC, CV 29 Bit 0 is the typical correction.

Locomotive forwards, light at the rear

The motor direction is correct. Check the white and yellow lighting wires, vehicle circuit board or direction-dependent mapping.

Wrong only in a consist

The normal locomotive direction remains correct. Check the direction entry in the consist or Bit 7 of the DCC consist address.

Wrong only in analogue operation

Under the basic DCC definition, CV 29 Bit 0 concerns digital direction. Treat the analogue mode, track polarity and manufacturer-specific parameters separately.

Different after refitting the body

Wires may be trapped or a plug may have become loose. Open the vehicle immediately and inspect it with the power switched off.

1

Select forward

Set the command station to a low speed step and an unambiguous forward direction.

2

Observe the movement

Determine which cab or end of the locomotive is leading.

3

Compare the lighting

Check whether the white headlight illuminates at the moving front.

4

Select the correction

Change the CV, motor connection or lighting mapping individually and deliberately.

Decoder families and programming tools

Manufacturer pages for correcting the direction

Basic DCC functions are comparable, but additional motor and lighting reversal options differ between decoder families.

Leave every other setting unchanged

Reverse the direction using CV 29 Bit 0

CV 29 contains several settings in a single value. In addition to direction, it may contain settings for speed steps, analogue operation, RailCom, the speed curve and short or long addressing. CV 29 must therefore not be replaced with an arbitrary value from a table.

To reverse only the DCC direction, toggle Bit 0. Add 1 when the current value is even, or subtract 1 when it is odd. The calculator performs exactly this change and leaves every other bit untouched.

This method is suitable when the direction and direction-dependent lighting must be reversed together. It is not automatically the best solution when only the motor wiring is incorrect.

CV 29 Direction Calculator

Read the current CV 29 value and toggle Bit 0 deliberately.

Direction is currently normal
Previous CV 29 value 6
New CV 29 value 7

The new value enables only the reversed DCC direction.

Distinguish between direct wiring and plug-in decoders

When should the motor wires or decoder plug be checked?

Installation type Typical symptom Appropriate correction
Decoder with loose wires Motor runs against the already correct lighting direction Swap the orange and grey motor wires after disconnecting every source of power
NEM 652 plug The motor and lighting behave unexpectedly after installation Compare the pin-1 markings on the plug and socket with the power switched off
Next18, PluX or 21MTC Several functions are missing after installation Check the seating, orientation and possible offset contacts; do not rotate or force the decoder
Factory-fitted vehicle circuit board Motor and lighting can be inverted separately Use the manufacturer-specific software or decoder option
Red and black DCC track wires Attempting to reverse the direction by swapping them This is unnecessary; the digital direction is defined by the driving command
Märklin mLD3 or mSD3 Only the motor or lighting direction is wrong Check the decoder family's separate motor- or lighting-inversion options
Make a targeted correction without creating new faults

Set the direction correctly in eight steps

1

Define the front of the vehicle

Check the cab, locomotive markings and model instructions, then document the intended forward end.

2

Test the locomotive by itself

Select a low speed step and move the locomotive in both directions without any coaches attached.

3

Observe the lighting behaviour

Determine whether the white headlight matches the actual movement or the direction command.

4

Save the original values

Read and save CV 29 and, where appropriate, the complete decoder project.

5

Select the correction method

Use a combined reversal through CV 29 or a separate motor- or lighting-direction correction.

6

Make only one change

Either write a CV value or alter the wiring, but do not do both at the same time.

7

Test both directions

Check the motor, headlights, tail lights, sound sequence and braking functions.

8

Update the locomotive record

Align the command station, locomotive card and consist settings with the new definition of the vehicle front.

Not every direction fault is caused by CV 29

Consists, analogue operation and lighting mapping

The locomotive is wrong only in a consist

In DCC, Bit 7 in CV 19 can reverse the direction within a consist address. The command station may also define the locomotive as reversed inside the consist.

Analogue and digital directions differ

CV 29 Bit 0 defines the digital direction. DC or AC analogue operation follows polarity and manufacturer-specific settings.

The sound does not match the movement

After reversing the motor, retest braking, door and cab sequences. Sound logic and direction may be linked in the project.

White and red lamps are reversed

Do not reverse the driving direction again. Correct the lighting wires, circuit-board assignment and function mapping separately.

The multiple unit has two decoders

The motor and function decoders may use separate direction values or decoder locks. Check both projects individually.

The locomotive is wrong again after a reset

The reset removed the individual direction reversal. Restore the saved project or documented CV value.

From Z gauge to garden railways

Special considerations by gauge and interface

Gauge Typical installation Important consideration
Z / N Direct wiring, NEM 651 or Next18 Wires and solder pads are extremely small; avoid resoldering the motor wires unnecessarily
TT PluX12, Next18 and NEM 651 Check the circuit-board pin assignment and decoder instructions together
H0 NEM 652, PluX22, 21MTC and Next18 The widest variety of DCC, mfx, Motorola and OEM circuit boards
H0e / H0m Micro decoders and direct wired connections Allow for extremely limited installation space despite the H0 scale
0 / 1 / G High-output decoders and screw or solder connections Check multiple motors, servos, lighting and sound functions separately
Suitable digital technology at Modellbahnshop

Programmers, testing devices and decoders by gauge

When replacing a decoder, the interface, motor current, protocol, output assignment and installation dimensions must match the model. The product cards do not provide availability information.

Check the direction, motor and lighting separately

Programming and diagnostic devices

NEM 652, PluX22 and 21MTC

Locomotive decoders for H0 gauge

Compact interfaces

Decoders for TT, N, Z, H0e and H0m

High motor and function currents

Decoders for Gauges 0, 1 and G

Frequently asked questions about incorrect direction

FAQ: Locomotive runs the wrong way after decoder installation

Which CV changes the direction in DCC?

Bit 0 in CV 29 reverses the digital direction and direction-dependent lighting functions.

How do I change only Bit 0 in CV 29?

Add 1 when the current value is even, or subtract 1 when it is odd. Every other CV 29 setting remains unchanged.

When should the orange and grey motor wires be swapped?

Swap them when only the motor runs in the wrong direction while the direction-dependent lighting already matches the intended vehicle front.

Does swapping the red and black wires reverse the DCC direction?

No. The digital direction is determined by the DCC driving command. Red and black are the decoder's track connections.

Why is the wrong light illuminated after changing CV 29?

CV 29 Bit 0 reverses the motor and lighting logic together. If only the motor wiring was wrong, correct the motor connection instead.

Why does the locomotive run backwards only in a consist?

The direction entry in the command station or Bit 7 of the DCC consist address in CV 19 may reverse the locomotive within the consist.

Does CV 29 also affect analogue operation?

Under the basic DCC definition, Bit 0 concerns digital operation. Check the analogue direction and manufacturer-specific settings separately.

Can a reversed NEM 652 plug change the direction?

Incorrect orientation may affect the motor and lighting functions. Compare the pin-1 markings on the decoder and socket with the power switched off.

How can I reverse only the motor on a Märklin decoder?

Certain mLD3 and mSD3 decoders provide separate settings for motor and lighting inversion. Consult the CV table for the exact decoder family.

Must the locomotive register again after changing the direction?

A normal DCC CV change does not require registration. An mfx locomotive record is normally retained, but registration should be checked after larger project changes.

The motor, lighting and vehicle front must all mean the same direction

Further decoder guides, interface comparisons and buying advice are available in the central model railway guide.

Open the Model Railway Guide