<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2003, 2005 All rights reserved -->
<!-- $Id: TCS_Mfamily.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="jake@physics.berkeley.edu" version="4" lastUpdated="20060112"/>
<!-- Version 1 - made from TCS_Tx -->
<!-- Version 2 - fix "rule 17" typos -->
<!-- Modified for old version 24  ..Eddie  -->
<!-- Version 3-->
<!-- made from M1 file with corrections and added M2 norman@erwbant.freeserve.co.ukJanuary 2005 -->
<!-- Version 4 added M1P-UK from David Cuthbert -->
<!-- Version 4.1- 20110214 Added Rest to Factory defaults CV8>2(wsthompson@earthlink.net) -->
  <decoder>
    <family name="TCS Mx series decoders" mfg="Train Control Systems">
      <model model="M1" numOuts="2" numFns="6" lowVersionID="24" highVersionID="24">
        <size length="0.500" width="0.375" height="0.125" units="inches"/>
      </model>
      <model model="M2" numOuts="3" numFns="6" lowVersionID="29" highVersionID="29">
        <size length="0.500" width="0.375" height="0.125" units="inches"/>
      </model>
      <model model="M1P-UK" numOuts="2" numFns="6" lowVersionID="35" highVersionID="37">
    		</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="Start voltage" CV="2" item="Vstart" comment="A value of 255 corresponds to 100%">
        <decVal/>
        <label>Start voltage</label>
        <comment>A value of 255 corresponds to 100%</comment>
      </variable>
      <variable label="Acceleration Rate" CV="3" item="Accel">
        <decVal max="255"/>
        <label>Acceleration Rate</label>
      </variable>
      <variable label="Deceleration Rate" CV="4" item="Decel">
        <decVal max="255"/>
        <label>Deceleration Rate</label>
      </variable>
      <variable label="Maximum Voltage" CV="5" item="Vhigh">
        <decVal/>
        <label>Maximum Voltage</label>
      </variable>
      <variable label="Midpoint Voltage" CV="6" item="Vmid">
        <decVal/>
        <label>Midpoint Voltage</label>
      </variable>
