<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Copyright (C) JMRI 2007 All rights reserved -->
<!-- See the COPYING file for more information on licensing and appropriate use -->
<!-- $Id: MRC_soundbrilliance1663.xml 17977 2011-07-18 17:23:46Z zoo $ -->
<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="Peter Ulvestad" version="3" lastUpdated="20091205"/>
  <version author="Pete Cesaro" version="2" lastUpdated="20090215"/>
  <version author=" " version="1.1" lastUpdated="20080205"/>
<!-- made from the MRC_1630 file by Pete Cesaro -->
<!-- Version 2 - added many tooltips -->
<!-- Version 3 - Corrected consist tab and some default values, modified how CV6 shows -->
  <decoder>
    <family name="Brilliance Sound Decoders" mfg="MRC" lowVersionID="32" highVersionID="32">
      <model model="Synch Diesel Sound 1663 - Atlas S2/S4" numOuts="2" numFns="12" maxTotalCurrent="1.5A" extFnsMRC="yes">
<!-- Functions F0 to F28 are NMRA compatible -->
        <size length="95" width="14" height="9" units="mm"/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <variables>
      <variable label="Primary Address" CV="1" item="Short Address" default="3" tooltip="CV1 sets the Short or 2-digit address, range 1-127" comment="Short address">
        <shortAddressVal/>
        <label>Primary Address</label>
        <comment>Short address</comment>
      </variable>
      <variable label="Start Voltage" CV="2" item="Vstart" default="0" tooltip="CV2 sets the motor voltage at Speed Step 1, range 0-32" comment="Range 0-32">
        <decVal max="32"/>
        <label>Start Voltage</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Acceleration" CV="3" item="Accel" default="0" tooltip="CV3 sets the acceleration rate (delay), range 0-32" comment="Range 0-32">
        <decVal max="32"/>
        <label>Acceleration</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Deceleration" CV="4" item="Decel" default="0" tooltip="CV4 sets the deceleration rate (delay), range 0-32" comment="Range 0-32">
        <decVal max="32"/>
        <label>Deceleration</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Top Voltage" CV="5" item="Vhigh" default="32" tooltip="CV5 sets the motor voltage at top Speed Step, range 0-32" comment="Range 0-32">
        <decVal max="32"/>
        <label>Top Voltage</label>
        <comment>Range 0-32</comment>
      </variable>
      <variable label="Speed Curve Select" CV="6" item="Speed Table/Mid Range Cab Speed Step" tooltip="CV6 sets Speed Curve">
        <enumVal>
          <enumChoice choice="Linear">
            <choice>Linear</choice>
          </enumChoice>
          <enumChoice choice="Slow increase at slow speed">
            <choice>Slow increase at slow speed</choice>
          </enumChoice>
          <enumChoice choice="Fast increase at slow speed">
            <choice>Fast increase at slow speed</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Curve Select</label>
      </variable>
      <variable label="Manufacturer version number" CV="7" item="Decoder Version" readOnly="yes" tooltip="CV7 is the decoder software version, Read Only">
        <decVal/>
        <label>Manufacturer version number</label>
      </variable>
      <variable label="Manufacturer ID" CV="8" item="Manufacturer" readOnly="yes" tooltip="CV8=143 for MRC, Read Only">
        <decVal/>
        <label>Manufacturer ID</label>
      </variable>
      <variable label="Long Address" CV="17" item="Extended Address" tooltip="Sets the Extended (4 digit) address, range 1-9999, mapped to CV17 and 18" comment="4 digit address (Range 0001-9999)">
        <longAddressVal/>
        <label>Long Address</label>
        <comment>4 digit address (Range 0001-9999)</comment>
      </variable>
      <variable label="Advanced Consist Address" CV="19" item="Consist Address" mask="XVVVVVVV" default="0" tooltip="CV19 sets the Advanced Consist address, [range 0-127]">
        <decVal max="127"/>
        <label>Advanced Consist Address</label>
      </variable>
      <variable label="Locomotive Direction In Consist" CV="19" item="Consist Direction" mask="VXXXXXXX">
        <enumVal>
          <enumChoice choice="Normal">
            <choice>Normal</choice>
          </enumChoice>
          <enumChoice choice="Reversed">
            <choice>Reversed</choice>
          </enumChoice>
        </enumVal>
        <label>Locomotive Direction In Consist</label>
      </variable>
      <variable label="Consist Function" CV="21" item="Functions Respond To" mask="XXXXXXXV" default="0" tooltip="CV21 selects the address accessory functions will respond to">
        <enumVal>
          <enumChoice choice="Locomotive Address Only">
            <choice>Locomotive Address Only</choice>
          </enumChoice>
          <enumChoice choice="Consist Address Only">
            <choice>Consist Address Only</choice>
          </enumChoice>
        </enumVal>
        <label>Consist Function</label>
      </variable>
      <variable label="Normal direction of motion" CV="29" item="Locomotive Direction" mask="XXXXXXXV" tooltip="CV29, '1' (least significant) bit, Forward(0)(default) or Reverse(1)">
        <enumVal>
          <enumChoice choice="Forward">
            <choice>Forward</choice>
          </enumChoice>
          <enumChoice choice="Reverse">
            <choice>Reverse</choice>
          </enumChoice>
        </enumVal>
        <label>Normal direction of motion</label>
      </variable>
      <variable label="Speed Steps" CV="29" mask="XXXXXXVX" item="Speed Step Mode" default="1" tooltip="CV29, '2' bit. Sets the Speed Step for motor, also affects some light settings">
        <enumVal>
          <enumChoice choice="14">
            <choice>14</choice>
          </enumChoice>
          <enumChoice choice="28/128 (recommended)">
            <choice>28/128 (recommended)</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Steps</label>
      </variable>
      <variable label="Analog conversion mode" CV="29" item="Analog (DC) Operation" mask="XXXXXVXX" default="0" tooltip="CV29, '4' bit. Allows the loco to run on DC, default is Off">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Analog conversion mode</label>
      </variable>
      <variable label="Addressing Mode" CV="29" mask="XXVXXXXX" item="Address Format" tooltip="CV29, '32' bit, Sets 2 digit or 4 digit address">
        <enumVal>
          <enumChoice choice="2 digit addressing">
            <choice>2 digit addressing</choice>
          </enumChoice>
          <enumChoice choice="4 digit addressing">
            <choice>4 digit addressing</choice>
          </enumChoice>
        </enumVal>
        <label>Addressing Mode</label>
      </variable>
      <variable label="Horn Type" CV="50" item="Sound Option 1" default="4" tooltip="CV50, range 0-16">
        <decVal max="16"/>
        <label>Horn Type</label>
      </variable>
      <variable label="Horn Volume" CV="51" item="Sound Setting 1" default="3" tooltip="CV51, range 0-3">
        <decVal max="3"/>
        <label>Horn Volume</label>
      </variable>
      <variable label="Bell Type" CV="52" item="Sound Option 2" default="3" tooltip="CV52, range 0-6">
        <decVal max="6"/>
        <label>Bell Type</label>
      </variable>
      <variable label="Bell Volume" CV="53" item="Sound Setting 2" default="3" tooltip="CV53, range 0-7">
        <decVal max="7"/>
        <label>Bell Volume</label>
      </variable>
      <variable label="Bell Ring Rate" CV="54" item="Sound Setting 3" default="3" tooltip="CV54, range 0-50">
        <decVal max="50"/>
        <label>Bell Ring Rate</label>
      </variable>
      <variable label="Diesel rumble volume" CV="55" item="Sound Setting 4" default="3" tooltip="CV55, range 0-3">
        <decVal max="3"/>
        <label>Diesel rumble volume</label>
      </variable>
      <variable label="Brake squeal volume" CV="56" item="Sound Setting 5" default="3" tooltip="CV56, range 0-3">
        <decVal max="3"/>
        <label>Brake squeal volume</label>
      </variable>
      <variable label="Dynamic brake volume" CV="57" item="Sound Setting 11" default="3" tooltip="CV57, range 0-3">
        <decVal max="3"/>
        <label>Dynamic brake volume</label>
      </variable>
      <variable label="Air Release Volume" CV="58" item="Sound Setting 12" default="3" tooltip="CV58, range 0-3">
        <decVal max="3"/>
        <label>Air Release Volume</label>
      </variable>
      <variable label="Air Pump Volume" CV="59" item="Sound Setting 13" default="3" tooltip="CV59, range 0-3" comment="Range 0-3">
        <decVal max="3"/>
        <label>Air Pump Volume</label>
        <comment>Range 0-3</comment>
      </variable>
      <variable label="Safety pop valve volume" CV="60" item="Sound Setting 14" default="3" tooltip="CV60, range 0-3">
        <decVal max="3"/>
        <label>Safety pop valve volume</label>
      </variable>
      <variable label="Engine Cooling Fan Volume" CV="61" item="Sound Setting 15" default="3" tooltip="CV61, range 0-3">
        <decVal max="3"/>
        <label>Engine Cooling Fan Volume</label>
      </variable>
      <variable label="Coupling Volume" CV="62" item="Sound Setting 21" default="3" tooltip="CV62, range 0-3">
        <decVal max="3"/>
        <label>Coupling Volume</label>
      </variable>
      <variable label="Random noise Volume" CV="63" item="Sound Setting 22" default="3" tooltip="CV63, range 0-3">
        <decVal max="3"/>
        <label>Random noise Volume</label>
      </variable>
      <variable label="Rail clack volume" CV="64" item="Sound Setting 23" default="3" tooltip="CV64, range 0-3">
        <decVal max="3"/>
        <label>Rail clack volume</label>
      </variable>
      <variable label="User ID #1" CV="105" item="User Id #1" default="0" tooltip="CV105, range 0-255">
        <decVal max="255"/>
        <label>User ID #1</label>
      </variable>
      <variable label="User ID #2" CV="106" item="User Id #2" default="0" tooltip="CV106, range 0-255">
        <decVal max="255"/>
        <label>User ID #2</label>
      </variable>
      <variable label="Coupling fire volume" CV="113" item="Sound Setting 24" default="3" tooltip="CV113, range 0-3">
        <decVal max="3"/>
        <label>Coupling fire volume</label>
      </variable>
      <variable label="Brake Release volume" CV="114" item="Sound Setting 25" default="3" tooltip="CV114, range 0-3">
        <decVal max="3"/>
        <label>Brake Release volume</label>
      </variable>
      <variable label="Auto Brake squeal" item="Sound Option 3" CV="115" default="1" tooltip="CV115, Off(0) or On(1)(default)">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Auto Brake squeal</label>
      </variable>
      <variable label="Coupling Sound Type" item="Sound Option 4" CV="116" default="1" tooltip="CV116, Off(0) or Type1(1)(default) or Type2(2)">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="Type 1">
            <choice>Type 1</choice>
          </enumChoice>
          <enumChoice choice="Type 2">
            <choice>Type 2</choice>
          </enumChoice>
        </enumVal>
        <label>Coupling Sound Type</label>
      </variable>
      <variable label="Diesel notch mode" item="Sound Option 5" CV="122" default="0" tooltip="CV122, Auto(1)(default) or Manual(3)">
        <enumVal>
          <enumChoice choice="Auto notch - RPM and notch synchro to speed" value="0">
            <choice>Auto notch - RPM and notch synchro to speed</choice>
          </enumChoice>
          <enumChoice choice="Manual notch - notch down/up with F8/F9" value="3">
            <choice>Manual notch - notch down/up with F8/F9</choice>
          </enumChoice>
        </enumVal>
        <label>Diesel notch mode</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="125" default="1"/>
    </resets>
  </decoder>
</decoder-config>

