<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>

<!-- Copyright (C) JMRI 2001, 2005, 2007, 2-009, 2010 All rights reserved -->
<!-- $Id: Atlas_VO1000.xml,v 1.7 2010/02/15 02:32:33 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
    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 Bender (paul.bender@acm.org)"
			version="1" lastUpdated="20040802" />

                <!-- Version 2 - added factory reset menu items (Paul Bender) -->

<decoder>
	<family name="Atlas N-Scale" mfg="Atlas" 
			lowVersionID="46" highVersionID="46">
		<model model="VO1000 (Part #500099)" numOuts="2" numFns="0"
			lowVersionID="46" highVersionID="46">
		</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="03">
			<shortAddressVal/></variable>

		<variable label="Start Volts" CV="2" item="Vstart" default="10"
				comment="Range 1-15">
			<decVal min="1" max="15" />
			</variable>

		<variable label="Accel" CV="3" default="1"
				comment="Range 1-31">
			<decVal min="1" max="31"/>
			</variable>

		<variable label="Decel" CV="4" default="1"
				comment="Range 1-31">
			<decVal min="1" max="31"/>
			</variable>

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

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

                <variable label="Manufacturer ID - Reset" CV="8"
                        item="Reset"
                        comment="Writing a value of 33 will reset decoder to factory defaults" >
                        <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="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="Addressing Mode" CV="29" mask="XXVXXXXX"
				item="Address Format">
			<enumVal>
				<enumChoice choice="2 digit addressing"/>
				<enumChoice choice="4 digit addressing"/>
				</enumVal>
			</variable>

	<variable label="Brake Momentum on DC" CV="50" 
				item="DC Brake Momentum" mask="XXXXXVXX"
	          	comment="Governs how loco acts in DC track block">
			<enumVal>
				<enumChoice choice="Loco runs under DC analog voltage control"/>
				<enumChoice choice="Loco brakes to a stop using momentum set in CV4"/>
		        </enumVal>
			</variable>

	<!-- Define the fixed Function-Output mapping -->
	</variables>

        <resets>
           <factReset label="Reset All CVs" CV="8" default="33"/>
        </resets>

</decoder>

</decoder-config>


