<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2005, 2006, 2007, 2008, 2009 All rights reserved    -->
<!-- $Id: MRC_dieselsound1829.xml 17977 2011-07-18 17:23:46Z zoo $ -->
<!--                                                                        -->
<!-- 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="Paul Fraker" version="1.2" lastUpdated="20090921"/>
  <version author="Peter Ulvestad" version="1.1" lastUpdated="200900904"/>
  <version author="Paul Fraker" version="1.0" lastUpdated="20090731"/>
<!-- used MRC_soundbrilliance1638 file as a starting point-->
<!-- Version 1.1 Added speed table, corrected CV6-->
<!-- Version 1.2 Added CV118 & CV119 parameters -->
  <decoder>
    <family name="Sound Decoders" mfg="MRC" lowVersionID="29" highVersionID="29">
      <model model="Synch Diesel Sound 1829" numOuts="4" numFns="28" maxTotalCurrent="1.5A" extFnsMRC="yes">
        <size length="73.0" width="17.8" height="7.7" units="mm"/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <variables>
      <variable label="Short Address" CV="1" item="Short Address" default="3" tooltip="CV01, Short Address" comment="Short address">
        <shortAddressVal/>
        <label>Short Address</label>
        <comment>Short address</comment>
      </variable>
      <variable label="Acceleration" CV="3" item="Accel" default="0" tooltip="CV03, Acceleration" comment="Range 0-32">
        <decVal max="32"/>
        <label>Acceleration</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Deceleration" CV="4" item="Decel" default="0" tooltip="CV04, Deceleration" comment="Range 0-32">
        <decVal max="32"/>
        <label>Deceleration</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Start Voltage" CV="2" item="Vstart" default="12" tooltip="CV02, Start Voltage" comment="Range 0-32">
        <decVal max="32"/>
        <label>Start Voltage</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Top Voltage" CV="5" item="Vhigh" default="32" tooltip="CV05, Maximum Voltage" comment="Range 0-32">
        <decVal max="32"/>
        <label>Top Voltage</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Kick Start" CV="65" item="Kick Start" default="63" tooltip="CV65, Kick Start Voltage" comment="Range 0-63">
        <decVal max="63"/>
        <label>Kick Start</label>
        <comment>Range 0-63</comment>
      </variable>
      <variable label="Back EMF Load Control on/off" CV="124" item="EMF Option 1" default="0" tooltip="CV124, Back EMF Load Control, on/off, 1=on">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Back EMF Load Control on/off</label>
      </variable>
