The newest line of Lenz advanced decoders version 4.5 support a full range of features. The following table lists the various CVs supported.
The configuration variables and their meaning
The following table lists the various CVs supported in the XF and XS series decoder. Both the New CV numbers and the older Register numbers are provided for cross reference. Note: Not all CVs are supported by all decoders
Please note: Some CVs (such as CV29) have specific meanings for each bit. The bit assignments in this table use a bit numbering scheme of 0-7 to correspond the NMRA convention for universal bit numbering. DIGITAL plus LH100 handhelds version 2.3 and older use a scheme of 1-8 to refer to the individual bits rather than 0-7. (Bit 0 in this table is displayed as a"1" on LH100 handheld, Bit 1 is identified as "2"...)The bit numbers in () within these tables contain the LH100 bit numbers.
**Note: in the factory setting field the numbers in the () are decimal.
| CV | Reg | Description | Range | Factory setting |
| 1 | 1 | Locomotive address: This is the number with which you select a locomotive in the DIGITAL plus system. Setting the address from #1 to #3 using register mode will reset the decoder to utilize 14 speed step operation. (Version 4.5) |
1-127 | 3 |
| 2 | 2 | Start voltage: This is the voltage applied to the motor in speed step 1. Set this value so that the locomotive just starts moving in speed step 1. |
0-31 | 8 |
| 3 | 3 | Acceleration Momentum: Determines the rate of change of speed upon acceleration. A higher value leads to a slower acceleration. |
1-31 | 1 |
| 4 | 4 | Brake Momentum: Determines the rate of change of speed upon braking. A higher value leads to longer brake distance. |
1-31 | 1 |
| - | 5 | Contains CV29 (see CV29 below) | 0-55 | 6 |
| - | 6 | Page Register: Normally this CV is not modified directly by a user. For correct operation, this CV should be set to have a value of 1 after any use. |
0-127 | 1 |
| 7 | 7 | Version Number: This location stores the version number of the decoder. This location is read only. |
- | decoder dependent |
| 8 | 8 | Manufacturers Identification / Factory reset This value is the manufacturer ID of the decoder, (Lenz =99). Writing a value of 33 using Register mode resets all CVs to their factory condition (Version 4.5) |
- | 99 |
| 17 | - | Extended Address High Byte | 192-231 | 0 |
| 18 | - | Extended Address Low Byte The two byte address if used is contained in CV17+18 |
0-255 | 0 |
| 19 | - | Consist Address The advanced consist address if used is stored in CV19 |
0-255 | 0 |
| 23 | - | Acceleration Trim This Configuration Variable contains additional acceleration rate information that is to be added to or subtracted from the base value contained in CV3 | 0-255 | 255 |
| CV | Description | Range | Setting | |
| 24 | Deceleration Trim This Configuration Variable contains additional braking rate information that is to be added to or subtracted from the base value contained in CV4 | 0-255 | 255 | |
| 29 | Decoder Configuration, Byte 1: Several decoder properties are set with this byte. Changes are easiest if done in binary mode, but can also be done by adding the decimal () for all the features desired together and writing the total into CV29. The detailed properties are: |
0-55 | 6 | |
| bit 0
(1) |
locomotive direction: Locomotives relative direction: This bit sets the direction the locomotive will move when told to move forward in digital mode. 0 = locomotives direction is normal 1 = locomotives direction is inverted |
0,1 | 0
(1) |
|
| bit 1 (2) |
Headlight mode: 0 = Operation with 14 or 27 speed step systems. This setting is selected when the locomotive decoder is used with any Digital system that does not support 28 speed step mode. If the headlights turn on and off as the speed is increased, the command station is configured for 28 speed step mode, and the decoder is in 14 speed step mode. 1 = Operation with 28, 55 or 128 speed steps. If you use this setting, the Command Station must also be configured to use 28 speed step mode or 128 speed step mode for the decoder's address, otherwise the headlights can not be controlled. |
0,1 | 1
(2) |
|
| bit 2 (3) |
Usage on conventional DC layouts: 0 = locomotive operates in digital mode only 1 = locomotive can operate on either conventional DC and on DCC |
0,1 | 1 (4) |
|
| bit 3 | always 0 | 0 | 0 | |
| bit 4 (5) |
Speed Curve Selection: 0 = factory pre-set speed curve is used 1 = user defined speed curve is used. Please enter the appropriate values into CV 67 to 94 before setting this bit. |
0,1 | 0 (16) |
|
| bit 5 (6) |
Extended Addressing: 0= Normal addressing 1=Two Byte extended addressing |
0-1 | 0 (32) |
|
| bit 6 bit 7 |
always 0 | 0 | 0 | |
| CV | Description | Range | Setting | |
| 50 | Decoder Configuration, byte 2: Similar to CV 29, but used to set other properties |
0 | ||
| bit 0 | Used on Back EMF decoders to enable or disable Back EMF control | 0,1 | 1 if decoder supports Back EMF |
|
| bit 1 [2] |
0 = CV23 and CV24 are not active 1 = CV23/CV24 are active and contain the acceleration and deceleration trim values that are added to CV3 or CV4. |
0,1 | 0 (2) |
|
| bit 2 [3] |
Brake momentum on DC operation. Used to achieve prototypical braking at red signal indications if conventional DC control CV29.2 is disabled. (CV 29 bit 2 = 0) 0 = locomotive proceeds with track voltage dependent speed inside the conventional DC section. 1 = locomotive brakes in the conventional DC section with pre set brake momentum. |
0,1 | 0 (4) |
|
| bits 3-7 | not used | |||
| 51 | Lighting Special Effects for Outputs A and B | 0 | ||
| bit 0
(1) |
0 = the headlights are directional. 1 = the lights are independent per Rule 17. F0 controls the front headlight and F1 the rear headlight or a separate function. |
0,1 | 0
(1) |
|
| bit 1 (2) |
0 = function dimming disabled 1 = the value in CV52 is used for headlight/function dimming. If CV51.0 = 0 then F1 dims the headlight if on. |
0,1 | 0 (2) |
|
| bit 2 (3) |
1= if CV51.0 and CV51.1 both =1 (dimming and Rule17 are both active), F4 dims F0. If CV51.0 = 0 and CV51.1 =1 (directional dimming) then F1 dims the forward headlight if on. | 0,1 | 0 (4) |
|
| bit 3 (4) |
1= if CV51.0 and CV51.1 both =1 (dimming and Rule 17 are both active), F4 dims F1. If CV51.0 = 0 and CV51.1 =1 (directional dimming) then F1 dims the rear headlight if on. | 0,1 | 0 (8) |
|
| bits 4-7 | Not used | |||
| 52 | Dimming CV - contains the value used for dimming. 0 is dark 255 is max brightness | 0-255 | 64 | |
| 53 | Lighting Special Effects for Outputs C and D | 0 | ||
| bit 0 (1) |
1 = Output C blinks with the frequency set in CV56 | 0,1 | 0 (1) |
|
| bit 1 (2) |
1 = Output D blinks with the frequency set in CV56 | 0,1 | 0 (2) |
|
| bit 2 (3) |
1= Outputs C and D act as Ditch Lights. F2 controls alternate blinking when Output C is on. CV 54 and CV55 should be set to have identical values. | 0,1 | 0 (4) |
|
| CV | Description | Range | Setting | |
| 54 | Function assignment for Output C | 1 | ||
| bit 0 (1) | 1 = Output C is controlled By F1 | 0,1 | 1 (1) | |
| bit 1 (2) | 1 = Output C is controlled By F2 | 0,1 | 0 (2) | |
| bit 2 (3) | 1 = Output C is controlled By F3 | 0,1 | 0 (4) | |
| bit 3 (4) | 1 = Output C is controlled By F4 | 0,1 | 0 (8) | |
| bit 4 (5) | 1 = Output C is controlled By F5 | 0,1 | 0 (16) | |
| bit 5 (6) | 1 = Output C is controlled By F6 | 0,1 | 0 (32) | |
| bit 6 (7) | 1 = Output C is controlled By F7 | 0,1 | 0 (64) | |
| bit 7 (8) | 1 = Output C is controlled By F8 | 0,1 | 0 (128) | |
| 55 | Function assignment for Output D | 2 | ||
| bit 0 (1) | 1 = Output D is controlled By F1 | 0,1 | 1 (1) | |
| bit 1 (2) | 1 = Output D is controlled By F2 | 0,1 | 0 (2) | |
| bit 2 (3) | 1 = Output D is controlled By F3 | 0,1 | 0 (4) | |
| bit 3 (4) | 1 = Output D is controlled By F4 | 0,1 | 0 (8) | |
| bit 4 (5) | 1 = Output D is controlled By F5 | 0,1 | 0 (16) | |
| bit 5 (6) | 1 = Output D is controlled By F6 | 0,1 | 0 (32) | |
| bit 6 (7) | 1 = Output D is controlled By F7 | 0,1 | 0 (64) | |
| bit 7 (8) | 1 = Output D is controlled By F8 | 0,1 | 0 (128) | |
| 56 | Blinking Rate for Outputs C and D. Frequency in Hz = 1/0.016*(1+CV56) | 0-255 | 30 | |
| 67 to 94` | Values for user defined speed curve: These registers are used for a user defined speed curve. The factory setting for these registers is shown in the following speed curve table. The value in each CV determines the velocity of the locomotive for each assigned speed step: For the 14 speed step mode the odd CVs are used If you are using 128 speed step mode and you have activated the user defined speed table, the intermediate speed steps are calculated by the decoder. |
0-255 | Factory Default Speed Curve |
|
| 105 | User Identification #1 | 0-255 | 255 | |
| 106 | User Identification #2 | 0-255 | 255 | |
| 128 | Decoder Software Version read only |
decoder dependent |
||
Creating a Speed Curve
One common feature is to set a specific operating speed curve for your locomotives. This is usually done to have dissimilar locomotives have the same performance characteristics or to have the locomotives perform more prototypically. Start by writing down how you want to assign the internal speed settings to the speed steps, for example by making up a table as shown below.
Note: CV2 (Start Voltage) is still used as part of the calculation even when the decoder is in User Defined Speed Curve mode.
Speed step in 14/27 mode |
Speed step in 28 mode |
Default speed setting |
CV / register |
1 |
1 |
4 |
67 |
2 |
8 |
68 |
|
2 |
3 |
12 |
69 |
4 |
16 |
70 |
|
3 |
5 |
20 |
71 |
6 |
24 |
72 |
|
4 |
7 |
28 |
73 |
8 |
33 |
74 |
|
5 |
9 |
38 |
75 |
10 |
43 |
76 |
|
6 |
11 |
48 |
77 |
12 |
53 |
78 |
|
7 |
13 |
60 |
79 |
14 |
67 |
80 |
|
8 |
15 |
74 |
81 |
16 |
82 |
82 |
|
9 |
17 |
90 |
83 |
18 |
98 |
84 |
|
10 |
19 |
106 |
85 |
20 |
115 |
86 |
|
11 |
21 |
125 |
87 |
22 |
137 |
88 |
|
12 |
23 |
152 |
89 |
24 |
178 |
90 |
|
13 |
25 |
194 |
91 |
26 |
212 |
92 |
|
14 |
27 |
232 |
93 |
- |
28 |
255 |
94 |
In 128 speed step mode the decoder internally averages the speed table to obtain the correct speed step value.
Copyright 1995-2001 by Lenz Elektronik, GmbH. All Rights Reserved
This page was designed by Debbie Ames, owner tttrains