<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2006, 2007 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="Alain Le Marchand" version="2.1" lastUpdated="20150430"/>
  <version author="Alain Le Marchand" version="2" lastUpdated="20150427"/>
  <version author="John Crellin" version="1" lastUpdated="20130205"/>
  <!-- Version 1 - Covers MRC 1619 to 1624 -->
  <!-- Version 2 - Renaming decoder models -->
  <!-- Version 2.2 - Refactoring           -->
  <decoder>
    <family name="Sound Decoders" mfg="MRC" lowVersionID="0" highVersionID="60"  comment="Synchronized Sound Brilliance(TM) Decoders">
      <model show="no" model="HO Gauge Diesel - 16 Bit 1619 EMD645E" replacementModel="1619 - HO Scale - EMD645E"  replacementFamily="Sound Decoders" numOuts="7" numFns="28" maxTotalCurrent="1.0A">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <model model="1619 - HO Scale - EMD645E" numOuts="7" numFns="28" maxTotalCurrent="1.0A" comment="HO Scale, Drop-In, 16 Bit">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <model show="no" model="HO Gauge Diesel - 16 Bit 1620 EMD645" replacementModel="1620 - HO Scale - EMD645" replacementFamily="Sound Decoders" numOuts="7" numFns="28" maxTotalCurrent="1.0A">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <model model="1620 - HO Scale - EMD645" numOuts="7" numFns="28" maxTotalCurrent="1.0A" comment="HO Scale, Drop-In, 16 Bit">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <model show="no" model="HO Gauge Diesel - 16 Bit 1621 EMD710" replacementModel="1621 - HO Scale - EMD710" replacementFamily="Sound Decoders" numOuts="7" numFns="28" maxTotalCurrent="1.0A">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <model model="1621 - HO Scale - EMD710" numOuts="7" numFns="28" maxTotalCurrent="1.0A" comment="HO Scale, Drop-In, 16 Bit">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <model show="no" model="HO Gauge Diesel - 16 Bit 1622 ALCO 244" replacementModel="1622 - HO Scale - ALCO 244" replacementFamily="Sound Decoders" numOuts="7" numFns="28" maxTotalCurrent="1.0A">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <model model="1622 - HO Scale - ALCO 244" numOuts="7" numFns="28" maxTotalCurrent="1.0A" comment="HO Scale, Drop-In, 16 Bit">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <model show="no" model="HO Gauge Diesel - 16 Bit 1623 ALCO 539T" replacementModel="1623 - HO Scale - ALCO 539T" replacementFamily="Sound Decoders" numOuts="7" numFns="28" maxTotalCurrent="1.0A">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <model model="1623 - HO Scale - ALCO 539T" numOuts="7" numFns="28" maxTotalCurrent="1.0A" comment="HO Scale, Drop-In, 16 Bit">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <model show="no" model="HO Gauge Diesel - 16 Bit 1624 EMD567" replacementModel="1624 - HO Scale - EMD567" replacementFamily="Sound Decoders" numOuts="7" numFns="28" maxTotalCurrent="1.0A">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <model model="1624 - HO Scale - EMD567" numOuts="7" numFns="28" maxTotalCurrent="1.0A" comment="HO Scale, Drop-In, 16 Bit">
        <size length="73" width="17.6" height="8.4" units="mm"/>
      </model>
      <functionlabels>
        <functionlabel num="0" lockable="true">Light</functionlabel>
        <functionlabel num="1" lockable="true">Bell</functionlabel>
        <functionlabel num="2" lockable="false">Horn</functionlabel>
        <functionlabel num="3" lockable="true">Ditch Lights</functionlabel>
        <functionlabel num="4" lockable="true">Coupling1</functionlabel>
        <functionlabel num="5" lockable="true">Brake release/Squeal</functionlabel>
        <functionlabel num="6" lockable="true">Dynamic Brake</functionlabel>
        <functionlabel num="7" lockable="true">Air Hose/Uncoupling Lever</functionlabel>
        <functionlabel num="8" lockable="true">Shut Down/Notch Down</functionlabel>
        <functionlabel num="9" lockable="true">Fan/Notch Up</functionlabel>
        <functionlabel num="10" lockable="true">Rail Clack</functionlabel>
        <functionlabel num="11" lockable="true">Traction Air Compressor</functionlabel>
        <functionlabel num="12" lockable="true">Prime Mover Type</functionlabel>
        <functionlabel num="13" lockable="true">Master Volume Decrease</functionlabel>
        <functionlabel num="14" lockable="true">Master Volume Increase</functionlabel>
        <functionlabel num="15" lockable="true">Air Compressor</functionlabel>
        <functionlabel num="16" lockable="true">Flange Squeal</functionlabel>
        <functionlabel num="17" lockable="true">Air Release</functionlabel>
        <functionlabel num="18" lockable="true">Bell Type</functionlabel>
        <functionlabel num="19" lockable="true">Horn Type</functionlabel>
        <functionlabel num="20" lockable="true">Loco Sound</functionlabel>
        <functionlabel num="21" lockable="true">Bell Volume</functionlabel>
        <functionlabel num="22" lockable="true">Horn Volume</functionlabel>
        <functionlabel num="23" lockable="true">Diesel Rumble Volume</functionlabel>
        <functionlabel num="24" lockable="true">Safety Valve Pop</functionlabel>
        <functionlabel num="25" lockable="true">Air Release</functionlabel>
        <functionlabel num="26" lockable="true">Flange Noise</functionlabel>
        <functionlabel num="27" lockable="true">Sand Drop</functionlabel>
        <functionlabel num="28" lockable="true">Air Release</functionlabel>
      </functionlabels>
    </family>
    <programming direct="yes" paged="no" register="yes" ops="yes"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable CV="2" item="Vstart" default="10" comment="Range 0-63">
        <decVal max="63"/>
        <label>Start Volts</label>
        <label xml:lang="it">Volt Partenza</label>
        <label xml:lang="fr">V démarr.</label>
        <label xml:lang="de">Anfahrspannung</label>
        <tooltip>Range 0-63</tooltip>
      </variable>
      <variable CV="3" item="Accel" default="0" comment="Range 0-63">
        <decVal max="63"/>
        <label>Acceleration</label>
        <label xml:lang="it">Accellerazione</label>
        <label xml:lang="fr">Accelération</label>
        <label xml:lang="de">Anfahrverzögerung</label>
        <tooltip>Range 0-63</tooltip>
      </variable>
      <variable CV="4" item="Decel" default="0" comment="Range 0-63">
        <decVal max="63"/>
        <label>Deceleration</label>
        <label xml:lang="it">Decellerazione</label>
        <label xml:lang="fr">Décélération</label>
        <label xml:lang="de">Bremszeit</label>
        <tooltip>Range 0-63</tooltip>
      </variable>
      <variable CV="5" item="Vhigh" default="32" comment="Range 0-32">
        <decVal max="32"/>
        <label>Max Voltage</label>
        <label xml:lang="it">Volt Massimi</label>
        <label xml:lang="fr">Vitesse Max</label>
        <label xml:lang="de">Höchstgeschwindigkeit</label>
        <tooltip>Range 0-32</tooltip>
      </variable>
      <variable CV="6" item="Motor Option 1" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Ultra Low Speed</label>
        <label xml:lang="it">Velocità bassissima (0-32):</label>
        <tooltip>Ultra slow speed enable for speed step1 and 2</tooltip>
      </variable>
      <variable CV="7" item="Decoder Version" readOnly="yes" default="0">
        <decVal/>
        <label>Version ID</label>
        <label xml:lang="it">Versione Decoder: </label>
        <label xml:lang="fr">Version décodeur: </label>
        <label xml:lang="de">Decoder Version: </label>
      </variable>
      <variable CV="8" readOnly="yes" item="Manufacturer" default="143">
        <decVal/>
        <label>Manufacturer ID</label>
        <label xml:lang="it">ID Costruttore: </label>
        <label xml:lang="fr">ID constructeur: </label>
        <label xml:lang="de">Hersteller ID: </label>
      </variable>
      <!-- CV=19 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddrDirection.xml"/>
      <!-- CV=21 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv21_lsb.xml"/>
      <!-- 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"/>
      <!-- MRC CVs -->
      <xi:include href="http://jmri.org/xml/decoders/mrc/FunctionExchange.xml"/>
      <variable CV="49" mask="XXXXXXXV" tooltip="F12 also sets sound on/off" default="1" item="Sound Option 1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Sound On/Off</label>
      </variable>
      <variable CV="50" item="Sound Option 2" default="0" comment="Range 0-3">
        <enumVal>
          <enumChoice choice="Horn 0">
            <choice>Horn 0</choice>
          </enumChoice>
          <enumChoice choice="Horn 1">
            <choice>Horn 1</choice>
          </enumChoice>
          <enumChoice choice="Horn 2">
            <choice>Horn 2</choice>
          </enumChoice>
          <enumChoice choice="Horn 3">
            <choice>Horn 3</choice>
          </enumChoice>
        </enumVal>
        <label>Horn Type</label>
        <comment>Range 0-22</comment>
      </variable>
      <variable CV="51" item="Sound Setting 1" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Horn Volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="52" item="Sound Option 3" default="3" comment="Range 0-3">
        <enumVal>
          <enumChoice choice="Bell 0">
            <choice>Bell 0</choice>
          </enumChoice>
          <enumChoice choice="Bell 1">
            <choice>Bell 1</choice>
          </enumChoice>
          <enumChoice choice="Bell 2">
            <choice>Bell 2</choice>
          </enumChoice>
          <enumChoice choice="Bell 3">
            <choice>Bell 3</choice>
          </enumChoice>
        </enumVal>
        <label>Bell Type</label>
        <comment>Range 0-6</comment>
      </variable>
      <variable CV="53" item="Sound Setting 2" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Bell Volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="54" item="Sound Group 3 Option 2" default="3" comment="Range 0-50">
        <decVal max="50"/>
        <label>Bell Ring Rate</label>
        <comment>Range 0-50</comment>
      </variable>
      <variable CV="55" item="Sound Setting 3" default="12" comment="Range 0-15">
        <decVal max="13"/>
        <label>Prime Mover Volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="56" item="Sound Setting 4" default="7" comment="Range 0-15">
        <decVal max="15"/>
        <label>Brake Squeal Volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="58" item="Sound Setting 5" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Air Release Volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="59" item="Sound Setting 6" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Air Pump Volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="60" item="Sound Setting 7" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Safety Pop Value Volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="61" item="Sound Setting 8" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Engine Cooling Fan Volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="62" item="Sound Setting 9" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Coupling Volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="64" item="Sound Setting 10" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Rail wheel clack</label>
        <comment>Range 0-15</comment>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/kickStart_63.xml"/>
      <!-- Speed table -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv67speedTableBasic.xml"/>
      <!-- CV 105-106 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
      <!-- Motor Control Back EMF -->
      <xi:include href="http://jmri.org/xml/decoders/mrc/motorBEMF_cv112_113_114_124.xml"/>
      <!-- MRC CVs continue -->
      <variable CV="115" item="Sound Option 6" default="0">
        <enumVal>
          <enumChoice choice="Off" value="2">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On" value="0">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Auto Brake squeal</label>
      </variable>
      <variable CV="117" item="Global lighting option 1" tooltip="selects the Headlight Mode" default="0">
        <xi:include href="http://jmri.org/xml/decoders/mrc/enum-LightEffect17.xml"/>
        <label>Headlight Effect</label>
      </variable>
      <variable CV="118" item="Global lighting option 2" tooltip="selects the Accessory 1 Light Effect" default="0">
        <xi:include href="http://jmri.org/xml/decoders/mrc/enum-LightEffect17.xml"/>
        <label>Accessory 1 Light Effect</label>
      </variable>
      <variable CV="119" item="Global lighting option 3" tooltip="selects the Accessory 2 Light Effect" default="0">
        <xi:include href="http://jmri.org/xml/decoders/mrc/enum-LightEffect17.xml"/>
        <label>Accessory 2 Light Effect</label>
      </variable>
      <variable CV="120" item="Global lighting option 4" default="255">
        <decVal max="255"/>
        <label>Light Brightness</label>
        <tooltip>Range 0-255</tooltip>
      </variable>
      <variable CV="121" item="Sound Option 5" default="0">
        <enumVal>
          <enumChoice choice="Constant">
            <choice>Constant</choice>
          </enumChoice>
          <enumChoice choice="Synch to Prime Mover">
            <choice>Synch to Prime Mover</choice>
          </enumChoice>
        </enumVal>
        <label>Air Compressor Mode</label>
      </variable>
      <variable CV="122" item="Sound Option 7" default="3">
        <enumVal>
          <enumChoice choice="Auto" value="0">
            <choice>Auto</choice>
          </enumChoice>
          <enumChoice choice="Manual" value="3">
            <choice>Manual</choice>
          </enumChoice>
        </enumVal>
        <label>Diesel Notch Mode</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="125" default="1">
        <label xml:lang="it">Reset delle CV ai valori di fabbrica</label>
      </factReset>
    </resets>
  </decoder>
</decoder-config>