<!-- Version 1.1 Modified CV6-->
      <variable label="Speed Curve Select" CV="6" item="Speed Table/Mid Range Cab Speed Step" tooltip="CV6 sets Speed Curve when using CVs 2 and 5 (Set CV2 and CV5 first)">
        <enumVal>
          <enumChoice choice="Linear">
            <choice>Linear</choice>
          </enumChoice>
          <enumChoice choice="Slow increase at slow speed">
            <choice>Slow increase at slow speed</choice>
          </enumChoice>
          <enumChoice choice="Fast increase at slow speed">
            <choice>Fast increase at slow speed</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Curve Select</label>
      </variable>
      <variable label="Version ID" CV="7" readOnly="yes" item="Decoder Version" default="29" tooltip="CV07, Decoder Version">
        <decVal/>
        <label>Version ID</label>
      </variable>
      <variable label="Manufacturer ID" CV="8" readOnly="yes" item="Manufacturer" default="143" tooltip="CV08, Manufacture">
        <decVal/>
        <label>Manufacturer ID</label>
      </variable>
      <variable label="Long Address" CV="17" item="Extended Address" tooltip="CV17, Extended Address" comment="4 digit address (Range 0001-9999)">
        <longAddressVal/>
        <label>Long Address</label>
        <comment>4 digit address (Range 0001-9999)</comment>
      </variable>
      <variable label="Consist Address" CV="19" mask="XVVVVVVV" item="Consist Address" tooltip="CV19, Bits 0-6, Consist Address">
        <decVal/>
        <label>Consist Address</label>
      </variable>
      <variable label="Consist Direction" CV="19" mask="VXXXXXXX" tooltip="CV19, Bit 7, Consist Direction">
        <enumVal>
          <enumChoice choice="Normal">
            <choice>Normal</choice>
          </enumChoice>
          <enumChoice choice="Reversed">
            <choice>Reversed</choice>
          </enumChoice>
        </enumVal>
        <label>Consist Direction</label>
      </variable>
      <variable label="Functions Respond To Address" CV="21" mask="XXXXXXXV" item="Consist Address Active For FL in Forward" tooltip="CV21, Bit 0, Functions Respond To Address">
        <enumVal>
          <enumChoice choice="Locomotive Address Only">
            <choice>Locomotive Address Only</choice>
          </enumChoice>
          <enumChoice choice="Respond to Consist Address">
            <choice>Respond to Consist Address</choice>
          </enumChoice>
        </enumVal>
        <label>Functions Respond To Address</label>
      </variable>
      <variable label="Normal direction of motion" CV="29" mask="XXXXXXXV" item="Locomotive Direction" tooltip="CV29, Bit 0, Normal Direction of motion">
        <enumVal>
          <enumChoice choice="Forward">
            <choice>Forward</choice>
          </enumChoice>
          <enumChoice choice="Reverse">
            <choice>Reverse</choice>
          </enumChoice>
        </enumVal>
        <label>Normal direction of motion</label>
      </variable>
      <variable label="Speed Steps" CV="29" mask="XXXXXXVX" item="Speed Step Mode" default="1" tooltip="CV29, Bit 1, Speed Steps">
        <enumVal>
          <enumChoice choice="14">
            <choice>14</choice>
          </enumChoice>
          <enumChoice choice="28/128 (recommended)">
            <choice>28/128 (recommended)</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Steps</label>
      </variable>
      <variable label="Analog conversion mode" CV="29" mask="XXXXXVXX" default="0" item="Analog (DC) Operation" tooltip="CV29, Bit 2, Analog conversion mode">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Analog conversion mode</label>
      </variable>
      <variable label="Use Speed Table" CV="29" mask="XXXVXXXX" item="Speed Table Definition" tooltip="CV29, Bit 4, Use speed table">
        <enumVal>
          <enumChoice choice="Don't use Speed Table">
            <choice>Don't use Speed Table</choice>
          </enumChoice>
          <enumChoice choice="Use Speed Table">
            <choice>Use Speed Table</choice>
          </enumChoice>
        </enumVal>
        <label>Use Speed Table</label>
      </variable>
      <variable label="Addressing Mode" CV="29" mask="XXVXXXXX" item="Address Format" tooltip="CV29, Bit 5, Addressing Mode">
        <enumVal>
          <enumChoice choice="2 digit addressing">
            <choice>2 digit addressing</choice>
          </enumChoice>
          <enumChoice choice="4 digit addressing">
            <choice>4 digit addressing</choice>
          </enumChoice>
        </enumVal>
        <label>Addressing Mode</label>
      </variable>
      <variable label="Sound On/Off" CV="49" item="Sound Option 1" default="1" tooltip="CV49, Bit 0, Sound on or off (except horn)">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Sound On/Off</label>
      </variable>
      <variable label="Horn Type" CV="50" item="Sound Option 2" default="17" tooltip="CV50, range 0-33, F19 also selects horn type" comment="Range 0-33">
        <decVal max="14"/>
        <label>Horn Type</label>
        <comment>Range 0-33</comment>
      </variable>
      <variable label="Bell Type" CV="52" item="Sound Option 3" default="2" tooltip="CV52, Bell Type, Range 0-7" comment="Range 0-7">
        <decVal max="7"/>
        <label>Bell Type</label>
        <comment>Range 0-7</comment>
      </variable>
