Diesel Version 5:WOWDiesel Indexed CV's

From Train Control Systems Documentation
Revision as of 18:00, 15 December 2021 by Johnd (talk | contribs) (Fix links for new bootloader CV's)
Jump to navigation Jump to search

Overview

Indexed CV's use a Paging System to allow for the ability to program thousands of CV's. There are two index CV's used to select an indexed page, CV31 and CV32. CV31 controls the high byte of the index and CV32 controls the low byte. Once the indexed page has been selected then program the CV just like any other CV.
An analogy for the paging system is to think of a clock, CV31 controls the hour, CV32 controls the minute, and then the actual CV is the "second".

NMRA CV#31
Indexed CV High Byte
Range of Values16-255
Default Value16

NMRA CV 31 - Indexed CV High Byte

The Indexed Address is the address of the indexed CV page when the decoder is set up for indexed CV operation. CV#31 contains the most significant bits of the two byte address and may have any value between 16 and 255 inclusive. Values of 0 thru 15 are reserved by the NMRA for future use. CV32 contains the least significant bits of the index address and may contain any value.

This gives a total 61,440 indexed pages each with 256 CV's in each page for a total of 15,728,640 indexed CV's!
(High byte 240 * Low Byte 256 * bytes per page 256) = total number of available CV's

See Indexed CV's for more info on using this CV

NMRA CV#32
Indexed CV Low Byte
Range of Values0-255
Default Value0

NMRA CV 32 - Indexed CV Low Byte

The Indexed Address is the address of the indexed CV page when the decoder is set up for indexed CV operation. CV31 contains the most significant bits of the two byte address and may have any value between 16 and 255 inclusive. Values of 0 thru 15 are reserved by the NMRA for future use. CV32 contains the least significant bits of the index address and may contain any value.

This gives a total 61,440 indexed pages each with 256 CV's in each page for a total of 15,728,640 indexed CV's!
(High byte 240 * Low Byte 256 * bytes per page 256) = total number of available CV's

See Indexed CV's for more info on using this CV

Example

If you want to change the speed of the locomotive at speed step 1 you can program the Speed table in the indexed CV's (this table is more detailed than the "28 speed step User Loadable Speed table" as it gives access to the speed at every speed step 0-128). The CV for Speed step 1 has two parts, indexed CV 16.2.258 and indexed CV 16.2.257
So set CV31=16, then set CV32=2, then you can read or write CV258 and CV257 just as you would any other CV. In this scenario CV258 is the coarse adjustment and will have a larger effect on the speed that CV257 which is the fine adjustment.

WOWDiesel Indexed CV's
Startup Delay Timer
Range of Values0-65535
Accepted ValuesAny
Default Value1000

CV 16.0.258 - Startup Delay Timer

Two byte CV (257:258) - This indexed CV defines the maximum delay time (in milliseconds) the decoder will wait and look for a non zero DCC speed packet when powering up. During this delay no sound will be played.
If the decoder sees a non zero speed packet during this time it will skip the startup sound and go right to playing the engine sound

This is useful in cases where the engine was moving along and hits dirty track and resets.
If the delay time is large and the startup sound still plays consider adjusting the command stations stack so that speed refresh packets are sent more often.

See Indexed CV's for more info on using this CV

List of Indexed CV's in Use

Specific Indexed CV numbers omitted from these tables can be assumed to be unused. To view details about the indexed CV, click on the indexed CV number to the left of the description.

NMRA Index 16.0 DC Mode Motor Control Settings (And Misc.)
Indexed CV Description
16.0.258 Startup Delay Timer
16.0.260 DC Mode Bell Cutout Voltage - Regulated Supply Mode
16.0.262 DC Mode Quill Delta - Regulated Supply Mode
16.0.264 DC Mode Start Voltage - Regulated Supply Mode
16.0.266 DC Mode Motor Hysteresis - Regulated Supply Mode
16.0.268 DC Mode Max ADC Value - Regulated Supply Mode
16.0.274 DC Mode Bell Cutout Voltage - Unregulated Supply Mode
16.0.276 DC Mode Quill Delta - Unregulated Supply Mode
16.0.278 DC Mode Start Voltage - Unregulated Supply Mode
16.0.280 DC Mode Motor Hysteresis - Unregulated Supply Mode
16.0.282 DC Mode Max ADC Value - Unregulated Supply Mode
16.1.257 Bootloader Hash Part 1 (MSB)
16.1.258 Bootloader Hash Part 2
16.1.259 Bootloader Hash Part 3
16.1.260 Bootloader Hash Part 4 (LSB)
16.1.262 Bootloader Month
16.1.264 Bootloader Day
16.1.266 Bootloader Year
16.1.268 Bootloader Version
16.1.270 Bootloader Hardware
16.1.272 Bootloader Processor
16.1.274 Bootloader WOWPOW Protocol Version
NMRA Index 16.2 BEMF Targets (128-Point Speed Curve)
Indexed CV Description
16.2.258 BEMF Target - Speed Step 0/128
16.2.260 BEMF Target - Speed Step 1/128
... ...
16.2.512 BEMF Target - Speed Step 127/128
NMRA Index 16.4 Sound Function Remapping
Indexed CV Description
16.4.258 Sound Mapping - Button 0
... ...
16.4.314 Sound Mapping - Button 28
16.4.316 Sound Mapping - Random Sound #1
16.4.318 Sound Mapping - Random Sound #2
16.4.320 Sound Mapping - Random Sound #3
16.4.322 Sound Mapping - Random Sound #4
16.4.324 Sound Mapping - Auxiliary Input
16.4.326 Sound Mapping - Reserved
NMRA Index 16.6 Lighting Modules (Part 1)
Indexed CV Description
16.6.258 Lighting Module 0 - Step 0 - Fade Rade
16.6.260 Lighting Module 0 - Step 0 - Start Brightness
16.6.262 Lighting Module 0 - Step 0 - End Brightness
... ...
16.6.316 Lighting Module 0 - Step 9 - End Brightness
16.6.318 Lighting Module 1 - Step 0 - Fade Rade
16.6.320 Lighting Module 1 - Step 0 - Start Brightness
16.6.322 Lighting Module 1 - Step 0 - End Brightness
... ...
16.6.376 Lighting Module 1 - Step 9 - End Brightness
16.6.378 Lighting Module 2 - Step 0 - Fade Rate
.. ...
16.6.512 Lighting Module 4 - Step 2 - Start Brightness

...Note.... As of 2-22-21, indexed CV's stop at 16.13.504 - Lighting Preset 16 - Step 9 - End Brightness

See Also