<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!DOCTYPE decoder-config SYSTEM "../DTD/decoder-config.dtd">

<!-- Copyright (C) JMRI 2006, 2007 All rights reserved -->
<!-- $Id: MRC_sound1634.xml,v 1.1 2008/05/07 05:22:36 billchown Exp $ -->
<!--                                                                        -->
<!-- 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>
		<version author="Bill Chown"
			version="1" lastUpdated="20080503" />
<!-- made from the MRC_1636 file by Rick Beaber -->


<decoder>
	<family name="Sound Decoders" mfg="MRC"
			lowVersionID="32" highVersionID="32">
		<model model="Synch Diesel Sound 1634" numOuts="2" numFns="12"
		            maxTotalCurrent="0.75A" extFnsMRC="yes">
                <size length="70" width="9.2" height="5.8" units="mm" />
                </model>
 	</family>

	<programming direct="yes" paged="yes"
	                     register="yes" ops="yes"></programming>

	<variables>

		<variable label="Primary Address" CV="1" comment="Short address"
						item="Short Address"  default="3">
			<shortAddressVal/></variable>

		<variable label="Start Volts" CV="2" item="Vstart" default="0"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>

		<variable label="Acceleration momentum" CV="3" item="Accel" default="0"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>

		<variable label="Brake momentum" CV="4" item="Decel" default="0"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>
			
		<variable label="Max Voltage" CV="5" item="Vhigh" default="0"
				comment="Range 0-32">
			<decVal max="32"/>
			</variable>

		<variable label="Version ID" CV="7" readOnly="yes"
				item="Decoder Version" default="1">
			<decVal/>
			</variable>

		<variable label="Manufacturer ID" CV="8" readOnly="yes"
				item="Manufacturer" default="143">
			<decVal/>
			</variable>

		<variable label="Long Address" CV="17" item="Extended Address"
		        comment="4 digit address (Range 0001-9999)">
			<longAddressVal/>
			</variable>

		<variable label="Consist Address" CV="19" mask="XVVVVVVV" item="Consist Address">
			<decVal/>
			</variable>

		<variable label="Consist Direction" CV="19" mask="VXXXXXXX">
			<enumVal>
				<enumChoice choice="Normal"></enumChoice>
				<enumChoice choice="Reversed"></enumChoice>
				</enumVal></variable>

        <variable label="Functions Respond To Address" item="Consist Address Active For FL in Forward"
 CV="21" mask="XXXXXXXV">
                <enumVal>
                        <enumChoice choice="Locomotive Address Only"/>
                        <enumChoice choice="Respond to Consist Address"/>
                        </enumVal></variable>

		<variable label="Normal direction of motion" CV="29"
				mask="XXXXXXXV"
		        item="Locomotive Direction">
			<enumVal>
				<enumChoice choice="Forward"/>
				<enumChoice choice="Reverse"/>
				</enumVal>
			</variable>

		<variable label="Speed Steps" CV="29" mask="XXXXXXVX"
				item="Speed Step Mode" default="1">
			<enumVal>
				<enumChoice choice="14"/>
				<enumChoice choice="28/128 (recommended)"/>
				</enumVal>
			</variable>

		<variable label="Analog conversion mode" CV="29"
				mask="XXXXXVXX" default="1"
				item="Analog (DC) Operation">
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="On"/>
				</enumVal>
			</variable>

		<variable label="Use Speed Table" CV="29" mask="XXXVXXXX"
				item="Speed Table Definition">
			<enumVal>
				<enumChoice choice="Don't use Speed Table"/>
				<enumChoice choice="Use Speed Table"/>
				</enumVal>
			</variable>

		<variable label="Addressing Mode" CV="29" mask="XXVXXXXX"
				item="Address Format">
			<enumVal>
				<enumChoice choice="2 digit addressing"/>
				<enumChoice choice="4 digit addressing"/>
				</enumVal>
			</variable>
			

        <variable label="Sound On/Off" CV="49" mask="XXXXXXXV" 
				tooltip="CV49, F12 also sets sound on/off"
                default="1" item="Sound Option 1">
                <enumVal>
                        <enumChoice choice="Off"/>
                        <enumChoice choice="On"/>
                        </enumVal></variable>

		<variable label="Horn Volume" CV="51" item="Sound Setting 1" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>	
			
		<variable label="Bell Volume" CV="53" item="Sound Setting 2" default="3"
 				tooltip="CV53, range 0-3 Note: Bell, Dynamic Brake and Rail Wheel Clack cannot play at the same time,