<!-- Version 1.1 Added speed table-->
      <variable label="Speed Table" CV="67">
        <speedTableVal/>
        <label>Speed Table</label>
      </variable>
      <variable label="Auto Brake Squeal" CV="115" item="Sound Option 4" default="1" tooltip="CV115, Auto Brake Squeal, range 0-1, 1=enable">
        <enumVal>
          <enumChoice choice="Disable">
            <choice>Disable</choice>
          </enumChoice>
          <enumChoice choice="Enable">
            <choice>Enable</choice>
          </enumChoice>
        </enumVal>
        <label>Auto Brake Squeal</label>
      </variable>
      <variable label="Prime Mover" CV="123" item="Sound Option 5" default="3" tooltip="CV123, Prime Mover, range 0-4, 4=off">
        <enumVal>
          <enumChoice choice="SD60">
            <choice>SD60</choice>
          </enumChoice>
          <enumChoice choice="F Unit">
            <choice>F Unit</choice>
          </enumChoice>
          <enumChoice choice="Alco">
            <choice>Alco</choice>
          </enumChoice>
          <enumChoice choice="SD70">
            <choice>SD70</choice>
          </enumChoice>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
        </enumVal>
        <label>Prime Mover</label>
      </variable>
      <variable label="Notch Mode" CV="122" item="Sound Option 6" default="0" tooltip="CV122, Notch Mode, range 0-3, 0=auto">
        <enumVal>
          <enumChoice choice="Auto">
            <choice>Auto</choice>
          </enumChoice>
          <enumChoice choice="n/a">
            <choice>n/a</choice>
          </enumChoice>
          <enumChoice choice="n/a">
            <choice>n/a</choice>
          </enumChoice>
          <enumChoice choice="Manual">
            <choice>Manual</choice>
          </enumChoice>
        </enumVal>
        <label>Notch Mode</label>
      </variable>
<!-- Version 1.2 Changed "Sound Group 3 Option 3" to "Sound Setting 15" -->
      <variable label="Bell Ring Rate" CV="54" item="Sound Setting 15" default="3" tooltip="CV54, Bell Ring Rate, Range 0-50, lower is faster" comment="Range 0-50">
        <decVal max="50"/>
        <label>Bell Ring Rate</label>
        <comment>Range 0-50</comment>
      </variable>
      <variable label="Horn Volume" CV="51" item="Sound Setting 1" default="3" tooltip="CV51, Horn Volume, Range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Horn Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Bell Volume" CV="53" item="Sound Setting 2" default="3" tooltip="CV53, Bell Volume, Range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Bell Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Diesel Rumble Volume" CV="55" item="Sound Setting 3" default="3" tooltip="CV55, Diesel Rumble Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Diesel Rumble Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Brake Squeal Volume" CV="56" item="Sound Setting 4" default="3" tooltip="CV56, Brake Squeal Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Brake Squeal Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Dynamic Brake Volume" CV="57" item="Sound Setting 5" default="3" tooltip="CV57, Dynamic Brake Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Dynamic Brake Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Air Release Volume" CV="58" item="Sound Setting 6" default="3" tooltip="CV58, Air Release Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Air Release Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Air Pump Volume" CV="59" item="Sound Setting 7" default="3" tooltip="CV59, Air Pump Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Air Pump Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Safety Pop Valve Volume" CV="60" item="Sound Setting 8" default="3" tooltip="CV60, Safety Pop Valve Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Safety Pop Valve Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Engine Cooling Fan Volume" CV="61" item="Sound Setting 9" default="3" tooltip="CV61, Engine Cooling Fan Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Engine Cooling Fan Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Coupling Volume" CV="62" item="Sound Setting 10" default="3" tooltip="CV62, Coupling Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Coupling Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Rail Wheel Clack Volume" CV="64" item="Sound Setting 12" default="3" tooltip="CV64, Rail Wheel Clack Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Rail Wheel Clack Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Coupling Fire Volume" CV="113" item="Sound Setting 13" default="3" tooltip="CV113, Coupling Fire Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Coupling Fire Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Brake Release Volume" CV="114" item="Sound Setting 14" default="0" tooltip="CV114, Brake Release Volume, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Brake Release Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Auto Ditch Lights Flash With Horn" CV="63" item="Global lighting option 1" default="1" tooltip="CV63, Ditch lights will automatically flash with horn">
        <enumVal>
          <enumChoice choice="Disable">
            <choice>Disable</choice>
          </enumChoice>
          <enumChoice choice="Enable">
            <choice>Enable</choice>
          </enumChoice>
        </enumVal>
        <label>Auto Ditch Lights Flash With Horn</label>
      </variable>
      <variable label="Light Mode" CV="117" item="Global lighting option 2" default="0" tooltip="CV117, Light Mode">
        <enumVal>
          <enumChoice choice="Normal Headlight">
            <choice>Normal Headlight</choice>
          </enumChoice>
          <enumChoice choice="Off, Dim, Bright Cycle">
            <choice>Off, Dim, Bright Cycle</choice>
          </enumChoice>
          <enumChoice choice="Rule 17">
            <choice>Rule 17</choice>
          </enumChoice>
        </enumVal>
        <label>Light Mode</label>
      </variable>
      <variable label="Ditch Lights" CV="121" item="Global lighting option 3" default="0" tooltip="CV121, Ditch Lights Flash (=1) or Stay On (=0)">
        <enumVal>
          <enumChoice choice="Stay On">
            <choice>Stay On</choice>
          </enumChoice>
          <enumChoice choice="Flash">
            <choice>Flash</choice>
          </enumChoice>
        </enumVal>
        <label>Ditch Lights</label>
      </variable>
