<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2010 All rights reserved -->
<!--                                                                        -->
<!-- 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-4-15-2.xsd">
  <version author="Michael Mosher" version="1" lastUpdated="20180124"/>
  <!-- new file, based on Wow diesel sound set 4 -->
  <version author="Michael Mosher" version="2" lastUpdated="20180727"/>
  <!-- add read me pane -->
  <version author="Konrad Malkowski" version="3" lastUpdated="20230305"/>
  <!-- Remove individual volume panes -->
  <decoder>
    <family name="WOW Electric Sound Set 1 Bachmann" mfg="Train Control Systems" >
      <model model="ACS64" numOuts="8" numFns="14" maxMotorCurrent="1.3A (peak=2A)"
        lowVersionID="1" highVersionID="1" productID="220">
        <output name="1" label="White" connection="wire" maxcurrent="100 mA"/>
        <output name="2" label="Yellow" connection="wire" maxcurrent="100 mA"/>
        <output name="3" label="Green" connection="wire" maxcurrent="100 mA"/>
        <output name="4" label="Purple" connection="wire" maxcurrent="100 mA"/>
        <output name="5" label="Brown" connection="wire" maxcurrent="100 mA"/>
        <output name="6" label="Pink" connection="wire" maxcurrent="100 mA"/>
        <output name="7" label="Pnk/Pur" connection="wire" maxcurrent="100 mA"/>
        <output name="8" label="Grn/Brn" connection="wire" maxcurrent="100 mA"/>
        <output name="Dim"/>
        <output name="Ditch"/>
        <output name="Motor"/>
        <output name="Brake"/>
      </model>
      <functionlabels>
        <functionlabel num="0" lockable="true">Headlight</functionlabel>
        <functionlabel num="1" lockable="true">Bell</functionlabel>
        <functionlabel num="2" lockable="false">Horn Long</functionlabel>
        <functionlabel num="3" lockable="true">Horn Short</functionlabel>
        <functionlabel num="4" lockable="true">Whoosh</functionlabel>
        <functionlabel num="5" lockable="true">Ditch Lights Blink</functionlabel>
        <functionlabel num="6" lockable="true">Engine on/off</functionlabel>
        <functionlabel num="7" lockable="true">Dim</functionlabel>
        <functionlabel num="8" lockable="true">Mute</functionlabel>
        <functionlabel num="10" lockable="true">Cooling Fan</functionlabel>
        <functionlabel num="11" lockable="true">Catenary</functionlabel>
        <functionlabel num="12" lockable="true">Coupler Clank Closed</functionlabel>
        <functionlabel num="13" lockable="true">Coupler Clank Uncouple</functionlabel>
        <functionlabel num="14" lockable="true">Brake Release</functionlabel>
        <functionlabel num="15" lockable="true">Brakes Applied</functionlabel>
        <functionlabel num="16" lockable="true">Switching/Mainline Momentum</functionlabel>
        <functionlabel num="17" lockable="true">Crew Alert</functionlabel>
        <functionlabel num="20" lockable="true">Horn Quill (Grade crossing)</functionlabel>
        <functionlabel num="21" lockable="true">Forward Sound (Two long blasts)</functionlabel>
        <functionlabel num="22" lockable="true">Reverse Sound (3 short blasts)</functionlabel>
        <functionlabel num="23" lockable="true">Stop Sound (1 long blast)</functionlabel>
        <functionlabel num="24" lockable="true">Rotate Bell/whistle</functionlabel>
        <functionlabel num="25" lockable="true">Windshield Wipers</functionlabel>
      </functionlabels>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes">
      <capability>
        <name>TCS 4 CV access</name>
      </capability>
    </programming>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/tcs/CV1_CV99_wow.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/tcs/CV100_CV187_wow.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/tcs/CV249_CV252_FW86.xml" />
      <xi:include href="http://jmri.org/xml/decoders/tcs/wowElectricCV.xml" />
      <variable item="F7 controls output Dim" CV="158" mask="XXXXXVXX" minOut="1" default="1">
       <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F7 controls output Dim</label>
        <label xml:lang="it">F7 controlla Smorzam.Uscita</label>
      </variable>
      <variable item="F8 controls output Dim" CV="158" mask="XXXXVXXX" minOut="1">
       <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F8 controls output Dim</label>
        <label xml:lang="it">F8 controlla Smorzam.Uscita</label>
      </variable>
      <variable item="F9 controls output Dim" CV="158" mask="XXXVXXXX" minOut="1">
       <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F9 controls output Dim</label>
        <label xml:lang="it">F9 controlla Smorzam.Uscita</label>
      </variable>
      <variable item="F10 controls output Dim" CV="158" mask="XXVXXXXX" minOut="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F10 controls output Dim</label>
        <label xml:lang="it">F10 controlla Smorzam.Uscita</label>
      </variable>
      <variable item="F11 controls output Dim" CV="158" mask="XVXXXXXX" minOut="1">
       <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F11 controls output Dim</label>
        <label xml:lang="it">F11 controlla Smorzam.Uscita</label>
      </variable>
      <variable item="F12 controls output Dim" CV="158" mask="VXXXXXXX" minOut="1">
       <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F12 controls output Dim</label>
        <label xml:lang="it">F12 controlla Smorzam.Uscita</label>
      </variable>
      <variable item="Sound Option 3" CV="248" default="1" readOnly="yes">
        <decVal/>
        <label>Sound Set</label>
      </variable>
      <!-- Sound function mapping -->
      <variable item="Function 0 Sound" CV="T2CV.1.00" default="350" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>  
      </variable>
      <variable item="Function 1 Sound" CV="T2CV.1.01" default="1" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 2 Sound" CV="T2CV.1.02" default="57" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 3 Sound" CV="T2CV.1.03" default="97" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 4 Sound" CV="T2CV.1.04" default="155" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 5 Sound" CV="T2CV.1.05" default="350" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 6 Sound" CV="T2CV.1.06" default="107" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 7 Sound" CV="T2CV.1.07" default="350" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 8 Sound" CV="T2CV.1.08" default="110" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 9 Sound" CV="T2CV.1.09" default="350" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 10 Sound" CV="T2CV.1.10" default="42" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 11 Sound" CV="T2CV.1.11" default="34" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 12 Sound" CV="T2CV.1.12" default="44" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 13 Sound" CV="T2CV.1.13" default="45" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 14 Sound" CV="T2CV.1.14" default="2" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 15 Sound" CV="T2CV.1.15" default="4" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 16 Sound" CV="T2CV.1.16" default="108" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 17 Sound" CV="T2CV.1.17" default="46" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 18 Sound" CV="T2CV.1.18" default="350" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 19 Sound" CV="T2CV.1.19" default="350" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 20 Sound" CV="T2CV.1.20" default="67" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 21 Sound" CV="T2CV.1.21" default="47" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 22 Sound" CV="T2CV.1.22" default="111" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 23 Sound" CV="T2CV.1.23" default="143" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 24 Sound" CV="T2CV.1.24" default="121" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 25 Sound" CV="T2CV.1.25" default="165" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 26 Sound" CV="T2CV.1.26" default="137" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 27 Sound" CV="T2CV.1.27" default="131" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Function 28 Sound" CV="T2CV.1.28" default="350" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Random 1 Sound" CV="T2CV.1.29" default="0" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Random 2 Sound" CV="T2CV.1.30" default="43" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Random 3 Sound" CV="T2CV.1.31" default="154" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
      <variable item="Random 4 Sound" CV="T2CV.1.32" default="350" mask="VVVVVVVVVVVVVVVV">
        <xi:include href="http://jmri.org/xml/decoders/tcs/enumElectric01.xml"/>
      </variable>
    
      <!-- sound CVs -->
      <variable item="First" CV="222" default="0" infoOnly="yes" mask="XXXXXXXV">
          <enumVal>
              <enumChoice choice="Leslie RS5T"/>
          </enumVal>
          <label>For electric sound set 1, the first horn is named</label>
        </variable>
      <variable item="Sound Option 1" CV="T2CV.4.8" default="5" tooltip="Rotate horn function will change this setting">
        <enumVal>
          <enumChoice choice="Leslie RS5T"/>
          <enumChoice choice="Nathan K5H"/>
          <enumChoice choice="Nathan K5HL"/>
          <enumChoice choice="Nathan K5LA ACS64"/>
          <enumChoice choice="Nathan K5LA"/>
          <enumChoice choice="Strasburg 8618 SW8 Nathan K5LA"/>
          <enumChoice choice="Nathan K5LLA"/>
          <enumChoice choice="Nathan M5"/>
          <enumChoice choice="Nathan P5 Chime (Australia)"/>
          <enumChoice choice="Nathan P5A"/>
        </enumVal>
        <label>Default Horn Set</label>
      </variable>
      <variable item="Sound Option 2" CV="T2CV.4.11" default="0">
        <enumVal>
          <enumChoice choice="ACS64"/>
        </enumVal>
        <label>Primemover type</label>
      </variable>
      <variable item="First Bell" CV="222" default="0" infoOnly="yes" mask="XXXXXXVX">
        <enumVal>
           <enumChoice choice="Electric E-Bell"/>
        </enumVal>
        <label>For electric sound set 1, the first bell is named</label>
      </variable>
      <variable item="Sound Option 6" CV="T2CV.4.23" default="0" tooltip="Rotate bell function will change this setting">
        <enumVal>
          <enumChoice choice="Electric E-Bell"/>
        </enumVal>
        <label>Bell type</label>
      </variable>
    </variables>
    <resets>
      <mode>PAGEMODE</mode>
      <mode>DIRECTMODE</mode>
      <mode>OPSBYTEMODE</mode>
      <factReset label="Entire decoder (except speed table)" CV="8" default="2"/>
      <factReset label="Entire decoder (except address and speed table)" CV="T2CV.5.0" default="2"/>
      <factReset label="All sound settings" CV="T2CV.5.0" default="3"/>
      <factReset label="Sound Function mappings" CV="T2CV.5.0" default="4"/>
      <factReset label="Sound CV's" CV="T2CV.5.0" default="6"/>
      <factReset label="Sound type volumes" CV="T2CV.5.0" default="7"/>
      <factReset label="User Preset 1" CV="T2CV.5.0" default="8"/>
      <factReset label="User Preset 2" CV="T2CV.5.0" default="9"/>
      <factReset label="User Preset 3" CV="T2CV.5.0" default="10"/>
      <factReset label="Quick Lighting Preset: Standard Ditch Lights" CV="8" default="10"/>
      <factReset label="Quick Lighting Preset: Standard Trolley" CV="8" default="11"/>
      <factReset label="Quick Lighting Preset: Modified Trilley" CV="8" default="12"/>
    </resets>
  </decoder>
  <xi:include href="http://jmri.org/xml/programmers/parts/BasicSpeedControlTrimPane.xml"/>
  <xi:include href="http://jmri.org/xml/decoders/tcs/Pane_Momentum.xml"/>
  <xi:include href="http://jmri.org/xml/decoders/tcs/Pane_Brake.xml"/>
  <xi:include href="http://jmri.org/xml/decoders/tcs/Pane_TCS.xml"/>
  <xi:include href="http://jmri.org/xml/decoders/tcs/Pane_wow_snd.xml"/>
  <xi:include href="http://jmri.org/xml/decoders/tcs/Pane_wow_vol_grp.xml"/>
  <xi:include href="http://jmri.org/xml/decoders/tcs/Pane_wow_4cv.xml"/>
  <xi:include href="http://jmri.org/xml/decoders/tcs/paneWowReadMe.xml"/>
</decoder-config>
