<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!DOCTYPE decoder-config SYSTEM "../DTD/decoder-config.dtd">

<!-- Copyright (C) JMRI 2004, 2007 All rights reserved -->
<!-- $Id: CT_Elektronik_Sound_SL_v40.xml,v 1.2 2009/10/22 05:40:02 jacobsen Exp $ -->
<!--                                                                        -->
<!-- JMRI is free software; you can redistribute it and/or modify it under  -->
<!-- the terms of version 2 of the GNU General Public License as published  -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy     -->
<!-- of this license.                                                       -->
<!--                                                                        -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT    -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or  -->
<!-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License  -->
<!-- for more details.                                                      -->

<decoder-config showEmptyPanes="no">
		<version author="ncliffe@btinternet.com"
			version="3.1" lastUpdated="2009/09/29" />
			<!--  major revision by Nigel Cliffe, many thanks to John Clutterbuck for assistance and notes -->
			<!--  re-structured "sound slots and repetition" pane -->
			<!--  re-structured "sound config" pane, including "include" statements for difference between SL74 and SL75 -->
			<!--  added Lenz ABC (diode braking), tested on SL75 -->
			<!--  function mapping according to http://www.tran.at/Dokumentation/mapping.pdf -->
			<!--  -->
			<!--  outstanding issue - relationship between CV110 and CV137 and Function Mapping.  Cannot decypher documentation on matter -->
			
	<!-- <version author="Peter.Brandenburg@t-online.de"
			version="2" lastUpdated="2006/11/20" />   -->

	<!--	version 1 - recreated from CT_Elektronik_Sound_SL_51.xml by "mark.kasprowicz@traindecoder.com"
			version="1.0 beta" lastUpdated="20040818" - Peter 06/10/28 --> 
	<!--	version 2 - added new CVs: Auto Uncoupling and Light Effects - Peter -->
			
