<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2006 All rights reserved -->
<!-- $Id: TCS_Fn.xml 17977 2011-07-18 17:23:46Z zoo $ -->
<!--                                                                        -->
<!-- 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 xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://jmri.org/xml/schema/decoder.xsd">
  <version author="Michael Mosher" version="1" lastUpdated="20061010"/>
<!-- Version 1 - made from TCS_X.xml -->
<!-- Version 1.1- 20110214 Added Rest to Factory defaults CV8>2(wsthompson@earthlink.net) -->
  <decoder>
    <family name="TCS Function Decoders" mfg="Train Control Systems">
      <model model="FL2" numOuts="2" numFns="14" lowVersionID="30" highVersionID="37" formFactor="HO">
        <output name="1" label="Green" connection="solder" maxcurrent="100 mA"/>
        <output name="2" label="Purple" connection="solder" maxcurrent="100 mA"/>
        <size length="1.000" width="0.650" height="0.160" units="inches"/>
      </model>
      <model model="FL4" numOuts="4" numFns="14" lowVersionID="30" highVersionID="37" maxMotorCurrent="1.3A (peak=2A)" formFactor="PnP">
        <output name="1" label="Green" connection="solder" maxcurrent="200 mA"/>
        <output name="2" label="Purple" connection="solder" maxcurrent="200 mA"/>
        <output name="3" label="Brown" connection="solder" maxcurrent="200 mA"/>
        <output name="4" label="Pink" connection="solder" maxcurrent="200 mA"/>
        <size length="0.565" width="0.355" height="0.132" units="inches"/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <variables>
      <variable label="Primary Address" CV="1" comment="Short address" item="Short Address" default="03">
        <shortAddressVal/>
        <label>Primary Address</label>
        <comment>Short address</comment>
      </variable>
      <variable label="Version ID" CV="7" readOnly="yes" item="Decoder Version">
        <decVal/>
        <label>Version ID</label>
      </variable>
      <variable label="Manufacturer ID" CV="8" readOnly="yes" item="Manufacturer">
        <decVal/>
        <label>Manufacturer ID</label>
      </variable>
      <variable label="Analog Mode Green" CV="13" mask="XXXXXXXV" default="1" minOut="1" item="Analog Mode Function Status - FL(f)">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Green</label>
      </variable>
      <variable label="Analog Mode Purple" CV="13" mask="XXXXXXVX" default="1" minOut="2" item="Analog Mode Function Status - FL(r)">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Purple</label>
      </variable>
      <variable label="Analog Mode Brown" CV="13" mask="XXXXXVXX" default="1" minOut="3" item="Analog Mode Function Status - F1">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Brown</label>
      </variable>
      <variable label="Analog Mode Pick" CV="13" mask="XXXXVXXX" default="1" minOut="4" item="Analog Mode Function Status - F2">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Pick</label>
      </variable>
      <variable label="Decoder Lock ID number" CV="16" mask="XXXXXVVV" default="1" tooltip="Set this decoder's unique locking ID number">
        <decVal/>
        <label>Decoder Lock ID number</label>
      </variable>
      <variable label="Long Address" CV="17" item="Extended Address">
        <longAddressVal/>
        <label>Long Address</label>
      </variable>
      <variable label="Consist Address" CV="19" mask="XVVVVVVV" item="Consist Address">
        <decVal/>
        <label>Consist Address</label>
      </variable>
      <variable label="Consist Direction" CV="19" mask="VXXXXXXX">
        <enumVal>
          <enumChoice choice="Normal">
            <choice>Normal</choice>
          </enumChoice>
          <enumChoice choice="Reversed">
            <choice>Reversed</choice>
          </enumChoice>
        </enumVal>
        <label>Consist Direction</label>
      </variable>
      <variable label="Consist Address Active For Green" CV="21" mask="XXXXXXXV" minOut="1" item="Consist Address Active For F1">
        <enumVal>
          <enumChoice choice="Locomotive Address Only">
            <choice>Locomotive Address Only</choice>
          </enumChoice>
          <enumChoice choice="Respond to Consist Address">
            <choice>Respond to Consist Address</choice>
          </enumChoice>
        </enumVal>
        <label>Consist Address Active For Green</label>
      </variable>
      <variable label="Consist Address Active For Purple" CV="21" mask="XXXXXXVX" minOut="2" item="Consist Address Active For F2">
        <enumVal>
          <enumChoice choice="Locomotive Address Only">
            <choice>Locomotive Address Only</choice>
          </enumChoice>
          <enumChoice choice="Respond to Consist Address">
            <choice>Respond to Consist Address</choice>
          </enumChoice>
        </enumVal>
        <label>Consist Address Active For Purple</label>
      </variable>
      <variable label="Consist Address Active For Brown" CV="21" mask="XXXXXVXX" minOut="3" item="Consist Address Active For F3">
        <enumVal>
          <enumChoice choice="Locomotive Address Only">
            <choice>Locomotive Address Only</choice>
          </enumChoice>
          <enumChoice choice="Respond to Consist Address">
            <choice>Respond to Consist Address</choice>
          </enumChoice>
        </enumVal>
        <label>Consist Address Active For Brown</label>
      </variable>
      <variable label="Consist Address Active For Pink" CV="21" mask="XXXXVXXX" minOut="4" item="Consist Address Active For F4">
        <enumVal>
          <enumChoice choice="Locomotive Address Only">
            <choice>Locomotive Address Only</choice>
          </enumChoice>
          <enumChoice choice="Respond to Consist Address">
            <choice>Respond to Consist Address</choice>
          </enumChoice>
        </enumVal>
        <label>Consist Address Active For Pink</label>
      </variable>
      <variable label="Normal direction of motion" CV="29" mask="XXXXXXXV" item="Locomotive Direction">
        <enumVal>
          <enumChoice choice="forward">
            <choice>forward</choice>
          </enumChoice>
          <enumChoice choice="reverse">
            <choice>reverse</choice>
          </enumChoice>
        </enumVal>
        <label>Normal direction of motion</label>
      </variable>
      <variable label="Analog conversion mode" CV="29" mask="XXXXXVXX" default="1" item="Analog (DC) Operation">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Analog conversion mode</label>
      </variable>
      <variable label="Addressing Mode" CV="29" mask="XXVXXXXX" item="Address Format">
        <enumVal>
          <enumChoice choice="2 digit addressing">
            <choice>2 digit addressing</choice>
          </enumChoice>
          <enumChoice choice="4 digit addressing">
            <choice>4 digit addressing</choice>
          </enumChoice>
        </enumVal>
        <label>Addressing Mode</label>
      </variable>
      <variable label="FL(f) controls output 1" CV="35" mask="XXXXXXXV" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 1</label>
      </variable>
      <variable label="FL(r) controls output 1" CV="35" mask="XXXXXXVX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 1</label>
      </variable>
      <variable label="F1 controls output 1" CV="35" mask="XXXXXVXX" minOut="1" default="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 1</label>
      </variable>
      <variable label="F2 controls output 1" CV="35" mask="XXXXVXXX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 1</label>
      </variable>
      <variable label="F3 controls output 1" CV="35" mask="XXXVXXXX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 1</label>
      </variable>
      <variable label="F4 controls output 1" CV="35" mask="XXVXXXXX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 1</label>
      </variable>
      <variable label="F5 controls output 1" CV="35" mask="XVXXXXXX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 1</label>
      </variable>
      <variable label="F6 controls output 1" CV="35" mask="VXXXXXXX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 1</label>
      </variable>
      <variable label="FL(f) controls output 2" CV="36" mask="XXXXXXXV" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 2</label>
      </variable>
      <variable label="FL(r) controls output 2" CV="36" mask="XXXXXXVX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 2</label>
      </variable>
      <variable label="F1 controls output 2" CV="36" mask="XXXXXVXX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 2</label>
      </variable>
      <variable label="F2 controls output 2" CV="36" mask="XXXXVXXX" minOut="2" default="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 2</label>
      </variable>
      <variable label="F3 controls output 2" CV="36" mask="XXXVXXXX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 2</label>
      </variable>
      <variable label="F4 controls output 2" CV="36" mask="XXVXXXXX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 2</label>
      </variable>
      <variable label="F5 controls output 2" CV="36" mask="XVXXXXXX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 2</label>
      </variable>
      <variable label="F6 controls output 2" CV="36" mask="VXXXXXXX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 2</label>
      </variable>
      <variable label="F7 controls output 1" CV="37" mask="XXXXXVXX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 1</label>
      </variable>
      <variable label="F8 controls output 1" CV="37" mask="XXXXVXXX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 1</label>
      </variable>
      <variable label="F9 controls output 1" CV="37" mask="XXXVXXXX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 1</label>
      </variable>
      <variable label="F10 controls output 1" CV="37" mask="XXVXXXXX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 1</label>
      </variable>
      <variable label="F11 controls output 1" CV="37" mask="XVXXXXXX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 1</label>
      </variable>
      <variable label="F12 controls output 1" CV="37" mask="VXXXXXXX" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 1</label>
      </variable>
      <variable label="F7 controls output 2" CV="38" mask="XXXXXVXX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 2</label>
      </variable>
      <variable label="F8 controls output 2" CV="38" mask="XXXXVXXX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 2</label>
      </variable>
      <variable label="F9 controls output 2" CV="38" mask="XXXVXXXX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 2</label>
      </variable>
      <variable label="F10 controls output 2" CV="38" mask="XXVXXXXX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 2</label>
      </variable>
      <variable label="F11 controls output 2" CV="38" mask="XVXXXXXX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 2</label>
      </variable>
      <variable label="F12 controls output 2" CV="38" mask="VXXXXXXX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 2</label>
      </variable>
      <variable label="FL(f) controls output 3" CV="39" mask="XXXXXXXV" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 3</label>
      </variable>
      <variable label="FL(r) controls output 3" CV="39" mask="XXXXXXVX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 3</label>
      </variable>
      <variable label="F1 controls output 3" CV="39" mask="XXXXXVXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 3</label>
      </variable>
      <variable label="F2 controls output 3" CV="39" mask="XXXXVXXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 3</label>
      </variable>
      <variable label="F3 controls output 3" CV="39" mask="XXXVXXXX" minOut="3" default="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 3</label>
      </variable>
      <variable label="F4 controls output 3" CV="39" mask="XXVXXXXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 3</label>
      </variable>
      <variable label="F5 controls output 3" CV="39" mask="XVXXXXXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 3</label>
      </variable>
      <variable label="F6 controls output 3" CV="39" mask="VXXXXXXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 3</label>
      </variable>
      <variable label="FL(f) controls output 4" CV="40" mask="XXXXXXXV" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 4</label>
      </variable>
      <variable label="FL(r) controls output 4" CV="40" mask="XXXXXXVX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 4</label>
      </variable>
      <variable label="F1 controls output 4" CV="40" mask="XXXXXVXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 4</label>
      </variable>
      <variable label="F2 controls output 4" CV="40" mask="XXXXVXXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 4</label>
      </variable>
      <variable label="F3 controls output 4" CV="40" mask="XXXVXXXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 4</label>
      </variable>
      <variable label="F4 controls output 4" CV="40" mask="XXVXXXXX" minOut="4" default="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 4</label>
      </variable>
      <variable label="F5 controls output 4" CV="40" mask="XVXXXXXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 4</label>
      </variable>
      <variable label="F6 controls output 4" CV="40" mask="VXXXXXXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 4</label>
      </variable>
      <variable label="F7 controls output 3" CV="41" mask="XXXXXVXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 3</label>
      </variable>
      <variable label="F8 controls output 3" CV="41" mask="XXXXVXXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 3</label>
      </variable>
      <variable label="F9 controls output 3" CV="41" mask="XXXVXXXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 3</label>
      </variable>
      <variable label="F10 controls output 3" CV="41" mask="XXVXXXXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 3</label>
      </variable>
      <variable label="F11 controls output 3" CV="41" mask="XVXXXXXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 3</label>
      </variable>
      <variable label="F12 controls output 3" CV="41" mask="VXXXXXXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 3</label>
      </variable>
      <variable label="F7 controls output 4" CV="42" mask="XXXXXVXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 4</label>
      </variable>
      <variable label="F8 controls output 4" CV="42" mask="XXXXVXXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 4</label>
      </variable>
      <variable label="F9 controls output 4" CV="42" mask="XXXVXXXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 4</label>
      </variable>
      <variable label="F10 controls output 4" CV="42" mask="XXVXXXXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 4</label>
      </variable>
      <variable label="F11 controls output 4" CV="42" mask="XVXXXXXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 4</label>
      </variable>
      <variable label="F12 controls output 4" CV="42" mask="VXXXXXXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 4</label>
      </variable>
      <variable label="Green Wire Effect" CV="51" mask="XXXXVVVV" minOut="1" item="Output 3 effect generated">
        <enumVal>
          <enumChoice choice="Constant bright light">
            <choice>Constant bright light</choice>
          </enumChoice>
          <enumChoice choice="Random flicker (fire box)">
            <choice>Random flicker (fire box)</choice>
          </enumChoice>
          <enumChoice choice="Mars light">
            <choice>Mars light</choice>
          </enumChoice>
          <enumChoice choice="Flashing light">
            <choice>Flashing light</choice>
          </enumChoice>
          <enumChoice choice="Single pulse strobe">
            <choice>Single pulse strobe</choice>
          </enumChoice>
          <enumChoice choice="Double pulse strobe">
            <choice>Double pulse strobe</choice>
          </enumChoice>
          <enumChoice choice="Rotary beacon">
            <choice>Rotary beacon</choice>
          </enumChoice>
          <enumChoice choice="Gyra light">
            <choice>Gyra light</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 (dimmable)">
            <choice>Rule 17 (dimmable)</choice>
          </enumChoice>
          <enumChoice choice="Momentary pulse">
            <choice>Momentary pulse</choice>
          </enumChoice>
          <enumChoice choice="Ditch light A">
            <choice>Ditch light A</choice>
          </enumChoice>
          <enumChoice choice="Ditch light B">
            <choice>Ditch light B</choice>
          </enumChoice>
          <enumChoice choice="Constant dim">
            <choice>Constant dim</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0D)">
            <choice>Reserved (0x0D)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0E)">
            <choice>Reserved (0x0E)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0F)">
            <choice>Reserved (0x0F)</choice>
          </enumChoice>
        </enumVal>
        <label>Green Wire Effect</label>
      </variable>
      <variable label="Green Wire Timing" CV="51" mask="XXVVXXXX" minOut="1" item="Output 3 behavior" default="2">
        <enumVal>
          <enumChoice choice="Function on running forward">
            <choice>Function on running forward</choice>
          </enumChoice>
          <enumChoice choice="Function on running reverse">
            <choice>Function on running reverse</choice>
          </enumChoice>
          <enumChoice choice="Function on both directions">
            <choice>Function on both directions</choice>
          </enumChoice>
          <enumChoice choice="Reserved">
            <choice>Reserved</choice>
          </enumChoice>
        </enumVal>
        <label>Green Wire Timing</label>
      </variable>
      <variable label="Purple Wire Effect" CV="52" mask="XXXXVVVV" minOut="2" item="Output 4 effect generated">
        <enumVal>
          <enumChoice choice="Constant bright light">
            <choice>Constant bright light</choice>
          </enumChoice>
          <enumChoice choice="Random flicker (fire box)">
            <choice>Random flicker (fire box)</choice>
          </enumChoice>
          <enumChoice choice="Mars light">
            <choice>Mars light</choice>
          </enumChoice>
          <enumChoice choice="Flashing light">
            <choice>Flashing light</choice>
          </enumChoice>
          <enumChoice choice="Single pulse strobe">
            <choice>Single pulse strobe</choice>
          </enumChoice>
          <enumChoice choice="Double pulse strobe">
            <choice>Double pulse strobe</choice>
          </enumChoice>
          <enumChoice choice="Rotary beacon">
            <choice>Rotary beacon</choice>
          </enumChoice>
          <enumChoice choice="Gyra light">
            <choice>Gyra light</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 (dimmable)">
            <choice>Rule 17 (dimmable)</choice>
          </enumChoice>
          <enumChoice choice="Momentary pulse">
            <choice>Momentary pulse</choice>
          </enumChoice>
          <enumChoice choice="Ditch light A">
            <choice>Ditch light A</choice>
          </enumChoice>
          <enumChoice choice="Ditch light B">
            <choice>Ditch light B</choice>
          </enumChoice>
          <enumChoice choice="Constant dim">
            <choice>Constant dim</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0D)">
            <choice>Reserved (0x0D)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0E)">
            <choice>Reserved (0x0E)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0F)">
            <choice>Reserved (0x0F)</choice>
          </enumChoice>
        </enumVal>
        <label>Purple Wire Effect</label>
      </variable>
      <variable label="Purple Wire Timing" CV="52" mask="XXVVXXXX" minOut="2" item="Output 4 behavior" default="2">
        <enumVal>
          <enumChoice choice="Function on running forward">
            <choice>Function on running forward</choice>
          </enumChoice>
          <enumChoice choice="Function on running reverse">
            <choice>Function on running reverse</choice>
          </enumChoice>
          <enumChoice choice="Function on both directions">
            <choice>Function on both directions</choice>
          </enumChoice>
          <enumChoice choice="Reserved">
            <choice>Reserved</choice>
          </enumChoice>
        </enumVal>
        <label>Purple Wire Timing</label>
      </variable>
      <variable label="Brown Wire Effect" CV="53" mask="XXXXVVVV" minOut="3" item="Output 5 effect generated">
        <enumVal>
          <enumChoice choice="Constant bright light">
            <choice>Constant bright light</choice>
          </enumChoice>
          <enumChoice choice="Random flicker (fire box)">
            <choice>Random flicker (fire box)</choice>
          </enumChoice>
          <enumChoice choice="Mars light">
            <choice>Mars light</choice>
          </enumChoice>
          <enumChoice choice="Flashing light">
            <choice>Flashing light</choice>
          </enumChoice>
          <enumChoice choice="Single pulse strobe">
            <choice>Single pulse strobe</choice>
          </enumChoice>
          <enumChoice choice="Double pulse strobe">
            <choice>Double pulse strobe</choice>
          </enumChoice>
          <enumChoice choice="Rotary beacon">
            <choice>Rotary beacon</choice>
          </enumChoice>
          <enumChoice choice="Gyra light">
            <choice>Gyra light</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 (dimmable)">
            <choice>Rule 17 (dimmable)</choice>
          </enumChoice>
          <enumChoice choice="Momentary pulse">
            <choice>Momentary pulse</choice>
          </enumChoice>
          <enumChoice choice="Ditch light A">
            <choice>Ditch light A</choice>
          </enumChoice>
          <enumChoice choice="Ditch light B">
            <choice>Ditch light B</choice>
          </enumChoice>
          <enumChoice choice="Constant dim">
            <choice>Constant dim</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0D)">
            <choice>Reserved (0x0D)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0E)">
            <choice>Reserved (0x0E)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0F)">
            <choice>Reserved (0x0F)</choice>
          </enumChoice>
        </enumVal>
        <label>Brown Wire Effect</label>
      </variable>
      <variable label="Brown Wire Timing" CV="53" mask="XXVVXXXX" minOut="3" item="Output 5 behavior" default="2">
        <enumVal>
          <enumChoice choice="Function on running forward">
            <choice>Function on running forward</choice>
          </enumChoice>
          <enumChoice choice="Function on running reverse">
            <choice>Function on running reverse</choice>
          </enumChoice>
          <enumChoice choice="Function on both directions">
            <choice>Function on both directions</choice>
          </enumChoice>
          <enumChoice choice="Reserved">
            <choice>Reserved</choice>
          </enumChoice>
        </enumVal>
        <label>Brown Wire Timing</label>
      </variable>
      <variable label="Pink Wire Effect" CV="54" mask="XXXXVVVV" minOut="4" item="Output 6 effect generated">
        <enumVal>
          <enumChoice choice="Constant bright light">
            <choice>Constant bright light</choice>
          </enumChoice>
          <enumChoice choice="Random flicker (fire box)">
            <choice>Random flicker (fire box)</choice>
          </enumChoice>
          <enumChoice choice="Mars light">
            <choice>Mars light</choice>
          </enumChoice>
          <enumChoice choice="Flashing light">
            <choice>Flashing light</choice>
          </enumChoice>
          <enumChoice choice="Single pulse strobe">
            <choice>Single pulse strobe</choice>
          </enumChoice>
          <enumChoice choice="Double pulse strobe">
            <choice>Double pulse strobe</choice>
          </enumChoice>
          <enumChoice choice="Rotary beacon">
            <choice>Rotary beacon</choice>
          </enumChoice>
          <enumChoice choice="Gyra light">
            <choice>Gyra light</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 (dimmable)">
            <choice>Rule 17 (dimmable)</choice>
          </enumChoice>
          <enumChoice choice="Momentary pulse">
            <choice>Momentary pulse</choice>
          </enumChoice>
          <enumChoice choice="Ditch light A">
            <choice>Ditch light A</choice>
          </enumChoice>
          <enumChoice choice="Ditch light B">
            <choice>Ditch light B</choice>
          </enumChoice>
          <enumChoice choice="Constant dim">
            <choice>Constant dim</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0D)">
            <choice>Reserved (0x0D)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0E)">
            <choice>Reserved (0x0E)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0F)">
            <choice>Reserved (0x0F)</choice>
          </enumChoice>
        </enumVal>
        <label>Pink Wire Effect</label>
      </variable>
      <variable label="Pink Wire Timing" CV="54" mask="XXVVXXXX" minOut="4" item="Output 6 behavior" default="2">
        <enumVal>
          <enumChoice choice="Function on running forward">
            <choice>Function on running forward</choice>
          </enumChoice>
          <enumChoice choice="Function on running reverse">
            <choice>Function on running reverse</choice>
          </enumChoice>
          <enumChoice choice="Function on both directions">
            <choice>Function on both directions</choice>
          </enumChoice>
          <enumChoice choice="Reserved">
            <choice>Reserved</choice>
          </enumChoice>
        </enumVal>
        <label>Pink Wire Timing</label>
      </variable>
      <variable label="Oscillating Light Modulation" CV="59" default="46" item="Function F0F effect generated">
        <decVal/>
        <label>Oscillating Light Modulation</label>
      </variable>
      <variable label="Oscillating Light Latency" CV="60" default="54" item="Function F0R effect generated">
        <decVal/>
        <label>Oscillating Light Latency</label>
      </variable>
      <variable label="Headlight Dim When Stopped" CV="61" mask="XXXVXXXX" item="Directional Headlights">
        <enumVal>
          <enumChoice choice="Not used">
            <choice>Not used</choice>
          </enumChoice>
          <enumChoice choice="Enabled">
            <choice>Enabled</choice>
          </enumChoice>
        </enumVal>
        <label>Headlight Dim When Stopped</label>
      </variable>
      <variable label="Opposite Headlight Dim" CV="61" mask="XXVXXXXX" item="Global lighting option 1">
        <enumVal>
          <enumChoice choice="Not used">
            <choice>Not used</choice>
          </enumChoice>
          <enumChoice choice="Enabled">
            <choice>Enabled</choice>
          </enumChoice>
        </enumVal>
        <label>Opposite Headlight Dim</label>
      </variable>
      <variable label="Momentary Pulse" CV="62" default="60" item="Function 2 effect generated" tooltip="1 second = 60 to 4 seconds = 255">
        <decVal/>
        <label>Momentary Pulse</label>
      </variable>
      <variable label="Ditch Light Blink Holdover Time" CV="63" default="10" item="Global lighting option 3" tooltip="1 second = about 12">
        <decVal/>
        <label>Ditch Light Blink Holdover Time</label>
      </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/>
        <label>Dimming Brightness</label>
      </variable>
      <variable label="User Private ID #1" CV="105" item="User Id #1">
        <decVal/>
        <label>User Private ID #1</label>
      </variable>
      <variable label="User Private ID #2" CV="106" item="User Id #2">
        <decVal/>
        <label>User Private ID #2</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="2"/>
    </resets>
  </decoder>
  
  <pane name="Misc">
    <column>
      <display item="Decoder Lock ID number"/>
      <label label="Tip: you must set CV15 equal to this number to unlock the decoder for programming">
        <label>Tip: you must set CV15 equal to this number to unlock the decoder for programming</label>
      </label>
    </column>
    <name>Misc</name>
  </pane>
</decoder-config>

