<?xml version="1.0" encoding="windows-1252"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!DOCTYPE decoder-config SYSTEM "../DTD/decoder-config.dtd">
<!-- Copyright (C) JMRI 2005, 2006, 2007, 2008 All rights reserved          -->
<!-- $Id: MRC_AthearnGenesisSD45-2.xml,v 1.3 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="Paul Fraker" version="1.1" lastUpdated="20090920" />
	<version author="Paul Fraker" version="1.0" lastUpdated="20090221" />
   <!-- Version 1.1 Corrected a couple CVs and typo errors -->
  <decoder>
	<family name="Athearn" mfg="MRC" lowVersionID="32" highVersionID="32">
		<model model="Athearn Genesis SD45-2" numOuts="2" numFns="28" maxTotalCurrent="1.5A" extFnsMRC="yes">
		</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, range 1-127">
			<shortAddressVal/>
		</variable>
		<variable label="Start Voltage" CV="2" item="Vstart" default="0" tooltip="CV02, Start Voltage" comment="Range 0-32">
			<decVal max="32"/>
		</variable>
		<variable label="Acceleration momentum" CV="3" item="Accel" default="0"	tooltip="CV03, Acceleration" comment="Range 0-32">
			<decVal max="32"/>
		</variable>
		<variable label="Deceleration momentum" CV="4" item="Decel" default="0" tooltip="CV04, Deceleration" comment="Range 0-32">
			<decVal max="32"/>
		</variable>
		<variable label="Top Voltage" CV="5" item="Vhigh" default="32" tooltip="CV05, Maximum Voltage" comment="Range 0-32">
			<decVal max="32"/>
		</variable>
		<variable label="Speed Curve Select" CV="6" item="Speed Table Selection" default="0" tooltip="CV6, Speed Curve Select">
		     <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" item="Decoder Version" default="32" tooltip="CV07, Decoder Version">
			<decVal/>
		</variable>
		<variable label="Manufacturer ID" CV="8" readOnly="yes"	item="Manufacturer" default="143" tooltip="CV08, Manufacture">
			<decVal/>
		</variable>
		<variable label="Long Address" CV="17" item="Extended Address" tooltip="CV17, Extended Address" comment="4 digit address (Range 0001-9999)">
			<longAddressVal/>
		</variable>
		<variable label="Consist Address" CV="19" mask="XVVVVVVV" item="Consist Address" tooltip="CV19, Bits 0-6, Consist Address">
			<decVal/>
		</variable>
		<variable label="Functions Respond To Address" CV="21" mask="XXXXXXXV" item="Consist Function" tooltip="CV21, Bit 0, Functions Respond To Address">
			<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" tooltip="CV29, Bit 0, Normal Direction of motion">
			<enumVal>
				<enumChoice choice="Forward"/>
				<enumChoice choice="Reverse"/>
			</enumVal>
		</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"/>
				<enumChoice choice="28/128 (recommended)"/>
			</enumVal>
		</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"/>
				<enumChoice choice="On"/>
			</enumVal>
		</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"/>
				<enumChoice choice="Use Speed Table"/>
			</enumVal>
		</variable>
		<variable label="Addressing Mode" CV="29" mask="XXVXXXXX" item="Address Format" tooltip="CV29, Bit 5, Addressing Mode">
			<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" tooltip="CV49, Bit 0, Sound on or off">
			<enumVal>
				<enumChoice choice="Off"/>
                <enumChoice choice="On"/>
			</enumVal>
		</variable>
		<variable label="Horn Type" CV="50" item="Sound Option 2" default="4" tooltip="CV50, range 0-15, F19 also selects horn type" comment="Range 0-15">
			<decVal max="15"/>
		</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"/>
		</variable>
		<variable label="Bell Type" CV="52" item="Sound Option 3" default="3" tooltip="CV52, Bell Type, Range 0-6" comment="Range 0-6">
			<decVal max="6"/>
		</variable>
		<variable label="Bell Volume" CV="53" item="Sound Setting 2" default="3" tooltip="CV53, Bell Volume, Range 0-7" comment="Range 0-7">
			<decVal max="7"/>
		</variable>
		<variable label="Bell Ring Rate" CV="54" item="Sound Setting 14" default="3" tooltip="CV54, Bell Ring Rate, Range 0-50, lower is faster" comment="Range 0-50">
			<decVal max="50"/>
		</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"/>
		</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"/>
		</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"/>
		</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"/>
		</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"/>
		</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"/>
		</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"/>
		</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"/>
		</variable>
		<variable label="Random Noise Volume" CV="63" item="Sound Setting 11" default="3" tooltip="CV63, Random Noise Volume, range 0-3" comment="Range 0-3">
			<decVal max="3"/>
		</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"/>
		</variable>
		<variable label="User ID #1" CV="105" item="User Id #1" default="0" tooltip="CV105, User Identification Field #1">
			<decVal max="255"/>
		</variable>
		<variable label="User ID #2" CV="106" item="User Id #2" default="0" tooltip="CV106, User Identification Field #2">
			<decVal max="255"/>
		</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"/>
		</variable>
		<variable label="Auto Brake Squeal" CV="115" item="Sound Option 5" default="1" tooltip="CV115, Auto Brake Squeal, range 0-1, 1=enable">
			<enumVal>
				<enumChoice choice="Disable"/>
                <enumChoice choice="Enable"/>
			</enumVal>
		</variable>
		<variable label="Coupling Sound Type" CV="116" item="Sound Option 6" default="1" tooltip="CV116, Coupling Sound Type, range 0-2, 0=off">
			<enumVal>
				<enumChoice choice="Off"/>
				<enumChoice choice="Type 1"/>
				<enumChoice choice="Type 2"/>
			</enumVal>
		</variable>
		<variable label="Lighting Mode For Consist" CV="117" item="Consist Function Mode" default="0" tooltip="CV117, Lighting mode for consists, 0=mode 1">
			<enumVal>
				<enumChoice choice="Mode 1, All lights controllable"/>
				<enumChoice choice="Mode 2, No rear light"/>
				<enumChoice choice="Mode 3, No lights at all"/>
				<enumChoice choice="Mode 4, No front lights including ditch, gyra, strobe"/>
			</enumVal>
		</variable>
		<variable label="Diesel Notch Mode" CV="122" item="Sound Option 7" default="1" tooltip="CV122, Diesel Notch Mode, range 0-3">
			<enumVal>
				<enumChoice choice="Auto Notch"/>
				<enumChoice choice="RPM and Notch Synchro to Speed"/>
				<enumChoice choice="Linear notch - RPM synchro to speed"/>
				<enumChoice choice="Manual Notch (use F8/F9 to control"/>
			</enumVal>
		</variable>
	</variables>

	<resets>
		<factReset label="Reset All CVs To Factory Specs" CV="125" default="1"/>
	</resets>
  </decoder>

</decoder-config>
 	  	 