<decoder>
	<family name="Sound Decoder SL (v.40 up)" mfg="CT Elektronik"> 
	
		<model model="SL 51" numOuts="2" numFns="15" productID="SL51">
		<versionCV lowVersionID="40" />
		<output name="Ra" label="Yard Mode" />
		<output name="Se" label="Sound" />
		<!-- <output name="Alt" label="obs" /> -->
		<output name="G1" label="Snd Slot 1" />
		<output name="G2" label="Snd Slot 2" />
		<output name="G3" label="Snd Slot 3" />
		<output name="G4" label="Snd Slot 4" />
		<output name="G5" label="Snd Slot 5" />
		<output name="G6" label="Snd Slot 6" />
		<output name="G7" label="Snd Slot 7" />
		<output name="G8" label="Snd Slot 8" />
	    	</model>
	    	
		<model model="SL 74" numOuts="4" numFns="15" productID="SL74">
		<versionCV lowVersionID="40" />
		<output name="3" label="Green" />
		<output name="4" label="Purple" />
		<output name="Ra" label="Yard Mode" />
		<output name="Se" label="Sound" />
		<!-- <output name="Alt" label="obs" />  -->
		<output name="G1" label="Snd Slot 1" />
		<output name="G2" label="Snd Slot 2" />
		<output name="G3" label="Snd Slot 3" />
		<output name="G4" label="Snd Slot 4" />
		<output name="G5" label="Snd Slot 5" />
		<output name="G6" label="Snd Slot 6" />
		<output name="G7" label="Snd Slot 7" />
		<output name="G8" label="Snd Slot 8" />
	    	</model>
	    
			
		<model model="SL 75" numOuts="4" numFns="15" productID="SL75">
		<versionCV lowVersionID="40" />
		<output name="3" label="Green" />
		<output name="4" label="Purple" />
		<output name="Ra" label="Yard Mode" />
		<output name="Se" label="Sound" />
		<!-- <output name="Alt" label="obs" />  -->
		<output name="G1" label="Snd Slot 1" />
		<output name="G2" label="Snd Slot 2" />
		<output name="G3" label="Snd Slot 3" />
		<output name="G4" label="Snd Slot 4" />
		<output name="G5" label="Snd Slot 5" />
		<output name="G6" label="Snd Slot 6" />
		<output name="G7" label="Snd Slot 7" />
		<output name="G8" label="Snd Slot 8" />
	    	</model>
		
		
	</family>
	
	
	<programming direct="yes" paged="no" register="no" ops="yes"/>

	<variables>
		<variable label="Primary Address" CV="1" comment="Short address"
						item="Short Address"  default="03">
			<shortAddressVal/>
		</variable>
		
		<variable label="Start Voltage" CV="2" item="Vstart" comment="A value of 255 corresponds to 100%">
			<decVal/>
		</variable>
			
		<variable label="Acceleration Rate" CV="3" item="Accel">
			<decVal/>
		</variable>
				
		<variable label="Braking Rate" CV="4" item="Decel">
			<decVal/>
		</variable>
						
		<variable label="Vhigh" CV="5" default="0"
			comment="Maximum Speed">
			<decVal/>
		</variable>
			
		<variable label="Vmid" CV="6" default="0">
			<decVal/>
		</variable>
			
		<variable label="Decoder Version" CV="7" readOnly="yes"
			item="Decoder Version">
			<decVal/>
		</variable>
			
		<variable label="Manufacturer" CV="8" default="117" readOnly="yes"
			item="Manufacturer">
			<decVal/>
		</variable>
			
		<variable label="Total PWM Period" CV="9" default="134"
				tooltip="13-63=30-150Hz, 141-191=16kHz"
				comment="Range 13-63/141-191">
			<decVal/>
		</variable>
			
		<variable label="Output FL(f) ON in analog mode" CV="13" default="0" mask="XXXXXXXV"
				item="Analog Mode Function Status - FL(f)" >
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
			</enumVal>
		</variable>
		
		<variable label="Output FL(r) ON in analog mode" CV="13" default="0" mask="XXXXXXVX"
				item="Analog Mode Function Status - FL(r)" >
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
			</enumVal>
		</variable>
		
		<variable label="Output F 1 ON in analog mode" CV="13" default="0" mask="XXXXXVXX"
				item="Analog Mode Function Status - F1" >
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
			</enumVal>
		</variable>
		
		<variable label="Output F 2 ON in analog mode" CV="13" default="0" mask="XXXXVXXX"
				item="Analog Mode Function Status - F2" >
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
			</enumVal>
		</variable>
		
		<variable label="Output F 3 ON in analog mode" CV="13" default="0" mask="XXXVXXXX"
				item="Analog Mode Function Status - F3" >
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
			</enumVal>
		</variable>
		
		<variable label="Output F 4 ON in analog mode" CV="13" default="0" mask="XXVXXXXX"
				item="Analog Mode Function Status - F4" >
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
			</enumVal>
		</variable>
		
		<variable label="Output F 5 ON in analog mode" CV="13" default="0" mask="XVXXXXXX"
				item="Analog Mode Function Status - F5" >
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
			</enumVal>
		</variable>
		
		<variable label="Output F 6 ON in analog mode" CV="13" default="0" mask="VXXXXXXX"
				item="Analog Mode Function Status - F6" >
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
			</enumVal>
		</variable>
		
		<variable label="Extended Address" CV="17"
					item="Long Address">
				<longAddressVal/>
		</variable>
					
		<variable label="Extended Address" CV="18"
					item="Long Address">
				<longAddressVal/>
		</variable>

		
		<variable label="Consist Address" CV="19" mask="XVVVVVVV" item="Consist Address">
			<decVal/>
		</variable>
		
		<variable label="Consist Direction" CV="19" mask="VXXXXXXX">
			<enumVal>
				<enumChoice choice="Normal"></enumChoice>
				<enumChoice choice="Reversed"></enumChoice>
			</enumVal>
		</variable>
		
		<variable label="Normal direction of motion" CV="29" mask="XXXXXXXV"
		        item="Locomotive Direction">
			<enumVal>
				<enumChoice choice="Forward"/>
				<enumChoice choice="Reverse"/>
			</enumVal>
		</variable>
		
		
		<variable label="Speed Steps" CV="29" mask="XXXXXXVX" default="1"
				item="Speed Step Mode" >
			<enumVal>
				<enumChoice choice="14"/>
				<enumChoice choice="28/128 (recommended)"/>
			</enumVal>
		</variable>
		
		
		<variable label="Analog (DC) Operation" CV="29" mask="XXXXXVXX" default="1" >
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
			</enumVal>
		</variable>
		
		
		<variable label="Use Speed Table" CV="29" mask="XXXVXXXX"
				item="Speed Table Definition">
			<enumVal>
				<enumChoice choice="Use Vstart, Vmid, Vhigh (CV29, bit 4)"/>
				<enumChoice choice="Use Table (CV's 67-94)"/>
			</enumVal>
		</variable>
		
		
		<variable label="Addressing Mode" CV="29" mask="XXVXXXXX"
				item="Address Format">
			<enumVal>
				<enumChoice choice="2 digit addressing"/>
				<enumChoice choice="4 digit addressing"/>
			</enumVal>
		</variable>
				
		<variable label="Error Diagnosis" CV="30" readOnly="yes" default="0">
			<decVal min="0" max="3"/>
		</variable>
		


		<!--	NMRA Function Mapping	-->

		<variable label="FL(f) controls output 1" CV="33" mask="XXXXXXXV" minOut="1"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output 2" CV="33" mask="XXXXXXVX" minOut="2"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output 3" CV="33" mask="XXXXXVXX" minOut="3"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output 4" CV="33" mask="XXXXVXXX" minOut="4"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output 5" CV="33" mask="XXXVXXXX" minOut="5"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output 6" CV="33" mask="XXVXXXXX" minOut="6"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output 7" CV="33" mask="XVXXXXXX" minOut="7"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output 8" CV="33" mask="VXXXXXXX" minOut="8"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="FL(r) controls output 1" CV="34" mask="XXXXXXXV" minOut="1"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output 2" CV="34" mask="XXXXXXVX" minOut="2"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output 3" CV="34" mask="XXXXXVXX" minOut="3"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output 4" CV="34" mask="XXXXVXXX" minOut="4"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output 5" CV="34" mask="XXXVXXXX" minOut="5"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output 6" CV="34" mask="XXVXXXXX" minOut="6"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output 7" CV="34" mask="XVXXXXXX" minOut="7"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output 8" CV="34" mask="VXXXXXXX" minOut="8"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F1 controls output 1" CV="35" mask="XXXXXXXV" minOut="1" minFn="1"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output 2" CV="35" mask="XXXXXXVX" minOut="2" minFn="1"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output 3" CV="35" mask="XXXXXVXX" minOut="3" minFn="1"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output 4" CV="35" mask="XXXXVXXX" minOut="4" minFn="1"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output 5" CV="35" mask="XXXVXXXX" minOut="5" minFn="1"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output 6" CV="35" mask="XXVXXXXX" minOut="6" minFn="1"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output 7" CV="35" mask="XVXXXXXX" minOut="7" minFn="1"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output 8" CV="35" mask="VXXXXXXX" minOut="8" minFn="1"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F2 controls output 1" CV="36" mask="XXXXXXXV" minOut="1" minFn="2"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output 2" CV="36" mask="XXXXXXVX" minOut="2" minFn="2"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output 3" CV="36" mask="XXXXXVXX" minOut="3" minFn="2"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output 4" CV="36" mask="XXXXVXXX" minOut="4" minFn="2"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output 5" CV="36" mask="XXXVXXXX" minOut="5" minFn="2"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output 6" CV="36" mask="XXVXXXXX" minOut="6" minFn="2"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output 7" CV="36" mask="XVXXXXXX" minOut="7" minFn="2"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output 8" CV="36" mask="VXXXXXXX" minOut="8" minFn="2"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F3 controls output 1" CV="37" mask="XXXXXXXV" minOut="1" minFn="3"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output 2" CV="37" mask="XXXXXXVX" minOut="2" minFn="3"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output 3" CV="37" mask="XXXXXVXX" minOut="3" minFn="3"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output 4" CV="37" mask="XXXXVXXX" minOut="4" minFn="3"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output 5" CV="37" mask="XXXVXXXX" minOut="5" minFn="3"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output 6" CV="37" mask="XXVXXXXX" minOut="6" minFn="3"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output 7" CV="37" mask="XVXXXXXX" minOut="7" minFn="3"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output 8" CV="37" mask="VXXXXXXX" minOut="8" minFn="3"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F4 controls output 4" CV="38" mask="XXXXXXXV" minOut="4" minFn="4"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output 5" CV="38" mask="XXXXXXVX" minOut="5" minFn="4"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output 6" CV="38" mask="XXXXXVXX" minOut="6" minFn="4"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output 7" CV="38" mask="XXXXVXXX" minOut="7" minFn="4"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output 8" CV="38" mask="XXXVXXXX" minOut="8" minFn="4"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output Ra" CV="38" mask="XXVXXXXX"  minFn="4"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output Se" CV="38" mask="XVXXXXXX"  minFn="4"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output Alt" CV="38" mask="VXXXXXXX"  minFn="4"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
			
		<variable label="F5 controls output 4" CV="39" mask="XXXXXXXV" minOut="4" minFn="5"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output 5" CV="39" mask="XXXXXXVX" minOut="5" minFn="5"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output 6" CV="39" mask="XXXXXVXX" minOut="6" minFn="5"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output 7" CV="39" mask="XXXXVXXX" minOut="7" minFn="5"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output 8" CV="39" mask="XXXVXXXX" minOut="8" minFn="5"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output Ra" CV="39" mask="XXVXXXXX"  minFn="5"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output Se" CV="39" mask="XVXXXXXX"  minFn="5"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output Alt" CV="39" mask="VXXXXXXX"  minFn="5"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
			
		<variable label="F6 controls output 4" CV="40" mask="XXXXXXXV" minOut="4" minFn="6"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output 5" CV="40" mask="XXXXXXVX" minOut="5" minFn="6"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output 6" CV="40" mask="XXXXXVXX" minOut="6" minFn="6"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output 7" CV="40" mask="XXXXVXXX" minOut="7" minFn="6"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output 8" CV="40" mask="XXXVXXXX" minOut="8" minFn="6"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output Ra" CV="40" mask="XXVXXXXX"  minFn="6"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output Se" CV="40" mask="XVXXXXXX"  minFn="6"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output Alt" CV="40" mask="VXXXXXXX"  minFn="6"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
			
		<variable label="F7 controls output 4" CV="41" mask="XXXXXXXV" minOut="4" minFn="7"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output 5" CV="41" mask="XXXXXXVX" minOut="5" minFn="7"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output 6" CV="41" mask="XXXXXVXX" minOut="6" minFn="7"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output 7" CV="41" mask="XXXXVXXX" minOut="7" minFn="7"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output 8" CV="41" mask="XXXVXXXX" minOut="8" minFn="7"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output Ra" CV="41" mask="XXVXXXXX"  minFn="7"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output Se" CV="41" mask="XVXXXXXX"  minFn="7"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output Alt" CV="41" mask="VXXXXXXX"  minFn="7"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F8 controls output 4" CV="42" mask="XXXXXXXV" minOut="4" minFn="8"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output 5" CV="42" mask="XXXXXXVX" minOut="5" minFn="8"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output 6" CV="42" mask="XXXXXVXX" minOut="6" minFn="8"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output 7" CV="42" mask="XXXXVXXX" minOut="7" minFn="8"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output 8" CV="42" mask="XXXVXXXX" minOut="8" minFn="8"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output Ra" CV="42" mask="XXVXXXXX"  minFn="8"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output Se" CV="42" mask="XVXXXXXX"  minFn="8"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output Alt" CV="42" mask="VXXXXXXX"  minFn="8"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F9 controls output 7" CV="43" mask="XXXXXXXV" minOut="7" minFn="9"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output 8" CV="43" mask="XXXXXXVX" minOut="8" minFn="9"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output Ra" CV="43" mask="XXXXXVXX"  minFn="9"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output Se" CV="43" mask="XXXXVXXX"  minFn="9"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output Alt" CV="43" mask="XXXVXXXX"  minFn="9"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output G1" CV="43" mask="XXVXXXXX"  minFn="9"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output G2" CV="43" mask="XVXXXXXX"  minFn="9"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output G3" CV="43" mask="VXXXXXXX"  minFn="9"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F10 controls output 7" CV="44" mask="XXXXXXXV" minOut="7" minFn="10"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output 8" CV="44" mask="XXXXXXVX" minOut="8" minFn="10"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output Ra" CV="44" mask="XXXXXVXX"  minFn="10"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output Se" CV="44" mask="XXXXVXXX"  minFn="10"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output Alt" CV="44" mask="XXXVXXXX"  minFn="10"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output G1" CV="44" mask="XXVXXXXX"  minFn="10"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output G2" CV="44" mask="XVXXXXXX"  minFn="10"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output G3" CV="44" mask="VXXXXXXX"  minFn="10"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F11 controls output 7" CV="45" mask="XXXXXXXV" minOut="7" minFn="11"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F11 controls output 8" CV="45" mask="XXXXXXVX" minOut="8" minFn="11"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F11 controls output Ra" CV="45" mask="XXXXXVXX"  minFn="11"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F11 controls output Se" CV="45" mask="XXXXVXXX"  minFn="11"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F11 controls output Alt" CV="45" mask="XXXVXXXX"  minFn="11"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F11 controls output G1" CV="45" mask="XXVXXXXX"  minFn="11"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F11 controls output G2" CV="45" mask="XVXXXXXX"  minFn="11"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F11 controls output G3" CV="45" mask="VXXXXXXX"  minFn="11"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F12 controls output 7" CV="46" mask="XXXXXXXV" minOut="7" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F12 controls output 8" CV="46" mask="XXXXXXVX" minOut="8" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F12 controls output Ra" CV="46" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F12 controls output Se" CV="46" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F12 controls output Alt" CV="46" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F12 controls output G1" CV="46" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F12 controls output G2" CV="46" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F12 controls output G3" CV="46" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		

<!--  commented out options, instead drop downs below
		<variable label="Decoder Properties/Synchropulses" CV="49" mask="XXXXXXXV" 
			include="SL51,SL74"	default="0" >
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal>
		</variable>
		<variable label="Diesel and E Locosound" CV="49" mask="XXXXXXVX" 
			include="SL51,SL74"	default="0" >
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal>
		</variable>
		<variable label="2 Cylinder Steam" CV="49" mask="XXXXXVXX" 
			include="SL51,SL74"	default="0" >
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal>
		</variable>
		<variable label="3 Cylinder Steam" CV="49" mask="XXXXVXXX" 
			include="SL51,SL74"	default="0" >
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal>
		</variable>
