The .DEC files.
Description on how to use the .Dec files
The .dec files are a mirros of the configuration data you can find in the decoder manuals. TMWDCC uses the .dec files when you want to read the CVs from a decoder. The files, one file per decoder type, contain information on what CVs the coresponding decoder type is suporting. You can have up to 10 .dec files in your TMWDCC working directory. Move all .dec files you do not have any decoders to, from the TMWDCC directory. The names of the files correspond to decoder types, e.g. Lenz41.dec means that the file is for a Lenz ver 4.1 decoder, and CVPAD4.dec is for a CVP AD4 accessory decoder.
Each .dec file in your TMWDCC directory corespond to a decoder selection in the TMWDCC Service Mode screen. When you select a decoder type by pressing the corresponding number, TMWDCC automaticly selects a working programming mode for the decoder. E.g. if you select a Lenz LE075 decoder, a Register Mode only decoder, TMWDCC enters Register Mode programming and reads all registers from the LE075 decoder in the locomotive, standing on the service track, and shows the register contents on the PC screen, and if you select a CVP ACC4 decoder, TMWDCC automaticly enters Page Mode programming and dumps all CV contents on the screen.
Editing the CV values, and writing to a locomotive.
If you now when, all CV numbers and CV contents are present on the screen, press E as in Edit, you are able to edit all the CV values at once. When you changed the values you wanted, you exit edit mode with an ESC, and TMWDCC asks you if you want to save the changes. If you want to save the changes you can select to save to a file on your hard disk or to a floppy, or you can save the changes to the locomotive on the service track. You can now, after the first save, by pressing a S as in Save, save the new CV values again to another media.
The different CV´s and their meaning.
Hereunder is a listing on all possible CVs supported by a NMRA compatible locomotive decoder. The listing is actually the file Template.txt contained in the dec.zip archive. This file can be used when you want to make a custom .dec file for a decoder type that has not yet been assigned a .dec file. Simply delete the lines that does not correspond to your decoder manual, enter a prefered programming mode in line 1, enter Yourdecodertype in line 2 and save the file as Yourdecodertype.dec
The first line in the file, is the prefered programming mode for the decoder. This line is optional, but if it is there, it must begin with an asterisk (*). The decoder manual will tell you what mode the decoder supports. TMWDCC can use six different modes. You can manually change programming mode by repetadly pressing the M key, or you can let TMWDCC select mode for you, when you select a decoder type.
reg........NMRA Physical Register Mode
pag.......NMRA Page Mode
dir........NMRA Direct Mode
roc........A non NMRA Register Mode version, used by ROCO
rpg........A non NMRA Page Mode version to use if Page Mode fails, but the decoder manual says Page Mode should work.
old........An old, obsolete NMRA Direct Mode version, used by ZTC
The second line is the headline you will see on the screen in Service Mode. In this template file it says "NMRA Template".
The third line and so on shows the CV number and the meaning of the different CVs.
*pag
NMRA Template
1 Loco address
2 Vstart
3 Acceleration rate
4 Deceleration rate
5 Vhigh
6 Vmid
7 Manufacturer version
8 Manufacturer ID
9 Total PWM period
10 EMF feedback cutout
11 Packet timeout value
12 Power source conversion
13 Analog function status
17 Extended Address
18 Extended Address
19 Consist Address
21 Addr Active for F1 - F8
22 Addr Active for FL
23 Acceleration adjustment
24 Deceleration adjustment
25 Mid-range cab speed step
29 Configuration data #1
30 Error information
31 Configuration Data #2
32 Configuration Data #3
33 Output Loc FL(f)
34 Output Loc FL(r)
35 Addr Active for F1
36 Addr Active for F2
37 Addr Active for F3
38 Addr Active for F4
39 Addr Active for F5
40 Addr Active for F6
41 Addr Active for F7
42 Addr Active for F8
49 Manufacturer unique
50 Manufacturer unique
51 Manufacturer unique
52 Manufacturer unique
53 Manufacturer unique
54 Manufacturer unique
55 Manufacturer unique
56 Manufacturer unique
57 Manufacturer unique
58 Manufacturer unique
59 Manufacturer unique
60 Manufacturer unique
61 Manufacturer unique
62 Manufacturer unique
63 Manufacturer unique
64 Manufacturer unique
65 Kick start pulse time
66 Forward Trim
67 Speed Table
68 Speed Table
69 Speed Table
70 Speed Table
71 Speed Table
72 Speed Table
73 Speed Table
74 Speed Table
75 Speed Table
76 Speed Table
77 Speed Table
78 Speed Table
79 Speed Table
80 Speed Table
81 Speed Table
82 Speed Table
83 Speed Table
84 Speed Table
85 Speed Table
86 Speed Table
87 Speed Table
88 Speed Table
89 Speed Table
90 Speed Table
91 Speed Table
92 Speed Table
93 Speed Table
94 Speed Table
95 Reverse Trim
97
98
99
105 User Identifier #1
106 User Identifier #2
Here is the .dec file Lenz51.dec shown as an example.
This file is used to program the Lenz version 5.1 decoders. (E.g. LE135)
*pag
Lenz Ver 5.1 Decoders
1 Locomotive Address
2 Start Voltage
3 Acceleration
4 Brake
5 Max Speed
7 Version Number
8 Manufacturer ID
9 EMF Frequency
17 Ext. Adr High byte
18 Ext. Adr Low byte
19 Consist Address
29 Config #1
30 Error Register
60 Config #2
67 Speed Table
68 Speed Table
69 Speed Table
70 Speed Table
71 Speed Table
72 Speed Table
73 Speed Table
74 Speed Table
75 Speed Table
76 Speed Table
77 Speed Table
78 Speed Table
79 Speed Table
80 Speed Table
© 1996 - 2006 Lars Lundgren