Bell will override"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Bell Ring Rate" CV="54" item="Sound Group 3 Option 4" default="3"
				comment="Range 0-50">
			<decVal max="50"/>
			</variable>
			
		<variable label="Diesel Rumble Volume" CV="55" item="Sound Setting 4" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Brake Squeal Volume" CV="56" item="Sound Setting 5" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Dynamic Brake Volume" item="Sound Setting 6" CV="57" default="3"
 				tooltip="CV57, range 0-3, Note: Bell, Dynamic Brake and Rail Wheel Clack cannot play at the same time"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Air Release Volume" item="Sound Setting 7" CV="58" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Air Pump Volume" CV="59" item="Sound Setting 8" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Safety Pop Value Volume" CV="60" item="Sound Setting 9" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Engine Cooling Fan Volume" CV="61" item="Sound Setting 10" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Coupling Volume" CV="62" item="Sound Setting 11" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Random Noise Volume" CV="63" item="Sound Setting 12" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Rail wheel clack" CV="64" item="Sound Setting 13" default="3" 
				tooltip="CV64, range 0-3 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-3">
			<decVal max="3"/>
			</variable>
						
		<variable label="User ID #1" CV="105" item="User Id #1" default="0">
			<decVal max="255"/>
			</variable>
			
		<variable label="User ID #2" CV="106" item="User Id #2" default="0">
			<decVal max="255"/>
			</variable>
		
		<variable label="Head Light" CV="112"  mask="XXXVXXXX" default="0" item="Directional Headlights" tooltip="CV112, '16' bit range 0, 16, works with Accessory select"
				comment="Range 0-1">
  			<enumVal>
				<enumChoice choice="Normal On/Off" value="0"/>
				<enumChoice choice="Rule 17" value="1"/>
				</enumVal>
			</variable>

		<variable label="Accessory 1 and 2 Light Effects"  item="Global lighting option 1"  tooltip="CV112 Accessory Lighting type select (with HeadLight select)" CV="112"   mask="XXXXXXVV" default="0">
			<enumVal>
				<enumChoice choice="Ditch Lights" value="0"/>
				<enumChoice choice="Mars Light + Strobe Single Pulse" value="1"/>
				<enumChoice choice="Mars Light + Strobe Double Pulse" value="2"/>
			</enumVal>
			</variable>

		<variable label="Ditch Light Rate, F1" CV="113" item="Global lighting option 2" default="3"  tooltip="CV113, range 0-20"
				comment="Range 0-20">
			<decVal max="3"/>
			</variable>
			
		<variable label="Accessory Light Brightness" CV="114" item="Global lighting option 3" default="3"  tooltip="CV114, range 0-12, Light Brightness"
				comment="Range 0-12">
			<decVal max="3"/>
			</variable>
			
		<variable label="Auto Brake squeal" item="Sound Option 5" CV="115" default="1">
		     <enumVal>
		         <enumChoice choice="Off"/>
		         <enumChoice choice="On"/>
		         </enumVal>
			</variable>

		<variable label="Coupling Sound Type" item="Sound Option 6" CV="116" default="1">
		     <enumVal>
		         <enumChoice choice="Type 1"/>
		         <enumChoice choice="Type 2"/>
		         <enumChoice choice="Off"/>
		         </enumVal>
			</variable>

		<variable label="Lights Enable/Disable" item="Global lighting option 4" CV="117" default="1">
  			<enumVal>
				<enumChoice choice="Disable" value="0"/>
				<enumChoice choice="Enable" value="1"/>
				</enumVal>
			</variable>
			
		<variable label="Coupling Fire Volume" CV="119" item="Sound Setting 16" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
						
		<variable label="Brake Release Volume" CV="120" item="Sound Setting 17" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
						
		<variable label="Random Noise" item="Sound Option 8" CV="121" default="1">
		     <enumVal>
			 <enumChoice choice="Disable" value="0"/>
			 <enumChoice choice="Enable" value="1"/>
		         </enumVal>
			</variable>

		<variable label="Diesel Sound Type" item="Sound Option 7" CV="122" default="1">
		     <enumVal>
		         <enumChoice choice="Off"/>
		         <enumChoice choice="RPM and notch synchro to speed"/>
		         <enumChoice choice="linear RPM synchro to speed"/>
		         <enumChoice choice="notch up/down with F8/F9"/>
		         </enumVal>
			</variable>
		
		<variable label="Select Speed Curve" item="Speed Table Selection" CV="124" default="0">
		     <enumVal>
		         <enumChoice choice="Linear"/>
		         <enumChoice choice="Slow increase at slow speed"/>
		         <enumChoice choice="Fast increase at slow speed"/>
		         </enumVal>
			</variable>
			
</variables>

<resets>
        <factReset label="Reset All CVs" CV="125" default="1"/>
</resets>

</decoder>

<pane name="MRC">
        <column>
                <label label="MRC sound decoders for EMD Modern large diesel locos, item 1634" />
			<label label=" "/>
                <display item="Functions Respond To Address" />
			<label label=" "/>
			<label label="Controls whether this loco's functions respond in the consist," />
 			<label label="or just to this loco's unique address" />
        </column>
</pane>

</decoder-config>



