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

<!-- Copyright (C) JMRI 2005, 2006, 2007 All rights reserved -->
<!-- $Id: MRC_soundbrilliance1630.xml,v 1.2 2009/10/19 04:51:20 jacobsen 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="Peter Ulvestad"
			version="5" lastUpdated="20080502" />
		<version author="Bill Chown"
			version="4" lastUpdated="20080502" />
		<version author="Bob Jacobsen"
			version="3" lastUpdated="20071028" />
		<version author="Walter Thompson"
			version="2" lastUpdated="20060916" />
		<version author="Bob Jacobsen"
			version="1" lastUpdated="20060326" />
<!-- made from the MRC_1627 file by Rick Beaber -->
<!--Updated by Walter Thompson 20060916, Many changes lables and CV  to match Geneis BigBoy -->
<!-- version 3 has updated connector, new 1656 model -->
<!-- version 4 1656 now in separate file -->
<!-- version 5 Moved consist functions to Consist Pane, added some tooltips -->

<decoder>
	<family name="Brilliance Sound Decoders" mfg="MRC"
			lowVersionID="32" highVersionID="32">
		<model model="Synch Steam Sound 1630" numOuts="2" numFns="12" connector="9pin"
		            maxTotalCurrent="1.5A" extFnsMRC="yes">
		            <!-- note only F0 to F12 are NMRA compatible -->
                <size length="48" width="17" height="7.5" units="mm" />
        </model>
	</family>

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

	<variables>

		<variable label="Short Address" CV="1" tooltip="CV1 sets the Short, Primary or 2-digit address [range 1-127]"
						item="Short Address"  default="3">
			<shortAddressVal/></variable>

		<variable label="Start Voltage" CV="2" tooltip="CV2 sets the motor voltage at Speed Step 1 [range 0-32]"
						item="Vstart" default="0">
			<decVal max="32"/>
			</variable>

		<variable label="Acceleration" CV="3" tooltip="CV3 sets the acceleration rate (delay) [range 0-32]"
						item="Accel" default="0">
			<decVal max="32"/>
			</variable>

		<variable label="Deceleration" CV="4" tooltip="CV4 sets the deceleration rate (delay) [range 0-32]"
						item="Decel" default="0">
			<decVal max="32"/>
			</variable>

		<variable label="Top Voltage" CV="5" tooltip="CV5 sets the motor voltage at the top Speed Step [range 0-32]"
						item="Vhigh" default="32">
			<decVal max="32"/>
			</variable>

		<variable label="Version ID" CV="7" readOnly="yes" tooltip="CV7 is the Decoder ID,  Read Only"
						item="Decoder Version">
			<decVal/>
			</variable>

		<variable label="Manufacturer ID" CV="8" readOnly="yes" tooltip="CV8 is the Manufacturer ID, MRC-143, Read Only"
						item="Manufacturer" default="143">
			<decVal/>
			</variable>

		<variable label="Long Address" CV="17" tooltip="CVs17 and 18 set the Extended (4 digit) address, [range 128-9999]"
						item="Extended Address">
			<longAddressVal/>
			</variable>

		<variable label="Advanced Consist Address" CV="19" tooltip="CV19 sets the Advanced Consist address, [range 0-127]"
						mask="XVVVVVVV" 
						item="Consist Address"
						default="0">
			<decVal max="127"/>
			</variable>

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

		<variable label="Consist Function" CV="21" tooltip="CV21 selects the address accessory functions will respond to"
						mask="XXXXXXXV"
						item="Functions Respond To" 
						default="0">
			<enumVal>
				<enumChoice choice="Locomotive Address Only"/>
				<enumChoice choice="Consist Address Only"/>
			</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" 
                default="1" item="Sound Option 1">
                <enumVal>
                        <enumChoice choice="Off"/>
                        <enumChoice choice="On"/>
                        </enumVal></variable>

		<variable label="Whistle Type" CV="50" item="Sound Option 1" default="5"
				comment="Range 0-18">
			<decVal max="18"/>
			</variable>

		<variable label="Whistle Volume" CV="51" item="Sound Setting 1" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
								
		<variable label="Bell Type" CV="52" item="Sound Option 2" default="3"
				comment="Range 0-6">
			<decVal max="6"/>
			</variable>

		<variable label="Bell Volume" CV="53" item="Sound Setting 2" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Bell Ring Rate" CV="54" item="Sound Setting 3" default="3"
				comment="Range 0-50">
			<decVal max="50"/>
			</variable>
			
		<variable label="Chuff type" item="Sound Option 3" CV="55" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>


		<variable label="Chuff volume" CV="56" item="Sound Setting 4" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Brake Squeal Volume" CV="57" item="Sound Setting 5" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Air Release Volume" item="Sound Setting 6" CV="58" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Blower Volume" CV="59" item="Sound Setting 7" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Fire box door volume" CV="60" item="Sound Setting 8" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Injector Volume" CV="61" item="Sound Setting 9" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Coupling Volume" CV="62" item="Sound Setting 10" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Air Pump Volume" CV="63" item="Sound Setting 11" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Rail clack volume" CV="64" item="Sound Setting 12" default="3"
				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="Conductor volume" CV="112" item="Sound Setting 13" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
			
		<variable label="Directional light enable" item="Global lighting option 2" CV="113" default="1">
		     <enumVal>
		         <enumChoice choice="Off"/>
		         <enumChoice choice="On"/>
		         </enumVal>
			</variable>
			
		<variable label="Air pump type" item="Sound Option 5" CV="114" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>

		<variable label="Shoveling volume" CV="118" item="Sound Setting 14" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
						
		<variable label="Coupling Fire Volume" CV="119" item="Sound Setting 15" default="3"
				comment="Range 0-3">
			<decVal max="3"/>
			</variable>
						
		<variable label="Chuff Rate" CV="120" item="Sound Setting 16" default="0"
				comment="Range 0-30">
			<decVal max="30"/>
			</variable>
								
		<variable label="Chuff Start Point" CV="121" item="Sound Setting 17" default="0"
				comment="Range 0-5">
			<decVal max="5"/>
			</variable>
								
		<variable label="Double chuff enable" CV="122" item="Sound Option 6" default="0"
				comment="Range 0-5">
			<decVal max="5"/>
			</variable>
							
		<variable label="Load Control emf" CV="123" item="EMF Static Config" default="1">
		     <enumVal>
		         <enumChoice choice="Off"/>
		         <enumChoice choice="On"/>
		         </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 NOTE: Some DCC systems do not have enough power on the program track for programming"/>
            <label label="sound decoders. If your system is one of these, There are Program Track Boosters available"/>
            <label label="from aftermarket DCC suppliers."/>
            <label label=" "/>
	</column>
</pane>

</decoder-config>




 	  	 
