<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2003, 2004 All rights reserved -->
<!-- $Id: ESU_LokSound2_21.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="wsthompson@earthlink.net" version="6" lastUpdated="20050622"/>
<!-- Based on the contribution of many others -->
<!-- version 2 - add consist direction - jake -->
<!-- version 3 - Change LowVersionID to "22" to match my decoder - Ian -->
<!-- version 4 - fix mfg name - jake -->
<!-- version 5 - Changed max values of CV2 thru 6 to 63, this matches the 
	            Factory specs for max,also ESU pane with Factory Reset - walt -->
<!-- version 6 - Massive changes to allow use of Comprehensive rather than
               customer specific programmer, added CV49 bit 1 "Marklin brake track activated" 
             Deleted  factory reset,not provided wsthompson@earthlink.net-->
  <decoder>
    <family name="ESU LokSound2 Silent BEMF/Sound decoders" mfg="Electronic Solutions Ulm GmbH" lowVersionID="21" highVersionID="22">
      <model model="ESU_LokSound2" numOuts="13" numFns="14">
        <output name="1" label="Front Lights"/>
        <output name="2" label="Back Lights"/>
        <output name="3" label="Aux"/>
        <output name="4" label="Accel/Decel off"/>
        <output name="5" label="Riding Noise"/>
        <output name="6" label="Soundslot 1"/>
        <output name="7" label="Soundslot 2"/>
        <output name="8" label="Soundslot 3"/>
        <output name="9" label="Soundslot 4"/>
        <output name="10" label="Soundslot 5"/>
        <output name="11" label="Soundslot 6"/>
        <output name="12" label="Soundslot 7"/>
        <output name="13" label="Soundslot 8"/>
      </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="Vstart" CV="2" default="3">
        <decVal max="63"/>
        <label>Vstart</label>
      </variable>
      <variable label="Acceleration" CV="3" default="4" item="Accel">
        <decVal max="63"/>
        <label>Acceleration</label>
      </variable>
      <variable label="Deceleration" CV="4" default="3" item="Decel">
        <decVal max="63"/>
        <label>Deceleration</label>
      </variable>
      <variable label="Vhigh" CV="5" default="63">
        <decVal max="63"/>
        <label>Vhigh</label>
      </variable>
      <variable label="Vmid" CV="6" default="25">
        <decVal max="63"/>
        <label>Vmid</label>
      </variable>
      <variable label="Decoder Version  " CV="7" readOnly="yes" item="Decoder Version">
        <decVal/>
        <label>Decoder Version  </label>
      </variable>
      <variable label="Manufacturer ID" CV="8" readOnly="yes" item="Manufacturer">
        <decVal/>
        <label>Manufacturer ID</label>
      </variable>
      <variable label="Manufacturer ID - Reset" CV="8">
        <decVal/>
        <label>Manufacturer ID - Reset</label>
      </variable>
      <variable label="Total PWM Period" CV="9" default="0" tooltip="Value is 0 (22kHz) or 204 (87Hz)">
        <decVal/>
        <label>Total PWM Period</label>
      </variable>
      <variable label="Packet Time-out Value" CV="11" default="0" comment="Value is multiplied by 0.36864">
        <decVal/>
        <label>Packet Time-out Value</label>
        <comment>Value is multiplied by 0.36864</comment>
      </variable>
      <variable label="Analog Mode Function Status - F1" CV="13" mask="XXXXXXXV">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F1</label>
      </variable>
      <variable label="Analog Mode Function Status - F2" CV="13" mask="XXXXXXVX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F2</label>
      </variable>
      <variable label="Analog Mode Function Status - F3" CV="13" mask="XXXXXVXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F3</label>
      </variable>
      <variable label="Analog Mode Function Status - F4" CV="13" mask="XXXXVXXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F4</label>
      </variable>
      <variable label="Analog Mode Function Status - F5" CV="13" mask="XXXVXXXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F5</label>
      </variable>
      <variable label="Analog Mode Function Status - F6" CV="13" mask="XXVXXXXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F6</label>
      </variable>
      <variable label="Analog Mode Function Status - F7" CV="13" mask="XVXXXXXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F7</label>
      </variable>
      <variable label="Analog Mode Function Status - F8" CV="13" mask="VXXXXXXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F8</label>
      </variable>
      <variable label="Analog Mode Function Status - F0(f)" CV="14" mask="XXXXXXXV" default="1">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F0(f)</label>
      </variable>
      <variable label="Analog Mode Function Status - F0(r)" CV="14" mask="XXXXXXVX" default="1">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F0(r)</label>
      </variable>
      <variable label="Analog Mode Function Status - F9(f)" CV="14" mask="XXXXXVXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F9(f)</label>
      </variable>
      <variable label="Analog Mode Function Status - F10(f)" CV="14" mask="XXXXVXXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F10(f)</label>
      </variable>
      <variable label="Analog Mode Function Status - F11" CV="14" mask="XXXVXXXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F11</label>
      </variable>
      <variable label="Analog Mode Function Status - F12" CV="14" mask="XXVXXXXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F12</label>
      </variable>
      <variable label="Analog Mode Function Status - F9(r)" CV="14" mask="XVXXXXXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F9(r)</label>
      </variable>
      <variable label="Analog Mode Function Status - F10(r)" CV="14" mask="VXXXXXXX">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Mode Function Status - F10(r)</label>
      </variable>
      <variable label="Extended Address" CV="17" item="Long Address">
        <longAddressVal/>
        <label>Extended 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 Acceleration Adjustment" CV="23" mask="XVVVVVVV">
        <decVal max="127"/>
        <label>Consist Acceleration Adjustment</label>
      </variable>
      <variable label="Consist Acceleration Adjustment Sign" CV="23" mask="VXXXXXXX">
        <enumVal>
          <enumChoice choice="Add">
            <choice>Add</choice>
          </enumChoice>
          <enumChoice choice="Subtract">
            <choice>Subtract</choice>
          </enumChoice>
        </enumVal>
        <label>Consist Acceleration Adjustment Sign</label>
      </variable>
      <variable label="Consist Deceleration Adjustment" CV="24" mask="XVVVVVVV">
        <decVal max="127"/>
        <label>Consist Deceleration Adjustment</label>
      </variable>
      <variable label="Consist Deceleration Adjustment Sign" CV="24" mask="VXXXXXXX">
        <enumVal>
          <enumChoice choice="Add">
            <choice>Add</choice>
          </enumChoice>
          <enumChoice choice="Subtract">
            <choice>Subtract</choice>
          </enumChoice>
        </enumVal>
        <label>Consist Deceleration Adjustment Sign</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 (recommended)">
            <choice>28/128 (recommended)</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 (CV29, bit 4)">
            <choice>Use Vstart, Vmid, Vhigh (CV29, bit 4)</choice>
          </enumChoice>
          <enumChoice choice="Use Table (CV's 67-94)">
            <choice>Use Table (CV's 67-94)</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="FL(f) controls output 1" CV="33" mask="XXXXXXXV" minOut="1" default="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="XXXVXXXX" 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="XXVXXXXX" 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="XVXXXXXX" 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(f) controls output 7" CV="33" mask="VXXXXXXX" minOut="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 7</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" mask="XXXXXXVX" minOut="2" default="1">
        <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="XXXVXXXX" 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="XXVXXXXX" 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="XVXXXXXX" 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>
      <variable label="FL(r) controls output 7" CV="34" mask="VXXXXXXX" minOut="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 7</label>
      </variable>
      <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" 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="XXXVXXXX" 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="XXVXXXXX" minOut="5" minFn="1" default="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="XVXXXXXX" 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="F1 controls output 7" CV="35" mask="VXXXXXXX" minOut="7" minFn="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 7</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" mask="XXXVXXXX" 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="XXVXXXXX" 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="XVXXXXXX" minOut="6" minFn="2" default="1">
        <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="F2 controls output 7" CV="36" mask="VXXXXXXX" minOut="7" minFn="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 7</label>
      </variable>
      <variable label="F3 controls output 3" CV="37" mask="XXXXXXXV" 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="XXXXXVXX" minOut="4" minFn="3">
        <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" mask="XXXXVXXX" 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="XXXVXXXX" 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="F3 controls output 7" CV="37" mask="XXVXXXXX" minOut="7" minFn="3" default="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 7</label>
      </variable>
      <variable label="F3 controls output 8" CV="37" mask="XVXXXXXX" minOut="8" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 8</label>
      </variable>
      <variable label="F3 controls output 9" CV="37" mask="VXXXXXXX" minOut="9" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 9</label>
      </variable>
      <variable label="F4 controls output 3" CV="38" mask="XXXXXXXV" 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="XXXXXVXX" 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="XXXXVXXX" 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" mask="XXXVXXXX" 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="F4 controls output 7" CV="38" mask="XXVXXXXX" minOut="7" minFn="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 7</label>
      </variable>
      <variable label="F4 controls output 8" CV="38" mask="XVXXXXXX" minOut="8" minFn="4" default="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 8</label>
      </variable>
      <variable label="F4 controls output 9" CV="38" mask="VXXXXXXX" minOut="9" minFn="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 9</label>
      </variable>
      <variable label="F5 controls output 3" CV="39" mask="XXXXXXXV" 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="XXXXXVXX" 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="XXXXVXXX" 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="XXXVXXXX" 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="F5 controls output 7" CV="39" mask="XXVXXXXX" minOut="7" minFn="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 7</label>
      </variable>
      <variable label="F5 controls output 8" CV="39" mask="XVXXXXXX" minOut="8" minFn="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 8</label>
      </variable>
      <variable label="F5 controls output 9" CV="39" mask="VXXXXXXX" minOut="9" minFn="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 9</label>
      </variable>
      <variable label="F6 controls output 3" CV="40" mask="XXXXXXXV" 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="XXXXXVXX" 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="XXXXVXXX" 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="XXXVXXXX" 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="F6 controls output 7" CV="40" mask="XXVXXXXX" minOut="7" minFn="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 7</label>
      </variable>
      <variable label="F6 controls output 8" CV="40" mask="XVXXXXXX" minOut="8" minFn="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 8</label>
      </variable>
      <variable label="F6 controls output 9" CV="40" mask="VXXXXXXX" minOut="9" minFn="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 9</label>
      </variable>
      <variable label="F7 controls output 6" CV="41" mask="XXXXXXXV" minOut="6" minFn="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 6</label>
      </variable>
      <variable label="F7 controls output 7" CV="41" mask="XXXXXXVX" minOut="7" minFn="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 7</label>
      </variable>
      <variable label="F7 controls output 8" CV="41" mask="XXXXXVXX" minOut="8" minFn="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 8</label>
      </variable>
      <variable label="F7 controls output 9" CV="41" mask="XXXXVXXX" minOut="9" minFn="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 9</label>
      </variable>
      <variable label="F7 controls output 10" CV="41" mask="XXXVXXXX" minOut="10" minFn="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 10</label>
      </variable>
      <variable label="F7 controls output 11" CV="41" mask="XXVXXXXX" minOut="11" minFn="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 11</label>
      </variable>
      <variable label="F7 controls output 12" CV="41" mask="XVXXXXXX" minOut="12" minFn="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 12</label>
      </variable>
      <variable label="F7 controls output 13" CV="41" mask="VXXXXXXX" minOut="13" minFn="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F7 controls output 13</label>
      </variable>
      <variable label="F8 controls output 6" CV="42" mask="XXXXXXXV" minOut="6" minFn="8">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 6</label>
      </variable>
      <variable label="F8 controls output 7" CV="42" mask="XXXXXXVX" minOut="7" minFn="8">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 7</label>
      </variable>
      <variable label="F8 controls output 8" CV="42" mask="XXXXXVXX" minOut="8" minFn="8">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 8</label>
      </variable>
      <variable label="F8 controls output 9" CV="42" mask="XXXXVXXX" minOut="9" minFn="8">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 9</label>
      </variable>
      <variable label="F8 controls output 10" CV="42" mask="XXXVXXXX" minOut="10" minFn="8">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 10</label>
      </variable>
      <variable label="F8 controls output 11" CV="42" mask="XXVXXXXX" minOut="11" minFn="8">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 11</label>
      </variable>
      <variable label="F8 controls output 12" CV="42" mask="XVXXXXXX" minOut="12" minFn="8">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 12</label>
      </variable>
      <variable label="F8 controls output 13" CV="42" mask="VXXXXXXX" minOut="13" minFn="8">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F8 controls output 13</label>
      </variable>
      <variable label="F9 controls output 6" CV="43" mask="XXXXXXXV" minOut="6" minFn="9">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 6</label>
      </variable>
      <variable label="F9 controls output 7" CV="43" mask="XXXXXXVX" minOut="7" minFn="9">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 7</label>
      </variable>
      <variable label="F9 controls output 8" CV="43" mask="XXXXXVXX" minOut="8" minFn="9">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 8</label>
      </variable>
      <variable label="F9 controls output 9" CV="43" mask="XXXXVXXX" minOut="9" minFn="9">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 9</label>
      </variable>
      <variable label="F9 controls output 10" CV="43" mask="XXXVXXXX" minOut="10" minFn="9">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 10</label>
      </variable>
      <variable label="F9 controls output 11" CV="43" mask="XXVXXXXX" minOut="11" minFn="9">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 11</label>
      </variable>
      <variable label="F9 controls output 12" CV="43" mask="XVXXXXXX" minOut="12" minFn="9">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 12</label>
      </variable>
      <variable label="F9 controls output 13" CV="43" mask="VXXXXXXX" minOut="13" minFn="9">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9 controls output 13</label>
      </variable>
      <variable label="F10 controls output 6" CV="44" mask="XXXXXXXV" minOut="6" minFn="10">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 6</label>
      </variable>
      <variable label="F10 controls output 7" CV="44" mask="XXXXXXVX" minOut="7" minFn="10">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 7</label>
      </variable>
      <variable label="F10 controls output 8" CV="44" mask="XXXXXVXX" minOut="8" minFn="10">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 8</label>
      </variable>
      <variable label="F10 controls output 9" CV="44" mask="XXXXVXXX" minOut="9" minFn="10">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 9</label>
      </variable>
      <variable label="F10 controls output 10" CV="44" mask="XXXVXXXX" minOut="10" minFn="10">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 10</label>
      </variable>
      <variable label="F10 controls output 11" CV="44" mask="XXVXXXXX" minOut="11" minFn="10">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 11</label>
      </variable>
      <variable label="F10 controls output 12" CV="44" mask="XVXXXXXX" minOut="12" minFn="10">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 12</label>
      </variable>
      <variable label="F10 controls output 13" CV="44" mask="VXXXXXXX" minOut="13" minFn="10">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10 controls output 13</label>
      </variable>
      <variable label="F11 controls output 6" CV="45" mask="XXXXXXXV" minOut="6" minFn="11">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 6</label>
      </variable>
      <variable label="F11 controls output 7" CV="45" mask="XXXXXXVX" minOut="7" minFn="11">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 7</label>
      </variable>
      <variable label="F11 controls output 8" CV="45" mask="XXXXXVXX" minOut="8" minFn="11">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 8</label>
      </variable>
      <variable label="F11 controls output 9" CV="45" mask="XXXXVXXX" minOut="9" minFn="11">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 9</label>
      </variable>
      <variable label="F11 controls output 10" CV="45" mask="XXXVXXXX" minOut="10" minFn="11">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 10</label>
      </variable>
      <variable label="F11 controls output 11" CV="45" mask="XXVXXXXX" minOut="11" minFn="11">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 11</label>
      </variable>
      <variable label="F11 controls output 12" CV="45" mask="XVXXXXXX" minOut="12" minFn="11">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 12</label>
      </variable>
      <variable label="F11 controls output 13" CV="45" mask="VXXXXXXX" minOut="13" minFn="11">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F11 controls output 13</label>
      </variable>
      <variable label="F12 controls output 6" CV="46" mask="XXXXXXXV" minOut="6" minFn="12">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 6</label>
      </variable>
      <variable label="F12 controls output 7" CV="46" mask="XXXXXXVX" minOut="7" minFn="12">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 7</label>
      </variable>
      <variable label="F12 controls output 8" CV="46" mask="XXXXXVXX" minOut="8" minFn="12">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 8</label>
      </variable>
      <variable label="F12 controls output 9" CV="46" mask="XXXXVXXX" minOut="9" minFn="12">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 9</label>
      </variable>
      <variable label="F12 controls output 10" CV="46" mask="XXXVXXXX" minOut="10" minFn="12">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 10</label>
      </variable>
      <variable label="F12 controls output 11" CV="46" mask="XXVXXXXX" minOut="11" minFn="12">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 11</label>
      </variable>
      <variable label="F12 controls output 12" CV="46" mask="XVXXXXXX" minOut="12" minFn="12">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 12</label>
      </variable>
      <variable label="F12 controls output 13" CV="46" mask="VXXXXXXX" minOut="13" minFn="12">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F12 controls output 13</label>
      </variable>
      <variable label="F9(r) controls output 6" CV="47" mask="XXXXXXXV" minOut="6" minFn="13">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9(r) controls output 6</label>
      </variable>
      <variable label="F9(r) controls output 7" CV="47" mask="XXXXXXVX" minOut="6" minFn="13">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9(r) controls output 7</label>
      </variable>
      <variable label="F9(r) controls output 8" CV="47" mask="XXXXXVXX" minOut="6" minFn="13">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9(r) controls output 8</label>
      </variable>
      <variable label="F9(r) controls output 9" CV="47" mask="XXXXVXXX" minOut="6" minFn="13">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9(r) controls output 9</label>
      </variable>
      <variable label="F9(r) controls output 10" CV="47" mask="XXXVXXXX" minOut="6" minFn="13">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9(r) controls output 10</label>
      </variable>
      <variable label="F9(r) controls output 11" CV="47" mask="XXVXXXXX" minOut="6" minFn="13">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9(r) controls output 11</label>
      </variable>
      <variable label="F9(r) controls output 12" CV="47" mask="XVXXXXXX" minOut="6" minFn="13">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9(r) controls output 12</label>
      </variable>
      <variable label="F9(r) controls output 13" CV="47" mask="VXXXXXXX" minOut="6" minFn="13">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F9(r) controls output 13</label>
      </variable>
      <variable label="F10(r) controls output 6" CV="48" mask="XXXXXXXV" minOut="6" minFn="14">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10(r) controls output 6</label>
      </variable>
      <variable label="F10(r) controls output 7" CV="48" mask="XXXXXXVX" minOut="6" minFn="14">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10(r) controls output 7</label>
      </variable>
      <variable label="F10(r) controls output 8" CV="48" mask="XXXXXVXX" minOut="6" minFn="14">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10(r) controls output 8</label>
      </variable>
      <variable label="F10(r) controls output 9" CV="48" mask="XXXXVXXX" minOut="6" minFn="14">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10(r) controls output 9</label>
      </variable>
      <variable label="F10(r) controls output 10" CV="48" mask="XXXVXXXX" minOut="6" minFn="14">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10(r) controls output 10</label>
      </variable>
      <variable label="F10(r) controls output 11" CV="48" mask="XXVXXXXX" minOut="6" minFn="14">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10(r) controls output 11</label>
      </variable>
      <variable label="F10(r) controls output 12" CV="48" mask="XVXXXXXX" minOut="6" minFn="14">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10(r) controls output 12</label>
      </variable>
      <variable label="F10(r) controls output 13" CV="48" mask="VXXXXXXX" minOut="6" minFn="14">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F10(r) controls output 13</label>
      </variable>
      <variable label="BEMF Active" CV="49" mask="XXXXXXXV" default="1" item="EMF Static Config">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>BEMF Active</label>
      </variable>
      <variable label="Marklin brake track activated" CV="49" mask="XXXXXXVX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Marklin brake track activated</label>
      </variable>
      <variable label="ZIMO Signal Dependence Active" CV="49" mask="XXXXXVXX" default="1">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>ZIMO Signal Dependence Active</label>
      </variable>
      <variable label="Minimum Incidental Sound RPM" CV="50" default="128" item="Sound Option 1" comment="Range 0-255">
        <decVal/>
        <label>Minimum Incidental Sound RPM</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable label="Maximum Incidental Sound RPM" CV="51" default="192" item="Sound Option 2" comment="Range 0-255">
        <decVal/>
        <label>Maximum Incidental Sound RPM</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable label="Sound Mode 1" CV="52" default="0" item="Sound Option 3" comment="Range 0-255">
        <decVal/>
        <label>Sound Mode 1</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable label="Sound Mode 2" CV="53" default="128" item="Sound Option 4" comment="Range 0-255">
        <decVal/>
        <label>Sound Mode 2</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable label="Minimum Incidental Sound Interval" CV="54" default="20" item="Sound Option 5" comment="Range 0-255">
        <decVal/>
        <label>Minimum Incidental Sound Interval</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable label="Maximum Incidental Sound Interval" CV="55" default="20" item="Sound Option 6" comment="Range 0-255">
        <decVal/>
        <label>Maximum Incidental Sound Interval</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable label="Adjust EMK Voltage" CV="56" default="0" item="EMF Dynamic Config" comment="Range 0-255">
        <decVal/>
        <label>Adjust EMK Voltage</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable label="K Adjustment" CV="57" default="80" item="EMF Droop Config" comment="Range 0-255">
        <decVal/>
        <label>K Adjustment</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable label="I Adjustment" CV="58" default="63" item="EMF Feedback Cutout" comment="Range 0-255">
        <decVal/>
        <label>I Adjustment</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable label="Analog Vstart" CV="60" default="25" comment="Range 0-255">
        <decVal/>
        <label>Analog Vstart</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable label="Signal Dependent Acceleration" CV="61" default="8" comment="Range 0-64">
        <decVal min="0" max="64"/>
        <label>Signal Dependent Acceleration</label>
        <comment>Range 0-64</comment>
      </variable>
      <variable label="Signal Dependent Deceleration" CV="62" default="4" comment="Range 0-64">
        <decVal min="0" max="64"/>
        <label>Signal Dependent Deceleration</label>
        <comment>Range 0-64</comment>
      </variable>
      <variable label="Sound Level" CV="63" default="2" item="Sound Setting 1">
        <decVal min="0" max="2"/>
        <label>Sound Level</label>
      </variable>
<!-- CV 64 left out (Adressing in Motorola-format)-->
      <variable label="Forward Trim" CV="66" default="0">
        <decVal/>
        <label>Forward Trim</label>
      </variable>
      <variable label="Speed Table" CV="67">
        <speedTableVal/>
        <label>Speed Table</label>
      </variable>
      <variable label="Reverse Trim" CV="95" default="0">
        <decVal/>
        <label>Reverse Trim</label>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
      <variable label="Braking Noise Start" CV="112" default="12" item="Sound Option 7">
        <decVal/>
        <label>Braking Noise Start</label>
      </variable>
      <variable label="Brightness Head Lights" CV="113" default="15" mask="XXXXVVVV" item="Function 1 effect generated">
        <decVal/>
        <label>Brightness Head Lights</label>
      </variable>
      <variable label="Output Configuration Head Lights" CV="113" default="1" mask="XXVVXXXX" item="Function 1 behavior">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="Normal">
            <choice>Normal</choice>
          </enumChoice>
          <enumChoice choice="Blink">
            <choice>Blink</choice>
          </enumChoice>
          <enumChoice choice="Inverted Blink">
            <choice>Inverted Blink</choice>
          </enumChoice>
        </enumVal>
        <label>Output Configuration Head Lights</label>
      </variable>
      <variable label="Brightness Back Lights" CV="114" default="15" mask="XXXXVVVV " item="Function 2 effect generated">
        <decVal/>
        <label>Brightness Back Lights</label>
      </variable>
      <variable label="Output Configuration Back Lights" CV="114" default="1" mask="XXVVXXXX " item="Function 2 behavior">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="Normal">
            <choice>Normal</choice>
          </enumChoice>
          <enumChoice choice="Blink">
            <choice>Blink</choice>
          </enumChoice>
          <enumChoice choice="Inverted Blink">
            <choice>Inverted Blink</choice>
          </enumChoice>
        </enumVal>
        <label>Output Configuration Back Lights</label>
      </variable>
      <variable label="Brightness AUX" CV="115" default="15" mask="XXXXVVVV" item="Function 3 effect generated">
        <decVal/>
        <label>Brightness AUX</label>
      </variable>
      <variable label="Output Configuration AUX" CV="115" default="1" mask="XXVVXXXX" item="Function 3 behavior">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="Normal">
            <choice>Normal</choice>
          </enumChoice>
          <enumChoice choice="Blink">
            <choice>Blink</choice>
          </enumChoice>
          <enumChoice choice="Inverted Blink">
            <choice>Inverted Blink</choice>
          </enumChoice>
        </enumVal>
        <label>Output Configuration AUX</label>
      </variable>
      <variable label="Blink Rate" CV="121" default="0" item="Global lighting option 1" comment="Controls Blink Interval">
        <decVal/>
        <label>Blink Rate</label>
        <comment>Controls Blink Interval</comment>
      </variable>
    </variables>
  </decoder>
  <pane name="ESU">
    <column>
      <display item="Signal Dependent Acceleration" tooltip="CV 61"/>
      <display item="Signal Dependent Deceleration" tooltip="CV 62"/>
      <label label=" ">
        <label> </label>
      </label>
      <display item="Marklin brake track activated" tooltip="CV 49, bit 1"/>
      <display item="ZIMO Signal Dependence Active" tooltip="CV 49, bit 2"/>
    </column>
    <name>ESU</name>
  </pane>
  <pane name="Output Handling">
    <column>
      <label label="F-9(r) Key Output Control">
        <label>F-9(r) Key Output Control</label>
      </label>
      <separator/>
      <display item="F9(r) controls output 6" format="checkbox" label="Soundslot 1" tooltip="CV 47, bit 0">
        <label>Soundslot 1</label>
      </display>
      <display item="F9(r) controls output 7" format="checkbox" label="Soundslot 2" tooltip="CV 47, bit 1">
        <label>Soundslot 2</label>
      </display>
      <display item="F9(r) controls output 8" format="checkbox" label="Soundslot 3" tooltip="CV 47, bit 2">
        <label>Soundslot 3</label>
      </display>
      <display item="F9(r) controls output 9" format="checkbox" label="Soundslot 4" tooltip="CV 47, bit 3">
        <label>Soundslot 4</label>
      </display>
      <display item="F9(r) controls output 10" format="checkbox" label="Soundslot 5" tooltip="CV 47, bit 4">
        <label>Soundslot 5</label>
      </display>
      <display item="F9(r) controls output 11" format="checkbox" label="Soundslot 6" tooltip="CV 47, bit 5">
        <label>Soundslot 6</label>
      </display>
      <display item="F9(r) controls output 12" format="checkbox" label="Soundslot 7" tooltip="CV 47, bit 6">
        <label>Soundslot 7</label>
      </display>
      <display item="F9(r) controls output 13" format="checkbox" label="Soundslot 8" tooltip="CV 47, bit 7">
        <label>Soundslot 8</label>
      </display>
      <label label=" ">
        <label> </label>
      </label>
      <label label="F-10(r) Key Output Control">
        <label>F-10(r) Key Output Control</label>
      </label>
      <separator/>
      <display item="F10(r) controls output 6" format="checkbox" label="Soundslot 1" tooltip="CV 48, bit 0">
        <label>Soundslot 1</label>
      </display>
      <display item="F10(r) controls output 7" format="checkbox" label="Soundslot 2" tooltip="CV 48, bit 1">
        <label>Soundslot 2</label>
      </display>
      <display item="F10(r) controls output 8" format="checkbox" label="Soundslot 3" tooltip="CV 48, bit 2">
        <label>Soundslot 3</label>
      </display>
      <display item="F10(r) controls output 9" format="checkbox" label="Soundslot 4" tooltip="CV 48, bit 3">
        <label>Soundslot 4</label>
      </display>
      <display item="F10(r) controls output 10" format="checkbox" label="Soundslot 5" tooltip="CV 48, bit 4">
        <label>Soundslot 5</label>
      </display>
      <display item="F10(r) controls output 11" format="checkbox" label="Soundslot 6" tooltip="CV 48, bit 5">
        <label>Soundslot 6</label>
      </display>
      <display item="F10(r) controls output 12" format="checkbox" label="Soundslot 7" tooltip="CV 48, bit 6">
        <label>Soundslot 7</label>
      </display>
      <display item="F10(r) controls output 13" format="checkbox" label="Soundslot 8" tooltip="CV 48, bit 7">
        <label>Soundslot 8</label>
      </display>
    </column>
    <name>Output Handling</name>
  </pane>
</decoder-config>

