<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!DOCTYPE decoder-config SYSTEM "../DTD/decoder-config.dtd">
<!-- Copyright (C) JMRI 2010 All rights reserved -->
<!--                                                                        -->
<!-- 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>
    <version author="Michael Mosher" version="1" lastUpdated="20100430"/>
    <version author="Michael Mosher" version="2" lastUpdated="20100717"/>

<!-- V1: - Created from TCS_bemf -->
<!-- V2: - Added EU621 & LL8 decoders -->
<!-- Version 2.1- 20110214 Added Rest to Factory defaults CV8>2(wsthompson@earthlink.net) -->

    <decoder>
        <family name="TCS V51+" mfg="Train Control Systems" comment="TCS Ver 51 on" lowVersionID="51" highVersionID="52">
        
            <model model="A4X" numOuts="4" numFns="14" maxMotorCurrent="1.3A (peak=2A)" formFactor="PnP">
                <size length="2.860" width="0.680" height="0.145" units="inches"/>
                <output name="1" label="White" connection="solder" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="solder" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="A6X" numOuts="6" numFns="14" maxMotorCurrent="1.3A (peak=2A)" formFactor="PnP">
                <size length="2.860" width="0.680" height="0.145" units="inches"/>
                <output name="1" label="White" connection="solder" maxcurrent="200 mA"/>
                <output name="2" label="Yellow" connection="solder" maxcurrent="200 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="200 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="200 mA"/>
                <output name="5" label="Brown" connection="solder" maxcurrent="200 mA"/>
                <output name="6" label="Pink" connection="solder" maxcurrent="200 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="ALD4" numOuts="4" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N Drop-in" comment="Fits Atlas N Scale: SD50 SD60">
                <size length="2.83" width="0.351" height="0.13" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="50 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="50 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="50 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="50 mA"/>
                <output name="Dim"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="AMD4" numOuts="4" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N Drop-in" comment="Fits Atlas N Scale: B23-7, B30-7, B36-7, C628, C630, Dash8-32BW, Dash8-40B, Dash8-40BW and GP-38. Fits Atlas DCC Ready:  GP-40, GP-40-2, SD-7, SD-9, SD-35, Trainmaster and U25B">
                <size length="2.83" width="0.351" height="0.13" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="50 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="50 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="50 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="50 mA"/>
                <output name="Dim"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="ASD4" numOuts="4" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N Drop-in" comment="Fits Atlas N Scale: B23-7, B30-7, B36-7, C628, C630, Dash8-32BW, Dash8-40B, Dash8-40BW and GP-38. Fits Atlas DCC Ready:  GP-40, GP-40-2, SD-7, SD-9, SD-35, Trainmaster and U25B">
                <size length="2.73" width="0.349" height="0.13" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="50 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="50 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="50 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="50 mA"/>
                <output name="Dim"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="CN" numOuts="2" numFns="14" maxMotorCurrent="1.3A (peak=2A)" formFactor="PnP" comment="Fits  Classic N locos with split lighting board, 2 functions">
                <size length="0.834" width="0.361" height="0.101" units="inches"/>
                <output name="1" label="White" connection="solder" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="solder" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="CN-GP" numOuts="4" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="PnP" comment="Fits  GP-style N locos with split lighting board, 4 functions">
                <size length="0.73" width="0.36" height="0.15" units="inches"/>
                <output name="1" label="White" connection="solder" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="solder" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="DP2X" numOuts="2" numFns="14" maxMotorCurrent="1.3A (peak=2A)" formFactor="PnP">
                <size length="0845" width="0.680" height="0.165" units="inches"/>
                <output name="1" label="White" connection="plug" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="plug" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="DP2X-UK" numOuts="2" numFns="14" maxMotorCurrent="1.3A (peak=2A)" formFactor="PnP"
            	comment="UK  version of DP2X different pin orientation - fits Atlas vacuumcar">
                <size length="0845" width="0.680" height="0.165" units="inches"/>
                <output name="1" label="White" connection="plug" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="plug" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="DP5" numOuts="5" numFns="14" maxMotorCurrent="1.3A (peak=2A)" formFactor="PnP" >
                <output name="1" label="White" connection="other" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="100 mA"/>
                <output name="5" label="Brown" connection="solder" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="EU621" numOuts="6" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="PnP">
                <size length="0.78" width="0.59" height="0.13" units="inches"/>
                <output name="1" label="White" connection="wire" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="wire" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="wire" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="wire" maxcurrent="100 mA"/>
                <output name="5" label="Brown" connection="wire" maxcurrent="100 mA"/>
                <output name="6" label="Pink" connection="wire" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="EUN651" numOuts="4" numFns="14" maxMotorCurrent="1.3A (peak=2A)" formFactor="PnP"
            	comment="European 6 pin connector">
                <size length="0845" width="0.680" height="0.165" units="inches"/>
                <output name="1" label="White" connection="plug" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="plug" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>        
			<model model="G8" numOuts="8" numFns="14" maxMotorCurrent="?" formFactor="O" >
                <size length="3.0" width="1.45" height="0.0" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="100 mA"/>
                <output name="5" label="Brown" connection="solder" maxcurrent="100 mA"/>
                <output name="6" label="Pink" connection="solder" maxcurrent="100 mA"/>
                <output name="7" label="Pnk/Pur" connection="solder" maxcurrent="100 mA"/>
                <output name="8" label="Grn/Brn" connection="solder" maxcurrent="100 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
        	<model model="IMD4" numOuts="4" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP">
                <size length="2.83" width="0.351" height="0.13" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="60 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="60 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="60 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="60 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>        
        	<model model="IMF4" numOuts="4" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP" >
                <output name="1" label="White" connection="other" maxcurrent="60 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="60 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="60 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="60 mA"/>
		        <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>        
        	<model model="IMFP4" numOuts="4" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP" >
                <output name="1" label="White" connection="other" maxcurrent="60 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="60 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="60 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="60 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
           	</model>        
        	<model model="IMFTA4" numOuts="4" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP" >
                <output name="1" label="White" connection="other" maxcurrent="60 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="60 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="60 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="60 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/> 
                <output name="BEMF"/>
                <output name="Brake"/>
           </model>        
        	<model model="IMFTB4" numOuts="4" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP" >
                <output name="1" label="White" connection="other" maxcurrent="60 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="60 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="60 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="60 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>        
        	<model model="K0D8-A" numOuts="8" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP">
                <size length="2.53" width="0.542" height="0.155" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="60 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="60 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="60 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="60 mA"/>
                <output name="5" label="Brown" connection="solder" maxcurrent="60 mA"/>
                <output name="6" label="Pink" connection="solder" maxcurrent="60 mA"/>
                <output name="7" label="Pnk/Pur" connection="solder" maxcurrent="60 mA"/>
                <output name="8" label="Grn/Brn" connection="solder" maxcurrent="60 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
        	<model model="K0D8-B" numOuts="8" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP">
                <size length="2.53" width="0.542" height="0.155" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="60 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="60 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="60 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="60 mA"/>
                <output name="5" label="Brown" connection="solder" maxcurrent="60 mA"/>
                <output name="6" label="Pink" connection="solder" maxcurrent="60 mA"/>
                <output name="7" label="Pnk/Pur" connection="solder" maxcurrent="60 mA"/>
                <output name="8" label="Grn/Brn" connection="solder" maxcurrent="60 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
             </model>
        	<model model="K0D8-C" numOuts="8" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP">
                <size length="2.53" width="0.542" height="0.155" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="60 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="60 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="60 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="60 mA"/>
                <output name="5" label="Brown" connection="solder" maxcurrent="60 mA"/>
                <output name="6" label="Pink" connection="solder" maxcurrent="60 mA"/>
                <output name="7" label="Pnk/Pur" connection="solder" maxcurrent="60 mA"/>
                <output name="8" label="Grn/Brn" connection="solder" maxcurrent="60 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
             </model>
        	<model model="K0D8-D" numOuts="8" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP">
                <size length="2.53" width="0.542" height="0.155" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="60 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="60 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="60 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="60 mA"/>
                <output name="5" label="Brown" connection="solder" maxcurrent="60 mA"/>
                <output name="6" label="Pink" connection="solder" maxcurrent="60 mA"/>
                <output name="7" label="Pnk/Pur" connection="solder" maxcurrent="60 mA"/>
                <output name="8" label="Grn/Brn" connection="solder" maxcurrent="60 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
        	<model model="K1D4" numOuts="4" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP">
                <size length="2.7" width="0.4" height="0.0" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="50 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="50 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="50 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="50 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
        	</model>
        	<model model="K1D4-NC" numOuts="4" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP"
        		comment="No Clips version of K1D4">
                <size length="2.7" width="0.4" height="0.0" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="50 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="50 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="50 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="50 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
        	<model model="K2D4" numOuts="4" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP">
                <size length="2.7" width="0.4" height="0.0" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="50 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="50 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="50 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="50 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="K3D3" numOuts="3" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP">
                <size length="2.860" width="0.680" height="0.145" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="50 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="50 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="50 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
			<model model="LL8" numOuts="8" numFns="14" maxMotorCurrent="1.0A (peak=2A)" formFactor="PnP" >
                <size length="1.96" width="0.70" height="0.04" units="inches"/>
                <output name="1" label="White" connection="other" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="other" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="100 mA"/>
                <output name="5" label="Brown" connection="solder" maxcurrent="100 mA"/>
                <output name="6" label="Pink" connection="solder" maxcurrent="100 mA"/>
                <output name="7" label="Pnk/Pur" connection="solder" maxcurrent="100 mA"/>
                <output name="8" label="Grn/Brn" connection="solder" maxcurrent="100 mA"/>
        		<output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
        	<model model="M1" numOuts="2" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N">
                <size length="0.57" width="0.355" height="0.132" units="inches"/>
                <output name="1" label="White" connection="wire" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="wire" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="M1P-15" numOuts="2" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="HO">
                <size length="0.57" width="0.355" height="0.132" units="inches"/>
                <output name="1" label="White" connection="plug" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="plug" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="M1P-MH" numOuts="2" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="HO">
                <size length="0.57" width="0.355" height="0.132" units="inches"/>
                <output name="1" label="White" connection="plug" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="plug" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="M1P-UK" numOuts="2" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="HO">
                <size length="0.57" width="0.355" height="0.132" units="inches"/>
                <output name="1" label="White" connection="plug" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="plug" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="M3" numOuts="3" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N">
                <size length="0.570" width="0.355" height="0.132" units="inches"/>
                <output name="1" label="White" connection="wire" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="wire" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="wire" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="M4" numOuts="4" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N">
                <size length="0.570" width="0.355" height="0.132" units="inches"/>
                <output name="1" label="White" connection="wire" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="wire" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="wire" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="wire" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="M4T" numOuts="4" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N">
                <size length="0.567" width="0.359" height="0.135" units="inches"/>
                <output name="1" label="White" connection="wire" maxcurrent="80 mA"/>
                <output name="2" label="Yellow" connection="wire" maxcurrent="80 mA"/>
                <output name="3" label="Green" connection="wire" maxcurrent="80 mA"/>
                <output name="4" label="Purple" connection="wire" maxcurrent="80 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
            </model>
            <model model="MC2" numOuts="2" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N">
                <size length="0.71" width="0.41" height="0.19" units="inches"/>
                <output name="1" label="White" connection="wire" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="wire" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="MC4" numOuts="4" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N">
                <size length="0.71" width="0.41" height="0.19" units="inches"/>
                <output name="1" label="White" connection="wire" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="wire" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="wire" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="wire" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="MC6" numOuts="6" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N">
                <size length="0.71" width="0.41" height="0.19" units="inches"/>
                <output name="1" label="White" connection="wire" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="wire" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="wire" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="wire" maxcurrent="100 mA"/>
                <output name="5" label="Brown" connection="wire" maxcurrent="100 mA"/>
                <output name="6" label="Pink" connection="wire" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="MP-15N" numOuts="4" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N" comment="Fits Atlas N Scale: MP-15">
                <output name="1" label="White" connection="other" comment="Golden White LED" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="other" comment="Golden White LED" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="MZA4"   numOuts="4" numFns="14"
                maxMotorCurrent="1A (peak=2A)" formFactor="Z"
                comment="Z-scale 4 function A format drop in with two LEDs">
                <output name="1" label="White" connection="other" comment="Golden White LED" maxcurrent="100 mA" />
                <output name="2" label="Yellow" connection="other" comment="Golden White LED" maxcurrent="100 mA" />
                <output name="3" label="Green" connection="solder" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="100 mA"/>
                <output name="Dim" />
                <output name="Ditch" />
                <output name="Motor" />
                <output name="BEMF"/>
                <output name="Brake"/>
           </model>
            <model model="T1" numOuts="2" numFns="14" maxMotorCurrent="1.3A (peak=2A)" maxTotalCurrent="1.3A continuous" formFactor="HO">
                <size length="0.956" width="0.665" height="0.207" units="inches"/>
                <output name="1" label="White" connection="wire" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="wire" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="T4X" numOuts="4" numFns="14" maxMotorCurrent="1.3A (peak=2A)" formFactor="HO">
                <size length="1.010" width="0.665" height="0.250" units="inches"/>
                <output name="1" label="White" connection="wire" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="wire" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="wire" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="wire" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="T6X" numOuts="6" numFns="14" maxMotorCurrent="1.3A (peak=2A)" formFactor="HO">
                <size length="1.00" width="0.680" height="0.250" units="inches"/>
                <output name="1" label="White" connection="wire" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="wire" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="wire" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="wire" maxcurrent="100 mA"/>
                <output name="5" label="Brown" connection="wire" maxcurrent="100 mA"/>
                <output name="6" label="Pink" connection="wire" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="VO-1000N" numOuts="4" numFns="14" maxMotorCurrent="1A (peak=2A)" formFactor="N" comment="Fits Atlas N Scale: VO-1000">
                <output name="1" label="White" connection="other" comment="Golden White LED" maxcurrent="100 mA"/>
                <output name="2" label="Yellow" connection="other" comment="Golden White LED" maxcurrent="100 mA"/>
                <output name="3" label="Green" connection="solder" maxcurrent="100 mA"/>
                <output name="4" label="Purple" connection="solder" maxcurrent="100 mA"/>
                <output name="Dim"/>
                <output name="Ditch"/>
                <output name="Motor"/>
                <output name="BEMF"/>
                <output name="Brake"/>
            </model>
            <model model="Z2"   numOuts="2" numFns="14"
                maxMotorCurrent="1A (peak=2A)" formFactor="Z"
                comment="Fits Z thru light duty HO">
                <output name="1" label="White" connection="other" comment="Golden White LED" maxcurrent="100 mA" />
                <output name="2" label="Yellow" connection="other" comment="Golden White LED" maxcurrent="100 mA" />
                <output name="Dim" />
                <output name="Ditch" />
                <output name="Motor" />
                <output name="BEMF"/>
                <output name="Brake"/>
           </model>
        </family>
        <programming direct="yes" paged="yes" register="yes" ops="yes"/>
        <variables>
            <variable label="Primary Address" CV="1" comment="Short address" tooltip="Sets the Short, Primary or 2-digit address, CV 1, range 1-127" item="Short Address" default="03">
                <shortAddressVal/>
            </variable>
            <variable label="Start voltage" CV="2" item="Vstart" default="0" tooltip="sets the motor voltage at Speed Step 1, range 0(default)-255, CV5" comment="Range 0-255, 0 in CV 2, 6, 5 produces straight line acceleration">
                <decVal/>
            </variable>
            <variable label="Accel 1 Rate" CV="3" item="Accel" default="1" tooltip="Sets the acceleration rate (delay or momentum), range 0(default)-255, CV3" comment="Range 0-255">
                <decVal max="255"/>
            </variable>
            <variable label="Decel 1 Rate" CV="4" item="Decel" default="1" tooltip="Sets the deceleration rate (delay or momentum), range 0(default)-255, CV4" comment="Range 0-255">
                <decVal max="255"/>
            </variable>
            <variable label="Maximum Voltage" CV="5" item="Vhigh" default="0" tooltip="sets the motor voltage at top throttle Speed Setting, range 0(default)-255, CV5" comment="Range 0-255, A value of 255 corresponds to 100%. 0 in CV 2, 6, 5 produces straight line acceleration">
                <decVal/>
            </variable>
            <variable label="Midpoint Voltage" CV="6" item="Vmid" tooltip="sets the motor voltage at midrange throttle Speed Setting, range 0(default)-255, CV5" comment="Range 0-255, 0 in CV 2, 6, 5 produces straight line acceleration">
                <decVal/>
            </variable>
            <variable label="Version ID" CV="7" readOnly="yes" item="Decoder Version" tooltip="CV7=41-46 for all TCS with Back EMF models, Read Only">
                <decVal/>
            </variable>
            <variable label="Manufacturer ID" CV="8" readOnly="yes" item="Manufacturer" default="153" tooltip="CV8=153 for TCS, Read Only">
                <decVal/>
            </variable>
            <variable label="BEMF Cut Out" CV="10" default="0" item="EMF Control Reference" tooltip="turn off BEMF above this speed step, range 0(default-128), CV10">
                <decVal/>
            </variable>
            <variable label="Analog Mode White/Yellow" CV="13" mask="XXXXXXXV" default="1" minOut="2" item="Analog Mode Function Status - FL(f)">
                <enumVal>
                    <enumChoice choice="off"/>
                    <enumChoice choice="on"/>
                </enumVal>
            </variable>
            <variable label="Analog Mode Green" CV="13" mask="XXXXXXVX" default="1" minOut="3" item="Analog Mode Function Status - FL(r)">
                <enumVal>
                    <enumChoice choice="off"/>
                    <enumChoice choice="on"/>
                </enumVal>
            </variable>
            <variable label="Analog Mode Purple" CV="13" mask="XXXXXVXX" default="1" minOut="4" item="Analog Mode Function Status - F1">
                <enumVal>
                    <enumChoice choice="off"/>
                    <enumChoice choice="on"/>
                </enumVal>
            </variable>
            <variable label="Analog Mode Brown" CV="13" mask="XXXXVXXX" default="1" minOut="5" item="Analog Mode Function Status - F2">
                <enumVal>
                    <enumChoice choice="off"/>
                    <enumChoice choice="on"/>
                </enumVal>
            </variable>
            <variable label="Analog Mode Pink" CV="13" mask="XXXVXXXX" default="1" minOut="6" item="Analog Mode Function Status - F3">
                <enumVal>
                    <enumChoice choice="off"/>
                    <enumChoice choice="on"/>
                </enumVal>
            </variable>
            <variable label="Analog Mode Pink/Purple" CV="13" mask="XXVXXXXX" default="1" minOut="7" item="Analog Mode Function Status - F4">
                <enumVal>
                    <enumChoice choice="off"/>
                    <enumChoice choice="on"/>
                </enumVal>
            </variable>
            <variable label="Analog Mode Green/Brown" CV="13" mask="XVXXXXXX" default="1" minOut="8" item="Analog Mode Function Status - F5">
                <enumVal>
                    <enumChoice choice="off"/>
                    <enumChoice choice="on"/>
                </enumVal>
            </variable>
            <variable label="Decoder Lock control number" CV="15" mask="XXXXXVVV" default="0" tooltip="To unlock a decoder make CV15=0 or CV15=CV16">
                <decVal/>
            </variable>
            <variable label="Decoder Lock ID number" CV="16" mask="XXXXXVVV" default="1" tooltip="Set this decoder's locking ID number, range 1-6, default 1, CV16">
                <decVal/>
            </variable>
            <variable label="Long Address" CV="17" item="Extended Address" tooltip="Sets the Extended (4 digit) address, range 128-9999, mapped to CV17 and 18">
                <longAddressVal/>
            </variable>
            <variable label="Consist Address" CV="19" mask="XVVVVVVV" item="Consist Address">
                <decVal/>
            </variable>
            <variable label="Consist Direction" CV="19" mask="VXXXXXXX" tooltip="CV19, This loco runs Normal(default) or Reversed(address+128) when in the consist">
                <enumVal>
                    <enumChoice choice="Normal"/>
                    <enumChoice choice="Reversed"/>
                </enumVal>
            </variable>
            <variable label="Consist Address Active For Green" CV="21" mask="XXXXXXXV" minOut="3" default="1" item="Consist Address Active For F1">
                <enumVal>
                    <enumChoice choice="Locomotive Address Only"/>
                    <enumChoice choice="Respond to Consist Address"/>
                </enumVal>
            </variable>
            <variable label="Consist Address Active For Purple" CV="21" mask="XXXXXXVX" minOut="4" default="1" item="Consist Address Active For F2">
                <enumVal>
                    <enumChoice choice="Locomotive Address Only"/>
                    <enumChoice choice="Respond to Consist Address"/>
                </enumVal>
            </variable>
            <variable label="Consist Address Active For Brown" CV="21" mask="XXXXXVXX" minOut="5" default="1" item="Consist Address Active For F3">
                <enumVal>
                    <enumChoice choice="Locomotive Address Only"/>
                    <enumChoice choice="Respond to Consist Address"/>
                </enumVal>
            </variable>
            <variable label="Consist Address Active For Pink" CV="21" mask="XXXXVXXX" minOut="6" default="1" item="Consist Address Active For F4">
                <enumVal>
                    <enumChoice choice="Locomotive Address Only"/>
                    <enumChoice choice="Respond to Consist Address"/>
                </enumVal>
            </variable>
            <variable label="Consist Address Active For Pink/Purple" CV="21" mask="XXXVXXXX" minOut="7" default="1" item="Consist Address Active For F5">
                <enumVal>
                    <enumChoice choice="Locomotive Address Only"/>
                    <enumChoice choice="Respond to Consist Address"/>
                </enumVal>
            </variable>
            <variable label="Consist Address Active For Green/Brown" CV="21" mask="XXVXXXXX" minOut="8" default="1" item="Consist Address Active For F6">
                <enumVal>
                    <enumChoice choice="Locomotive Address Only"/>
                    <enumChoice choice="Respond to Consist Address"/>
                </enumVal>
            </variable>
            <variable label="Consist Address Active For White" CV="22" mask="XXXXXXXV" minOut="1" item="Consist Address Active For FL in Forward">
                <enumVal>
                    <enumChoice choice="Locomotive Address Only"/>
                    <enumChoice choice="Respond to Consist Address"/>
                </enumVal>
            </variable>
            <variable label="Consist Address Active For Yellow" CV="22" mask="XXXXXXVX" minOut="2" item="Consist Address Active For FL in Reverse">
                <enumVal>
                    <enumChoice choice="Locomotive Address Only"/>
                    <enumChoice choice="Respond to Consist Address"/>
                </enumVal>
            </variable>
            <variable label="Consist Acceleration Adjustment" CV="23" tooltip="Values above 128 increase adjustment, below 128 decrease adjustment">
                <decVal max="255"/>
            </variable>
            <variable label="Consist Deceleration Adjustment" CV="24" tooltip="Values above 128 increase adjustment, below 128 decrease adjustment">
                <decVal max="255"/>
            </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" item="Speed Step Mode" default="1">
                <enumVal>
                    <enumChoice choice="14"/>
                    <enumChoice choice="28/128"/>
                </enumVal>
            </variable>
            <variable label="Analog conversion mode" CV="29" mask="XXXXXVXX" default="1" tooltip="CV29, '4' bit. Allows the loco to run on DC, default is Off" item="Analog (DC) Operation">
                <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"/>
                    <enumChoice choice="Use Table"/>
                </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="FL(f) controls output 1" CV="33" mask="XXXXXXXV" minOut="1" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output 1" CV="33" mask="XXXXXXVX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output 1" CV="33" mask="XXXXXVXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output 1" CV="33" mask="XXXXVXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output 1" CV="33" mask="XXXVXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output 1" CV="33" mask="XXVXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output 1" CV="33" mask="XVXXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output 1" CV="33" mask="VXXXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(f) controls output 2" CV="34" mask="XXXXXXXV" minOut="2">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output 2" CV="34" mask="XXXXXXVX" minOut="2" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output 2" CV="34" mask="XXXXXVXX" minOut="2">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output 2" CV="34" mask="XXXXVXXX" minOut="2">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output 2" CV="34" mask="XXXVXXXX" minOut="2">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output 2" CV="34" mask="XXVXXXXX" minOut="2">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output 2" CV="34" mask="XVXXXXXX" minOut="2">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output 2" CV="34" mask="VXXXXXXX" minOut="2">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(f) controls output 3" CV="35" mask="XXXXXXXV" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output 3" CV="35" mask="XXXXXXVX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output 3" CV="35" mask="XXXXXVXX" minOut="3" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output 3" CV="35" mask="XXXXVXXX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output 3" CV="35" mask="XXXVXXXX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output 3" CV="35" mask="XXVXXXXX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output 3" CV="35" mask="XVXXXXXX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output 3" CV="35" mask="VXXXXXXX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(f) controls output 4" CV="36" mask="XXXXXXXV" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output 4" CV="36" mask="XXXXXXVX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output 4" CV="36" mask="XXXXXVXX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output 4" CV="36" mask="XXXXVXXX" minOut="4" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output 4" CV="36" mask="XXXVXXXX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output 4" CV="36" mask="XXVXXXXX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output 4" CV="36" mask="XVXXXXXX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output 4" CV="36" mask="VXXXXXXX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F7 controls output 3" CV="37" mask="XXXXXVXX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F8 controls output 3" CV="37" mask="XXXXVXXX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F9 controls output 3" CV="37" mask="XXXVXXXX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F10 controls output 3" CV="37" mask="XXVXXXXX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F11 controls output 3" CV="37" mask="XVXXXXXX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F12 controls output 3" CV="37" mask="VXXXXXXX" minOut="3">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F7 controls output 4" CV="38" mask="XXXXXVXX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F8 controls output 4" CV="38" mask="XXXXVXXX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F9 controls output 4" CV="38" mask="XXXVXXXX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F10 controls output 4" CV="38" mask="XXVXXXXX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F11 controls output 4" CV="38" mask="XVXXXXXX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F12 controls output 4" CV="38" mask="VXXXXXXX" minOut="4">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(f) controls output 5" CV="39" mask="XXXXXXXV" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output 5" CV="39" mask="XXXXXXVX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output 5" CV="39" mask="XXXXXVXX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output 5" CV="39" mask="XXXXVXXX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output 5" CV="39" mask="XXXVXXXX" minOut="5" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output 5" CV="39" mask="XXVXXXXX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output 5" CV="39" mask="XVXXXXXX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output 5" CV="39" mask="VXXXXXXX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(f) controls output 6" CV="40" mask="XXXXXXXV" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output 6" CV="40" mask="XXXXXXVX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output 6" CV="40" mask="XXXXXVXX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output 6" CV="40" mask="XXXXVXXX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output 6" CV="40" mask="XXXVXXXX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output 6" CV="40" mask="XXVXXXXX" minOut="6" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output 6" CV="40" mask="XVXXXXXX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output 6" CV="40" mask="VXXXXXXX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F7 controls output 5" CV="41" mask="XXXXXVXX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F8 controls output 5" CV="41" mask="XXXXVXXX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F9 controls output 5" CV="41" mask="XXXVXXXX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F10 controls output 5" CV="41" mask="XXVXXXXX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F11 controls output 5" CV="41" mask="XVXXXXXX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F12 controls output 5" CV="41" mask="VXXXXXXX" minOut="5">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F7 controls output 6" CV="42" mask="XXXXXVXX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F8 controls output 6" CV="42" mask="XXXXVXXX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F9 controls output 6" CV="42" mask="XXXVXXXX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F10 controls output 6" CV="42" mask="XXVXXXXX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F11 controls output 6" CV="42" mask="XVXXXXXX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F12 controls output 6" CV="42" mask="VXXXXXXX" minOut="6">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(f) controls output 7" CV="43" mask="XXXXXXXV" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output 7" CV="43" mask="XXXXXXVX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output 7" CV="43" mask="XXXXXVXX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output 7" CV="43" mask="XXXXVXXX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output 7" CV="43" mask="XXXVXXXX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output 7" CV="43" mask="XXVXXXXX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output 7" CV="43" mask="XVXXXXXX" minOut="7" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output 7" CV="43" mask="VXXXXXXX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(f) controls output 8" CV="44" mask="XXXXXXXV" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output 8" CV="44" mask="XXXXXXVX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output 8" CV="44" mask="XXXXXVXX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output 8" CV="44" mask="XXXXVXXX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output 8" CV="44" mask="XXXVXXXX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output 8" CV="44" mask="XXVXXXXX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output 8" CV="44" mask="XVXXXXXX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output 8" CV="44" mask="VXXXXXXX" minOut="8" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F7 controls output 7" CV="45" mask="XXXXXVXX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F8 controls output 7" CV="45" mask="XXXXVXXX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F9 controls output 7" CV="45" mask="XXXVXXXX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F10 controls output 7" CV="45" mask="XXVXXXXX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F11 controls output 7" CV="45" mask="XVXXXXXX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F12 controls output 7" CV="45" mask="VXXXXXXX" minOut="7">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F7 controls output 8" CV="46" mask="XXXXXVXX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F8 controls output 8" CV="46" mask="XXXXVXXX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F9 controls output 8" CV="46" mask="XXXVXXXX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F10 controls output 8" CV="46" mask="XXVXXXXX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F11 controls output 8" CV="46" mask="XVXXXXXX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F12 controls output 8" CV="46" mask="VXXXXXXX" minOut="8">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="White Wire Effect" CV="49" mask="XXXXVVVV" item="Output 1 effect generated">
                <enumVal>
                    <enumChoice choice="Constant bright light"/>
                    <enumChoice choice="Random flicker (fire box)"/>
                    <enumChoice choice="Mars light"/>
                    <enumChoice choice="Flashing light"/>
                    <enumChoice choice="Single pulse strobe"/>
                    <enumChoice choice="Double pulse strobe"/>
                    <enumChoice choice="Rotary beacon"/>
                    <enumChoice choice="Gyra light"/>
                    <enumChoice choice="Rule 17 (dimmable)"/>
                    <enumChoice choice="Momentary pulse"/>
                    <enumChoice choice="Ditch light A"/>
                    <enumChoice choice="Ditch light B"/>
                    <enumChoice choice="Constant dim"/>
                    <enumChoice choice="Auto Mars"/>
                    <enumChoice choice="Brake lights"/>
                </enumVal>
            </variable>
            <variable label="White Wire Timing" CV="49" mask="XXVVXXXX" item="Output 1 behavior">
                <enumVal>
                    <enumChoice choice="Function on running forward"/>
                    <enumChoice choice="Function on running reverse"/>
                    <enumChoice choice="Function on both directions"/>
                </enumVal>
            </variable>
            <variable label="Yellow Wire Effect" CV="50" mask="XXXXVVVV" item="Output 2 effect generated">
                <enumVal>
                    <enumChoice choice="Constant bright light"/>
                    <enumChoice choice="Random flicker (fire box)"/>
                    <enumChoice choice="Mars light"/>
                    <enumChoice choice="Flashing light"/>
                    <enumChoice choice="Single pulse strobe"/>
                    <enumChoice choice="Double pulse strobe"/>
                    <enumChoice choice="Rotary beacon"/>
                    <enumChoice choice="Gyra light"/>
                    <enumChoice choice="Rule 17 (dimmable)"/>
                    <enumChoice choice="Momentary pulse"/>
                    <enumChoice choice="Ditch light A"/>
                    <enumChoice choice="Ditch light B"/>
                    <enumChoice choice="Constant dim"/>
                    <enumChoice choice="Auto Mars"/>
                    <enumChoice choice="Brake lights"/>
                </enumVal>
            </variable>
            <variable label="Yellow Wire Timing" CV="50" mask="XXVVXXXX" item="Output 2 behavior" default="1">
                <enumVal>
                    <enumChoice choice="Function on running forward"/>
                    <enumChoice choice="Function on running reverse"/>
                    <enumChoice choice="Function on both directions"/>
                </enumVal>
            </variable>
            <variable label="Green Wire Effect" CV="51" mask="XXXXVVVV" minOut="3" item="Output 3 effect generated">
                <enumVal>
                    <enumChoice choice="Constant bright light"/>
                    <enumChoice choice="Random flicker (fire box)"/>
                    <enumChoice choice="Mars light"/>
                    <enumChoice choice="Flashing light"/>
                    <enumChoice choice="Single pulse strobe"/>
                    <enumChoice choice="Double pulse strobe"/>
                    <enumChoice choice="Rotary beacon"/>
                    <enumChoice choice="Gyra light"/>
                    <enumChoice choice="Rule 17 (dimmable)"/>
                    <enumChoice choice="Momentary pulse"/>
                    <enumChoice choice="Ditch light A"/>
                    <enumChoice choice="Ditch light B"/>
                    <enumChoice choice="Constant dim"/>
                    <enumChoice choice="Auto Mars"/>
                    <enumChoice choice="Brake lights"/>
                </enumVal>
            </variable>
            <variable label="Green Wire Timing" CV="51" mask="XXVVXXXX" minOut="3" item="Output 3 behavior" default="2">
                <enumVal>
                    <enumChoice choice="Function on running forward"/>
                    <enumChoice choice="Function on running reverse"/>
                    <enumChoice choice="Function on both directions"/>
                </enumVal>
            </variable>
            <variable label="Purple Wire Effect" CV="52" mask="XXXXVVVV" minOut="4" item="Output 4 effect generated">
                <enumVal>
                    <enumChoice choice="Constant bright light"/>
                    <enumChoice choice="Random flicker (fire box)"/>
                    <enumChoice choice="Mars light"/>
                    <enumChoice choice="Flashing light"/>
                    <enumChoice choice="Single pulse strobe"/>
                    <enumChoice choice="Double pulse strobe"/>
                    <enumChoice choice="Rotary beacon"/>
                    <enumChoice choice="Gyra light"/>
                    <enumChoice choice="Rule 17 (dimmable)"/>
                    <enumChoice choice="Momentary pulse"/>
                    <enumChoice choice="Ditch light A"/>
                    <enumChoice choice="Ditch light B"/>
                    <enumChoice choice="Constant dim"/>
                    <enumChoice choice="Auto Mars"/>
                    <enumChoice choice="Brake lights"/>
                </enumVal>
            </variable>
            <variable label="Purple Wire Timing" CV="52" mask="XXVVXXXX" minOut="4" item="Output 4 behavior" default="2">
                <enumVal>
                    <enumChoice choice="Function on running forward"/>
                    <enumChoice choice="Function on running reverse"/>
                    <enumChoice choice="Function on both directions"/>
                </enumVal>
            </variable>
            <variable label="Brown Wire Effect" CV="53" mask="XXXXVVVV" minOut="5" item="Output 5 effect generated">
                <enumVal>
                    <enumChoice choice="Constant bright light"/>
                    <enumChoice choice="Random flicker (fire box)"/>
                    <enumChoice choice="Mars light"/>
                    <enumChoice choice="Flashing light"/>
                    <enumChoice choice="Single pulse strobe"/>
                    <enumChoice choice="Double pulse strobe"/>
                    <enumChoice choice="Rotary beacon"/>
                    <enumChoice choice="Gyra light"/>
                    <enumChoice choice="Rule 17 (dimmable)"/>
                    <enumChoice choice="Momentary pulse"/>
                    <enumChoice choice="Ditch light A"/>
                    <enumChoice choice="Ditch light B"/>
                    <enumChoice choice="Constant dim"/>
                    <enumChoice choice="Auto Mars"/>
                    <enumChoice choice="Brake lights"/>
                </enumVal>
            </variable>
            <variable label="Brown Wire Timing" CV="53" mask="XXVVXXXX" minOut="5" item="Output 5 behavior" default="2">
                <enumVal>
                    <enumChoice choice="Function on running forward"/>
                    <enumChoice choice="Function on running reverse"/>
                    <enumChoice choice="Function on both directions"/>
                </enumVal>
            </variable>
            <variable label="Pink Wire Effect" CV="54" mask="XXXXVVVV" minOut="6" item="Output 6 effect generated">
                <enumVal>
                    <enumChoice choice="Constant bright light"/>
                    <enumChoice choice="Random flicker (fire box)"/>
                    <enumChoice choice="Mars light"/>
                    <enumChoice choice="Flashing light"/>
                    <enumChoice choice="Single pulse strobe"/>
                    <enumChoice choice="Double pulse strobe"/>
                    <enumChoice choice="Rotary beacon"/>
                    <enumChoice choice="Gyra light"/>
                    <enumChoice choice="Rule 17 (dimmable)"/>
                    <enumChoice choice="Momentary pulse"/>
                    <enumChoice choice="Ditch light A"/>
                    <enumChoice choice="Ditch light B"/>
                    <enumChoice choice="Constant dim"/>
                    <enumChoice choice="Auto Mars"/>
                    <enumChoice choice="Brake lights"/>
                </enumVal>
            </variable>
            <variable label="Pink Wire Timing" CV="54" mask="XXVVXXXX" minOut="6" item="Output 6 behavior" default="2">
                <enumVal>
                    <enumChoice choice="Function on running forward"/>
                    <enumChoice choice="Function on running reverse"/>
                    <enumChoice choice="Function on both directions"/>
                </enumVal>
            </variable>
            <variable label="Pink/Purple Wire Effect" CV="55" mask="XXXXVVVV" minOut="7" item="Output 7 effect generated">
                <enumVal>
                    <enumChoice choice="Constant bright light"/>
                    <enumChoice choice="Random flicker (fire box)"/>
                    <enumChoice choice="Mars light"/>
                    <enumChoice choice="Flashing light"/>
                    <enumChoice choice="Single pulse strobe"/>
                    <enumChoice choice="Double pulse strobe"/>
                    <enumChoice choice="Rotary beacon"/>
                    <enumChoice choice="Gyra light"/>
                    <enumChoice choice="Rule 17 (dimmable)"/>
                    <enumChoice choice="Momentary pulse"/>
                    <enumChoice choice="Ditch light A"/>
                    <enumChoice choice="Ditch light B"/>
                    <enumChoice choice="Constant dim"/>
                    <enumChoice choice="Auto Mars"/>
                    <enumChoice choice="Brake lights"/>
                </enumVal>
            </variable>
            <variable label="Pink/Purple Wire Timing" CV="55" mask="XXVVXXXX" minOut="7" item="Output 7 behavior" default="2">
                <enumVal>
                    <enumChoice choice="Function on running forward"/>
                    <enumChoice choice="Function on running reverse"/>
                    <enumChoice choice="Function on both directions"/>
                </enumVal>
            </variable>
            <variable label="Dither Frequency" CV="56" default="3" item="Dither frequency" tooltip="Range 1 (high) to 10 (low)">
                <decVal/>
            </variable>
            <variable label="Dither Amplitude" CV="57" default="10" item="Dither option" tooltip="Practical range is 5 (low) to 50 (high)">
                <decVal/>
            </variable>
            <variable label="Green/Brown Wire Effect" CV="58" mask="XXXXVVVV" minOut="8" item="Output 8 effect generated">
                <enumVal>
                    <enumChoice choice="Constant bright light"/>
                    <enumChoice choice="Random flicker (fire box)"/>
                    <enumChoice choice="Mars light"/>
                    <enumChoice choice="Flashing light"/>
                    <enumChoice choice="Single pulse strobe"/>
                    <enumChoice choice="Double pulse strobe"/>
                    <enumChoice choice="Rotary beacon"/>
                    <enumChoice choice="Gyra light"/>
                    <enumChoice choice="Rule 17 (dimmable)"/>
                    <enumChoice choice="Momentary pulse"/>
                    <enumChoice choice="Ditch light A"/>
                    <enumChoice choice="Ditch light B"/>
                    <enumChoice choice="Constant dim"/>
                    <enumChoice choice="Auto Mars"/>
                    <enumChoice choice="Brake lights"/>
                </enumVal>
            </variable>
            <variable label="Green/Brown Wire Timing" CV="58" mask="XXVVXXXX" minOut="8" item="Output 8 behavior" default="2">
                <enumVal>
                    <enumChoice choice="Function on running forward"/>
                    <enumChoice choice="Function on running reverse"/>
                    <enumChoice choice="Function on both directions"/>
                </enumVal>
            </variable>
            <variable label="BEMF Enable" CV="61" mask="XXXXXXXV" default="1" item="EMF Enable" tooltip="Turn off/on(default) BEMF, CV61 least bit, enabling BEMF disables Dither">
                <enumVal>
                    <enumChoice choice="Disabled"/>
                    <enumChoice choice="Enabled"/>
                </enumVal>
            </variable>
            <variable label="Enable BEMF Button Control" CV="61" mask="XXXXXXVX" default="0" item="EMF Option 1" tooltip="Disable(default)/Enable button control of BEMF, CV61 '2' bit">
                <enumVal>
                    <enumChoice choice="Disabled"/>
                    <enumChoice choice="Enabled"/>
                </enumVal>
            </variable>
            <variable label="Enable Brake Button Control" CV="61" mask="XXXXVXXX" item="Function 5 effect generated" tooltip="Disable(default)/Enable button control of Brake, CV61 '3' bit">
                <enumVal>
                    <enumChoice choice="Disabled"/>
                    <enumChoice choice="Enabled"/>
                </enumVal>
            </variable>
            <variable label="Headlight Dim When Stopped" CV="61" mask="XXXVXXXX" item="Directional Headlights">
                <enumVal>
                    <enumChoice choice="Disabled"/>
                    <enumChoice choice="Enabled"/>
                </enumVal>
            </variable>
            <variable label="Opposite Headlight Dim" CV="61" mask="XXVXXXXX" item="Global lighting option 1">
                <enumVal>
                    <enumChoice choice="Disabled"/>
                    <enumChoice choice="Enabled"/>
                </enumVal>
            </variable>
            <variable label="Motor Button Control" CV="61" mask="XVXXXXXX" item="EMF Static Config" tooltip="Motor controlled by Function button">
                <enumVal>
                    <enumChoice choice="Disabled"/>
                    <enumChoice choice="Button control of motor"/>
                </enumVal>
            </variable>
            <variable label="Button Control Direction" CV="61" mask="XXXXXVXX" item="EMF Dynamic Config" tooltip="If motor button control is active, CV61 ">
                <enumVal>
                    <enumChoice choice="Manual F2 for, F3 rev"/>
                    <enumChoice choice="Auto F2 for/rev"/>
                </enumVal>
            </variable>
            <variable label="Momentary Pulse" CV="62" default="60" item="Function 3 effect generated" tooltip="1 second = 60 to 4 seconds = 255">
                <decVal/>
            </variable>
            <variable label="Ditch Light Blink Holdover Time" CV="63" default="10" item="Function 2 effect generated" tooltip="1 second = about 12">
                <decVal/>
            </variable>
            <variable label="Dimming Brightness" CV="64" default="16" item="Global lighting option 2" tooltip="16 = 50% for incandescent bulbs, 2-6 for LEDs">
                <decVal/>
            </variable>
            <variable label="Speed Table" CV="67">
                <speedTableVal/>
            </variable>
            <variable label="User Private ID #1" CV="105" item="User Id #1">
                <decVal/>
            </variable>
            <variable label="User Private ID #2" CV="106" item="User Id #2">
                <decVal/>
            </variable>
            <variable label="Mars/Gyra Min Brightness" CV="112" default="1" item="Function F0F effect generated">
                <decVal min="1" max="5"/>
            </variable>
            <variable label="Mars/Gyra Max Bright Time" CV="113" default="9" item="Function F0F option 2">
                <decVal/>
            </variable>
            <variable label="Mars/Gyra Total Cycle Time" CV="114" default="1" item="Function F0F option 3">
                <decVal/>
            </variable>
            <variable label="Mars/Gyra Mid Brightness" CV="115" default="6" item="Function F0F behavior">
                <decVal min="2" max="26"/>
            </variable>
            <variable label="Mars/Gyra Max Brightness" CV="116" default="22" item="Function F0F options">
                <decVal min="4" max="28"/>
            </variable>
            <variable label="Ditch Light Blink Rate" CV="117" default="3" mask="XXXXVVVV" item="Function 2 behavior">
                <enumVal>
                    <enumChoice choice="1 slowest" value="1"/>
                    <enumChoice choice="2"/>
                    <enumChoice choice="3"/>
                    <enumChoice choice="4"/>
                    <enumChoice choice="5"/>
                    <enumChoice choice="6"/>
                    <enumChoice choice="7"/>
                    <enumChoice choice="8"/>
                    <enumChoice choice="9"/>
                    <enumChoice choice="10"/>
                    <enumChoice choice="11"/>
                    <enumChoice choice="12 fastest"/>
                </enumVal>
            </variable>
            <variable label="Beacon Min Brightness" CV="118" default="1" item="Function F0R effect generated">
                <decVal min="1" max="5"/>
            </variable>
            <variable label="Beacon Max Bright Time" CV="119" default="5" item="Function F0R option 2">
                <decVal/>
            </variable>
            <variable label="Beacon Total Cycle Time" CV="120" default="1" item="Function F0R option 3">
                <decVal/>
            </variable>
            <variable label="Beacon Mid Brightness" CV="121" default="15" item="Function F0R behavior">
                <decVal min="2" max="26"/>
            </variable>
            <variable label="Beacon Max Brightness" CV="122" default="25" item="Function F0R options">
                <decVal min="4" max="28"/>
            </variable>
            <variable label="FL(f) controls output Dim" CV="123" mask="XXXXXXXV" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output Dim" CV="123" mask="XXXXXXVX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output Dim" CV="123" mask="XXXXXVXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output Dim" CV="123" mask="XXXXVXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output Dim" CV="123" mask="XXXVXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output Dim" CV="123" mask="XXVXXXXX" minOut="1" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output Dim" CV="123" mask="XVXXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output Dim" CV="123" mask="VXXXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(f) controls output Ditch" CV="124" mask="XXXXXXXV" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output Ditch" CV="124" mask="XXXXXXVX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output Ditch" CV="124" mask="XXXXXVXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output Ditch" CV="124" mask="XXXXVXXX" minOut="1" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output Ditch" CV="124" mask="XXXVXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output Ditch" CV="124" mask="XXVXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output Ditch" CV="124" mask="XVXXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output Ditch" CV="124" mask="VXXXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>

            <variable label="Decel 2 Ending Point" CV="125" default="0" tooltip="Sets the Decel 3 end point, range 0(default)-255, CV131" comment="Range 0-255">
                <decVal max="255"/>
            </variable>
            <variable label="Decel 2 Rate" CV="126" default="0" tooltip="Sets the Decel 3 rate, range 0(default)-255, CV132" comment="Range 0-255">
                <decVal max="255"/>
            </variable>
            <variable label="Decel 3 Ending Point" CV="127" default="0" tooltip="Sets the Decel 2 End point, range 0(default)-255, CV129" comment="Range 0-255">
                <decVal max="255"/>
            </variable>
            <variable label="Decel 3 Rate" CV="128" default="0" tooltip="Sets the Decel 2 rate, range 0(default)-255, CV130" comment="Range 0-255">
                <decVal max="255"/>
            </variable>
            <variable label="Accel 2 Starting Point" CV="129" default="0" tooltip="Sets the Accel 2 start point, range 0(default)-255, CV125" comment="Range 0-255">
                <decVal max="255"/>
            </variable>
            <variable label="Accel 2 Rate" CV="130" default="0" tooltip="Sets the Accel 2 rate, range 0(default)-255, CV126" comment="Range 0-255">
                <decVal max="255"/>
            </variable>
            <variable label="Accel 3 Starting Point" CV="131" default="0" tooltip="Sets the Accel 3 start point, range 0(default)-255, CV127" comment="Range 0-255">
                <decVal max="255"/>
            </variable>
            <variable label="Accel 3 Rate" CV="132" default="0" tooltip="Sets the Accel 3 rate, range 0(default)-255, CV128" comment="Range 0-255">
                <decVal max="255"/>
            </variable>


            <variable label="Power to button controlled motor" CV="133" default="255" item="EMF Droop Config" tooltip="If button control of motor is active, range 0-255, CV133">
                <decVal/>
            </variable>

            <variable label="FL(f) controls output Motor" CV="134" mask="XXXXXXXV" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output Motor" CV="134" mask="XXXXXXVX" minOut="1" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output Motor" CV="134" mask="XXXXXVXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output Motor" CV="134" mask="XXXXVXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output Motor" CV="134" mask="XXXVXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output Motor" CV="134" mask="XXVXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output Motor" CV="134" mask="XVXXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output Motor" CV="134" mask="VXXXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="Random Flicker Control" CV="135" default="16" item="Function 4 effect generated" tooltip="Random Flicker for fireboxes">
                <decVal/>
            </variable>
            <variable label="F5 controls output BEMF" CV="136" mask="XXXXXXXV" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output BEMF" CV="136" mask="XXXXXXVX" minOut="1" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F7 controls output BEMF" CV="136" mask="XXXXXVXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F8 controls output BEMF" CV="136" mask="XXXXVXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F9 controls output BEMF" CV="136" mask="XXXVXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F10 controls output BEMF" CV="136" mask="XXVXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F11 controls output BEMF" CV="136" mask="XVXXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F12 controls output BEMF" CV="136" mask="VXXXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
			<variable label="Brake Light On Time" CV="137" default="4351" item="Function 5 behavior" >
				<splitVal highCV="138" /> 
			</variable>
            <variable label="FL(f) controls output Brake" CV="139" mask="XXXXXXXV" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="FL(r) controls output Brake" CV="139" mask="XXXXXXVX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F1 controls output Brake" CV="139" mask="XXXXXVXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F2 controls output Brake" CV="139" mask="XXXXVXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F3 controls output Brake" CV="139" mask="XXXVXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F4 controls output Brake" CV="139" mask="XXVXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F5 controls output Brake" CV="139" mask="XVXXXXXX" minOut="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="F6 controls output Brake" CV="139" mask="VXXXXXXX" minOut="1" default="1">
                <enumVal>
                    <enumChoice choice="No"/>
                    <enumChoice choice="Yes"/>
                </enumVal>
            </variable>
            <variable label="Month of Decoder Manufacture" CV="250" readOnly="yes" item="mfgMonth" tooltip="Date TCS made this decoder">
                <decVal/>
            </variable>
            <variable label="Day of Decoder Manufacture" CV="251" readOnly="yes" item="mfgDay" tooltip="Date TCS made this decoder">
                <decVal/>
            </variable>
            <variable label="Year of Decoder Manufacture" CV="252" readOnly="yes" item="mfgYear" tooltip="Date TCS made this decoder">
                <decVal/>
            </variable>
        </variables>
        <resets>
          <factReset label="Reset All CVs" CV="8" default="2"/>
        </resets>
      </decoder>

    <pane name="Momentum">
        <column>
    	<row>
	        <column>
    	        <label label="If Accel 2 and 3 Rate and Starting Points are set to zero, then Accel Rate 1 applies to whole speed range"/>
        	    <label label="If Decel 2 and 3 Rate and Ending Points are set to zero, then Decel Rate 1 applies to whole speed range"/>
            	<label label="If Brake Button Control active, Decel 2 Rate applies when button active and Decel 1 Rate applies to throttle reduction"/>
            	<label label=" "/>
	        </column>
    	</row>
    	<row>
	        <column>
	            <display item="Accel 2 Starting Point" format="hslider" label=""/>
	            <display item="Accel 2 Starting Point"/>
	            <label label=" "/>
	            <display item="Accel 3 Starting Point" format="hslider" label=""/>
	            <display item="Accel 3 Starting Point"/>
	        </column>
	        <column>
	            <display item="Accel 1 Rate" format="hslider" label=""/>
	            <display item="Accel 1 Rate"/>
	            <label label=" "/>
	            <display item="Accel 2 Rate" format="hslider" label=""/>
	            <display item="Accel 2 Rate"/>
	            <label label=" "/>
	            <display item="Accel 3 Rate" format="hslider" label=""/>
	            <display item="Accel 3 Rate"/>
	        </column>
    	</row>
       	<label label=" "/>
		<separator/>
       	<label label=" "/>
    	<row>
	        <column>
	            <display item="Decel 3 Ending Point" format="hslider" label=""/>
	            <display item="Decel 3 Ending Point"/>
	            <label label=" "/>
	            <display item="Decel 2 Ending Point" format="hslider" label=""/>
	            <display item="Decel 2 Ending Point"/>
	        </column>
	        <column>
	            <display item="Decel 3 Rate" format="hslider" label=""/>
	            <display item="Decel 3 Rate"/>
	            <label label=" "/>
	            <display item="Decel 2 Rate" format="hslider" label=""/>
	            <display item="Decel 2 Rate"/>
	            <label label=" "/>
	            <display item="Decel 1 Rate" format="hslider" label=""/>
	            <display item="Decel 1 Rate"/>
	        </column>
    	</row>
        </column>
    </pane>

    <pane name="TCS">
        <column>
            <label label="TCS decoders support a decoder locking feature"/>
            <label label="useful when several decoders are used in one loco"/>
            <label label="on the same address, e.g. for adding sound"/>
            <label label="TCS suggests values of 1=mobile, 2=sound, 3=light/function only"/>
            <label label=" "/>
            <display item="Decoder Lock ID number"/>
            <label label="Set CV15 equal to this number to unlock the decoder for programming"/>
            <label label=" "/>
            <display item="Decoder Lock control number" label="Decoder Lock control, CV15"/>
            <label label=" "/>
            <display item="mfgMonth"/>
            <display item="mfgDay"/>
            <display item="mfgYear"/>
            <label label=" "/>
            <label label="TCS_V51.xml for TCS 'X' with BEMF, v51-52. July 17 2010"/>
        </column>
    </pane>
</decoder-config>







 	  	 

 	  	 

 	  	 

