<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2003 All rights reserved -->
<!--                                                                        -->
<!-- JMRI is free software; you can redistribute it and/or modify it under  -->
<!-- the terms of version 2 of the GNU General Public License as published  -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy     -->
<!-- of this license.                                                       -->
<!--                                                                        -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT    -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or  -->
<!-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License  -->
<!-- for more details.                                                      -->
<decoder-config 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-4-15-2.xsd">
  <version author="Michael Mosher" version="11" lastUpdated="20050817"/>
  <version author="Walter Thompson wsthompson@earthlink.net" version="12" lastUpdated="20080414"/>
  <!-- version 9: moved LL100LC here from LC_Diesel_pnp file -->
  <!-- version 10: added FX1 & FX2 to fun map & CV105&106 set CV9 default to 180   -->
  <!-- Version 10.1: changed spelling of "behavior" (Jack Shall) -->
  <!-- version 11 (20050817 BobJ): numFns corrected from 8 to 10 -->
  <!-- Version 12 author Walter Thompson wsthompson@earthlink.net 20080412 -->
  <!--            added Reset option -->
  <decoder>
    <family name="LC Diesel PNP Cab Unit decoders" mfg="SoundTraxx (Throttle-Up)">
      <!--note: this file does not support the FX2 output for the LL100LC-->
      <model model="LL100LC Diesel" numOuts="4" numFns="10" nmraWarrant="yes" nmraWarrantStart="200305">
        <!-- note: The LL100LC has a headlight but no backup light -->
        <!-- note: The LL100LC has an FX2 output but no FX1 output -->
        <!-- but the headlight can be set to respond to FX1 mapping -->
        <versionCV lowVersionID="36"/>
        <output name="Horn"/>
        <output name="Bell"/>
        <output name="3" label="FX1"/>
        <output name="4" label="FX2"/>
        <output name="DynBrake"/>
        <output name="RPM+"/>
        <output name="RPM-"/>
        <output name="Dim"/>
        <output name="Mute"/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable CV="2" item="Vstart" comment="A value of 255 corresponds to 100%">
        <decVal/>
        <label>Start voltage</label>
        <label xml:lang="it">Volt Partenza</label>
        <label xml:lang="fr">V démarr.</label>
        <label xml:lang="de">Anfahrspannung</label>
        <comment>A value of 255 corresponds to 100%</comment>
      </variable>
      <!-- CV 3-4 -->
     <xi:include href="http://jmri.org/xml/decoders/nmra/accelDecel_255.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/mfgVersionId.xml"/>
      <variable CV="9" item="Total PWM Period" comment="52.2mS to 5.12 ms" default="180">
        <decVal max="230"/>
        <label>Motor PWM Period</label>
        <label xml:lang="it">Periodo PWM (Frequenza pilotaggio Motore)</label>
        <comment>52.2mS to 5.12 ms</comment>
      </variable>
      <variable CV="11" item="Packet Time-out Value">
        <decVal/>
        <label>Packet Timeout Value</label>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddrDirection.xml"/>
      <variable item="Consist Address Active For F1" CV="21" mask="XXXXXXXV" minFn="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-LocoAddrConsistAddr.xml"/>
        <label>Consist Address Active For F1</label>
      </variable>
      <variable item="Consist Address Active For F2" CV="21" mask="XXXXXXVX" minFn="2">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-LocoAddrConsistAddr.xml"/>
        <label>Consist Address Active For F2</label>
      </variable>
      <variable item="Consist Address Active For F3" CV="21" mask="XXXXXVXX" minFn="3">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-LocoAddrConsistAddr.xml"/>
        <label>Consist Address Active For F3</label>
      </variable>
      <variable item="Consist Address Active For F4" CV="21" mask="XXXXVXXX" minFn="4">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-LocoAddrConsistAddr.xml"/>
        <label>Consist Address Active For F4</label>
      </variable>
      <variable item="Consist Address Active For F5" CV="21" mask="XXXVXXXX" minFn="5">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-LocoAddrConsistAddr.xml"/>
        <label>Consist Address Active For F5</label>
      </variable>
      <variable item="Consist Address Active For F6" CV="21" mask="XXVXXXXX" minFn="6">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-LocoAddrConsistAddr.xml"/>
        <label>Consist Address Active For F6</label>
      </variable>
      <variable item="Consist Address Active For F7" CV="21" mask="XVXXXXXX" minFn="7">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-LocoAddrConsistAddr.xml"/>
        <label>Consist Address Active For F7</label>
      </variable>
      <variable item="Consist Address Active For F8" CV="21" mask="VXXXXXXX" minFn="8">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-LocoAddrConsistAddr.xml"/>
        <label>Consist Address Active For F8</label>
      </variable>
      <variable item="Consist Address Active For FL in Forward" CV="22" mask="XXXXXXXV">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-LocoAddrConsistAddr.xml"/>
        <label>Consist Address Active For FL in Forward</label>
      </variable>
      <variable item="Consist Address Active For FL in Reverse" CV="22" mask="XXXXXXVX">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-LocoAddrConsistAddr.xml"/>
        <label>Consist Address Active For FL in Reverse</label>
      </variable>
      <variable CV="23" mask="XVVVVVVV" default="0" item="Consist Acceleration Adjustment" comment="Additional consist acceleration (combined with CV3)">
        <decVal max="127"/>
        <label>Consist Acceleration Rate</label>
        <comment>Additional consist acceleration (combined with CV3)</comment>
      </variable>
      <variable CV="23" mask="VXXXXXXX" item="Consist Acceleration Adjustment Sign">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-PositiveNegative.xml"/>
        <label>Consist Acceleration Sign</label>
      </variable>
      <variable CV="24" mask="XVVVVVVV" default="0" item="Consist Deceleration Adjustment" comment="Additional consist braking (combined with CV4)">
        <decVal max="127"/>
        <label>Consist Braking Rate</label>
        <comment>Additional consist braking (combined with CV4)</comment>
      </variable>
      <variable CV="24" mask="VXXXXXXX" item="Consist Deceleration Adjustment Sign">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-PositiveNegative.xml"/>
        <label>Consist Braking Sign</label>
      </variable>
      <variable item="Speed Table Selection" CV="25" mask="XXXVVVVV">
        <enumVal>
          <enumChoice choice="no table">
            <choice>no table</choice>
          </enumChoice>
          <enumChoice choice="no table">
            <choice>no table</choice>
          </enumChoice>
          <enumChoice choice="Straight Line">
            <choice>Straight Line</choice>
          </enumChoice>
          <enumChoice choice="Log Curve 1">
            <choice>Log Curve 1</choice>
          </enumChoice>
          <enumChoice choice="Log Curve 2">
            <choice>Log Curve 2</choice>
          </enumChoice>
          <enumChoice choice="Log Curve 3">
            <choice>Log Curve 3</choice>
          </enumChoice>
          <enumChoice choice="Log Curve 4">
            <choice>Log Curve 4</choice>
          </enumChoice>
          <enumChoice choice="Log Curve 5">
            <choice>Log Curve 5</choice>
          </enumChoice>
          <enumChoice choice="Log Curve 6">
            <choice>Log Curve 6</choice>
          </enumChoice>
          <enumChoice choice="Log Curve 7">
            <choice>Log Curve 7</choice>
          </enumChoice>
          <enumChoice choice="Exp Curve 1">
            <choice>Exp Curve 1</choice>
          </enumChoice>
          <enumChoice choice="Exp Curve 2">
            <choice>Exp Curve 2</choice>
          </enumChoice>
          <enumChoice choice="Exp Curve 3">
            <choice>Exp Curve 3</choice>
          </enumChoice>
          <enumChoice choice="Exp Curve 4">
            <choice>Exp Curve 4</choice>
          </enumChoice>
          <enumChoice choice="Exp Curve 5">
            <choice>Exp Curve 5</choice>
          </enumChoice>
          <enumChoice choice="Exp Curve 6">
            <choice>Exp Curve 6</choice>
          </enumChoice>
          <enumChoice choice="User Table">
            <choice>User Table</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Table Selection</label>
      </variable>
      <!-- CV=29 -->
     <xi:include href="http://jmri.org/xml/decoders/nmra/cv29direction.xml"/>
     <xi:include href="http://jmri.org/xml/decoders/nmra/cv29speedSteps.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29table1-28.xml"/>
      <variable CV="30" mask="XXXXXXXV" item="Advanced Group 1 Option 1" default="0">
        <enumVal>
          <enumChoice choice="System Normal">
            <choice>System Normal</choice>
          </enumChoice>
          <enumChoice choice="CV112-128 mapped to 49-65">
            <choice>CV112-128 mapped to 49-65</choice>
          </enumChoice>
        </enumVal>
        <label>CV Address Extension</label>
      </variable>
      <variable CV="30" mask="XXXXXXVX" item="Advanced Group 1 Option 2" default="0">
        <enumVal>
          <enumChoice choice="System Normal">
            <choice>System Normal</choice>
          </enumChoice>
          <enumChoice choice="Data corrupted. Reset to defaults.">
            <choice>Data corrupted. Reset to defaults.</choice>
          </enumChoice>
        </enumVal>
        <label>EEROM Data Corrupted</label>
      </variable>
      <variable CV="30" mask="XXXXXVXX" item="Advanced Group 1 Option 3" default="0">
        <enumVal>
          <enumChoice choice="System Normal">
            <choice>System Normal</choice>
          </enumChoice>
          <enumChoice choice="Ignore Group3 steerage bit">
            <choice>Ignore Group3 steerage bit</choice>
          </enumChoice>
        </enumVal>
        <label>Function Group 3 Disable</label>
      </variable>
      <variable CV="30" mask="XXXXVXXX" item="Advanced Group 1 Option 4" default="0">
        <enumVal>
          <enumChoice choice="NMRA function map">
            <choice>NMRA function map</choice>
          </enumChoice>
          <enumChoice choice="Soundtraxx function map">
            <choice>Soundtraxx function map</choice>
          </enumChoice>
        </enumVal>
        <label>Alternate Function Map</label>
      </variable>
      <variable CV="30" mask="XXVXXXXX" item="Advanced Group 1 Option 5">
        <enumVal>
          <enumChoice choice="System Normal">
            <choice>System Normal</choice>
          </enumChoice>
          <enumChoice choice="Watchdog timeout occurred">
            <choice>Watchdog timeout occurred</choice>
          </enumChoice>
        </enumVal>
        <label>Watchdog Timer Reset</label>
      </variable>
      <variable CV="30" mask="XVXXXXXX" item="Advanced Group 1 Option 6" readOnly="yes">
        <enumVal>
          <enumChoice choice="System Normal">
            <choice>System Normal</choice>
          </enumChoice>
          <enumChoice choice="Checksum Test Failed">
            <choice>Checksum Test Failed</choice>
          </enumChoice>
        </enumVal>
        <label>Program Checksum Failure</label>
      </variable>
      <variable CV="30" mask="VXXXXXXX" item="Advanced Group 1 Option 7" readOnly="yes">
        <enumVal>
          <enumChoice choice="System Normal">
            <choice>System Normal</choice>
          </enumChoice>
          <enumChoice choice="No ACK from I2C bus">
            <choice>No ACK from I2C bus</choice>
          </enumChoice>
        </enumVal>
        <label>I2C Bus Acknowledge Failure</label>
      </variable>
      <variable CV="33" mask="XXXXXXXV" item="FL(f) controls output 1" minOut="1" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(f) controls headlight</label>
      </variable>
      <variable CV="33" mask="XXXXXXVX" item="FL(f) controls output 2" minOut="2" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(f) controls backup light</label>
      </variable>
      <variable item="FL(f) controls output Horn" CV="33" mask="XXXXXVXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(f) controls output Horn</label>
      </variable>
      <variable item="FL(f) controls output Bell" CV="33" mask="XXXXVXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(f) controls output Bell</label>
      </variable>
      <variable CV="33" mask="XXXVXXXX" item="FL(f) controls output 3" minOut="3" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(f) controls FX1</label>
      </variable>
      <variable CV="33" mask="XXVXXXXX" item="FL(f) controls output 4" minOut="4" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(f) controls FX2</label>
      </variable>
      <variable item="FL(f) controls output DynBrake" CV="33" mask="XVXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(f) controls output DynBrake</label>
      </variable>
      <variable CV="34" mask="XXXXXXXV" item="FL(r) controls output 1" minOut="1" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(r) controls headlight</label>
      </variable>
      <variable CV="34" mask="XXXXXXVX" item="FL(r) controls output 2" minOut="2" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(r) controls backup light</label>
      </variable>
      <variable item="FL(r) controls output Horn" CV="34" mask="XXXXXVXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(r) controls output Horn</label>
      </variable>
      <variable item="FL(r) controls output Bell" CV="34" mask="XXXXVXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(r) controls output Bell</label>
      </variable>
      <variable CV="34" mask="XXXVXXXX" item="FL(r) controls output 3" minOut="3" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(r) controls FX1</label>
      </variable>
      <variable CV="34" mask="XXVXXXXX" item="FL(r) controls output 4" minOut="4" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(r) controls FX2</label>
      </variable>
      <variable item="FL(r) controls output DynBrake" CV="34" mask="XVXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(r) controls output DynBrake</label>
      </variable>
      <variable CV="35" mask="XXXXXXXV" item="F1 controls output 1" minOut="1" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F1 controls headlight</label>
      </variable>
      <variable CV="35" mask="XXXXXXVX" item="F1 controls output 2" minOut="2" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F1 controls backup light</label>
      </variable>
      <variable item="F1 controls output Horn" CV="35" mask="XXXXXVXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F1 controls output Horn</label>
      </variable>
      <variable item="F1 controls output Bell" CV="35" mask="XXXXVXXX" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F1 controls output Bell</label>
      </variable>
      <variable CV="35" mask="XXXVXXXX" item="F1 controls output 3" minOut="3" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F1 controls FX1</label>
      </variable>
      <variable CV="35" mask="XXVXXXXX" item="F1 controls output 4" minOut="4" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F1 controls FX2</label>
      </variable>
      <variable item="F1 controls output DynBrake" CV="35" mask="XVXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F1 controls output DynBrake</label>
      </variable>
      <variable CV="36" mask="XXXXXXXV" item="F2 controls output 1" minOut="1" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F2 controls headlight</label>
      </variable>
      <variable CV="36" mask="XXXXXXVX" item="F2 controls output 2" minOut="2" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F2 controls backup light</label>
      </variable>
      <variable item="F2 controls output Horn" CV="36" mask="XXXXXVXX" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F2 controls output Horn</label>
      </variable>
      <variable item="F2 controls output Bell" CV="36" mask="XXXXVXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F2 controls output Bell</label>
      </variable>
      <variable CV="36" mask="XXXVXXXX" item="F2 controls output 3" minOut="3" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F2 controls FX1</label>
      </variable>
      <variable CV="36" mask="XXVXXXXX" item="F2 controls output 4" minOut="4" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F2 controls FX2</label>
      </variable>
      <variable item="F2 controls output DynBrake" CV="36" mask="XVXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F2 controls output DynBrake</label>
      </variable>
      <variable item="F3 controls output Bell" CV="37" mask="XXXXXXXV" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3 controls output Bell</label>
      </variable>
      <variable CV="37" mask="XXXXXXVX" item="F3 controls output 3" minOut="3" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3 controls FX1</label>
      </variable>
      <variable CV="37" mask="XXXXXVXX" item="F3 controls output 4" minOut="4" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3 controls FX2</label>
      </variable>
      <variable item="F3 controls output DynBrake" CV="37" mask="XXXXVXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3 controls output DynBrake</label>
      </variable>
      <variable item="F3 controls output RPM+" CV="37" mask="XXVXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3 controls output RPM+</label>
      </variable>
      <variable item="F3 controls output RPM-" CV="37" mask="XVXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3 controls output RPM-</label>
      </variable>
      <variable item="F3 controls output Dim" CV="37" mask="VXXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3 controls output Dim</label>
      </variable>
      <variable item="F4 controls output Bell" CV="38" mask="XXXXXXXV" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F4 controls output Bell</label>
      </variable>
      <variable CV="38" mask="XXXXXXVX" item="F4 controls output 3" minOut="3" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F4 controls FX1</label>
      </variable>
      <variable CV="38" mask="XXXXXVXX" item="F4 controls output 4" minOut="4" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F4 controls FX2</label>
      </variable>
      <variable item="F4 controls output DynBrake" CV="38" mask="XXXXVXXX" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F4 controls output DynBrake</label>
      </variable>
      <variable item="F4 controls output RPM+" CV="38" mask="XXVXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F4 controls output RPM+</label>
      </variable>
      <variable item="F4 controls output RPM-" CV="38" mask="XVXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F4 controls output RPM-</label>
      </variable>
      <variable item="F4 controls output Dim" CV="38" mask="VXXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F4 controls output Dim</label>
      </variable>
      <variable item="F5 controls output Bell" CV="39" mask="XXXXXXXV" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F5 controls output Bell</label>
      </variable>
      <variable CV="39" mask="XXXXXXVX" item="F5 controls output 3" minOut="3" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F5 controls FX1</label>
      </variable>
      <variable CV="39" mask="XXXXXVXX" item="F5 controls output 4" minOut="4" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F5 controls FX2</label>
      </variable>
      <variable item="F5 controls output DynBrake" CV="39" mask="XXXXVXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F5 controls output DynBrake</label>
      </variable>
      <variable item="F5 controls output RPM+" CV="39" mask="XXVXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F5 controls output RPM+</label>
      </variable>
      <variable item="F5 controls output RPM-" CV="39" mask="XVXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F5 controls output RPM-</label>
      </variable>
      <variable item="F5 controls output Dim" CV="39" mask="VXXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F5 controls output Dim</label>
      </variable>
      <variable item="F6 controls output Bell" CV="40" mask="XXXXXXXV" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F6 controls output Bell</label>
      </variable>
      <variable CV="40" mask="XXXXXXVX" item="F6 controls output 3" minOut="3" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F6 controls FX1</label>
      </variable>
      <variable CV="40" mask="XXXXXVXX" item="F6 controls output 4" minOut="4" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F6 controls FX2</label>
      </variable>
      <variable item="F6 controls output DynBrake" CV="40" mask="XXXXVXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F6 controls output DynBrake</label>
      </variable>
      <variable item="F6 controls output RPM+" CV="40" mask="XXVXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F6 controls output RPM+</label>
      </variable>
      <variable item="F6 controls output RPM-" CV="40" mask="XVXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F6 controls output RPM-</label>
      </variable>
      <variable item="F6 controls output Dim" CV="40" mask="VXXXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F6 controls output Dim</label>
      </variable>
      <variable item="F7 controls output DynBrake" CV="41" mask="XXXXXXXV" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F7 controls output DynBrake</label>
      </variable>
      <variable item="F7 controls output RPM+" CV="41" mask="XXXXXVXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F7 controls output RPM+</label>
      </variable>
      <variable item="F7 controls output RPM-" CV="41" mask="XXXXVXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F7 controls output RPM-</label>
      </variable>
      <variable item="F7 controls output Dim" CV="41" mask="XXXVXXXX" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F7 controls output Dim</label>
      </variable>
      <variable item="F7 controls output Mute" CV="41" mask="XXVXXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F7 controls output Mute</label>
      </variable>
      <variable item="F8 controls output DynBrake" CV="42" mask="XXXXXXXV" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F8 controls output DynBrake</label>
      </variable>
      <variable item="F8 controls output RPM+" CV="42" mask="XXXXXVXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F8 controls output RPM+</label>
      </variable>
      <variable item="F8 controls output RPM-" CV="42" mask="XXXXVXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F8 controls output RPM-</label>
      </variable>
      <variable item="F8 controls output Dim" CV="42" mask="XXXVXXXX" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F8 controls output Dim</label>
      </variable>
      <variable item="F8 controls output Mute" CV="42" mask="XXVXXXXX" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F8 controls output Mute</label>
      </variable>
      <variable CV="49" mask="XXXXVVVV" item="Function F0F effect generated">
        <enumVal>
          <enumChoice choice="On/Off">
            <choice>On/Off</choice>
          </enumChoice>
          <enumChoice choice="Dimmable">
            <choice>Dimmable</choice>
          </enumChoice>
          <enumChoice choice="Mars light">
            <choice>Mars light</choice>
          </enumChoice>
          <enumChoice choice="Gyralite">
            <choice>Gyralite</choice>
          </enumChoice>
          <enumChoice choice="Oscillating">
            <choice>Oscillating</choice>
          </enumChoice>
          <enumChoice choice="Single flash strobe">
            <choice>Single flash strobe</choice>
          </enumChoice>
          <enumChoice choice="Double flash strobe">
            <choice>Double flash strobe</choice>
          </enumChoice>
          <enumChoice choice="Rotary beacon simulation">
            <choice>Rotary beacon simulation</choice>
          </enumChoice>
          <enumChoice choice="Stratolite">
            <choice>Stratolite</choice>
          </enumChoice>
          <enumChoice choice="Type 1 ditch light">
            <choice>Type 1 ditch light</choice>
          </enumChoice>
          <enumChoice choice="Type 2 ditch light">
            <choice>Type 2 ditch light</choice>
          </enumChoice>
          <enumChoice choice="FRED end of train flasher">
            <choice>FRED end of train flasher</choice>
          </enumChoice>
          <enumChoice choice="Engine exhaust flicker">
            <choice>Engine exhaust flicker</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>Forward light F0F effect generated</label>
      </variable>
      <variable CV="49" mask="XVVVXXXX" item="Function F0F behavior">
        <enumVal>
          <enumChoice choice="Phase A">
            <choice>Phase A</choice>
          </enumChoice>
          <enumChoice choice="Phase B">
            <choice>Phase B</choice>
          </enumChoice>
          <enumChoice choice="Grade crossing enable, phase A">
            <choice>Grade crossing enable, phase A</choice>
          </enumChoice>
          <enumChoice choice="Grade crossing enable, phase B">
            <choice>Grade crossing enable, phase B</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 enable, phase A">
            <choice>Rule 17 enable, phase A</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 enable, phase B">
            <choice>Rule 17 enable, phase B</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 enable, Grade crossing enable, Phase A">
            <choice>Rule 17 enable, Grade crossing enable, Phase A</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 enable, Grade crossing enable, Phase B">
            <choice>Rule 17 enable, Grade crossing enable, Phase B</choice>
          </enumChoice>
        </enumVal>
        <label>Forward light F0F behavior</label>
      </variable>
      <variable CV="50" mask="XXXXVVVV" item="Function F0R effect generated">
        <enumVal>
          <enumChoice choice="On/Off">
            <choice>On/Off</choice>
          </enumChoice>
          <enumChoice choice="Dimmable">
            <choice>Dimmable</choice>
          </enumChoice>
          <enumChoice choice="Mars light">
            <choice>Mars light</choice>
          </enumChoice>
          <enumChoice choice="Gyralite">
            <choice>Gyralite</choice>
          </enumChoice>
          <enumChoice choice="Oscillating">
            <choice>Oscillating</choice>
          </enumChoice>
          <enumChoice choice="Single flash strobe">
            <choice>Single flash strobe</choice>
          </enumChoice>
          <enumChoice choice="Double flash strobe">
            <choice>Double flash strobe</choice>
          </enumChoice>
          <enumChoice choice="Rotary beacon simulation">
            <choice>Rotary beacon simulation</choice>
          </enumChoice>
          <enumChoice choice="Stratolite">
            <choice>Stratolite</choice>
          </enumChoice>
          <enumChoice choice="Type 1 ditch light">
            <choice>Type 1 ditch light</choice>
          </enumChoice>
          <enumChoice choice="Type 2 ditch light">
            <choice>Type 2 ditch light</choice>
          </enumChoice>
          <enumChoice choice="FRED end of train flasher">
            <choice>FRED end of train flasher</choice>
          </enumChoice>
          <enumChoice choice="Engine exhaust flicker">
            <choice>Engine exhaust flicker</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>Reverse light F0R effect generated</label>
      </variable>
      <variable CV="50" mask="XVVVXXXX" item="Function F0R behavior">
        <enumVal>
          <enumChoice choice="Phase A">
            <choice>Phase A</choice>
          </enumChoice>
          <enumChoice choice="Phase B">
            <choice>Phase B</choice>
          </enumChoice>
          <enumChoice choice="Grade crossing enable, phase A">
            <choice>Grade crossing enable, phase A</choice>
          </enumChoice>
          <enumChoice choice="Grade crossing enable, phase B">
            <choice>Grade crossing enable, phase B</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 enable, phase A">
            <choice>Rule 17 enable, phase A</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 enable, phase B">
            <choice>Rule 17 enable, phase B</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 enable, Grade crossing enable, Phase A">
            <choice>Rule 17 enable, Grade crossing enable, Phase A</choice>
          </enumChoice>
          <enumChoice choice="Rule 17 enable, Grade crossing enable, Phase B">
            <choice>Rule 17 enable, Grade crossing enable, Phase B</choice>
          </enumChoice>
        </enumVal>
        <label>Reverse light F0R behavior</label>
      </variable>
      <variable CV="59" mask="XXXXVVVV" item="Global lighting option 2" comment="0 is fast, 15 is slow, 4 is recommended for start">
        <decVal max="15"/>
        <label>Hyperlight flash rate</label>
        <comment>0 is fast, 15 is slow, 4 is recommended for start</comment>
      </variable>
      <variable CV="59" mask="VVVVXXXX" item="Global lighting option 3" comment="0-15 seconds">
        <decVal max="15"/>
        <label>Grade crossing logic hold time</label>
        <comment>0-15 seconds</comment>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/fwdTrim.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/revTrim.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv67speedTableBasic.xml"/>
      <!-- Sound section -->
      <variable CV="113" mask="XXXXXXXV" item="Sound Option 5" default="0">
        <enumVal>
          <enumChoice choice="On at power up">
            <choice>On at power up</choice>
          </enumChoice>
          <enumChoice choice="On when loco selected">
            <choice>On when loco selected</choice>
          </enumChoice>
        </enumVal>
        <label>Startup Mode</label>
      </variable>
      <variable CV="113" mask="XXXXXXVX" item="Sound Option 6" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Dynamic Digital Exhaust</label>
      </variable>
      <variable CV="115" mask="XXXXXXVV" item="Sound Option 3" default="0">
        <enumVal>
          <enumChoice choice="Single Chime">
            <choice>Single Chime</choice>
          </enumChoice>
          <enumChoice choice="Three Chime">
            <choice>Three Chime</choice>
          </enumChoice>
          <enumChoice choice="Five Chime">
            <choice>Five Chime</choice>
          </enumChoice>
        </enumVal>
        <label>Horn Select</label>
      </variable>
      <variable CV="116" mask="XXXVXXXX" item="Sound Option 4" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Engine RPM Interlock</label>
      </variable>
      <!-- Volumes section -->
      <variable CV="114" mask="XXXXVVVV" item="Sound Setting 1" default="4" comment="low values = fast, high values = slow">
        <decVal max="15"/>
        <label>Bell Rate</label>
        <comment>low values = fast, high values = slow</comment>
      </variable>
      <variable CV="116" mask="XVVVVVVV" item="Sound Setting 2" default="7" comment="Number of speed steps per throttle notch.">
        <decVal max="15"/>
        <label>Exhaust Auto Notching Control</label>
        <comment>Number of speed steps per throttle notch.</comment>
      </variable>
      <variable CV="120" mask="VVVVVVVV" item="Sound Setting 3" default="128">
        <decVal max="255"/>
        <label>Airhorn Volume</label>
      </variable>
      <variable CV="121" mask="VVVVVVVV" item="Sound Setting 4" default="128">
        <decVal max="255"/>
        <label>Bell Volume</label>
      </variable>
      <variable CV="122" mask="VVVVVVVV" item="Sound Setting 5" default="128">
        <decVal max="255"/>
        <label>Exhaust Volume</label>
      </variable>
      <variable CV="123" mask="VVVVVVVV" item="Sound Setting 6" default="128">
        <decVal max="255"/>
        <label>Dynamic Brake Volume</label>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="8">
         <label xml:lang="it">Reset delle CV ai valori di fabbrica</label>
      </factReset>
    </resets>
  </decoder>
  <pane>
    <column>
      <display item="Speed Table Selection"/>
      <display item="CV Address Extension"/>
      <display item="EEROM Data Corrupted"/>
      <display item="Function Group 3 Disable"/>
      <display item="Alternate Function Map"/>
      <display item="Watchdog Timer Reset"/>
      <display item="Program Checksum Failure"/>
      <display item="I2C Bus Acknowledge Failure"/>
    </column>
    <name>Soundtraxx</name>
  </pane>
</decoder-config>
