DCC CV Calculator & Speed Matching Tools
← DCC Library · Sound files, software & manuals
Seven DCC workbench tools, from address changes to matching a fleet.
Calculate CV29, CV17/CV18 addresses, CV19 consists and CV21/CV22 functions. Build an editable 28-point speed table, compare timed scale speeds, or decode individual bits. Choose the job below; each tool explains the result.
Use these tools beside your throttle or programmer. Read and record the existing settings first. Calculations happen here; this page does not connect to or program a decoder.
This calculator needs JavaScript enabled. If the controls do not appear, reload the page or use Digitrax’s CV reference.
Understand and Change CV29
Load your current value, then change the options you need. The starting value of 6 is an example, not a reading from your locomotive.
For locomotive decoders, values 0–63. Higher values need the exact decoder’s instructions.
Only enable features your decoder supports. CV29 does not choose between 28 and 128 on the throttle. Use the manufacturer’s speed-step instructions if working with 14-step equipment.
Calculate a Long Locomotive Address
Enter the road number or address you want. Your command station or DecoderPro’s address wizard is usually the easiest way to program it.
Encoding range: 1–10239. Many systems use a narrower range, especially for numbers below 128 or above 9999. Select the address as long/extended on the throttle and follow your system’s programming procedure.
Decode existing CV17 and CV18 values
These bytes show the stored long address. CV29 determines whether that address is selected.
Calculate a Classic CV19 Consist
For decoders using the classic 7-bit advanced-consist address. Use your system’s consist controls if it manages these settings for you.
Address 0 clears this classic consist. Individual locomotive addresses are retained. This tool does not configure command-station grouping or extended consists using CV20.
Decode an existing CV19 value
Learn speed matching, consist direction and function control →
Choose Functions Controlled by the Consist
For decoders that use classic CV21/CV22 function masks. Check the functions you want to respond to the consist address. Unchecked functions remain under the individual address, subject to your decoder’s rules.
Starts with example values of 0. Load the actual values before changing a working consist.
Decoder-specific exception: TCS documents that WOWSound Version 5 disables the corresponding F0 lighting output while in a CV19 consist when its CV22 bit is clear, rather than leaving that output under the individual address. Check the TCS Version 5 CV22 instructions or your exact decoder manual before using these masks.
F0 forward/reverse refers to the locomotive’s normal direction. Function numbers do not universally mean horn, bell or lights; consult the installed sound project. These masks do not assign effects to function buttons.
Build and Edit a 28-Point Speed Table
Generate a starting curve for CV67–CV94, then fine-tune individual points. These numbers are decoder control values, not miles per hour. A curve alone does not prove two locomotives are matched.
Example curve: 1 / 100 / 255. Interpolation is linear between points 1, 14 and 28. Check allowed endpoints and how CV2, CV5, CV6, CV25 and trim settings interact on your decoder.
Horizontal: table point · vertical: CV value. The CV list below is the exact data behind this graph.
Edit all 28 CV values
Change a point, then apply your edits. Keep the values level or rising; the tool flags dips and out-of-range values.
View or copy the programming list
The CSV is a programming worksheet, not a JMRI roster or LokProgrammer project file.
Before writing: use the exact decoder manual or its JMRI definition. Some decoders impose fixed endpoints or use additional curve-selection settings. For ESU, verify the table in LokProgrammer before loading. Measure and test at low, middle and top speed.
Measure Scale Speed and Compare Locomotives
Mark a known track distance. Let each locomotive settle at the same throttle setting, then time the same reference point passing both marks. Repeat separately at low, middle and top speed.
The percentage compares B’s speed with A’s. It is not a percentage to apply directly to a CV: motor response and decoder curves are not necessarily linear. Use several timed runs and the same load and direction for a meaningful comparison.
Turn Bits Into a CV Value
A bit is an on/off switch inside a number. Load a decimal value to see its bits, or check the bits listed in your decoder’s manual.
Bit numbers start at 0. This tool does arithmetic only: each CV’s meanings come from the exact decoder manual. For indexed CVs, record the required index values too.
Common DCC CV Questions
What does CV29 control?
CV29 combines several options in one number, including normal direction, speed-step operation, analog operation, bidirectional communication, speed-table selection and short or long addressing. Load your current value before changing a checkbox so you can preserve the other options.
How do I calculate CV17 and CV18 for a long address?
CV17 is 192 plus the whole-number result of dividing the address by 256. CV18 is the remainder. For address 4501, CV17 = 209 and CV18 = 149. Long addressing also needs the CV29 long-address option; use the current value to preserve other settings.
How do I reverse one locomotive in a CV19 consist?
For a classic 7-bit consist, add 128 to its address for a reversed unit. Consist address 20 becomes CV19 = 148. Address 0 clears this classic consist. Extended consists and command-station grouping use different procedures.
Does this page program my decoder?
No. This calculator works out numbers and explains them. Use your command station, DecoderPro or the decoder manufacturer’s supported programmer to write settings and test the result.
Keep the original value in your locomotive record. Follow the decoder and command station instructions to write the change, test it, then save the new value.
JMRI & programming guide · Official downloads & manuals · Programming trouble?
References and calculation scope
The address encoding and bit structure follow NMRA DCC standards. Digitrax’s CV reference provides manufacturer examples. Features and accepted address ranges vary; use the manual for your exact decoder. No universal lighting, sound-mapping or motor-tuning values are assumed.
SPT calculator · reviewed November 2026.
About South Plains Trains · Suggest a correction or ask a DCC question