<!-- CV7 & CV8 are left as readonly = no, so they will display in basic pane -->
      <variable label="Version ID" CV="7" readOnly="no" item="Decoder Version">
        <decVal/>
        <label>Version ID</label>
      </variable>
      <variable label="Manufacturer ID" CV="8" readOnly="no" item="Manufacturer">
        <decVal/>
        <label>Manufacturer ID</label>
      </variable>
      <variable label="Manufacturer ID - Reset" CV="8" default="0" readOnly="yes" mask="XXXXXXVX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Manufacturer ID - Reset</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="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="Speed steps" CV="29" mask="XXXXXXVX" item="Speed Step Mode" default="1">
        <enumVal>
          <enumChoice choice="14">
            <choice>14</choice>
          </enumChoice>
          <enumChoice choice="28/128">
            <choice>28/128</choice>
          </enumChoice>
        </enumVal>
        <label>Speed steps</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="Use Speed Table" CV="29" mask="XXXVXXXX" item="Speed Table Definition">
        <enumVal>
          <enumChoice choice="Use Vstart, Vmid, Vhigh">
            <choice>Use Vstart, Vmid, Vhigh</choice>
          </enumChoice>
          <enumChoice choice="Use Table">
            <choice>Use Table</choice>
          </enumChoice>
        </enumVal>
        <label>Use Speed Table</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="Forward light F0F effect generated" CV="49" mask="XXXXVVVV" item="Function F0F effect generated" minOut="1">
        <enumVal>
          <enumChoice choice="Normal on/off control">
            <choice>Normal on/off control</choice>
          </enumChoice>
          <enumChoice choice="Random flicker (fire box)">
            <choice>Random flicker (fire box)</choice>
          </enumChoice>
          <enumChoice choice="Mars">
            <choice>Mars</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 lite">
            <choice>Gyra lite</choice>
          </enumChoice>
          <enumChoice choice="Rule 17">
            <choice>Rule 17</choice>
          </enumChoice>
          <enumChoice choice="Reserved">
            <choice>Reserved</choice>
          </enumChoice>
          <enumChoice choice="Ditch Light Phase A">
            <choice>Ditch Light Phase A</choice>
          </enumChoice>
          <enumChoice choice="Ditch Light Phase B">
            <choice>Ditch Light Phase B</choice>
          </enumChoice>
          <enumChoice choice="Dim">
            <choice>Dim</choice>
          </enumChoice>
        </enumVal>
        <label>Forward light F0F effect generated</label>
      </variable>
      <variable label="Forward light F0F behaviour" CV="49" mask="VVVVXXXX" item="Function F0F behaviour" minOut="1">
        <enumVal>
          <enumChoice choice="Function on when loco going forward only">
            <choice>Function on when loco going forward only</choice>
          </enumChoice>
          <enumChoice choice="Function on when loco going reverse only">
            <choice>Function on when loco going reverse only</choice>
          </enumChoice>
          <enumChoice choice="Light is on in both directions">
            <choice>Light is on in both directions</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x3)">
            <choice>Reserved (0x3)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x4)">
            <choice>Reserved (0x4)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x5)">
            <choice>Reserved (0x5)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x6)">
            <choice>Reserved (0x6)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x7)">
            <choice>Reserved (0x7)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x8)">
            <choice>Reserved (0x8)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x9)">
            <choice>Reserved (0x9)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xA)">
            <choice>Reserved (0xA)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xB)">
            <choice>Reserved (0xB)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xC)">
            <choice>Reserved (0xC)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xD)">
            <choice>Reserved (0xD)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xE)">
            <choice>Reserved (0xE)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xF)">
            <choice>Reserved (0xF)</choice>
          </enumChoice>
        </enumVal>
        <label>Forward light F0F behaviour</label>
      </variable>
      <variable label="Reverse light F0R effect generated" CV="50" mask="XXXXVVVV" item="Function F0R effect generated" minOut="2">
        <enumVal>
          <enumChoice choice="Normal on/off control">
            <choice>Normal on/off control</choice>
          </enumChoice>
          <enumChoice choice="Random flicker (fire box)">
            <choice>Random flicker (fire box)</choice>
          </enumChoice>
          <enumChoice choice="Mars">
            <choice>Mars</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 lite">
            <choice>Gyra lite</choice>
          </enumChoice>
          <enumChoice choice="Rule 17">
            <choice>Rule 17</choice>
          </enumChoice>
          <enumChoice choice="Reserved">
            <choice>Reserved</choice>
          </enumChoice>
          <enumChoice choice="Ditch Light Phase A">
            <choice>Ditch Light Phase A</choice>
          </enumChoice>
          <enumChoice choice="Ditch Light Phase B">
            <choice>Ditch Light Phase B</choice>
          </enumChoice>
          <enumChoice choice="Dim">
            <choice>Dim</choice>
          </enumChoice>
        </enumVal>
        <label>Reverse light F0R effect generated</label>
      </variable>
      <variable label="Reverse light F0R behaviour" CV="50" mask="VVVVXXXX" item="Function F0R behaviour" default="1" minOut="2">
        <enumVal>
          <enumChoice choice="Function on when loco going forward only">
            <choice>Function on when loco going forward only</choice>
          </enumChoice>
          <enumChoice choice="Function on when loco going reverse only">
            <choice>Function on when loco going reverse only</choice>
          </enumChoice>
          <enumChoice choice="Light is on in both directions">
            <choice>Light is on in both directions</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x3)">
            <choice>Reserved (0x3)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x4)">
            <choice>Reserved (0x4)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x5)">
            <choice>Reserved (0x5)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x6)">
            <choice>Reserved (0x6)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x7)">
            <choice>Reserved (0x7)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x8)">
            <choice>Reserved (0x8)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x9)">
            <choice>Reserved (0x9)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xA)">
            <choice>Reserved (0xA)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xB)">
            <choice>Reserved (0xB)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xC)">
            <choice>Reserved (0xC)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xD)">
            <choice>Reserved (0xD)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xE)">
            <choice>Reserved (0xE)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xF)">
            <choice>Reserved (0xF)</choice>
          </enumChoice>
        </enumVal>
        <label>Reverse light F0R behaviour</label>
      </variable>
      <variable label="Function 1 effect generated" CV="51" mask="XXXXVVVV" minFn="1" minOut="3">
        <enumVal>
          <enumChoice choice="Normal on/off control">
            <choice>Normal on/off control</choice>
          </enumChoice>
          <enumChoice choice="Random flicker (fire box)">
            <choice>Random flicker (fire box)</choice>
          </enumChoice>
          <enumChoice choice="Mars">
            <choice>Mars</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 lite">
            <choice>Gyra lite</choice>
          </enumChoice>
          <enumChoice choice="Rule 17">
            <choice>Rule 17</choice>
          </enumChoice>
          <enumChoice choice="Reserved">
            <choice>Reserved</choice>
          </enumChoice>
          <enumChoice choice="Ditch Light Phase A">
            <choice>Ditch Light Phase A</choice>
          </enumChoice>
          <enumChoice choice="Ditch Light Phase B">
            <choice>Ditch Light Phase B</choice>
          </enumChoice>
          <enumChoice choice="Dim">
            <choice>Dim</choice>
          </enumChoice>
        </enumVal>
        <label>Function 1 effect generated</label>
      </variable>
      <variable label="Function 1 behaviour" CV="51" mask="VVVVXXXX" minFn="1" minOut="3">
        <enumVal>
          <enumChoice choice="Function on when loco going forward only">
            <choice>Function on when loco going forward only</choice>
          </enumChoice>
          <enumChoice choice="Function on when loco going reverse only">
            <choice>Function on when loco going reverse only</choice>
          </enumChoice>
          <enumChoice choice="Light is on in both directions">
            <choice>Light is on in both directions</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x3)">
            <choice>Reserved (0x3)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x4)">
            <choice>Reserved (0x4)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x5)">
            <choice>Reserved (0x5)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x6)">
            <choice>Reserved (0x6)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x7)">
            <choice>Reserved (0x7)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x8)">
            <choice>Reserved (0x8)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x9)">
            <choice>Reserved (0x9)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xA)">
            <choice>Reserved (0xA)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xB)">
            <choice>Reserved (0xB)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xC)">
            <choice>Reserved (0xC)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xD)">
            <choice>Reserved (0xD)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xE)">
            <choice>Reserved (0xE)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xF)">
            <choice>Reserved (0xF)</choice>
          </enumChoice>
        </enumVal>
        <label>Function 1 behaviour</label>
      </variable>
      <variable label="Function 2 effect generated" CV="52" mask="XXXXVVVV" minFn="2" minOut="4">
        <enumVal>
          <enumChoice choice="Normal on/off control">
            <choice>Normal on/off control</choice>
          </enumChoice>
          <enumChoice choice="Random flicker (fire box)">
            <choice>Random flicker (fire box)</choice>
          </enumChoice>
          <enumChoice choice="Mars">
            <choice>Mars</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 lite">
            <choice>Gyra lite</choice>
          </enumChoice>
          <enumChoice choice="Rule 17">
            <choice>Rule 17</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x09)">
            <choice>Reserved (0x09)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0A)">
            <choice>Reserved (0x0A)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0B)">
            <choice>Reserved (0x0B)</choice>
          </enumChoice>
          <enumChoice choice="Dim">
            <choice>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>Function 2 effect generated</label>
      </variable>
      <variable label="Function 2 behaviour" CV="52" mask="VVVVXXXX" minFn="2" minOut="4">
        <enumVal>
          <enumChoice choice="Function on when loco going forward only">
            <choice>Function on when loco going forward only</choice>
          </enumChoice>
          <enumChoice choice="Function on when loco going reverse only">
            <choice>Function on when loco going reverse only</choice>
          </enumChoice>
          <enumChoice choice="Light is on in both directions">
            <choice>Light is on in both directions</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x3)">
            <choice>Reserved (0x3)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x4)">
            <choice>Reserved (0x4)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x5)">
            <choice>Reserved (0x5)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x6)">
            <choice>Reserved (0x6)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x7)">
            <choice>Reserved (0x7)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x8)">
            <choice>Reserved (0x8)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x9)">
            <choice>Reserved (0x9)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xA)">
            <choice>Reserved (0xA)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xB)">
            <choice>Reserved (0xB)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xC)">
            <choice>Reserved (0xC)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xD)">
            <choice>Reserved (0xD)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xE)">
            <choice>Reserved (0xE)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xF)">
            <choice>Reserved (0xF)</choice>
          </enumChoice>
        </enumVal>
        <label>Function 2 behaviour</label>
      </variable>
      <variable label="Function 3 effect generated" CV="53" mask="XXXXVVVV" minFn="3" minOut="5">
        <enumVal>
          <enumChoice choice="Normal on/off control">
            <choice>Normal on/off control</choice>
          </enumChoice>
          <enumChoice choice="Random flicker (fire box)">
            <choice>Random flicker (fire box)</choice>
          </enumChoice>
          <enumChoice choice="Mars">
            <choice>Mars</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 lite">
            <choice>Gyra lite</choice>
          </enumChoice>
          <enumChoice choice="Rule 17">
            <choice>Rule 17</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x09)">
            <choice>Reserved (0x09)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0A)">
            <choice>Reserved (0x0A)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x0B)">
            <choice>Reserved (0x0B)</choice>
          </enumChoice>
          <enumChoice choice="Dim">
            <choice>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>Function 3 effect generated</label>
      </variable>
      <variable label="Function 3 behaviour" CV="53" mask="VVVVXXXX" minFn="3" minOut="5">
        <enumVal>
          <enumChoice choice="Function on when loco going forward only">
            <choice>Function on when loco going forward only</choice>
          </enumChoice>
          <enumChoice choice="Function on when loco going reverse only">
            <choice>Function on when loco going reverse only</choice>
          </enumChoice>
          <enumChoice choice="Light is on in both directions">
            <choice>Light is on in both directions</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x3)">
            <choice>Reserved (0x3)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x4)">
            <choice>Reserved (0x4)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x5)">
            <choice>Reserved (0x5)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x6)">
            <choice>Reserved (0x6)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x7)">
            <choice>Reserved (0x7)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x8)">
            <choice>Reserved (0x8)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x9)">
            <choice>Reserved (0x9)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xA)">
            <choice>Reserved (0xA)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xB)">
            <choice>Reserved (0xB)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xC)">
            <choice>Reserved (0xC)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xD)">
            <choice>Reserved (0xD)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xE)">
            <choice>Reserved (0xE)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xF)">
            <choice>Reserved (0xF)</choice>
          </enumChoice>
        </enumVal>
        <label>Function 3 behaviour</label>
      </variable>
      <variable label="Time between Mars and Gyralite modulations" CV="60" default="54" item="Global lighting option 2">
        <decVal/>
        <label>Time between Mars and Gyralite modulations</label>
      </variable>
      <variable label="Mars and Gyralite modulation frequency" CV="59" default="46" item="Global lighting option 1">
        <decVal/>
        <label>Mars and Gyralite modulation frequency</label>
      </variable>
      <variable label="Headlight Dimming (Set Rule 17-Below)" CV="61" mask="XXVVXXXX" item="Global lighting option 3">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="Dims when loco is stopped">
            <choice>Dims when loco is stopped</choice>
          </enumChoice>
          <enumChoice choice="Opposite headlight is ON Dimmed">
            <choice>Opposite headlight is ON Dimmed</choice>
          </enumChoice>
        </enumVal>
        <label>Headlight Dimming (Set Rule 17-Below)</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>
      <variable label="Speed Table" CV="67">
        <speedTableVal/>
        <label>Speed Table</label>
      </variable>
      <variable label="FL(f) controls output 1" CV="33" default="1" 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(f) controls output 2" CV="33" mask="XXXXXXVX" 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(f) controls output 3" CV="33" mask="XXXXXVXX" 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(f) controls output 4" CV="33" mask="XXXXVXXX" 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(f) controls output 5" CV="33" mask="XXXVXXXX" minOut="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 5</label>
      </variable>
      <variable label="FL(f) controls output 6" CV="33" mask="XXVXXXXX" minOut="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 6</label>
      </variable>
      <variable label="FL(r) controls output 1" CV="34" mask="XXXXXXXV" 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="FL(r) controls output 2" CV="34" default="1" 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="FL(r) controls output 3" CV="34" mask="XXXXXVXX" 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="FL(r) controls output 4" CV="34" mask="XXXXVXXX" 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="FL(r) controls output 5" CV="34" mask="XXXVXXXX" minOut="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 5</label>
      </variable>
      <variable label="FL(r) controls output 6" CV="34" mask="XXVXXXXX" minOut="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 6</label>
      </variable>