-->
		
		<variable label="Steam/Diesel sound types"  CV="49" mask="XXXXVVVV" 
			include="SL51,SL74"	default="4"  tooltip="CV49, bits 0-3" >
			<enumVal>
				<enumChoice choice="4 cyl steam, auto pulse" value="0"/>
				<enumChoice choice="Synchro pulse inputs" value="1" />
				<enumChoice choice="Diesel and Electric locos" value="2" />
				<enumChoice choice="2 Cyl Steam" value="4" />
				<enumChoice choice="3 Cyl Steam" value="8" />
			</enumVal>
		</variable>
		
		<variable label="Steam/Diesel sound types"  CV="49" mask="XXXXVVVV" 
			include="SL75"	default="0"  tooltip="CV49, bits 0-3" >
			<enumVal>
				<enumChoice choice="4 Cylinder steam, auto pulse"/>
				<enumChoice choice="Synchro pulse inputs"/>
				<enumChoice choice="Diesel Electric (variable speed)"/>
				<enumChoice choice="Diesel Electric (constant speed)"/>
				<enumChoice choice="2 Cylinder Steam, auto pulse" />
				<enumChoice choice="3 Cylinder Steam, auto pulse" value="8"/>
			</enumVal>
		</variable>
		
		<variable label="No Steam Exhaust Downhill" CV="49" mask="XXXVXXXX" default="0" >
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Continuous Sound CV 10, F 1" CV="49" mask="XXVXXXXX" default="0" >
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="No Sound stop to moving (whistle)" CV="49" mask="XVXXXXXX" default="0" >
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="No Sound moving to stop (brake squeal)" CV="49" mask="VXXXXXXX" default="0" >
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>		

		
		<variable label="BEMF Pull" CV="50" default="255" item="EMF Feedback Cutout"
				tooltip="BEMF Pull"  	comment="Controls how much BEMF (0-no BEMF to 255-max)">
			<decVal min="0" max="255" />
			</variable>
		
		<variable label="P adjustment" CV="51" default="80" item="EMF Static Config"
				tooltip="P adjustment, 0-255"
				comment="Range 0-255">
			<decVal max="255"/>
			</variable>

		<variable label="I adjustment" CV="52" default="35" item="EMF Dynamic Config"
				tooltip="I adjustment, 0-255"
				comment="Range 0-255">
			<decVal max="255"/>
			</variable>	
	
		
		<variable label="Decoder Lock" CV="53" default="0" tooltip="CV53 Lock=66 Unlock=77"
				comment="also used for Lokmouse programming">
			<decVal/>
		</variable>

		<variable label="PWM Function Outputs" CV="54" default="50"  tooltip="CV 54 Dimming Outputs 0 - 100%">
			<decVal min="0" max="100"/>
		</variable>

		<variable label="Uncoupler Holding Current" CV="55" default="32"
			comment="Range 0-100">
			<decVal min="0" max="100"/>
		</variable>

		<variable label="Uncoupler Pulse Time" CV="56" default="60">
			<decVal/>
		</variable>
	
		<variable label="Dimming Output FL(f)" CV="57" mask="XXXXXXXV" default="0" tooltip="CV57 Bit0" >
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal></variable>
		<variable label="Dimming Output FL(r)" CV="57" mask="XXXXXXVX" default="0" tooltip="CV57 Bit1"	>
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>	</variable>
		<variable label="Dimming Output F 1" CV="57" mask="XXXXXVXX" default="0" tooltip="CV57 Bit2">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>	</variable>
		<variable label="Dimming Output F 2" CV="57" mask="XXXXVXXX" default="0" tooltip="CV57 Bit3">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>	</variable>
		<variable label="Dimming Output F 3" CV="57" mask="XXXVXXXX" default="0" tooltip="CV57 Bit4">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>	</variable>
		<variable label="Dimming Output F 4" CV="57" mask="XXVXXXXX" default="0" tooltip="CV57 Bit5">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>	</variable>
		<variable label="Dimming Output F 5" CV="57" mask="XVXXXXXX" default="0" tooltip="CV57 Bit6">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>	</variable>
		<variable label="Dimming Output F 6" CV="57" mask="VXXXXXXX" default="0" tooltip="CV57 Bit7">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>	</variable>
		
		
		<variable label="Output Uncoupler FL(f)" CV="58" mask="XXXXXXXV" default="0" tooltip="CV58 Bit0">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal></variable>
		<variable label="Output Uncoupler FL(r)" CV="58" mask="XXXXXXVX" default="0" tooltip="CV58 Bit1">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Output Uncoupler F 1" CV="58" mask="XXXXXVXX" default="0" tooltip="CV58 Bit2">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Output Uncoupler F 2" CV="58" mask="XXXXVXXX" default="0" tooltip="CV58 Bit 3">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Output Uncoupler F 3" CV="58" mask="XXXVXXXX" default="0" tooltip="CV58 Bit 4">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Output Uncoupler F 4" CV="58" mask="XXVXXXXX" default="0" tooltip="CV58 Bit 5">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Output Uncoupler F 5" CV="58" mask="XVXXXXXX" default="0" tooltip="CV58 Bit 6">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Output Uncoupler F 6" CV="58" mask="VXXXXXXX" default="0" tooltip="CV58 Bit 7">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>

			
		<variable label="ZIMO Signal Controlled Speed L" CV="59" default="168"	comment="Zimo Only">
			<decVal/>
		</variable>

		<variable label="ZIMO Signal Controlled Speed U" CV="60" default="84" comment="Zimo Only">
			<decVal/>
		</variable>

		<variable label="ZIMO Signal Controlled Acc Reaction" CV="61">
			<decVal/>
		</variable>

		<variable label="Brake Sound Trigger" CV="62" default="00"
			tooltip="CV62 rate of speed change to trigger brake noise slots 120 to 122">
			<decVal max="255"/>
		</variable>		

		<variable label="Track Voltage Reference" CV="64" default="160" item="EMF Droop Config"
			comment="160=16v track volts, appears to be percentage in reality, 100=normal, values 1-255 are legal. Alters top speed better than CV5">
			<decVal/>
		</variable>


		<variable label="Speed Table" CV="67">
			<speedTableVal/>
		</variable>

		<variable label="ZIMO Course influence F-L" CV="96" tooltip="CV96 selected speed between F L (MX9 and/or HLU) from version 52, see CV59, 60">
			<decVal/>
		</variable>
		<variable label="ZIMO Course influence L-U" CV="97" tooltip="CV97 selected speed between L U (MX9 and/or HLU) from version 52, see CV59, 60">
			<decVal/>
		</variable>
		<variable label="ZIMO Course influence U" CV="98" tooltip="CV98 selected speed between U Stop (MX9 and/or HLU) from version 52, see CV59, 60">
			<decVal/>
		</variable>

		
		<variable label="Braking Threshold Finish" CV="104" tooltip="CV104 some elements from version 100">
			<decVal/>
		</variable>
		
		
		
		<variable label="User Identification #1" CV="105" default="0" item="User Id #1">
			<decVal/>
			</variable>

		<variable label="User Identification #2" CV="106" default="0"
			item="User Id #2">
			<decVal/>
			</variable>

		<variable label="Brake Threshold" CV="107" default="0"
			comment="Range 0-255">
			<decVal/>
		</variable>

		<variable label="LGB Continuous Manual Sound Bitmask" CV="108" default="0">
			<decVal/>
		</variable>

		
		<variable label="Select CV Set 1 or 2" CV="109" mask="XXXXXXXV" default="0">
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
			</enumVal>
		</variable>
		
		<variable label="Load Dependant Sound Variation" CV="110" default="4">
			<decVal min="0" max="15"/>
		</variable>

		<variable label="ACK Pulse" CV="111" default="255">
			<decVal/>
		</variable>
		
		<variable label="Random Aux Sound 1 Idling" CV="112">
			<decVal/>
		</variable>
		
		<variable label="Random Idling Slot 1" CV="112" mask="XXXXXXXV" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Idling Slot 2" CV="112" mask="XXXXXXVX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Idling Slot 3" CV="112" mask="XXXXXVXX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Idling Slot 4" CV="112" mask="XXXXVXXX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Idling Slot 5" CV="112" mask="XXXVXXXX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Idling Slot 6" CV="112" mask="XXVXXXXX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Idling Slot 7" CV="112" mask="XVXXXXXX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Idling Slot 8" CV="112" mask="VXXXXXXX" default="0" include="SL75"	>
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>

		<variable label="Random Aux Sound 2 Running" CV="113">
			<decVal/>
		</variable>
		<variable label="Random Running Slot 1" CV="113" mask="XXXXXXXV" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Running Slot 2" CV="113" mask="XXXXXXVX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Running Slot 3" CV="113" mask="XXXXXVXX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Running Slot 4" CV="113" mask="XXXXVXXX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Running Slot 5" CV="113" mask="XXXVXXXX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Running Slot 6" CV="113" mask="XXVXXXXX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Running Slot 7" CV="113" mask="XVXXXXXX" default="0">
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Random Running Slot 8" CV="113" mask="VXXXXXXX" default="0" include="SL75"	>
			<enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>

		
		<variable label="PWM Light Effects Outputs" CV="114" default="0"  
					tooltip="CV 114 Dimming Light Effects Outputs 0 - 100%">
			<decVal min="0" max="100"/>
		</variable>
		
		<variable label="Time Between Effects" CV="115" default="0" tooltip="CV 115 Time Between Effects">
			<decVal/></variable>
		
		<variable label="Switching 1" CV="116" mask="XXXXXXXV" default="0" tooltip="CV 116 bit0">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>
		</variable>
		
		<variable label="Switching 2" CV="116" mask="XXXXXXVX" default="0" tooltip="CV 116 bit1">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>
		</variable>
		
		<variable label="Switching 3" CV="116" mask="XXXXXVXX" default="0" tooltip="CV 116 bit2">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>
		</variable>

