<?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="Bob Jacobsen" version="3" lastUpdated="20190727"/> <!-- xinclude for CV19 -->
  <version author="Alain Le Marchand" version="2.2" lastUpdated="20150611"/>
  <version author="Alain Le Marchand" version="2.1" lastUpdated="20150501"/>
  <version author="Alain Le Marchand" version="2" lastUpdated="20150427"/>
  <version author="Peter Ulvestad" version="1" lastUpdated="20131102"/>
  <!-- made from mrc1902 file -->
  <!-- version 2 Renaming decoder models               -->
  <!-- version 2.1 Regular CV21 on Consist pane        -->
  <!--             Refactoring - removed MRC pane      -->
  <!--             Added CV 37, 39, 42, 112            -->
  <!--             Bell Ring Rate (CV54) on Sound pane -->
  <!-- version 2.2 CV115 enum label 2=off              -->
  <decoder>
    <family name="Sound Decoders" mfg="MRC" lowVersionID="1" highVersionID="2" comment="Synchronized Sound Brilliance(TM) Decoders">
      <model show="no" model="Proto 2000 Drop-in E unit and PA Stereo Diesel Sound 1922" replacementModel="1922 - HO Scale - Proto 2000 F/E units and ALCO PA" replacementFamily="Sound Decoders" numOuts="7" numFns="30" maxTotalCurrent="1.5A">
        <size length="29.5" width="10.6" height="5" units="mm"/>
      </model>
      <model model="1922 - HO Scale - Proto 2000 F/E units and ALCO PA" numOuts="7" numFns="30" maxTotalCurrent="1.5A" connector="DropIn" comment="Platinum series, Drop-In, 16 Bit, Stereo">
        <size length="29.5" width="10.6" height="5" 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">ACC 1 and ACC 2 on/off</functionlabel>
        <functionlabel num="4" lockable="true">Coupling 1</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">Volume Down by 1</functionlabel>
        <functionlabel num="14" lockable="true">Volume Up by 1</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">Associated Loco Sound</functionlabel>
        <functionlabel num="21" lockable="true">Bell Volume</functionlabel>
        <functionlabel num="22" lockable="true">Horn Volume</functionlabel>
        <functionlabel num="23" lockable="true">Diesei 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">Ditch Lights Flash enable/disable with 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"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/mfgVersionId.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29analog.xml"/>
      <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="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>
        <comment>Range 0-63</comment>
      </variable>
      <variable CV="3" item="Accel" default="0" comment="Range 0-63">
        <decVal max="63"/>
        <label>Acceleration</label>
        <label xml:lang="it">Accellerazione (0-63)</label>
        <label xml:lang="fr">Accelération (0-63)</label>
        <label xml:lang="de">Anfahrverzögerung (0-63)</label>
        <comment>Range 0-63</comment>
      </variable>
      <variable CV="4" item="Decel" default="0" comment="Range 0-63">
        <decVal max="63"/>
        <label>Deceleration</label>
        <label xml:lang="it">Decellerazione (1-63)</label>
        <label xml:lang="fr">Décélération (1-63)</label>
        <label xml:lang="de">Bremszeit (1-63)</label>
        <comment>Range 0-63</comment>
      </variable>
      <variable CV="5" item="Vhigh" default="63" comment="Range 0-63">
        <decVal max="63"/>
        <label>Max Voltage</label>
        <label xml:lang="it">Volt Massimi (0-63):</label>
        <label xml:lang="de">Höchstgeschwindigkeit</label>
        <comment>Range 0-63</comment>
      </variable>
      <variable CV="6" item="Motor Option 1" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Adaptive Back EMF control enable</label>
      </variable>

      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddr.xml"/>

      <variable CV="21" item="Functions Respond To" mask="XXXXXXXV" tooltip="selects the address that functions will respond to, 0=own address, 1=consist address" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-LocoAddrConsistAddr.xml"/>
        <label>Consist Function</label>
      </variable>
      <!-- MRC CVs -->
      <xi:include href="http://jmri.org/xml/decoders/mrc/FunctionExchange.xml"/>
      <variable CV="49" default="16" item="Sound Setting 1" comment="Range 0-16">
        <decVal max="16"/>
        <label>Master Volume Control</label>
        <tooltip>Range 0-16</tooltip>
      </variable>
      <variable CV="50" item="Sound Option 1" 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>
        <tooltip>Range 0-22</tooltip>
      </variable>
      <variable CV="51" item="Sound Setting 2" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Horn Volume</label>
        <tooltip>Range 0-15</tooltip>
      </variable>
      <variable CV="52" item="Sound Option 2" default="0" 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>
        <tooltip>Range 0-3</tooltip>
      </variable>
      <variable CV="53" item="Sound Setting 3" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Bell Volume</label>
        <tooltip>Range 0-15</tooltip>
      </variable>
      <variable CV="54" item="Sound Group 3 Option 2" default="3" comment="Range 0-50">
        <decVal max="50"/>
        <label>Bell Ring Rate</label>
        <tooltip>Range 0-50</tooltip>
      </variable>
      <variable CV="55" item="Sound Setting 4" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Prime Mover Volume</label>
        <tooltip>Range 0-15</tooltip>
      </variable>
      <variable CV="56" item="Sound Setting 5" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Brake Squeal Volume</label>
        <tooltip>Range 0-15</tooltip>
      </variable>
      <variable CV="57" item="Sound Setting 6" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Dynamic brake volume</label>
      </variable>
      <variable CV="58" item="Sound Setting 7" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Air Release Volume</label>
        <tooltip>Range 0-15</tooltip>
      </variable>
      <variable CV="59" item="Sound Setting 8" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Air Pump Volume</label>
        <tooltip>Range 0-15</tooltip>
      </variable>
      <variable CV="60" item="Sound Setting 9" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Safety Pop Value Volume</label>
        <tooltip>Range 0-15</tooltip>
      </variable>
      <variable CV="61" item="Sound Setting 10" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Engine Cooling Fan Volume</label>
        <tooltip>Range 0-15</tooltip>
      </variable>
      <variable CV="62" item="Sound Setting 11" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Coupling Volume</label>
        <tooltip>Range 0-15</tooltip>
      </variable>
      <variable CV="63" item="Sound Option 3" default="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>F3 control air release enable</label>
      </variable>
      <variable CV="64" item="Sound Setting 12" default="12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Rail wheel clack</label>
        <tooltip>Range 0-15</tooltip>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/kickStart_63.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv67speedTableBasic.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 4" default="0">
        <enumVal>
          <enumChoice choice="Brake 0">
            <choice>Brake 0</choice>
          </enumChoice>
          <enumChoice choice="Brake 1">
            <choice>Brake 1</choice>
          </enumChoice>
          <enumChoice choice="Brake Sound Off">
            <choice>Brake Sound Off</choice>
          </enumChoice>
        </enumVal>
        <label>Brake Sound Type</label>
      </variable>
      <variable CV="116" item="Global lighting option 5" default="120" comment="Range 0-255">
        <decVal max="255"/>
        <label>Brightness of Dim Light</label>
        <tooltip>[Range 0-255] Brightness of dim light in Rule 17 or dim-bright-off mode</tooltip>
      </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 item="Sound Option 5" CV="121" tooltip="1=change w ith engine rpm" default="0">
        <enumVal>
          <enumChoice choice="Normal" value="0">
            <choice>Normal</choice>
          </enumChoice>
          <enumChoice choice="Change with engine rpm" value="1">
            <choice>Change with engine rpm</choice>
          </enumChoice>
        </enumVal>
        <label>Air Compressor Mode</label>
      </variable>
      <variable item="Sound Option 6" CV="122" tooltip="can only have values of 0 or 3" default="3">
        <enumVal>
          <enumChoice choice="Auto" value="0">
            <choice>Auto</choice>
          </enumChoice>
          <enumChoice choice="Manual" value="3">
            <choice>Manual</choice>
          </enumChoice>
        </enumVal>
        <label>Prime Mover Type</label>
      </variable>
      <variable item="Sound Option 7" CV="123" tooltip="selects the Prime Mover Type" default="0">
        <enumVal>
          <enumChoice choice="Dual EMD567B">
            <choice>Dual EMD567B</choice>
          </enumChoice>
          <enumChoice choice="Single EMD567B">
            <choice>Single EMD567B</choice>
          </enumChoice>
          <enumChoice choice="Dual Alco 539T">
            <choice>Dual Alco 539T</choice>
          </enumChoice>
          <enumChoice choice="Single Alco 539T">
            <choice>Single Alco 539T</choice>
          </enumChoice>
          <enumChoice choice="All Sounds Off">
            <choice>All Sounds Off</choice>
          </enumChoice>
        </enumVal>
        <label>Prime Mover Type</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>