<!-- Version 1.2  Added CV118 -->
      <variable label="ACC#1 Light Effect" CV="118" item="Global lighting option 4" default="0" tooltip="CV118, Lighting effects for ACC #1">
        <enumVal>
          <enumChoice choice="Ditch Light">
            <choice>Ditch Light</choice>
          </enumChoice>
          <enumChoice choice="Gyra Light">
            <choice>Gyra Light</choice>
          </enumChoice>
          <enumChoice choice="Mars Light">
            <choice>Mars Light</choice>
          </enumChoice>
          <enumChoice choice="Prime Strato Light">
            <choice>Prime Strato Light</choice>
          </enumChoice>
          <enumChoice choice="Single Strobe Light">
            <choice>Single Strobe Light</choice>
          </enumChoice>
          <enumChoice choice="Double Strobe Light">
            <choice>Double Strobe Light</choice>
          </enumChoice>
          <enumChoice choice="on/off">
            <choice>on/off</choice>
          </enumChoice>
        </enumVal>
        <label>ACC#1 Light Effect</label>
      </variable>
<!-- Version 1.2  Added CV119 -->
      <variable label="ACC#2 Light Effect" CV="119" item="Global lighting option 5" default="0" tooltip="CV119, Lighting effects for ACC #2">
        <enumVal>
          <enumChoice choice="Ditch Light">
            <choice>Ditch Light</choice>
          </enumChoice>
          <enumChoice choice="Gyra Light">
            <choice>Gyra Light</choice>
          </enumChoice>
          <enumChoice choice="Mars Light">
            <choice>Mars Light</choice>
          </enumChoice>
          <enumChoice choice="Prime Strato Light">
            <choice>Prime Strato Light</choice>
          </enumChoice>
          <enumChoice choice="Single Strobe Light">
            <choice>Single Strobe Light</choice>
          </enumChoice>
          <enumChoice choice="Double Strobe Light">
            <choice>Double Strobe Light</choice>
          </enumChoice>
          <enumChoice choice="on/off">
            <choice>on/off</choice>
          </enumChoice>
        </enumVal>
        <label>ACC#2 Light Effect</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs To Factory Specs" CV="125" default="1"/>
    </resets>
  </decoder>
</decoder-config>