<!-- CV116 = 8 brakes with diode 4-1 is active 
CV116 = 16 brakes with Diode NOT richtungsabhangig 
CV116 = 0 is not used, must always be 0 (when using the brake module also allows for low speed) 
CV116 = 64 means that the Rangierfunktion acts as a command button that is, that the ATC has (or braking diode and HLU) NOT! (equivalent to the MAN key = manual) 
CV116 = 128 knobs back quickly. Sound falls to idle knob position alters itself. Sound speed back to normal
--> 	
		<variable label="Diode Braking" CV="116" mask="XXXXVXXX" default="0" tooltip="CV 116 bit3 diode brake (ABC)">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>
		</variable>
		<variable label="Diode Braking non-Directional" CV="116" mask="XXXVXXXX" default="0" tooltip="CV 116 bit4">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>
		</variable>
		<variable label="Yard Mode disable auto braking" CV="116" mask="XVXXXXXX" default="0" tooltip="CV 116 bit6">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>
		</variable>

	
		
		
		
		<variable label="F-Button Used For Dimming" CV="117" default="0"  
					tooltip="CV 117 F-Button Used For Dimming">
			<enumVal>
				<enumChoice choice="None" />
				<enumChoice choice="F1" />
				<enumChoice choice="F2" />
				<enumChoice choice="F3" />
				<enumChoice choice="F4" />
				<enumChoice choice="F5" />
				<enumChoice choice="F6" />
				<enumChoice choice="F7" />
				<enumChoice choice="F8" />
				<enumChoice choice="F9" />
				<enumChoice choice="F10" />
				<enumChoice choice="F11" />
				<enumChoice choice="F12" />
			</enumVal>
		</variable>
		

		<variable label="Dim FL(f)" CV="118" mask="XXXXXXXV" default="0">
		    <enumVal><enumChoice choice="No"/><enumChoice choice="Dim"/></enumVal></variable>		
		<variable label="Dim FL(r)" CV="118" mask="XXXXXXVX" default="0">
		    <enumVal><enumChoice choice="No"/><enumChoice choice="Dim"/></enumVal></variable>
		<variable label="Dim F 1" CV="118" minOut="3" mask="XXXXXVXX" default="0">
		    <enumVal><enumChoice choice="No"/><enumChoice choice="Dim"/></enumVal></variable>
		<variable label="Dim F 2" CV="118" minOut="4" mask="XXXXVXXX" default="0">
		   <enumVal><enumChoice choice="No"/><enumChoice choice="Dim"/></enumVal></variable>
		<variable label="Dim F 3" CV="118" minOut="5" mask="XXXVXXXX" default="0">
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Dim F 4" CV="118" minOut="6" mask="XXVXXXXX" default="0">
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Dim F 5" CV="118" minOut="7" mask="XVXXXXXX" default="0">
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>
		<variable label="Dim F 6" CV="118" minOut="8" mask="VXXXXXXX" default="0">
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="On"/></enumVal></variable>

		<variable label="PWM Dimming" CV="119" default="0"  tooltip="CV 119 PWM Dimming 0 - 100%">
			<decVal min="0" max="100"/></variable>
		
		<variable label="Time Effect ON" CV="120" default="0"  tooltip="CV 120 Time Effect ON">
			<decVal/></variable>
						
		<variable label="Main Running Sound Level" CV="121" default="3">
			<enumVal>
				<enumChoice choice="0 (max)"/>
				<enumChoice choice="1 (min)"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				</enumVal>
		</variable>
		
		<variable label="Sound slot 1 volume" CV="122" mask="XXXXXXVV"	 default="0">
			<enumVal>
				<enumChoice choice="0 (max)"/>
				<enumChoice choice="1 (min)"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 1 auto repetition" CV="122" mask="XXXVVVXX"	 default="0">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 1 function repetition" CV="122" mask="VVVXXXXX"	 default="3">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>

		<variable label="Sound slot 2 volume" CV="123" mask="XXXXXXVV" default="0">
			<enumVal>
				<enumChoice choice="0 (max)"/>
				<enumChoice choice="1 (min)"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 2 auto repetition" CV="123" mask="XXXVVVXX" default="0">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 2 function repetition" CV="123" mask="VVVXXXXX" default="1">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>

		<variable label="Sound slot 3 volume" CV="124" mask="XXXXXXVV" default="0">
			<enumVal>
				<enumChoice choice="0 (max)"/>
				<enumChoice choice="1 (min)"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 3 auto repetition" CV="124" mask="XXXVVVXX" default="0">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 3 function repetition" CV="124" mask="VVVXXXXX" default="3">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>
		
		<variable label="Sound slot 4 volume" CV="125" mask="XXXXXXVV" default="0">
			<enumVal>
				<enumChoice choice="0 (max)"/>
				<enumChoice choice="1 (min)"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 4 auto repetition" CV="125" mask="XXXVVVXX" default="0">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 4 function repetition" CV="125" mask="VVVXXXXX" default="3">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>

		<variable label="Sound slot 5 volume" CV="126" mask="XXXXXXVV" default="0">
			<enumVal>
				<enumChoice choice="0 (max)"/>
				<enumChoice choice="1 (min)"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 5 auto repetition" CV="126" mask="XXXVVVXX" default="0">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 5 function repetition" CV="126" mask="VVVXXXXX" default="3">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>
		
		<variable label="Sound slot 6 volume" CV="127" mask="XXXXXXVV" default="0">
			<enumVal>
				<enumChoice choice="0 (max)"/>
				<enumChoice choice="1 (min)"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 6 auto repetition" CV="127" mask="XXXVVVXX" default="0">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 6 function repetition" CV="127" mask="VVVXXXXX" default="3">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>

		<variable label="Sound slot 7 volume" CV="128" mask="XXXXXXVV" default="0">
			<enumVal>
				<enumChoice choice="0 (max)"/>
				<enumChoice choice="1 (min)"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 7 auto repetition" CV="128" mask="XXXVVVXX" default="0">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 7 function repetition" CV="128" mask="VVVXXXXX" default="3">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>

		<!-- CV129 changed in V40, see also CV146 -->
		<variable label="Sound slot 8 volume" CV="129" mask="XXXXXXVV" include="SL75" default="0">
			<enumVal>
				<enumChoice choice="0 (max)"/>
				<enumChoice choice="1 (min)"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 8 auto repetition" CV="129" mask="XXXVVVXX"	include="SL75" default="0">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>
		<variable label="Sound slot 8 function repetition" CV="129" mask="VVVXXXXX"	include="SL75" default="3">
			<enumVal>
				<enumChoice choice="0"/>
				<enumChoice choice="1"/>
				<enumChoice choice="2"/>
				<enumChoice choice="3"/>
				<enumChoice choice="4"/>
				<enumChoice choice="5"/>
				<enumChoice choice="6"/>
				<enumChoice choice="7"/>
				</enumVal>
		</variable>
		
		<!-- CV129 moved to CV146 SL75 from V40 upwards !! -->
		<variable label="Strong Time" CV="129" default="4" include="SL51,SL74"	
			comment="Position 00-03 in Filelist" tooltip="CV129 Strong reduction of sound after acceleration, Position 00-03 in Filelist">
			<decVal/>
		</variable>
		
		<!-- See also CV129/146 for matching CV for "strong" time -->
		<variable label="Weak Time" CV="130" default="4" 
			comment="Position 08-11 in Filelist" tooltip="CV130 Slightly reduction of sound after breaking, Position 08-11 in Filelist">
			<decVal/>
		</variable>
		
		<variable label="Random Interval Aux Sounds" CV="131" default="20"
			comment="Unit=0.5secs">
			<decVal/>
		</variable>
		
		<variable label="Full Speed Exhaust Interval" CV="132" default="100"
			comment="Time between Exhaust Beats">
			<decVal/>
		</variable>
		
		<variable label="Logical Exhaust Interval" CV="133" default="0"
			comment="LowByte">
			<decVal/>
		</variable>
		<variable label="Time Between Beats" CV="134" default="0"
			comment="HighByte">
			<decVal/>
		</variable>
		<variable label="Speed Step 1 Exhaust Interval" CV="133" default="153"
			tooltip="&lt;html&gt;Time between exhausts at speed step 1, 1476/time,&lt;br&gt;
			range 1-65535, lower = fewer beats per second.&lt;/html&gt;">
			<splitVal highCV="134" upperMask="VVVVVVVV" factor="1"  />
		</variable>
		
		
		<variable label="Low Frequency Limit" CV="135" default="64">
			<decVal/>
		</variable>
				
		<variable label="High Frequency Limit" CV="136" default="128">
			<decVal/>
		</variable>
		
		<variable label="Function selection 8 or 14/MAN Bit" CV="137" mask="XXXXXXXV" default="0"
				comment="8 or 14 functions">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>	</variable>
		<variable label="Zimo address pulse" CV="137" mask="XXXXXXVX" default="0"
				comment="Zimo only">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>	</variable>
			
		<variable label="F1 strong/normal/weak if CV110 active" CV="137" mask="XXXXXVXX" default="0"
				comment="load dependent F1 output dimming">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>	</variable>
		<variable label="F2 strong/normal/weak if CV110 active" CV="137" mask="XXXXVXXX" default="0"
				comment="load dependent F2 output dimming">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal></variable>
		
		<variable label="Zimo speed control HLU" CV="137" mask="XXXVXXXX" default="0"
				comment="Zimo HLU">
			<enumVal><enumChoice choice="Off"/>	<enumChoice choice="On"/></enumVal>	</variable>
		
		<variable label="Start Sound before motor" CV="137" default="0" mask="XXVXXXXX" tooltip="CV137 bit 5" >
			<enumVal><enumChoice choice="off"/><enumChoice choice="on"/> </enumVal> </variable>			
		<variable label="LGB F4 Impulse" CV="137" default="0" mask="XVXXXXXX" tooltip="CV137 bit 6" >
			<enumVal><enumChoice choice="off"/><enumChoice choice="on"/> </enumVal> </variable>			
		<variable label="CV137 Motor frequency" CV="137" item="DC Brake Momentum" default="0" mask="VXXXXXXX" tooltip="CV137 bit 7" 
			comment="using DC Brake Momentum as feature to get this option onto Motor control pane">
			<enumVal><enumChoice choice="Std 150Hz/16kHz"/><enumChoice choice="32Khz"/> </enumVal> </variable>

		
		<variable label="ZIMO Brake Time HLU" CV="138" default="3"
			comment="Zimo Only">
			<decVal/>
		</variable>
		
		
		<variable label="Direct Cut Off Function Outputs" CV="139" default="35">
			<decVal/>
		</variable>
		
		<variable label="Fast Cut Off Function Outputs" CV="140" default="30"
			comment="Fast Cut off Functions">
			<decVal/>
		</variable>
				
		<variable label="Slow Cut Off Function Outputs" CV="141" default="25"
			comment="Slow Cut off Functions">
			<decVal/>
		</variable>
		
		<variable label="Direct Cut Off Motor" CV="142" default="150"
			comment="Direct Cut off Motor">
			<decVal/>
		</variable>
				
		<variable label="Fast Cut Off Motor" CV="143" default="130"
			comment="Fast Cut Off Motor">
			<decVal/>
		</variable>
		
		<variable label="Slow Cut Off Motor" CV="144" default="120"
			comment="Slow Cut off Motor">
			<decVal/>
		</variable>
		
		
		<variable label="Sound Loop" CV="145" default="0"
			tooltip="CV145 bitwise looping of sound slots if sound is spread over five elements, see manual">
			<decVal/>
		</variable>
		<variable label="Loop Sound Slot 1" CV="145"  mask="XXXXXXXV" default="0">
		    <enumVal><enumChoice choice="No"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Loop Sound Slot 2" CV="145" mask="XXXXXXVX" default="0">
		    <enumVal><enumChoice choice="No"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Loop Sound Slot 3" CV="145"  mask="XXXXXVXX" default="0">
		    <enumVal><enumChoice choice="No"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Loop Sound Slot 4" CV="145"  mask="XXXXVXXX" default="0">
		   <enumVal><enumChoice choice="No"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Loop Sound Slot 5" CV="145" mask="XXXVXXXX" default="0">
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Loop Sound Slot 6" CV="145" mask="XXVXXXXX" default="0">
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Loop Sound Slot 7" CV="145"  mask="XVXXXXXX" default="0">
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Loop Sound Slot 8" CV="145"  mask="VXXXXXXX" default="0" include="SL75" >
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="Yes"/></enumVal></variable>
		
		
		
		


