<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 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-4-15-2.xsd">
  <version author="Bryan Vianco" version="3" lastUpdated="20120310"/>
  <version author="Christopher Zurek" version="2" lastUpdated="20081218"/>
  <version author="Pete Cesaro" version="1" lastUpdated="20080307"/>
  <!-- made from the MRC_1645 file by Bill Chown -->
  <!-- added many decoder-specific tool tips -->
  <!-- added CV identities to all tool tips -->
  <!-- Added local panel for Lights since I needed to add some text description for its use -->
  <!-- Version 2 - Changed Horn and Bell choices to drop downs (Christopher Zurek) -->
  <!-- Version 3 - Updated for 1909 specs -->
  <decoder>
    <family name="MRC Sounder Decoders" mfg="MRC" lowVersionID="32" highVersionID="32">
      <model model="Diesel Sound Decoder 1909 EMD 567/645/645E/710 Alco 244/539T" numOuts="2" numFns="28">
        <size length="17.4" width="17.4" height="4.0" units="mm"/>
      </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="120" item="Accel" default="0" tooltip="Note: Sets the acceleration rate (delay), range 0(default)-32" comment="Range 0-32">
        <decVal max="32"/>
        <label>Acceleration</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="121" item="Decel" default="0" tooltip="Note: Sets the deceleration rate (delay), range 0(default)-32" comment="Range 0-32">
        <decVal max="32"/>
        <label>Deceleration</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable CV="7" item="Decoder Version" readOnly="yes" tooltip="=32 for all MRC Brilliance models, Read Only" default="32">
        <decVal/>
        <label>Manufacturer version number</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" item="Manufacturer" readOnly="yes" tooltip="=143 for MRC, Read Only" 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_MRC.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"/>
      <variable CV="49" item="Sound Setting 16" default="63" tooltip="range 0-63" comment="Range 0-63">
        <decVal max="63"/>
        <label>Master volume control</label>
        <comment>Range 0-63</comment>
      </variable>
      <variable CV="50" item="Sound Option 1" default="13" comment="Range 0-22">
        <enumVal>
          <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>
          <enumChoice choice="Horn 4">
            <choice>Horn 4</choice>
          </enumChoice>
          <enumChoice choice="Horn 5">
            <choice>Horn 5</choice>
          </enumChoice>
          <enumChoice choice="Horn 6">
            <choice>Horn 6</choice>
          </enumChoice>
          <enumChoice choice="Horn 7">
            <choice>Horn 7</choice>
          </enumChoice>
          <enumChoice choice="Horn 8">
            <choice>Horn 8</choice>
          </enumChoice>
          <enumChoice choice="Horn 9">
            <choice>Horn 9</choice>
          </enumChoice>
          <enumChoice choice="Horn 10">
            <choice>Horn 10</choice>
          </enumChoice>
          <enumChoice choice="Horn 11">
            <choice>Horn 11</choice>
          </enumChoice>
          <enumChoice choice="Horn 12">
            <choice>Horn 12</choice>
          </enumChoice>
          <enumChoice choice="Horn 13">
            <choice>Horn 13</choice>
          </enumChoice>
          <enumChoice choice="Horn 14">
            <choice>Horn 14</choice>
          </enumChoice>
          <enumChoice choice="Horn 15">
            <choice>Horn 15</choice>
          </enumChoice>
          <enumChoice choice="Horn 16">
            <choice>Horn 16</choice>
          </enumChoice>
          <enumChoice choice="Horn 17">
            <choice>Horn 17</choice>
          </enumChoice>
          <enumChoice choice="Horn 18">
            <choice>Horn 18</choice>
          </enumChoice>
          <enumChoice choice="Horn 19">
            <choice>Horn 19</choice>
          </enumChoice>
          <enumChoice choice="Horn 20">
            <choice>Horn 20</choice>
          </enumChoice>
          <enumChoice choice="Horn 21">
            <choice>Horn 21</choice>
          </enumChoice>
          <enumChoice choice="Horn 22">
            <choice>Horn 22</choice>
          </enumChoice>
        </enumVal>
        <label>Horn type</label>
        <comment>Range 0-22</comment>
      </variable>
      <variable CV="51" item="Sound Setting 1" default="12" tooltip="range 0-15" comment="Range 0-15">
        <decVal max="15"/>
        <label>Horn volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="52" item="Sound Option 2" default="3" tooltip="Note: Bell, Dynamic Brake and Rail Wheel Clack cannot play at the same time" comment="Range 0-6">
        <enumVal>
          <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>
          <enumChoice choice="Bell 4">
            <choice>Bell 4</choice>
          </enumChoice>
          <enumChoice choice="Bell 5">
            <choice>Bell 5</choice>
          </enumChoice>
          <enumChoice choice="Bell 6">
            <choice>Bell 6</choice>
          </enumChoice>
        </enumVal>
        <label>Bell type</label>
        <comment>Range 0-6</comment>
      </variable>
      <variable CV="53" item="Sound Setting 2" default="12" tooltip="range 0-15 Note: Bell, Dynamic Brake and Rail Wheel Clack cannot play at the same time" comment="Range 0-15">
        <decVal max="15"/>
        <label>Bell volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="54" item="Sound Option 7" default="3" tooltip="range 0-50" 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" tooltip="range 0-15" comment="Range 0-15">
        <decVal max="15"/>
        <label>Diesel rumble volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="56" item="Sound Setting 4" default="7" tooltip="range 0-15" comment="Range 0-15">
        <decVal max="15"/>
        <label>Brake squeal volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable item="Sound Setting 5" CV="57" default="12" tooltip="range 0-15 Note: Bell, Dynamic Brake and Rail Wheel Clack cannot play at the same time" comment="Range 0-15">
        <decVal max="15"/>
        <label>Dynamic brake volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable item="Sound Setting 6" CV="58" default="12" tooltip="range 0-15" comment="Range 0-15">
        <decVal max="15"/>
        <label>Air release volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="59" item="Sound Setting 7" default="12" tooltip="range 0-15" comment="Range 0-15">
        <decVal max="15"/>
        <label>Air pump volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="60" item="Sound Setting 8" default="12" tooltip="range 0-15" 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 9" default="12" tooltip="range 0-15" 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 11" default="12" tooltip="range 0-12" comment="Range 0-15">
        <decVal max="15"/>
        <label>Coupling volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="63" item="Sound Setting 12" default="12" tooltip="range 0-15" comment="Range 0-15">
        <decVal max="15"/>
        <label>Random noise volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="64" item="Sound Setting 15" default="12" tooltip="range 0-15 Note: Bell, Dynamic  Brake and Rail Wheel Clack cannot play at the same time. Rail Wheel Clack cannot play while loco is idle." comment="Range 0-15">
        <decVal max="15"/>
        <label>Rail wheel clack</label>
        <comment>Range 0-15</comment>
      </variable>
      <!-- CV 105-106 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
      <variable CV="112" item="Sound Setting 13" default="12" tooltip="range 0-15" comment="Range 0-15">
        <decVal max="15"/>
        <label>Sand dropping volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="116" item="Sound Setting 14" default="12" tooltip="range 0-15" comment="Range 0-15">
        <decVal max="15"/>
        <label>Flange squeal volume</label>
        <comment>Range 0-15</comment>
      </variable>
      <variable CV="113" item="Sound Setting 19" default="20" tooltip="range 0-31" comment="Range 0-31">
        <decVal max="31"/>
        <label>Back EMF Load Control Proportional Gain Kp</label>
        <comment>Range 0-31</comment>
      </variable>
      <variable CV="114" item="Sound Setting 20" default="10" tooltip="range 0-31" comment="Range 0-31">
        <decVal max="31"/>
        <label>Back EMF Load Control Integral Gain Kp</label>
        <comment>Range 0-31</comment>
      </variable>
      <variable item="Sound Option 3" CV="115" default="1" tooltip="Off(0) or On(1)(default)">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Auto Brake squeal</label>
      </variable>
      <variable item="Sound Option 5" CV="122" default="0" tooltip="Auto(0)(default) or Manual(3)">
        <enumVal>
          <enumChoice choice="Auto notch - RPM and notch synchro to speed" value="0">
            <choice>Auto notch - RPM and notch synchro to speed</choice>
          </enumChoice>
          <enumChoice choice="Manual notch - notch up/down with F8/F9" value="3">
            <choice>Manual notch - notch up/down with F8/F9</choice>
          </enumChoice>
        </enumVal>
        <label>Diesel notch mode</label>
      </variable>
      <variable item="Sound Option 6" CV="123" default="0" tooltip="EMD 645E (0 - Default), EMD 645 (1), EMD 710 (2), ALCO 244 (3), ALCO539T (4), or EMD 567(5)">
        <enumVal>
          <enumChoice choice="EMD 645E" value="0">
            <choice>EMD 645E</choice>
          </enumChoice>
          <enumChoice choice="EMD 645" value="1">
            <choice>EMD 645</choice>
          </enumChoice>
          <enumChoice choice="EMD 710" value="2">
            <choice>EMD 710</choice>
          </enumChoice>
          <enumChoice choice="Alco 244" value="3">
            <choice>Alco 244</choice>
          </enumChoice>
          <enumChoice choice="Alco 539T" value="4">
            <choice>Alco 539T</choice>
          </enumChoice>
          <enumChoice choice="EMD 567" value="5">
            <choice>EMD 567</choice>
          </enumChoice>
        </enumVal>
        <label>Prime mover sound</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>
  <pane>
    <column>
      <label>
        <text>MRC 1909 Diesel Sounder Decoder with 6 Prime Mover Sounds</text>
      </label>
      <label>
        <text>Six types of synchronized diesel prime movers, EMD567B/645/645E/710 - ALCO 244/539T</text>
      </label>
      <label>
        <text> </text>
      </label>
      <separator/>
      <label>
        <text> </text>
      </label>
      <display item="Functions Respond to Address"/>
    </column>
    <name>MRC</name>
  </pane>
</decoder-config>
