<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2008 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.xsd">
  <version author="Michael Mosher" version="1" lastUpdated="20110216"/>
  <version author="Michael Mosher" version="2" lastUpdated="20121205"/>
  <version author="Michael Mosher" version="3" lastUpdated="20151029"/>
  <!-- version 1	Based on the "Soundtraxx_MC by Michael Mosher 									-->
  <!-- version 2	Add SD40-2W																		-->
  <!-- version 3	Fixed function mapping and use of more external includes						-->
<!-- Decoder Model information follows -->
  <decoder>
    <family name="MC Intermountain OEM" mfg="SoundTraxx (Throttle-Up)">
      <model model="ES44AC" numOuts="4" numFns="14" connector="other" productID="ES">
        <versionCV lowVersionID="96"/>
        <output name="3" label="  FX5  | "/>
        <output name="4" label="  FX6  | "/>
        <output name="5" label="Brakes| "/>
      </model>
      <model model="ES44DC" numOuts="4" numFns="14" connector="other" productID="ES">
        <versionCV lowVersionID="96"/>
        <output name="3" label="  FX5  | "/>
        <output name="4" label="  FX6  | "/>
        <output name="5" label="Brakes| "/>
      </model>
      <model model="FT" numOuts="4" numFns="14" connector="other" productID="F">
        <versionCV lowVersionID="96"/>
        <output name="3" label="  FX5  | "/>
        <output name="4" label="  FX6  | "/>
        <output name="5" label="Brakes| "/>
      </model>
      <model model="F3" numOuts="4" numFns="14" connector="other" productID="F">
        <versionCV lowVersionID="96"/>
        <output name="3" label="  FX5  | "/>
        <output name="4" label="  FX6  | "/>
        <output name="5" label="Brakes| "/>
      </model>
      <model model="F7" numOuts="4" numFns="14" connector="other" productID="F">
        <versionCV lowVersionID="96"/>
        <output name="3" label="  FX5  | "/>
        <output name="4" label="  FX6  | "/>
        <output name="5" label="Brakes| "/>
      </model>
      <model model="F9" numOuts="4" numFns="14" connector="other" productID="F">
        <versionCV lowVersionID="96"/>
        <output name="3" label="  FX5  | "/>
        <output name="4" label="  FX6  | "/>
        <output name="5" label="Brakes| "/>
      </model>
      <model model="FP7" numOuts="4" numFns="14" connector="other" productID="F">
        <versionCV lowVersionID="96"/>
        <output name="3" label="  FX5  | "/>
        <output name="4" label="  FX6  | "/>
        <output name="5" label="Brakes| "/>
      </model>
      <model model="SD40-2W" numOuts="4" numFns="14" connector="other" productID="SD40">
        <versionCV lowVersionID="96"/>
        <output name="3" label="  FX5  | "/>
        <output name="4" label="  FX6  | "/>
        <output name="5" label="Brakes| "/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <!-- Configuration Variable (CV) information follows -->
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable CV="2" item="Vstart" default="0" comment="A value of 255 corresponds to full voltage available" tooltip="Sets the starting voltage at throttle speed step 1">
        <decVal/>
        <label>Start Voltage (0-255)</label>
        <label xml:lang="it">Volt Partenza</label>
        <label xml:lang="fr">V démarr.</label>
        <label xml:lang="de">Startspannung</label>
        <comment>A value of 255 corresponds to full voltage available</comment>
      </variable>
      <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="10" item="EMF Feedback Cutout" default="0" tooltip="&lt;html&gt;Up to 127, this sets the speed step above which the intensity of BEMF control will be reduced&lt;br&gt;      to zero.  Values over 127 cause the BEMF to decrease as a percentage (up to 50%).&lt;/html&gt;">
        <decVal/>
        <label>BEMF Cutout (0-127 or 128-255)</label>
      </variable>
      <variable CV="11" item="Packet Time-out Value" default="0" tooltip="&lt;html&gt;Sets the time period that is allowed to elapse between receipts of a valid packet&lt;br&gt;      addressed to the decoder before a throttle shutdown occurs.  Enter zero to disable.&lt;/html&gt;">
        <decVal/>
        <label>Packet Time Out Value (0-255)</label>
      </variable>
      <variable CV="12" mask="XXXXXXXV" item="Analog Power Conversion" default="1" include="852002,852003,852004" tooltip="&lt;html&gt;Defines the type of power source the decoder should&lt;br&gt;      switch to whenever a DCC signal is not present.&lt;br&gt;      (Tip: Alternate Power Source must be enabled)&lt;/html&gt;">
        <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSUenumPower.xml"/>
        <label>Power Source Conversion Type</label>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/analogModeFunction_F12.xml"/>
      <variable CV="15" mask="XXXXXVVV" item="Advanced Group 1 Option 1" default="0" tooltip="&lt;html&gt;Enter the Lock ID Code to unlock access to the decoder CVs.&lt;br&gt;      (Tip: Establish the unlock code with CV Lock ID Code)&lt;/html&gt;">
        <decVal/>
        <label>CV Unlock Register (0-7)</label>
      </variable>
      <variable CV="16" mask="XXXXXVVV" item="Advanced Group 1 Option 2" default="0" tooltip="Sets the unlock code that must be entered into the CV Unlock Register in order to access the decoder CVs">
        <decVal/>
        <label>CV Lock ID Code (0-7)</label>
      </variable>
      <!-- Consisting Information follows -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddrDirection.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv21.22_F12.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAccelDecelSigned.xml"/>
      <variable item="Speed Table Selection" CV="25" mask="XXXVVVVV" default="0" tooltip="Select a manufacturers speed curve, or use a curve you define yourself">
        <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSUenumCurve.xml"/>
        <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/cv29analog.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29table1-28.xml"/>
      <variable CV="30" mask="XXXXXXXV" item="Advanced Group 1 Option 3" default="0" tooltip="Enable locking of CVs when decoder is used in a multi-decoder installation">
        <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSUenumLock.xml"/>
        <label>CV Lock Enable</label>
      </variable>
      <variable CV="30" mask="XXXXXXVX" item="Advanced Group 1 Option 4" default="0" tooltip="Tip: To do a one-time decoder reset, use the menu [Reset] selection">
        <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSUenumReset.xml"/>
        <label>CV Clear (CVCLR)</label>
      </variable>
      <variable CV="30" mask="XXXXXVXX" item="Function Map Option 1" default="0" tooltip="Function Group 2 (F5-F8) assignments are swapped with Function Group 3 (F9-F12)">
        <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSUenumSwap.xml"/>
        <label>Function Group 2 and 3 Exchange</label>
      </variable>
      <!-- Function Mapping follows -->
      <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 CV="33" mask="XXXVXXXX" item="FL(f) controls output 3" minOut="1" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(f) controls output FX5</label>
      </variable>
      <variable CV="33" mask="XXVXXXXX" item="FL(f) controls output 4" minOut="2" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(f) controls output FX6</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="0" include="F">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(r) controls Backup Light</label>
      </variable>
      <variable CV="34" mask="XXXXXXVX" item="FL(r) controls output 2" minOut="2" default="1" include="ES,SD40">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(r) controls Backup Light</label>
      </variable>
      <variable CV="34" mask="XXXVXXXX" item="FL(r) controls output 3" minOut="1" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(r) controls output FX5</label>
      </variable>
      <variable CV="34" mask="XXVXXXXX" item="FL(r) controls output 4" minOut="2" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>FL(r) controls output FX6</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 CV="35" mask="XXXVXXXX" item="F1 controls output 3" minOut="1" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F1 controls output FX5</label>
      </variable>
      <variable CV="35" mask="XXVXXXXX" item="F1 controls output 4" minOut="2" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F1 controls output FX6</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 CV="36" mask="XXXVXXXX" item="F2 controls output 3" minOut="1" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F2 controls output FX5</label>
      </variable>
      <variable CV="36" mask="XXVXXXXX" item="F2 controls output 4" minOut="2" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F2 controls output FX6</label>
      </variable>
      <variable CV="37" mask="XXXXXXVX" item="F3 controls output 3" minOut="1" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3 controls output FX5</label>
      </variable>
      <variable CV="37" mask="XXXXXVXX" item="F3 controls output 4" minOut="2" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3 controls output FX6</label>
      </variable>
      <variable CV="38" mask="XXXXXXVX" item="F4 controls output 3" minOut="1" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F4 controls output FX5</label>
      </variable>
      <variable CV="38" mask="XXXXXVXX" item="F4 controls output 4" minOut="2" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F4 controls output FX6</label>
      </variable>
      <!-- begin exchangeable function groups -->
      <variables>
        <qualifier>
          <variableref>Function Map Option 1</variableref>
          <relation>eq</relation>
          <value>0</value>
        </qualifier>
          <!-- begin normal function group 2-3 -->
		  <variable CV="39" mask="XXXXXXVX" item="F5 controls output 3" minOut="1" default="0" include="F">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F5 controls output FX5</label>
		  </variable>
		  <variable CV="39" mask="XXXXXXVX" item="F5 controls output 3" minOut="1" default="1" include="ES,SD40">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F5 controls output FX5</label>
		  </variable>
		  <variable CV="39" mask="XXXXXVXX" item="F5 controls output 4" minOut="2" default="0" include="ES,SD40">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F5 controls output FX6</label>
		  </variable>
		  <variable CV="39" mask="XXXXXVXX" item="F5 controls output 4" minOut="2" default="1" include="F">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F5 controls output FX6</label>
		  </variable>
		  <variable CV="40" mask="XXXXXXVX" item="F6 controls output 3" minOut="1" default="0" include="ES,SD40">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F6 controls output FX5</label>
		  </variable>
		  <variable CV="40" mask="XXXXXXVX" item="F6 controls output 3" minOut="1" default="1" include="F">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F6 controls output FX5</label>
		  </variable>
		  <variable CV="40" mask="XXXXXVXX" item="F6 controls output 4" minOut="2" default="0" include="F">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F6 controls output FX6</label>
		  </variable>
		  <variable CV="40" mask="XXXXXVXX" item="F6 controls output 4" minOut="2" default="1" include="ES,SD40">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F6 controls output FX6</label>
		  </variable>
		  <variable item="F7 controls output 5" CV="41" mask="VXXXXXXX" default="0">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F7 controls output Brakes</label>
		  </variable>
		  <variable item="F8 controls output 5" CV="42" mask="VXXXXXXX" default="0">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F8 controls output Brakes</label>
		  </variable>
		  <variable item="F9 controls output 5" CV="43" mask="VXXXXXXX" default="0" minFn="9">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F9 controls output Brakes</label>
		  </variable>
		  <variable item="F10 controls output 5" CV="44" mask="XVXXXXXX" default="0" minFn="10">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F10 controls output Brakes</label>
		  </variable>
		  <variable item="F11 controls output 5" CV="45" mask="XVXXXXXX" default="0" minFn="11">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F11 controls output Brakes</label>
		  </variable>
		  <variable item="F12 controls output 5" CV="46" mask="XVXXXXXX" default="0" minFn="12">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F12 controls output Brakes</label>
		  </variable>
        <!-- end normal function group 2-3 -->
      </variables>
      <variables>
        <qualifier>
          <variableref>Function Map Option 1</variableref>
          <relation>ge</relation>
          <value>1</value>
        </qualifier>
        <!-- begin exchanged function group 2-3 -->
		  <variable CV="39" mask="XXXXXXVX" item="F9 controls output 3(alt)" minOut="1" default="0" include="F">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F9 controls output FX5</label>
		  </variable>
		  <variable CV="39" mask="XXXXXXVX" item="F9 controls output 3(alt)" minOut="1" default="1" include="ES,SD40">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F9 controls output FX5</label>
		  </variable>
		  <variable CV="39" mask="XXXXXVXX" item="F9 controls output 4(alt)" minOut="2" default="0" include="ES,SD40">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F9 controls output FX6</label>
		  </variable>
		  <variable CV="39" mask="XXXXXVXX" item="F9 controls output 4(alt)" minOut="2" default="1" include="F">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F9 controls output FX6</label>
		  </variable>
		  <variable CV="40" mask="XXXXXXVX" item="F10 controls output 3(alt)" minOut="1" default="0" include="ES,SD40">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F10 controls output FX5</label>
		  </variable>
		  <variable CV="40" mask="XXXXXXVX" item="F10 controls output 3(alt)" minOut="1" default="1" include="F">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F10 controls output FX5</label>
		  </variable>
		  <variable CV="40" mask="XXXXXVXX" item="F10 controls output 4(alt)" minOut="2" default="0" include="F">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F10 controls output FX6</label>
		  </variable>
		  <variable CV="40" mask="XXXXXVXX" item="F10 controls output 4(alt)" minOut="2" default="1" include="ES,SD40">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F10 controls output FX6</label>
		  </variable>
		  <variable item="F11 controls output 5(alt)" CV="41" mask="VXXXXXXX" default="0">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F11 controls output Brakes</label>
		  </variable>
		  <variable item="F12 controls output 5(alt)" CV="42" mask="VXXXXXXX" default="0">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F12 controls output Brakes</label>
		  </variable>
		  <variable item="F5 controls output 5(alt)" CV="43" mask="VXXXXXXX" default="0" minFn="9">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F5 controls output Brakes</label>
		  </variable>
		  <variable item="F6 controls output 5(alt)" CV="44" mask="XVXXXXXX" default="0" minFn="10">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F6 controls output Brakes</label>
		  </variable>
		  <variable item="F7 controls output 5(alt)" CV="45" mask="XVXXXXXX" default="0" minFn="11">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F7 controls output Brakes</label>
		  </variable>
		  <variable item="F8 controls output 5(alt)" CV="46" mask="XVXXXXXX" default="0" minFn="12">
			<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
			<label>F8 controls output Brakes</label>
		  </variable>
          <!-- end exchanged function group 2-3 -->
      </variables>
      <!-- end exchangeable function groups -->
      <variable CV="61" mask="XVVVVVVV" item="Advanced Group 1 Option 6" default="0" comment="Additional braking when Fll activated (combined with CV4)" tooltip="When F11 is pressed, locos baseline braking rate is modified by this amount">
        <decVal max="127"/>
        <label>F11 Braking Rate (0-127)</label>
        <comment>Additional braking when Fll activated (combined with CV4)</comment>
      </variable>
      <variable CV="61" mask="VXXXXXXX" item="Advanced Group 1 Option 7" default="0" tooltip="Determines whether value is added to or subtracted from loco baseline braking rate">
        <xi:include href="http://jmri.org/xml/decoders/soundtraxx/TSUenumBraking.xml"/>
        <label>F11 Braking Sign</label>
      </variable>
      <variable CV="63" item="Radio Power Conversion" default="20" include="852002,852003,852004" tooltip="Sets the voltage difference between when the decoder first powers up and when the locomotive starts to move">
        <decVal/>
        <label>Analog Mode Motor Start Voltage (0-255)</label>
      </variable>
      <variable CV="64" item="Zero-1 Power Conversion" default="180" include="852002,852003,852004" tooltip="Sets the maximum average voltage applied to the motor when operating in analog mode">
        <decVal/>
        <label>Analog Mode Max Motor Voltage (0-255)</label>
      </variable>
      <variable CV="66" item="Forward Trim" default="128" tooltip="&lt;html&gt;Allows the decoders overall throttle response in the forward direction to be adjusted up or down.&lt;br&gt;      Values 1-127 will decrease motor voltage, 129-255 will increase it.  A value of zero will disable.&lt;br&gt;      Tip: this feature only active when speed tables are enabled.&lt;/html&gt;">
        <decVal/>
        <label>Forward Trim (0-255)</label>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv67speedTableBasic.xml"/>
      <variable CV="95" item="Reverse Trim" default="128" tooltip="&lt;html&gt;Allows the decoders overall throttle response in the reverse direction to be adjusted up or down.&lt;br&gt;      Values 1-127 will decrease motor voltage, 129-255 will increase it.  A value of zero will disable.&lt;br&gt;      Tip: this feature only active when speed tables are enabled.&lt;/html&gt;">
        <decVal/>
        <label>Reverse Trim (0-255)</label>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
      <!-- Advanced Motor Control Features follow -->
      <variable CV="209" mask="VVVVVVVV" item="EMF Static Config" default="25" tooltip="Specifies a gain factor for the proportional part of the PID motor control equation">
        <decVal/>
        <label>Motor Kp Coefficient (0-255)</label>
      </variable>
      <variable CV="210" mask="VVVVVVVV" item="EMF Dynamic Config" default="20" tooltip="Specifies a gain factor for the integral part of the PID motor control equation">
        <decVal/>
        <label>Motor Ki Coefficient (0-255)</label>
      </variable>
      <variable CV="212" mask="VVVVVVVV" item="EMF Option 1" default="255" tooltip="The CV value is interpreted as n/32 that is fed back from the control loop">
        <decVal/>
        <label>Motor Control Intensity (0-255)</label>
      </variable>
      <variable CV="213" mask="VVVVVVVV" item="EMF Option 2" default="24" tooltip="Specifies the time period in mS (milliseconds) between measurements">
        <decVal max="31"/>
        <label>Motor Control Sample Period (0-31)</label>
      </variable>
      <variable CV="214" mask="VVVVVVVV" item="EMF Option 3" default="7" tooltip="Specifies a gain factor for the derivative part of the PID motor control equation">
        <decVal/>
        <label>Motor Control Sample Aperture Time (0-255)</label>
      </variable>
      <!-- highest used so far: -->
      <!-- "Advanced Group 1 Option 8" -->
    </variables>
    <resets>
      <factReset label="Reset all CVs to factory defaults" CV="8" default="8"/>
    </resets>
  </decoder>
  <!-- References to external Pane format definitions below -->
</decoder-config>