<!--  
CV146 = 1 bedeutet: Z3 (Schaltfunktion) wird mit F7 geschaltet, 0 bedeutet Z3 inaktiv (gilt bis Version 39)
CV146 = 2 bedeutet: Z4 (Schaltfunktion) wird mit F8 geschaltet, 0 bedeutet Z4 inaktiv (gilt bis Version 39)
CV146 = 4 bedeutet: Gerausch3 wird mit F7 geschaltet, 0 bedeutet Gerausch3 inaktiv (gilt bis Version 39)
CV146 = 8 bedeutet: Gerausch4 wird mit F8 geschaltet, 0 bedeutet Gerausch4 inaktiv (gilt bis Version 39)
CV146 = 16 bedeutet: Z5 (Schaltfunktion) wird mit F9 geschaltet, 0 bedeutet Z5 inaktiv (gilt bis Version 39)
CV146 = 32 bedeutet: Z6 (Schaltfunktion) wird mit F10 geschaltet, 0 bedeutet Z6 inaktiv (gilt bis Version 39)
CV146 = 64 bedeutet: Gerausch5 wird mit F9 geschaltet, 0 bedeutet Gerausch5 inaktiv (gilt bis Version 39)
CV146 = 128 bedeutet: Gerausch6 wird mit F10 geschaltet, 0 bedeutet Gerausch6 inaktiv (gilt bis Version 39)
Default = 12   
Unclear how to use this in practise, as Function Map appears to duplicate the same.
Sept 2009 - believe this is obselete from V39 upwards, replaced by Function Mapping ??
		<variable label="Sound/Function Assignment" CV="146" default="12"
						tooltip="CV146 assigns sound or function output, see manual">
			<decVal />
		</variable>
		<variable label="Output Z3 with function F7" CV="146" minOut="5" mask="XXXXXXXV" default="0">
		    <enumVal><enumChoice choice="No"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Output Z4 with function F8" CV="146" minOut="6" mask="XXXXXXVX" default="0">
		    <enumVal><enumChoice choice="No"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Sound Slot G3 with function F7" CV="146"  mask="XXXXXVXX" default="1">
		    <enumVal><enumChoice choice="No"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Sound Slot G4 with function F8" CV="146"  mask="XXXXVXXX" default="1">
		   <enumVal><enumChoice choice="No"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Output Z5 with function F9" CV="146" minOut="7" mask="XXXVXXXX" default="0">
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Output Z5 with function F10" CV="146" minOut="8" mask="XXVXXXXX" default="0">
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Sound Slot G5 with function F9" CV="146"  mask="XVXXXXXX" default="0">
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="Yes"/></enumVal></variable>
		<variable label="Sound Slot G5 with function F10" CV="146"  mask="VXXXXXXX" default="0">
		   <enumVal><enumChoice choice="Off"/><enumChoice choice="Yes"/></enumVal></variable>
