<?xml version="1.0" encoding="utf-8"?>
<?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_Rapido_TurboTrain.xml,v 1.4 2010/01/28 02:34:22 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="3" lastUpdated="20091115" />
		<version author="Peter Ulvestad" version="2" lastUpdated="20091011" />
		<version author="Ilidio Serra" version="1" lastUpdated="20090825" />
		<!-- made from the MRC_soundbrilliance1636 file by Bob Jacobsen-->
		<!-- Version 2 - Added consist, moved consist functions to consist pane, added locomotive direction
		, removed speed table pane and added CV6 to Basic speed pane, corrected factory reset -->
		<!-- Version 3 - Added tooltips and correct spelling errors -->

	<decoder>
		<family name="Rapido" mfg="MRC" lowVersionID="32" highVersionID="32">
			<model model="TurboTrain" numOuts="0" numFns="26" maxTotalCurrent="0.75A" 
				extFnsMRC="yes" nmraWarrant="no" connector="unspecified" extFnsNmraF13="no" extFnsNmraBSC="no">
				<!-- note only F0 to F12 are NMRA compatible -->
				<size length="0" width="0" height="0" units="mm" />
			</model>
		</family>
		<programming direct="yes" paged="yes" register="yes" ops="yes" />

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

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

			<variable label="Acceleration" CV="3"
					comment="Range 0-32"
					item="Accel"
					default="0"
					tooltip="CV3 sets the acceleration rate [range 0-32]"
					mask="VVVVVVVV">
				<decVal max="32"/>
			</variable>

			<variable label="Deceleration" CV="4"
					item="Decel"
					default="0"
					tooltip="CV4 sets the deceleration rate [range 0-32]"
					comment="Range 0-32"
					mask="VVVVVVVV">
				<decVal max="32"/>
			</variable>

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

			<variable label="Speed Curve Select" CV="6"
					item="Speed Table/Mid Range Cab Speed Step"
					default="0"
					tooltip="CV6 sets Speed Curve">
				<enumVal>
					<enumChoice choice="Linear"/>
					<enumChoice choice="Slow increase at slow speed"/>
					<enumChoice choice="Fast increase at slow speed"/>
				</enumVal>
			</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">
				<decVal/>
			</variable>

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

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

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

			<variable label="Consist Function" CV="21"
					item="Functions Respond To"
					default="0"
					tooltip="CV21 selects the address accessory functions will respond to"
					mask="XXXXXXXV">
				<enumVal>
					<enumChoice choice="Functions respond to Locomotive Address Only"/>
					<enumChoice choice="Functions respond to Consist Address Only"/>
				</enumVal>
			</variable>

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

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

			<variable label="Analog Conversion Mode" CV="29"
					item="Analog (DC) Operation"
					default="0"
					tooltip="Determines if loco motor will respond to DCC only (OFF) or DC and DCC (ON)"
					mask="XXXXXVXX">
				<enumVal>
					<enumChoice choice="Off"/>
					<enumChoice choice="On"/>
				</enumVal>
			</variable>

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

			<variable label="Announcement volume" CV="50"
					item="Sound Setting 1"
					default="3"
					tooltip="Range 0-3"
					mask="VVVVVVVV">
				<decVal max="3" min="0" />
			</variable>

			<variable label="Horn Volume" CV="51"
					item="Sound Setting 2"
					default="3"
					tooltip="Range 0-3"
					mask="VVVVVVVV">
				<decVal max="3" min="0" />
			</variable>

			<variable label="Bell Volume" CV="53"
					item="Sound Setting 3"
					default="3"
					tooltip="Range 0-3"
					mask="VVVVVVVV">
				<decVal max="3" min="0" />
			</variable>

			<variable label="Bell Ring Rate" CV="54"
					item="Sound Option 1"
					default="0"
					tooltip="Range 0-1"
					mask="VVVVVVVV">
				<decVal max="1" min="0" />
			</variable>

			<variable label="Turbine Volume" CV="55"
					item="Sound Setting 4"
					default="2"
					tooltip="Range 0-4 (4=engine sound off)"
					mask="VVVVVVVV">
				<decVal max="4" min="0" />
			</variable>

			<variable label="Brake Squeal Volume" CV="56"
					item="Sound Setting 5"
					default="3"
					tooltip="Range 0-3"
					mask="VVVVVVVV">
				<decVal max="3" min="0" />
			</variable>

			<variable label="Air release volume" CV="57"
					item="Sound Setting 6"
					default="3"
					tooltip="Range 0-3"
					mask="VVVVVVVV">
				<decVal max="3" min="0"/>
			</variable>

			<variable label="Door open/close volume" CV="58"
					item="Sound Setting 7"
					default="3"
					tooltip="Range 0-3"
					mask="VVVVVVVV">
				<decVal max="3" min="0"/>
			</variable>

			<variable label="American/Canadian version" CV="59"
					item="Sound Option 2"
					default="0"
					tooltip="American = 0 / Canadian = 1"
					mask="VVVVVVVV">
				<enumVal>
					<enumChoice choice="American"/>
					<enumChoice choice="Canadian"/>
				</enumVal>
			</variable>

			<variable label="User ID #1" CV="105"
					item="User Id #1"
					default="0"
					tooltip="CV105 sets the User ID #1 [range 0-255]"
					mask="VVVVVVVV">
				<decVal max="255" min="0" />
			</variable>

			<variable label="User ID #2" CV="106"
					item="User Id #2"
					default="0"
					tooltip="CV106 sets the User ID #2 [range 0-255]"
					mask="VVVVVVVV">
				<decVal max="255" min="0" />
			</variable>

		</variables>

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

	</decoder>

	<pane name="MRC" nameFmt="label">
		<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 availlable"/>
			<label label="from aftermarket DCC suppliers."/>
			<label label=" "/>
			<label label="MRC NOTE: The decoders in your Turbo support all program methods, including: register mode,"/>
			<label label="paged mode, CV programming mode, direct mode, and programming on the main (OPS"/>
			<label label="mode programming). Program the Turbo the same way you would program any other"/>
			<label label="NMRA-compatible decoder with your DCC system. Although the sound decoders in the"/>
			<label label="Turbo support “read back on a program track,” there may be some DCC systems that either"/>
			<label label="do not support reading back decoders, or do not have the capability to read back sound"/>
			<label label="decoders."/>
		</column>
	</pane>

</decoder-config>

 	  	 
