<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2004, 2007, 2021                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="Wouter Kok" version="6" lastUpdated="20210410"/>
  <version author="Klaus Nahr" version="5" lastUpdated="20210123"/>
  <version author="Peter Ulvestad" version="4" lastUpdated="20090725"/>
  <version author="Peter Ulvestad" version="3" lastUpdated="20090627"/>
  <version author="Michael Greene (mgreene@cedarlane.com)" version="1" lastUpdated="20041022"/>
  <!-- Version 2 - added factory reset menu items (Paul Bender)                    -->
  <!-- Version 3 - added max value for CV2 (Peter Ulvestad)                        -->
  <!-- Version 4 - Changed model name, added decoder dimensions                    -->
  <!--           - updated defaults and cleaned up xml formatting (Peter Ulvestad) -->
  <!-- Version 5 - Added Decoders EMD F7A, F7B                                     -->
  <!--           - Added manufacturer infos                                        -->
  <!--           - updated Accel/Decel limits                                      -->
  <!--           - updated CV50 default                                            -->
  <!--           - added function Dim                                              -->
  <!--           - updated function mapping                                        -->
  <!--           - changed reset to 8                                              -->
  <!--           - hint on pane Bachmann                                           -->
  <!--           - fixed non working tooltips                                      -->
  <!--           - added German translations (Klaus Nahr)                          -->
  <!-- Version 6 - Added Dutch translations (Wouter Kok)                           -->
  <decoder>
    <family name="E-Z Command decoders" mfg="Bachmann Trains">
      <model model="N Scale EMD F7A" numOuts="1" maxMotorCurrent="1A" formFactor="N" connector="DropIn" lowVersionID="46">
        <output name="1" label="White" connection="LED">
          <label xml:lang="de">Weiss</label>
          <label xml:lang="nl">Wit</label>
        </output>
        <output name="Dim"/>
        <size length="80" width="10" height="5" units="mm"/>
      </model>
      <model model="N Scale EMD F7B" numOuts="0" maxMotorCurrent="1A" formFactor="N" connector="DropIn" lowVersionID="46">
        <size length="80" width="10" height="5" units="mm"/>
      </model>
      <model model="2 function decoder (36-552)" numOuts="2" maxMotorCurrent="1A" formFactor="HO" connector="NMRAmedium" lowVersionID="46" nmraWarrant="yes" nmraWarrantStart="2006-04">
        <output name="1" label="White" connection="LED">
          <label xml:lang="de">Weiss</label>
          <label xml:lang="nl">Wit</label>
        </output>
        <output name="2" label="Yellow" connection="LED">
          <label xml:lang="de">Gelb</label>
          <label xml:lang="nl">Geel</label>
        </output>
        <output name="Dim"/>
        <size length="25" width="16" height="5" units="mm"/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <variables>
      <!-- CV=1, 17-18 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <!-- CV=2 -->
      <variable CV="2" item="Vstart" default="10" comment="Range 0-31">
        <decVal min="0" max="31"/>
        <label>Start Volts</label>
        <label xml:lang="cs">Rozjezdové napětí</label>
        <label xml:lang="de">Anfahrspannung</label>
        <label xml:lang="fr">V démarr.</label>
        <label xml:lang="it">Volt Partenza</label>
        <label xml:lang="nl">Startsnelheid</label>
        <tooltip>Range 0-31</tooltip>
        <tooltip xml:lang="cs">Meze 0-31</tooltip>
        <tooltip xml:lang="de">Wertebereich 0-31</tooltip>
        <tooltip xml:lang="fr">Valeur 0-31</tooltip>
        <tooltip xml:lang="it">Valori 0-31</tooltip>
        <tooltip xml:lang="nl">Bereik 0-31</tooltip>
      </variable>
      <!-- CV=3-4 -->
      <variable item="Accel" CV="3" default="1" comment="Range 0-255">
        <decVal min="0" max="255"/>
        <label>Acceleration Rate</label>
        <label xml:lang="cs">Míra zrychlení</label>
        <label xml:lang="de">Anfahrverzögerung</label>
        <label xml:lang="fr">Accelération</label>
        <label xml:lang="it">Accellerazione</label>
        <label xml:lang="nl">Versnelling</label>
        <tooltip>Range 0-255</tooltip>
        <tooltip xml:lang="cs">Meze 0-255</tooltip>
        <tooltip xml:lang="de">Wertebereich 0-255</tooltip>
        <tooltip xml:lang="fr">Valeur 0-255</tooltip>
        <tooltip xml:lang="it">Valori 0-255</tooltip>
        <tooltip xml:lang="nl">Bereik 0-255</tooltip>
      </variable>
      <variable item="Decel" CV="4" default="1" comment="Range 0-255">
        <decVal min="0" max="255"/>
        <label>Deceleration Rate</label>
        <label xml:lang="cs">Míra zpomalení</label>
        <label xml:lang="de">Bremszeit</label>
        <label xml:lang="fr">Décélération</label>
        <label xml:lang="it">Decellerazione</label>
        <label xml:lang="nl">Remvertraging</label>
        <tooltip>Range 0-255</tooltip>
        <tooltip xml:lang="cs">Meze 0-255</tooltip>
        <tooltip xml:lang="de">Wertebereich 0-255</tooltip>
        <tooltip xml:lang="fr">Valeur 0-255</tooltip>
        <tooltip xml:lang="it">Valori 0-255</tooltip>
        <tooltip xml:lang="nl">Bereik 0-255</tooltip>
      </variable>
      <!-- CV=7-8 -->
      <variable CV="7" readOnly="yes" item="Decoder Version" default="46">
        <decVal/>
        <label>Manufacturer Version No: </label>
        <label xml:lang="cs">Verze dekodéru: </label>
        <label xml:lang="de">Decoderversion: </label>
        <label xml:lang="fr">Version décodeur: </label>
        <label xml:lang="it">Versione Decoder: </label>
        <label xml:lang="nl">Decoderversie: </label>
      </variable>
      <variable CV="8" readOnly="yes" item="Manufacturer" default="101">
        <decVal/>
        <label>Manufacturer ID</label>
        <label xml:lang="cs">ID výrobce: </label>
        <label xml:lang="de">Hersteller-ID</label>
        <label xml:lang="fr">ID constructeur: </label>
        <label xml:lang="it">ID Costruttore: </label>
        <label xml:lang="nl">Fabrikant ID: </label>
      </variable>
      <!-- CV=19 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddrDirection.xml"/>
      <!-- CV=29 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29direction.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29speedSteps.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29analog.xml"/>
      <!-- CV=50 -->
      <variable CV="50" item="DC Brake Momentum" mask="XXXXXVXX" default="1" comment="Governs how loco acts in DC track block">
        <enumVal>
          <enumChoice choice="Loco runs under DC analog voltage control">
            <choice>Loco runs under DC analog voltage control</choice>
            <choice xml:lang="cs">Lokomotiva používá pro řízení analogové stejnosměrné napětí</choice>
            <choice xml:lang="fr">Loco roule sous contrôle analogique</choice>
            <choice xml:lang="de">Lok fährt unter DC Analogspannung weiter</choice>
            <choice xml:lang="it">Loco va in Analogico</choice>
            <choice xml:lang="nl">Lok rijd onder DC analoog spanning</choice>
          </enumChoice>
          <enumChoice choice="Loco brakes to a stop using momentum set in CV4">
            <choice>Loco brakes to a stop using momentum set in CV4</choice>
            <choice xml:lang="cs">Lokomotiva při brždění do zastavení používá zpomalení nastavené v CV4</choice>
            <choice xml:lang="de">Lok bremst bis zum Stillstand mit der Brems-Verzögerung aus CV4</choice>
            <choice xml:lang="fr">Loco freine jusqu'à arrêt selon inertie définie en CV4</choice>
            <choice xml:lang="it">Loco frena fino a fermarsi usando inerzia in CV4</choice>
            <choice xml:lang="nl">Lok remt tot stilstand met behulp van de remvertraging uit CV4</choice>
          </enumChoice>
        </enumVal>
        <label>Brake Momentum on DC</label>
        <label xml:lang="cs">DC brzdné zpomalení</label>
        <label xml:lang="de">Bremsverhalten bei DC Analogspannung</label>
        <label xml:lang="fr">Inertie freinage en analogique</label>
        <label xml:lang="it">Inerzia frenata in Analogico</label>
        <label xml:lang="nl">Remt af op DC</label>
        <tooltip>Governs how loco acts in DC track block</tooltip>
        <tooltip xml:lang="cs">Určuje jak bude lokomotiva reagovat na DC kolejovém obvodu</tooltip>
        <tooltip xml:lang="de">Steuert, wie die Lok bei Einfahrt in ein Gleisabschnitt mit Gleichspannung reagiert</tooltip>
        <tooltip xml:lang="fr">Commande comment la loco réagit dans un canton analogique</tooltip>
        <tooltip xml:lang="it">Comportamento Loco in blocco analogico</tooltip>
        <tooltip xml:lang="nl">Regelt hoe de lok reageert in een DC baanvak</tooltip>
      </variable>
      <!-- Define the fixed Function-Output mapping -->
      <constant item="FL(f) controls output 1" minOut="1" default="1"/>
      <constant item="FL(r) controls output 2" minOut="2" default="1"/>
      <!-- CV=51 -->
      <variable item="F1 controls output Dim" CV="51" mask="XXXXXXXV" minOut="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F1 controls dimming</label>
        <label xml:lang="de">F1 steuert das Dimmen</label>
        <label xml:lang="nl">F1 regelt het dimmen</label>
      </variable>
      <variable item="F2 controls output Dim" CV="51" mask="XXXXXXVX" minOut="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F2 controls dimming</label>
        <label xml:lang="de">F2 steuert das Dimmen</label>
        <label xml:lang="nl">F2 regelt het dimmen</label>
      </variable>
      <variable item="F3 controls output Dim" CV="51" mask="XXXXXVXX" minOut="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3 controls dimming</label>
        <label xml:lang="de">F3 steuert das Dimmen</label>
        <label xml:lang="nl">F3 regelt het dimmen</label>
      </variable>
      <variable item="F4 controls output Dim" CV="51" mask="XXXXVXXX" minOut="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F4 controls dimming</label>
        <label xml:lang="de">F4 steuert das Dimmen</label>
        <label xml:lang="nl">F4 regelt het dimmen</label>
      </variable>
      <variable item="F5 controls output Dim" CV="51" mask="XXXVXXXX" minOut="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F5 controls dimming</label>
        <label xml:lang="de">F5 steuert das Dimmen</label>
        <label xml:lang="nl">F5 regelt het dimmen</label>
      </variable>
      <variable item="F6 controls output Dim" CV="51" mask="XXVXXXXX" minOut="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F6 controls dimming</label>
        <label xml:lang="de">F6 steuert das Dimmen</label>
        <label xml:lang="nl">F6 regelt het dimmen</label>
      </variable>
      <variable item="F7 controls output Dim" CV="51" mask="XVXXXXXX" minOut="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F7 controls dimming</label>
        <label xml:lang="de">F7 steuert das Dimmen</label>
        <label xml:lang="nl">F7 regelt het dimmen</label>
      </variable>
      <variable item="F8 controls output Dim" CV="51" mask="VXXXXXXX" minOut="1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F8 controls dimming</label>
        <label xml:lang="de">F8 steuert das Dimmen</label>
        <label xml:lang="nl">F8 regelt het dimmen</label>
      </variable>
      <!-- CV=52 -->
      <variable CV="52" default="64" comment="Controls how much headlights dim (0-dark to 255-max bright)" item="Global lighting option 1" minOut="1">
        <decVal min="0" max="255"/>
        <label>Headlight Dimming intensity</label>
        <label xml:lang="de">Helligkeit gedimmtes Frontlicht</label>
        <label xml:lang="it">Intensità smorzamento Luci Frontali</label>
        <label xml:lang="nl">Koplamp Dimintensiteit</label>
        <tooltip>Controls how much headlights dim (0-dark to 255-max bright)</tooltip>
        <tooltip xml:lang="de">Gewünschte Helligkeit einstellen (0-aus bis 255-maximale Helligkeit)</tooltip>
        <tooltip xml:lang="it">Seleziona valore smorzamento luci anteriori (0-spente 255-max luce)</tooltip>
        <tooltip xml:lang="nl">De gewenste dimintensiteit aanpassen (0-uit tot 255-maximale helderheid)</tooltip>
      </variable>
      <!-- User private ID CV's are not documented by Bachmann, but appear to work -->
      <!-- CV 105-106 -->
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="8">
        <label xml:lang="de">Alle CVs auf Werkseinstellung zurücksetzen</label>
        <label xml:lang="it">Reset delle CV ai valori di fabbrica</label>
        <label xml:lang="nl">Alle cv's terugzetten naar de fabrieksinstelling</label>
      </factReset>
    </resets>
  </decoder>
  <pane>
    <name>Bachmann</name>
    <column>
      <label>
        <text>Switch the track voltage off and on again so that all changes become effective.</text>
        <text xml:lang="de">Gleisspannung aus- und wieder einschalten damit alle Änderungen wirksam werden.</text>
      </label>
    </column>
  </pane>
</decoder-config>