-->

		   
		   
		<!-- SL75 manual implies CV146 is replacement for CV129 from V40 onwards -->
		<variable label="Strong Time" CV="146" default="4" include="SL75"	
			comment="Position 00-03 in Filelist" tooltip="CV146 Strong reduction of sound after acceleration, Position 00-03 in Filelist">
			<decVal/>
		</variable>
		
		
	<!-- Special CVs for automatically uncoupling, available from version 33 -->
		
		<variable label="Speed Step Coupling Release" CV="147" default="20"
			tooltip="CV147">
			<decVal max="127"/>
		</variable>
		
		<variable label="Speed Step Uncoupled" CV="148" default="50"
			tooltip="CV148">
			<decVal max="127"/>
		</variable>
		
		<variable label="Time Driving Backwards" CV="149" default="5"
			tooltip="CV149, Unit 0.1 sec">
			<decVal/>
		</variable>
		
		<variable label="Time Driving Forwards" CV="150" default="10"
			tooltip="CV150, Unit 0.1 sec">
			<decVal/>
		</variable>
		
		<variable label="F-Button Used For Autouncoupling" CV="151" default="3"
			tooltip="CV151, Functions 1 to 12 possible">
			<decVal max="12"/>
		</variable>
		
		<variable label="Engine FWD, Uncoupling BWD" CV="152" default="4"
			tooltip="CV152, Engine FWD, output wire for rear uncoupler, values either 1,2,3,4, or 1,2,4,8">
			<decVal/>
		</variable>
		
		<variable label="Engine BWD, Uncoupling FWD" CV="153" default="8"
			tooltip="CV153, Engine BWD, output wire for front uncoupler, values either 1,2,3,4, or 1,2,4,8">
			<decVal/>
		</variable>



		<!-- Tran Light Effects  -->
		
		<variable label="Light Effects FL(f)" CV="154" default="0"	tooltip="CV154, Light Effects FL(f), see manual"  >
			<decVal/></variable>
		<variable label="Light Effects FL(r)" CV="155" default="0"	tooltip="CV155, Light Effects FL(r), see manual"  >
			<decVal/></variable>		
		<variable label="Light Effects F 1" CV="156" default="0"	tooltip="CV156, Light Effects F 1, see manual"  >
			<decVal/></variable>		
		<variable label="Light Effects F 2" CV="157" default="0"	tooltip="CV157, Light Effects F 2, see manual"  >
			<decVal/></variable>		
		<variable label="Light Effects F 3" CV="158" default="0"	tooltip="CV158, Light Effects F 3, see manual"  >
			<decVal/></variable>		
		<variable label="Light Effects F 4" CV="159" default="0"	tooltip="CV159, Light Effects F 4, see manual" >
			<decVal/></variable>		
		<variable label="Light Effects F 5" CV="160" default="0"	tooltip="CV160, Light Effects F 5, see manual" >
			<decVal/></variable>
		<variable label="Light Effects F 6" CV="161" default="0"	tooltip="CV161, Light Effects F 6, see manual" >
			<decVal/></variable>
		
		<variable label="Light Effects F0F" CV="154" mask="XXXVVVVV" default="0"  tooltip="CV154, Effects on F0F">
			<enumVal>
				<enumChoice choice="No effect" />
				<enumChoice choice="Flashing" />
				<enumChoice choice="Blinking" />
				<enumChoice choice="Single Pulse Strobe" />
				<enumChoice choice="Double Strobe" />
				<enumChoice choice="Flashing Headlamp" />
				<enumChoice choice="Ditch Light Left" />
				<enumChoice choice="Ditch Light Right" />
				<enumChoice choice="Rotary Beacon" />
				<enumChoice choice="Gyralite" />
				<enumChoice choice="Mars Light" />
				<enumChoice choice="Soft Start" />
			</enumVal>
		</variable>
		<variable label="Light Effects Direction F0F" CV="154" mask="VVXXXXXX" tooltip="CV154 bits 6,7" >
			<enumVal> 
				<enumChoice choice="Both"/>	<enumChoice choice="Forward"/> <enumChoice choice="Reverse"/>
			</enumVal> </variable>
		
		<variable label="Light Effects F0R" CV="155" mask="XXXVVVVV" default="0"	tooltip="CV155, Effects on F0R">
			<enumVal>
				<enumChoice choice="No effect" />
				<enumChoice choice="Flashing" />
				<enumChoice choice="Blinking" />
				<enumChoice choice="Single Pulse Strobe" />
				<enumChoice choice="Double Strobe" />
				<enumChoice choice="Flashing Headlamp" />
				<enumChoice choice="Ditch Light Left" />
				<enumChoice choice="Ditch Light Right" />
				<enumChoice choice="Rotary Beacon" />
				<enumChoice choice="Gyralite" />
				<enumChoice choice="Mars Light" />
				<enumChoice choice="Soft Start" />
			</enumVal>
		</variable>
		<variable label="Light Effects Direction F0R" CV="155" mask="VVXXXXXX" tooltip="CV155 bits 6,7" >
			<enumVal> 
				<enumChoice choice="Both"/>	<enumChoice choice="Forward"/> <enumChoice choice="Reverse"/>
			</enumVal> </variable>
		
		<variable label="Light Effects F1" CV="156" mask="XXXVVVVV" default="0"	tooltip="CV156, Effects on F1" minOut="3">
			<enumVal>
				<enumChoice choice="No effect" />
				<enumChoice choice="Flashing" />
				<enumChoice choice="Blinking" />
				<enumChoice choice="Single Pulse Strobe" />
				<enumChoice choice="Double Strobe" />
				<enumChoice choice="Flashing Headlamp" />
				<enumChoice choice="Ditch Light Left" />
				<enumChoice choice="Ditch Light Right" />
				<enumChoice choice="Rotary Beacon" />
				<enumChoice choice="Gyralite" />
				<enumChoice choice="Mars Light" />
				<enumChoice choice="Soft Start" />
			</enumVal>
		</variable>
		<variable label="Light Effects Direction F1" CV="156" mask="VVXXXXXX" tooltip="CV156 bits 6,7" minOut="3">
			<enumVal> 
				<enumChoice choice="Both"/>	<enumChoice choice="Forward"/> <enumChoice choice="Reverse"/>
			</enumVal> </variable>
			
		<variable label="Light Effects F2" CV="157" mask="XXXVVVVV" default="0" minOut="4"	tooltip="CV157, Effects on F2">
			<enumVal>
				<enumChoice choice="No effect" />
				<enumChoice choice="Flashing" />
				<enumChoice choice="Blinking" />
				<enumChoice choice="Single Pulse Strobe" />
				<enumChoice choice="Double Strobe" />
				<enumChoice choice="Flashing Headlamp" />
				<enumChoice choice="Ditch Light Left" />
				<enumChoice choice="Ditch Light Right" />
				<enumChoice choice="Rotary Beacon" />
				<enumChoice choice="Gyralite" />
				<enumChoice choice="Mars Light" />
				<enumChoice choice="Soft Start" />
			</enumVal>
		</variable>
		<variable label="Light Effects Direction F2" CV="157" mask="VVXXXXXX" tooltip="CV156 bits 6,7" minOut="4">
			<enumVal> 
				<enumChoice choice="Both"/>	<enumChoice choice="Forward"/> <enumChoice choice="Reverse"/>
			</enumVal> </variable>
	

		
		<variable label="Diode Sensitivity" CV="162" default="0"
			tooltip="CV162, diode sensitivity for Diode Braking (suggest 10-20)">
			<decVal max="255"/>
		</variable>
		
<!--  remainder of Tran Function Mapping -->
		<variable label="FL(f) controls output Ra" CV="163" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output Se" CV="163" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output Alt" CV="163" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output G1" CV="163" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output G2" CV="163" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output G3" CV="163" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output G4" CV="163" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(f) controls output G5" CV="163" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
	
		<variable label="FL(r) controls output Ra" CV="164" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output Se" CV="164" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output Alt" CV="164" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output G1" CV="164" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output G2" CV="164" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output G3" CV="164" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output G4" CV="164" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="FL(r) controls output G5" CV="164" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F1 controls output Ra" CV="165" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output Se" CV="165" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output Alt" CV="165" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output G1" CV="165" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output G2" CV="165" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output G3" CV="165" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output G4" CV="165" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F1 controls output G5" CV="165" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F2 controls output Ra" CV="166" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output Se" CV="166" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output Alt" CV="166" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output G1" CV="166" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output G2" CV="166" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output G3" CV="166" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output G4" CV="166" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F2 controls output G5" CV="166" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
						
		<variable label="F3 controls output Ra" CV="167" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output Se" CV="167" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output Alt" CV="167" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output G1" CV="167" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output G2" CV="167" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output G3" CV="167" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output G4" CV="167" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F3 controls output G5" CV="167" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
	
		<variable label="F4 controls output G1" CV="168" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output G2" CV="168" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output G3" CV="168" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output G4" CV="168" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output G5" CV="168" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output G6" CV="168" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output G7" CV="168" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F4 controls output G8" CV="168" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>

		<variable label="F5 controls output G1" CV="169" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output G2" CV="169" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output G3" CV="169" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output G4" CV="169" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output G5" CV="169" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output G6" CV="169" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output G7" CV="169" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F5 controls output G8" CV="169" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>			
		
		<variable label="F6 controls output G1" CV="170" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output G2" CV="170" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output G3" CV="170" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output G4" CV="170" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output G5" CV="170" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output G6" CV="170" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output G7" CV="170" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F6 controls output G8" CV="170" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>			

		<variable label="F7 controls output G1" CV="171" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output G2" CV="171" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output G3" CV="171" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output G4" CV="171" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output G5" CV="171" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output G6" CV="171" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output G7" CV="171" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F7 controls output G8" CV="171" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>			

		<variable label="F8 controls output G1" CV="172" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output G2" CV="172" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output G3" CV="172" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output G4" CV="172" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output G5" CV="172" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output G6" CV="172" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output G7" CV="172" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F8 controls output G8" CV="172" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>			

		<variable label="F9 controls output G4" CV="173" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output G5" CV="173" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output G6" CV="173" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output G7" CV="173" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output G8" CV="173" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output Z7" CV="173" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output Z8" CV="173" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F9 controls output Z9" CV="173" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>			

		<variable label="F10 controls output G4" CV="174" mask="XXXXXXXV" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output G5" CV="174" mask="XXXXXXVX" minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output G6" CV="174" mask="XXXXXVXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output G7" CV="174" mask="XXXXVXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output G8" CV="174" mask="XXXVXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output Z7" CV="174" mask="XXVXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output Z8" CV="174" mask="XVXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>
		<variable label="F10 controls output Z9" CV="174" mask="VXXXXXXX"  minFn="12"> <enumVal> 
			<enumChoice choice="No"/> <enumChoice choice="Yes"/> </enumVal> </variable>					
		
		
		<variable label="Acceleration Sound Trigger" CV="177" default="00"
			tooltip="CV177 rate of speed change to trigger accel noise slots 123-125">
			<decVal max="255"/>
		</variable>
		
		
	</variables>
	
</decoder>
	

	
	