<!--what's the purpose of minFn ............................ none-->
      <variable label="F1 controls output 1" CV="35" mask="XXXXXXXV" minOut="1" minFn="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="F1 controls output 2" CV="35" mask="XXXXXXVX" minOut="2" minFn="1">
        <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="F1 controls output 3" CV="35" default="1" mask="XXXXXVXX" minOut="3" minFn="1">
        <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="F1 controls output 4" CV="35" mask="XXXXVXXX" minOut="4" minFn="1">
        <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="F1 controls output 5" CV="35" mask="XXXVXXXX" minOut="5" minFn="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 5</label>
      </variable>
      <variable label="F1 controls output 6" CV="35" mask="XXVXXXXX" minOut="6" minFn="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 6</label>
      </variable>
      <variable label="F2 controls output 1" CV="36" mask="XXXXXXXV" minOut="1" minFn="2">
        <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="F2 controls output 2" CV="36" mask="XXXXXXVX" minOut="2" minFn="2">
        <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="F2 controls output 3" CV="36" mask="XXXXXVXX" minOut="3" minFn="2">
        <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="F2 controls output 4" CV="36" default="1" mask="XXXXVXXX" minOut="4" minFn="2">
        <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="F2 controls output 5" CV="36" mask="XXXVXXXX" minOut="5" minFn="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 5</label>
      </variable>
      <variable label="F2 controls output 6" CV="36" mask="XXVXXXXX" minOut="6" minFn="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 6</label>
      </variable>
      <variable label="F3 controls output 1" CV="37" mask="XXXXXXXV" minOut="1" minFn="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="F3 controls output 2" CV="37" mask="XXXXXXVX" minOut="2" minFn="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="F3 controls output 3" CV="37" mask="XXXXXVXX" minOut="3" minFn="3">
        <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="F3 controls output 4" CV="37" mask="XXXXVXXX" minOut="4" minFn="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="F3 controls output 5" CV="37" default="0" mask="XXXVXXXX" minOut="5" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 5</label>
      </variable>
      <variable label="F3 controls output 6" CV="37" mask="XXVXXXXX" minOut="6" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 6</label>
      </variable>
      <variable label="F4 controls output 1" CV="38" mask="XXXXXXXV" minOut="1" minFn="2">
        <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="F4 controls output 2" CV="38" mask="XXXXXXVX" minOut="2" minFn="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="F4 controls output 3" CV="38" mask="XXXXXVXX" minOut="3" minFn="4">
        <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="F4 controls output 4" CV="38" mask="XXXXVXXX" minOut="4" minFn="4">
        <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="F4 controls output 5" CV="38" mask="XXXVXXXX" minOut="5" minFn="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 5</label>
      </variable>
      <variable label="F4 controls output 6" CV="38" default="0" mask="XXVXXXXX" minOut="6" minFn="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 6</label>
      </variable>
      <variable label="F5 controls output 1" CV="39" mask="XXXXXXXV" minOut="1" minFn="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="F5 controls output 2" CV="39" mask="XXXXXXVX" minOut="2" minFn="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="F5 controls output 3" CV="39" mask="XXXXXVXX" minOut="3" minFn="5">
        <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="F5 controls output 4" CV="39" mask="XXXXVXXX" minOut="4" minFn="5">
        <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="F5 controls output 5" CV="39" mask="XXXVXXXX" minOut="5" minFn="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 5</label>
      </variable>
      <variable label="F5 controls output 6" CV="39" mask="XXVXXXXX" minOut="6" minFn="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 6</label>
      </variable>
      <variable label="F6 controls output 1" CV="40" mask="XXXXXXXV" minOut="1" minFn="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="F6 controls output 2" CV="40" mask="XXXXXXVX" minOut="2" minFn="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="F6 controls output 3" CV="40" mask="XXXXXVXX" minOut="3" minFn="6">
        <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="F6 controls output 4" CV="40" mask="XXXXVXXX" minOut="4" minFn="6">
        <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="F6 controls output 5" CV="40" mask="XXXVXXXX" minOut="5" minFn="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 5</label>
      </variable>
      <variable label="F6 controls output 6" CV="40" mask="XXVXXXXX" minOut="6" minFn="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 6</label>
      </variable>
      <variable label="Burst duration" CV="58" default="50">
        <decVal/>
        <label>Burst duration</label>
      </variable>
      <variable label="Burst voltage" CV="65">
        <decVal/>
        <label>Burst voltage</label>
      </variable>
      <variable label="Dither frequency(CV56)" CV="56" default="6" item="Dither frequency">
        <decVal/>
        <label>Dither frequency(CV56)</label>
      </variable>
      <variable label="Dither voltage(CV57)" CV="57" default="15" item="Dither voltage">
        <decVal/>
        <label>Dither voltage(CV57)</label>
      </variable>
      <variable label="Active wires in Analog" CV="13" item="Active wire Analog">
        <enumVal>
          <enumChoice choice="Both OFF">
            <choice>Both OFF</choice>
          </enumChoice>
          <enumChoice choice="White">
            <choice>White</choice>
          </enumChoice>
          <enumChoice choice="Yellow">
            <choice>Yellow</choice>
          </enumChoice>
        </enumVal>
        <label>Active wires in Analog</label>
      </variable>
      <variable label="Headlight wire in Consist" CV="22" item="Headlight in Consist">
        <enumVal>
          <enumChoice choice="Both OFF">
            <choice>Both OFF</choice>
          </enumChoice>
          <enumChoice choice="white">
            <choice>white</choice>
          </enumChoice>
          <enumChoice choice="yellow">
            <choice>yellow</choice>
          </enumChoice>
        </enumVal>
        <label>Headlight wire in Consist</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="2"/>
    </resets>
  </decoder>
  
  <pane name="TCS">
    <column>
      <display item="Manufacturer ID - Reset" format="checkbox" label="Trigger Decoder Reset to Factory values">
        <label>Trigger Decoder Reset to Factory values</label>
      </display>
      <label label=" ">
        <label> </label>
      </label>
      <separator/>
      <separator/>
      <label label=" ">
        <label> </label>
      </label>
      <display item="Burst duration"/>
      <display item="Burst voltage"/>
      <display item="Active wire Analog"/>
      <display item="Headlight in Consist"/>
      <display item="Dither frequency"/>
      <display item="Dither voltage"/>
      <label label=" ">
        <label> </label>
      </label>
      <label label=" ">
        <label> </label>
      </label>
      <label label=" ">
        <label> </label>
      </label>
      <label label=" ">
        <label> </label>
      </label>
      <label label=" ">
        <label> </label>
      </label>
      <label label=" ">
        <label> </label>
      </label>
      <label label=" ">
        <label> </label>
      </label>
      <label label=" ">
        <label> </label>
      </label>
      <label label=" ">
        <label> </label>
      </label>
      <label label=" ">
        <label> </label>
      </label>
      <label label="Version 3 - Request changes or report problems to:    decoder@erwbant.freeserve.co.uk ">
        <label>Version 3 - Request changes or report problems to:    decoder@erwbant.freeserve.co.uk </label>
      </label>
    </column>
    <name>TCS</name>
  </pane>
</decoder-config>

