Difference between revisions of "Diesel Version 5:CV 16"

From Train Control Systems Documentation
Jump to navigation Jump to search
en>Tcsdcc
 
(overhaul to the explanation of how this works, and other things)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== NMRA CV 16 - Decoder Lock (Door) ==
+
{{Infobox CV
The Decoder Lock is used to change CVs in only one of several decoders with the same short address (CV1) or long address (CV17 and CV18) that are installed in the same locomotive. Assign a number to CV16 in each decoder (i.e. 1 to motor decoder, 2 to sound decoder, 3 or higher to other decoders) before the decoders are installed in the locomotive. To change a value in another CV of one of the installed decoders, first write the number 1 (motor), 2 (sound), or 3 or higher (other) into CV15, then send the new value to the CV to be changed. The decoders will compare CV15 to CV16 and, if the values are equal, the CV to be changed will be
+
|cv name=Decoder Lock (Lock)
changed. If the values in CV15 and CV16 are different, the update will be ignored.
+
|cv range=0-7
 +
|cv accepted=0-7
 +
|cv default=2
 +
}}
 +
 
 +
==NMRA CV 16 - Decoder Lock (Lock)==
 +
The Decoder Lock feature is used to change CVs in only one of several decoders with the same short address (CV1) or long address (CV 17 and CV 18). Typically this becomes a concern only when multiple decoders are installed in the same locomotive. An alternative reason to use Decoder Lock is if you fear that another person may attempt to program your decoder on accident (or on purpose), and you want to prevent that from being possible.
 +
 
 +
The WOWSound Version 5 decoder includes an exclusive new feature which will play an audible warning if you attempt to program a CV while Decoder Lock is active.
 +
 
 +
==== To Lock a Decoder: ====
  
{{Infobox
+
# Program a number between 1 and 6 into CV 16 in each decoder (see the chart below for the standard values) '''before''' the decoders are installed in the locomotive.
|title = NMRA CV 16  
+
# Set CV 15 to a value which does not match CV 16, or use a value of 7 to ensure the decoder is locked. 
|header1 = Decoder Lock
+
# The decoders will individually compare CV 15 to CV 16 and, if the values are NOT equal, the CV values of that decoder may NOT be manipulated.
|label2 = 0-255
+
 
|data2 = RANGE OF VALUES HERE
+
==== To Unlock a Decoder: ====
|label3 = Default Value
+
 
|data3 = DEFAULT VALUE
+
# To change a value in another CV of one of the installed decoders, first write the corresponding number into CV15 which matches the value in CV16 for the decoder you wish to program.
}}
+
# Set CV 15 to a value which matches the CV 16 value for the decoder you want to program. You may also use a value of 0 in CV 15 if you want to program all of the decoder simultaneously.
 +
# The decoders will individually compare CV 15 to CV 16 and, if the values are equal, the CV values of that decoder may be manipulated.
 +
 
 +
==== Important things to know about decoder lock: ====
 +
 
 +
* By default, a DCC decoder will be unlocked, but may or may not have a value set in CV16. The Value in CV15 must be equal to CV16 in order to read or write CV values. 
 +
* If Decoder Lock is active, only CV15 and CV16 can be manipulated  When a decoder is locked, all CV values ''other than'' CV15 and CV16 will report "Cannot Read CV" or similar on your Command Station.
 +
* If the values in CV15 and CV16 are different, the decoder is considered locked, and programming request will be ignored.
 +
 
 +
{| class="wikitable" style="text-align: center;"
 +
|-
 +
! scope="col" |Decoder Type
 +
! scope="col" |Lock #
 +
|-
 +
! scope="row" |Lock Disabled
 +
|0
 +
|-
 +
|-
 +
! scope="row" |Non-Sound Decoder
 +
|1
 +
|-
 +
|-
 +
! scope="row" |Sound Decoder
 +
|2
 +
|-
 +
|-
 +
! scope="row" |Lights-Only Decoder
 +
|3
 +
|-
 +
|-
 +
! scope="row" |User Defined #1
 +
|4
 +
|-
 +
|-
 +
! scope="row" |User Defined #2
 +
|5
 +
|-
 +
|-
 +
! scope="row" |User Defined #3
 +
|6
 +
|-
 +
|-
 +
! scope="row" |All Locked
 +
|7
 +
|-
 +
|}
 +
 
 +
[[Category:Standard CV]]
 +
[[Category:Bitwise CV]]

Latest revision as of 23:37, 2 April 2021

CV 16
Decoder Lock (Lock)
Range of Values0-7
Accepted Values0-7
Default Value2

NMRA CV 16 - Decoder Lock (Lock)

The Decoder Lock feature is used to change CVs in only one of several decoders with the same short address (CV1) or long address (CV 17 and CV 18). Typically this becomes a concern only when multiple decoders are installed in the same locomotive. An alternative reason to use Decoder Lock is if you fear that another person may attempt to program your decoder on accident (or on purpose), and you want to prevent that from being possible.

The WOWSound Version 5 decoder includes an exclusive new feature which will play an audible warning if you attempt to program a CV while Decoder Lock is active.

To Lock a Decoder:

  1. Program a number between 1 and 6 into CV 16 in each decoder (see the chart below for the standard values) before the decoders are installed in the locomotive.
  2. Set CV 15 to a value which does not match CV 16, or use a value of 7 to ensure the decoder is locked.
  3. The decoders will individually compare CV 15 to CV 16 and, if the values are NOT equal, the CV values of that decoder may NOT be manipulated.

To Unlock a Decoder:

  1. To change a value in another CV of one of the installed decoders, first write the corresponding number into CV15 which matches the value in CV16 for the decoder you wish to program.
  2. Set CV 15 to a value which matches the CV 16 value for the decoder you want to program. You may also use a value of 0 in CV 15 if you want to program all of the decoder simultaneously.
  3. The decoders will individually compare CV 15 to CV 16 and, if the values are equal, the CV values of that decoder may be manipulated.

Important things to know about decoder lock:

  • By default, a DCC decoder will be unlocked, but may or may not have a value set in CV16. The Value in CV15 must be equal to CV16 in order to read or write CV values.
  • If Decoder Lock is active, only CV15 and CV16 can be manipulated When a decoder is locked, all CV values other than CV15 and CV16 will report "Cannot Read CV" or similar on your Command Station.
  • If the values in CV15 and CV16 are different, the decoder is considered locked, and programming request will be ignored.
Decoder Type Lock #
Lock Disabled 0
Non-Sound Decoder 1
Sound Decoder 2
Lights-Only Decoder 3
User Defined #1 4
User Defined #2 5
User Defined #3 6
All Locked 7