<pane name="Sound Config">
	<column>
		<row>
			<column>
				<label label="  "/>
				<label label=" Note, this pane is still work in progress.  "/>
				<label label=" Particularly note that strong time for SL75 is CV146, previous decoders were CV129. "/>
				<label label=" Recommend care when changing settings, and take notes.  Information on how this pane with"/>
				<label label=" works with different decoders would be welcome. "/>
				<label label="  "/>
			</column>
		</row>
		<row>
			<column>
				<label label="Sound type selection"/>
				<display item="Steam/Diesel sound types" label="Sound type " />  <!-- new drop-down -->
				<label label="  "/>
				<label label="Full speed rate, or if chuff sensor used," />
				<label label="divider for number of chuff pulses per wheel revolution"/>
				<display item="Full Speed Exhaust Interval" tooltip="CV132"/>
				<!-- <display item="Full Speed Exhaust Interval" format="hslider" label="" />  -->
				<label label="  "/>
				<label label="Low speed chuff rate (two byte number)"/>
				<display item="Speed Step 1 Exhaust Interval" />
				<display item="Logical Exhaust Interval" tooltip="lowbytes CV133" label="lowbytes of above" />
				<!-- <display item="Logical Exhaust Interval" tooltip="lowbytes CV133" format="hslider" label="" /> -->
				<display item="Time Between Beats" tooltip="highbytes CV134" label="highbytes of above" />
				<!-- <display item="Time Between Beats" tooltip="highbytes CV134" format="hslider" label="" />  -->
			
				<label label="  "/>
				<label label="Strong and Weak time sets period for acceleration"/>
				<label label="and decelleration sounds to be heard  "/>
				<display item="Strong Time" tooltip="CV53, acceleration noise triggered by this setting" />
				<!-- <display item="Strong Time" format="hslider" label="" tooltip="CV53, Sets the switch ON dimming of F1" /> -->
				<!-- <label label="  "/>  -->
				<display item="Weak Time" tooltip="CV56, coasting noise triggered by this setting" />
				<!-- <display item="Weak Time" format="hslider" label="" tooltip="CV56, Sets the symmetry of F1" /> -->
				<label label="  "/>
				<label label="Brake and Acceleration Sounds "/>
				<display item="Brake Sound Trigger" label="Brake Sound Steps (brake squeal)"/>
				<display item="Braking Threshold Finish" />
				<display item="Acceleration Sound Trigger" label="Acceleration Sound Steps (whistle)"/>
				<label label="  "/>
			</column>
			<column>
				<label label="            "/>
			</column>	
			<column>
				<!-- 
				<display item="Decoder Properties/Synchropulses" label="Wheel Synch Pulse input" 
							tooltip="CV 49 Bit 0: pulses OFF/ON, set pulses per rev in CV133"  format="checkbox" />
				<display item="Diesel and E Locosound" tooltip="CV 49 Bit 1:OFF/ON"  format="checkbox" />
				<display item="2 Cylinder Steam" tooltip="CV 49 Bit 2:OFF/ON"  format="checkbox" />
				<display item="3 Cylinder Steam" tooltip="CV 49 Bit 3:OFF/ON"  format="checkbox" />
				-->
				<label label="Sound options"/>
				<display item="No Steam Exhaust Downhill" tooltip="CV 49 Bit 4:OFF/ON"  format="checkbox" />
				<display item="Continuous Sound CV 10, F 1" label="evaluate the LGB-pulse from F1" tooltip="CV 49 Bit 5:OFF/ON"  format="checkbox" />
				<display item="No Sound stop to moving (whistle)" tooltip="CV49 Bit 6"   format="checkbox" />
				<display item="No Sound moving to stop (brake squeal)" tooltip="CV49 Bit 7"   format="checkbox" />
				
				<label label="  "/>
				<display item="Start Sound before motor" format="checkbox"/>
				<label label="  "/>
				<label label="Sound Frequency, alters apparent size of locomotive"/>
				<display item="High Frequency Limit" tooltip="CV 136"/>
				<display item="Low Frequency Limit" tooltip="CV 135"/> 
				<label label="  "/>
				<label label="  "/>
				<display item="Load Dependant Sound Variation" tooltip="CV 110, values 0 - 15"/>
				<display item="F1 strong/normal/weak if CV110 active" tooltip="CV 137 Bit2"  format="checkbox" />
				<display item="F2 strong/normal/weak if CV110 active" tooltip="CV 137 Bit3"  format="checkbox" />
				<label label="  "/>
				<label label="  "/>
				<label label="  "/>
				<label label="  "/>
			</column>
		</row>
	</column>
</pane>
	
	
<pane name="Sound Slots and Repetition">
	<column>
	<row>
		<column>
			<label label="  "/>
			<display item="Main Running Sound Level"/>
			<label label="  "/>
			<label label="Set function keys to turn on/off main sound and sound slots in Function Map"/>
			<label label="  "/>
			<separator/>
			<label label="  "/>
			<label label="Slot Sound Levels, automatic and function key repetition rates, CV's 112, 113, 122 to 128, 145"/>
			<label label="Each slot can play randomly when standing or when moving. Set with checkboxes below.  " />
			<label label="Sounds can also be played by function key (set in function map), with repetitions and if sound"/>
			<label label="is made of five components can be made to loop for continuous sounds (see CT manuals)" />
			<label label="  "/>
			<display item="Random Interval Aux Sounds" tooltip="CV 131" label="Random time between sounds selected below (0.5sec)"/>
			<label label="  "/>
		</column>
	</row>
	<row>	
		<column>	<display item="Sound slot 1 volume" label="Sound slot 1 volume   " />	</column>
		<column>	<display item="Random Idling Slot 1" format="checkbox" label="      Standing" tooltip="Play Sound randomly whilst standing"/>	</column>
		<column>	<display item="Random Running Slot 1" format="checkbox"  label="  Running" tooltip="Play Sound randomly whilst running"/>	</column>			
		<column>	<display item="Sound slot 1 auto repetition" label="  Repetitions "/>	</column>
		<column>	<display item="Sound slot 1 function repetition" label="          Fn Key Repetitions"/>	</column>
		<column>	<display item="Loop Sound Slot 1"  format="checkbox" label="  Fn Loop " tooltip="CV145 Only if sound spread over five slots"/>	</column>		
	</row>
	<row>	
		<column>	<display item="Sound slot 2 volume" label="Sound slot 2 volume   " />	</column>
		<column>	<display item="Random Idling Slot 2" format="checkbox" label="      Standing" tooltip="Play Sound randomly whilst standing"/>	</column>
		<column>	<display item="Random Running Slot 2" format="checkbox"  label="  Running" tooltip="Play Sound randomly whilst running"/>	</column>			
		<column>	<display item="Sound slot 2 auto repetition" label="  Repetitions "/>	</column>
		<column>	<display item="Sound slot 2 function repetition" label="          Fn Key Repetitions"/>	</column>	
		<column>	<display item="Loop Sound Slot 2"  format="checkbox" label="  Fn Loop " tooltip="CV145 Only if sound spread over five slots"/>	</column>		
	</row>
	<row>	
		<column>	<display item="Sound slot 3 volume" label="Sound slot 3 volume   " />	</column>
		<column>	<display item="Random Idling Slot 3" format="checkbox" label="      Standing" tooltip="Play Sound randomly whilst standing"/>	</column>
		<column>	<display item="Random Running Slot 3" format="checkbox"  label="  Running" tooltip="Play Sound randomly whilst running"/>	</column>			
		<column>	<display item="Sound slot 3 auto repetition" label="  Repetitions "/>	</column>
		<column>	<display item="Sound slot 3 function repetition" label="          Fn Key Repetitions"/>	</column>	
		<column>	<display item="Loop Sound Slot 3"  format="checkbox" label="  Fn Loop " tooltip="CV145 Only if sound spread over five slots"/>	</column>		
	</row>
	<row>	
		<column>	<display item="Sound slot 4 volume" label="Sound slot 4 volume   " />	</column>
		<column>	<display item="Random Idling Slot 4" format="checkbox" label="      Standing" tooltip="Play Sound randomly whilst standing"/>	</column>
		<column>	<display item="Random Running Slot 4" format="checkbox"  label="  Running" tooltip="Play Sound randomly whilst running"/>	</column>			
		<column>	<display item="Sound slot 4 auto repetition" label="  Repetitions "/>	</column>
		<column>	<display item="Sound slot 4 function repetition" label="          Fn Key Repetitions"/>	</column>	
		<column>	<display item="Loop Sound Slot 4"  format="checkbox" label="  Fn Loop " tooltip="CV145 Only if sound spread over five slots"/>	</column>		
	</row>
	<row>	
		<column>	<display item="Sound slot 5 volume" label="Sound slot 5 volume   " />	</column>
		<column>	<display item="Random Idling Slot 5" format="checkbox" label="      Standing" tooltip="Play Sound randomly whilst standing"/>	</column>
		<column>	<display item="Random Running Slot 5" format="checkbox"  label="  Running" tooltip="Play Sound randomly whilst running"/>	</column>			
		<column>	<display item="Sound slot 5 auto repetition" label="  Repetitions "/>	</column>
		<column>	<display item="Sound slot 5 function repetition" label="          Fn Key Repetitions"/>	</column>	
		<column>	<display item="Loop Sound Slot 5"  format="checkbox" label="  Fn Loop " tooltip="CV145 Only if sound spread over five slots"/>	</column>		
	</row>
	<row>	
		<column>	<display item="Sound slot 6 volume" label="Sound slot 6 volume   " />	</column>
		<column>	<display item="Random Idling Slot 6" format="checkbox" label="      Standing" tooltip="Play Sound randomly whilst standing"/>	</column>
		<column>	<display item="Random Running Slot 6" format="checkbox"  label="  Running" tooltip="Play Sound randomly whilst running"/>	</column>			
		<column>	<display item="Sound slot 6 auto repetition" label="  Repetitions "/>	</column>
		<column>	<display item="Sound slot 6 function repetition" label="          Fn Key Repetitions"/>	</column>	
		<column>	<display item="Loop Sound Slot 6"  format="checkbox" label="  Fn Loop " tooltip="CV145 Only if sound spread over five slots"/>	</column>		
	</row>
	<row>	
		<column>	<display item="Sound slot 7 volume" label="Sound slot 7 volume   " />	</column>
		<column>	<display item="Random Idling Slot 7" format="checkbox" label="      Standing" tooltip="Play Sound randomly whilst standing"/>	</column>
		<column>	<display item="Random Running Slot 7" format="checkbox"  label="  Running" tooltip="Play Sound randomly whilst running"/>	</column>			
		<column>	<display item="Sound slot 7 auto repetition" label="  Repetitions "/>	</column>
		<column>	<display item="Sound slot 7 function repetition" label="          Fn Key Repetitions"/>	</column>	
		<column>	<display item="Loop Sound Slot 7"  format="checkbox" label="  Fn Loop " tooltip="CV145 Only if sound spread over five slots"/>	</column>		
	</row>
		<row>	
		<column>	<display item="Sound slot 8 volume" label="Sound slot 8 volume   " />	</column>
		<column>	<display item="Random Idling Slot 8" format="checkbox" label="      Standing" tooltip="Play Sound randomly whilst standing"/>	</column>
		<column>	<display item="Random Running Slot 8" format="checkbox"  label="  Running" tooltip="Play Sound randomly whilst running"/>	</column>			
		<column>	<display item="Sound slot 8 auto repetition" label="  Repetitions "/>	</column>
		<column>	<display item="Sound slot 8 function repetition" label="          Fn Key Repetitions"/>	</column>	
		<column>	<display item="Loop Sound Slot 8"  format="checkbox" label="  Fn Loop " tooltip="CV145 Only if sound spread over five slots"/>	</column>		
	</row>
	</column>		
</pane>

<pane name="Yard mode and Auto Uncoupling">
		<column>
		  	<label label="Yard Mode (select function key in function map)"/>
		  	<separator/>
			<display item="Switching 1" label="Shunting CV3 and 4 disabled" tooltip="CV 116, Bit 0" format="checkbox" />
			<display item="Switching 2" label="Shunting max.half speed forw+rev" tooltip="CV 116, Bit 1" format="checkbox" />
			<display item="Switching 3" label="Rev.max.speed 65% indep. of Yard mode" tooltip="CV 116, Bit 2" format="checkbox" />
			<label label=" " />
			<separator/>
			<label label=" " />
			<label label="Diode Braking. Applies certain hardware only." />
			<label label="(Lenz ABC)" />
			<display item="Diode Braking" format="checkbox"/>
			<display item="Diode Braking non-Directional" format="checkbox"/>
			<display item="Yard Mode disable auto braking" format="checkbox"/>
			<display item="Diode Sensitivity"/>
			<label label=" " />
		</column>
		<column>
			<label label="Automatic Uncoupling"/>
			<separator/>
			<label label="Backup relieve coupling tension" />
			<display item="Speed Step Coupling Release"/>
			<display item="Time Driving Backwards"/>
			<label label=" "/>
			<label label="Drive forwards to clear train" />
			<display item="Speed Step Uncoupled"/>
			<display item="Time Driving Forwards"/>
			<label label=" "/>
			<display item="F-Button Used For Autouncoupling"/>
			<label label=" "/>
			<label label="Function Outputs to operate coupling"/>
			<display item="Engine FWD, Uncoupling BWD" label="Loco going fwd, rear coupler"/>
			<display item="Engine BWD, Uncoupling FWD" label="Loco going bwd, front coupler"/>
		</column>
		<column>
			<label label="Uncoupler Assignment"/>
			<separator/>
			<display item="Uncoupler Holding Current" tooltip="CV 55 reduced current or off if 0"/>
			<display item="Uncoupler Pulse Time" tooltip="CV 56 in 1/20 sec"/>
			<separator/>
			<display item="Output Uncoupler FL(f)" tooltip="CV 58, Bit 0" format="checkbox" />
			<display item="Output Uncoupler FL(r)" tooltip="CV 58, Bit 1" format="checkbox" />
			<display item="Output Uncoupler F 1" tooltip="CV 58, Bit 2" format="checkbox" />
			<display item="Output Uncoupler F 2" tooltip="CV 58, Bit 3" format="checkbox" />
			<display item="Output Uncoupler F 3" tooltip="CV 58, Bit 4" format="checkbox" />
			<display item="Output Uncoupler F 4" tooltip="CV 58, Bit 5" format="checkbox" />
			<display item="Output Uncoupler F 5" tooltip="CV 58, Bit 6" format="checkbox" />
			<display item="Output Uncoupler F 6" tooltip="CV 58, Bit 7" format="checkbox" />	
			<label label=" " />
		</column>
</pane>


<pane name="Output Dimming, Effects and Uncoupler">
		<column>
			<label label="Output Dimming"/>
			<separator/>
			<display item="PWM Function Outputs"/>
			<label label="  "/>
			<separator/>  
			<display item="Dimming Output FL(f)"  format="checkbox" />
			<display item="Dimming Output FL(r)"  format="checkbox" />
			<display item="Dimming Output F 1"  format="checkbox" />
			<display item="Dimming Output F 2"  format="checkbox" />
			<display item="Dimming Output F 3"  format="checkbox" />
			<display item="Dimming Output F 4"  format="checkbox" />
			<display item="Dimming Output F 5"  format="checkbox" />
			<display item="Dimming Output F 6"  format="checkbox" />	
		</column>
		

		<column>
			<label label="Function Key Controlled Dimming"/>
			<label label="CV 116-118"/>
			<separator/>
			<label label="Note, Function Key 'on' will remove"/>
			<label label="the dimming from a lamp."/>
			<label label="  "/>
			<display item="F-Button Used For Dimming" label="F-Key For Dimming"/>
			<label label="  "/>
			<display item="PWM Dimming" label="Dimming level (0-100)" />
			<label label="  "/>
			
			<display item="Dim FL(f)" label="F-Key Dims FL(f)" format="checkbox" />
			<display item="Dim FL(r)" label="F-Key Dims FL(r)" format="checkbox" />
			<display item="Dim F 1" label="F-Key Dims F1" format="checkbox" />
			<display item="Dim F 2" label="F-Key Dims F2" format="checkbox" />
		</column>		
		<column>
				<label label="Light Effects"/>
			<label label="CV 114/115 and CV 154-157"/>
			<separator/>
				
			<!--  NC replaces text entry with drop-downs, v1.5
			<display item="Light Effects FL(f)" />
			<display item="Light Effects FL(r)" />
			<display item="Light Effects F 1" />
			<display item="Light Effects F 2" />
			<display item="Light Effects F 3" />
			<display item="Light Effects F 4" />
			<display item="Light Effects F 5" />
			<display item="Light Effects F 6" />
			<label label="  "/>
			-->
			<label label="  "/>
			<display item="PWM Light Effects Outputs" label="Dimming of Effect (0-100)"/>
			<display item="Time Between Effects" label="Time Between Effects (0-255)"/>
			<label label="  "/>
			<display item="Light Effects F0F" label="Effect FL(f) (white)"/>
			<display item="Light Effects Direction F0F" label="Direction"/>
			<label label="  "/>
			<display item="Light Effects F0R" label="Effect FL(r) (yellow)"/>
			<display item="Light Effects Direction F0R" label="Direction"/>
			<label label="  "/>
			<display item="Light Effects F1" label="Effect F1 (green)"/>
			<display item="Light Effects Direction F1" label="Direction"/>
			<label label="  "/>
			<display item="Light Effects F2" label="Effect F2 (purple)"/>
			<display item="Light Effects Direction F2" label="Direction"/>		
			<label label="  "/>
			<display item="Sound/Function Assignment"/>
			<label label="  "/>
		</column>
<!--		<column>			
				<label label="  "/>
				<display item="PWM Light Effects Outputs"/>
				<label label="  "/>
				<display item="PWM Light Effects Outputs" format="vslider" label=""/>
				<label label="  "/>
		</column>		
-->
			
</pane>
	
<pane name="Roco LGB Zimo CT">
		<column>
			<label label="Zimo Features" />
			<label label=" " />
			<display item="ZIMO Signal Controlled Speed L" tooltip="CV 59"/>
			<display item="ZIMO Signal Controlled Speed U" tooltip="CV 60"/>
			<display item="ZIMO Signal Controlled Acc Reaction" tooltip="CV 61"/>
			<label label= " " />
			<display item="ZIMO Course influence F-L" />
			<display item="ZIMO Course influence L-U" />
			<display item="ZIMO Course influence U" />
			<label label="  "/>
			<display item="Function selection 8 or 14/MAN Bit" tooltip="CV 137 Bit 0"/>
			<label label="  "/>
			<display item="Zimo address pulse" tooltip="CV 137 Bit 1"/>
			<display item="Zimo speed control HLU" tooltip="CV 137 Bit 4"/>
			<display item="ZIMO Brake Time HLU" tooltip="cv 138"/>
			
		</column>
			
		<column>	
			<label label="LGB Features" />
			<label label=" " />
			<display item="LGB Continuous Manual Sound Bitmask" tooltip="CV 108"/>
			<display item="LGB F4 Impulse" />
			
			<label label="  "/>
			<separator/>
			<label label="CT Alternative CV Set" />
			<label label=" " />
			<display item="Select CV Set 1 or 2" tooltip=" Selects CV Set 1(OFF) or 2(ON)"/>
		</column>
		
		<column>
			<display item="ACK Pulse" tooltip="CV 111"/>
			<display item="Error Diagnosis" tooltip="CV 30"/>
		</column>
</pane>	
			
	
<pane name="Lock and Shortcircuit Threshholds">
		<column>
			<label label="  "/>
			<display item="Decoder Lock"/>
			<label label="  "/>
		<separator/>
			<label label="  "/>
			<display item="Direct Cut Off Function Outputs" tooltip="CV 139"/>
			<display item="Fast Cut Off Function Outputs" tooltip="CV 140"/>
			<display item="Slow Cut Off Function Outputs" tooltip="CV 141"/>
			<label label="  "/>
		<separator/>
			<label label="  "/>
			<display item="Direct Cut Off Motor" tooltip="CV 142"/>
			<display item="Fast Cut Off Motor" tooltip="CV 143"/>
			<display item="Slow Cut Off Motor" tooltip="CV 144"/>
			<label label="  "/>
		</column>
</pane>


</decoder-config>



 	  	 
