<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2003, 2005, 2007 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.xsd">
  <version author="jake@physics.berkeley.edu" version="10" lastUpdated="20050112"/>
  <version author="Walter Thompson wsthompson@earthlink.net" version="11" lastUpdated="20080412"/>
  <!-- Version 4 - added wire colors -->
  <!-- Version 5 - added some specific models, extended CV7 range to 249 -->
  <!-- Version 6 - renamed family, added models -->
  <!-- version 7 - adjusted top range of versionID -->
  <!-- version 8 - default BEMF value corrected -->
  <!-- Version 9 - fix "rule 17" typos -->
  <!-- Version 9.1 - changed spelling of "behavior" (Jack Shall) -->
  <!-- Version 10 - fixed mask for "Vstart/Vmid/Vfull in 128 step mode" - Bob Jacobsen -->
  <!-- Version 11 - add factory reset -->
  <decoder>
    <family name="Premium FX with BEMF" mfg="Digitrax" lowVersionID="240" highVersionID="250">
      <model model="DH142" numOuts="4" numFns="2">
        <output name="4" label="Violet"/>
      </model>
      <model model="DN141" numOuts="4" numFns="2">
        <output name="4" label="Violet"/>
      </model>
      <model model="DN142" numOuts="4" numFns="2">
        <output name="4" label="Violet"/>
      </model>
      <model model="DN141K2" numOuts="4" numFns="2">
        <output name="4" label="Violet"/>
      </model>
      <model model="DN141E2" numOuts="4" numFns="2">
        <output name="4" label="Violet"/>
      </model>
      <model model="DN149K2" numOuts="4" numFns="2">
        <output name="4" label="Violet"/>
      </model>
    </family>
    <programming direct="byteOnly" paged="yes" register="yes" ops="yes"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/digitrax/vStartHighMid.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/accelDecel_31.xml"/>
      <!-- CV 7-8 -->
     <xi:include href="http://jmri.org/xml/decoders/nmra/mfgVersionId.xml"/>
      <variable CV="13" mask="XXXXXXXV" minFn="1" item="Analog Mode Function Status - F1">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>F1 during DC operation</label>
        <label xml:lang="it">F1 durante funzionamento Analogico</label>
      </variable>
      <variable CV="13" mask="XXXXXXVX" minFn="2" item="Analog Mode Function Status - F2">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>F2 during DC operation</label>
        <label xml:lang="it">F2 durante funzionamento Analogico</label>
      </variable>
      <variable CV="13" mask="XXXXXVXX" minFn="3" item="Analog Mode Function Status - F3">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>F3 during DC operation</label>
        <label xml:lang="it">F3 durante funzionamento Analogico</label>
      </variable>
      <variable CV="13" mask="XXXXVXXX" minFn="4" item="Analog Mode Function Status - F4">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>F4 during DC operation</label>
        <label xml:lang="it">F4 durante funzionamento Analogico</label>
      </variable>
      <variable CV="13" mask="XXXVXXXX" minFn="5" item="Analog Mode Function Status - F5">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>F5 during DC operation</label>
        <label xml:lang="it">F5 durante funzionamento Analogico</label>
      </variable>
      <variable CV="13" mask="XXVXXXXX" minFn="6" item="Analog Mode Function Status - F6">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>F6 during DC operation</label>
        <label xml:lang="it">F6 durante funzionamento Analogico</label>
      </variable>
      <variable CV="13" mask="XVXXXXXX" item="Analog Mode Function Status - FL(f)">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>F0 Forward during DC operation</label>
        <label xml:lang="it">F0 Avanti durante funzionamento Analogico</label>
      </variable>
      <variable CV="13" mask="VXXXXXXX" item="Analog Mode Function Status - FL(r)">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>F0 Reverse during DC operation</label>
        <label xml:lang="it">F0 Indietro durante funzionamento Analogico</label>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddrDirection.xml"/>
      <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"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29table3-28.xml"/>
      <variable CV="49" mask="XXXXVVVV" item="Function F0F effect generated">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Forward light F0F effect generated</label>
        <label xml:lang="it">Luce anteriore effetto F0F</label>
      </variable>
      <variable CV="49" mask="VVVVXXXX" item="Function F0F behavior">
        <enumVal>
          <enumChoice choice="Forward direction, ON with function ON, phase A">
            <choice>Forward direction, ON with function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with function ON, phase B">
            <choice>Reverse direction, ON with function ON, phase B</choice>
            <choice xml:lang="it">Direzione indietro, ON con Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase A">
            <choice>Non directional, ON with function ON, effect phase A</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase A</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase B">
            <choice>Non directional, ON with function ON, effect phase B</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase B</choice>
          </enumChoice>
          <enumChoice choice="Forward direction, ON with F0 on &amp; function ON, phase A">
            <choice>Forward direction, ON with F0 on &amp; function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con F0 e Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with F0 on &amp; function ON, phase B">
            <choice>Reverse direction, ON with F0 on &amp; function ON, phase B</choice>
            <choice xml:lang="it">Direzione Indietro, ON con F0 e Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Fwd Ditch Light or Rule 17 dimming">
            <choice>Special logic for Fwd Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch Avanti o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Rev Ditch Light or Rule 17 dimming">
            <choice>Special logic for Rev Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch Indietro o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x8)">
            <choice>Reserved (0x8)</choice>
            <choice xml:lang="it">Riservata (0x8)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x9)">
            <choice>Reserved (0x9)</choice>
            <choice xml:lang="it">Riservata (0x9)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xA)">
            <choice>Reserved (0xA)</choice>
            <choice xml:lang="it">Riservata (0xA)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xB)">
            <choice>Reserved (0xB)</choice>
            <choice xml:lang="it">Riservata (0xB)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xC)">
            <choice xml:lang="it">Riservata (0xC)</choice>
            <choice>Reserved (0xC)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xD)">
            <choice>Reserved (0xD)</choice>
            <choice xml:lang="it">Riservata (0xD)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xE)">
            <choice>Reserved (0xE)</choice>
            <choice xml:lang="it">Riservata (0xE)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xF)">
            <choice>Reserved (0xF)</choice>
            <choice xml:lang="it">Riservata (0xF)</choice>
          </enumChoice>
        </enumVal>
        <label>Forward light F0F behavior</label>
        <label xml:lang="it">Comportamento Funzione F0F Luci di testa</label>
      </variable>
      <variable CV="50" mask="XXXXVVVV" item="Function F0R effect generated">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Reverse light F0R effect generated</label>
        <label xml:lang="it">Funzione F0R effetti generati luci di coda</label>
      </variable>
      <variable CV="50" mask="VVVVXXXX" item="Function F0R behavior">
        <enumVal>
          <enumChoice choice="Forward direction, ON with function ON, phase A">
            <choice>Forward direction, ON with function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with function ON, phase B">
            <choice>Reverse direction, ON with function ON, phase B</choice>
            <choice xml:lang="it">Direzione Indietro, ON con Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase A">
            <choice>Non directional, ON with function ON, effect phase A</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase A</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase B">
            <choice>Non directional, ON with function ON, effect phase B</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase B</choice>
          </enumChoice>
          <enumChoice choice="Forward direction, ON with F0 on &amp; function ON, phase A">
            <choice>Forward direction, ON with F0 on &amp; function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con F0 e Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with F0 on &amp; function ON, phase B">
            <choice>Reverse direction, ON with F0 on &amp; function ON, phase B</choice>
            <choice xml:lang="it">Direzione Indietro, ON con F0 e Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Fwd Ditch Light or Rule 17 dimming">
            <choice>Special logic for Fwd Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch Avanti o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Rev Ditch Light or Rule 17 dimming">
            <choice>Special logic for Rev Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch Indietro o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x8)">
            <choice>Reserved (0x8)</choice>
            <choice xml:lang="it">Riservata (0x8)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x9)">
            <choice>Reserved (0x9)</choice>
            <choice>Reserved (0x9)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xA)">
            <choice>Reserved (0xA)</choice>
            <choice>Reserved (0xA)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xB)">
            <choice>Reserved (0xB)</choice>
            <choice xml:lang="it">Riservata (0x8B</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xC)">
            <choice>Reserved (0xC)</choice>
            <choice xml:lang="it">Riservata (0xC)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xD)">
            <choice>Reserved (0xD)</choice>
            <choice xml:lang="it">Riservata (0xD)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xE)">
            <choice>Reserved (0xE)</choice>
            <choice xml:lang="it">Riservata (0xE)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xF)">
            <choice>Reserved (0xF)</choice>
            <choice xml:lang="it">Riservata (0xF)</choice>
          </enumChoice>
        </enumVal>
        <label>Reverse light F0R behavior</label>
      </variable>
      <variable item="Function 1 effect generated" CV="51" mask="XXXXVVVV" minFn="1">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 1 effect generated</label>
        <label xml:lang="it">Funzione 1 effetti generati</label>
      </variable>
      <variable item="Function 1 behavior" CV="51" mask="VVVVXXXX" minFn="1">
        <enumVal>
          <enumChoice choice="Forward direction, ON with function ON, phase A">
            <choice>Forward direction, ON with function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with function ON, phase B">
            <choice>Reverse direction, ON with function ON, phase B</choice>
            <choice xml:lang="it">Direzione Indietro, ON con Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase A">
            <choice>Non directional, ON with function ON, effect phase A</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase A</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase B">
            <choice>Non directional, ON with function ON, effect phase B</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase B</choice>
          </enumChoice>
          <enumChoice choice="Forward direction, ON with F0 on &amp; function ON, phase A">
            <choice>Forward direction, ON with F0 on &amp; function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con F0 e Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with F0 on &amp; function ON, phase B">
            <choice>Reverse direction, ON with F0 on &amp; function ON, phase B</choice>
            <choice xml:lang="it">Direzione Indietro, ON con F0 e Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Fwd Ditch Light or Rule 17 dimming">
            <choice>Special logic for Fwd Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch Avanti o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Rev Ditch Light or Rule 17 dimming">
            <choice>Special logic for Rev Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch indietro o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x8)">
            <choice>Reserved (0x8)</choice>
            <choice xml:lang="it">Riservata (0x8)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x9)">
            <choice>Reserved (0x9)</choice>
            <choice xml:lang="it">Riservata (0x9)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xA)">
            <choice>Reserved (0xA)</choice>
            <choice xml:lang="it">Riservata (0xA)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xB)">
            <choice>Reserved (0xB)</choice>
            <choice xml:lang="it">Riservata (0xB)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xC)">
            <choice>Reserved (0xC)</choice>
            <choice xml:lang="it">Riservata (0xC)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xD)">
            <choice>Reserved (0xD)</choice>
            <choice xml:lang="it">Riservata (0xD)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xE)">
            <choice>Reserved (0xE)</choice>
            <choice xml:lang="it">Riservata (0xE)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xF)">
            <choice>Reserved (0xF)</choice>
            <choice xml:lang="it">Riservata (0xF)</choice>
          </enumChoice>
        </enumVal>
        <label>Function 1 behavior</label>
        <label xml:lang="it">Comportamento Funzione 1</label>
      </variable>
      <variable item="Function 2 effect generated" CV="52" mask="XXXXVVVV" minFn="2">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 2 effect generated</label>
        <label xml:lang="it">Funzione 2 effetti generati</label>
      </variable>
      <variable item="Function 2 behavior" CV="52" mask="VVVVXXXX" minFn="2">
        <enumVal>
          <enumChoice choice="Forward direction, ON with function ON, phase A">
            <choice>Forward direction, ON with function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with function ON, phase B">
            <choice>Reverse direction, ON with function ON, phase B</choice>
            <choice xml:lang="it">Direzione Indietro, ON con Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase A">
            <choice>Non directional, ON with function ON, effect phase A</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase A</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase B">
            <choice>Non directional, ON with function ON, effect phase B</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase B</choice>
          </enumChoice>
          <enumChoice choice="Forward direction, ON with F0 on &amp; function ON, phase A">
            <choice>Forward direction, ON with F0 on &amp; function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con F0 e Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with F0 on &amp; function ON, phase B">
            <choice>Reverse direction, ON with F0 on &amp; function ON, phase B</choice>
            <choice xml:lang="it">Direzione Indietro, ON con F0 e Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Fwd Ditch Light or Rule 17 dimming">
            <choice>Special logic for Fwd Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch Avanti o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Rev Ditch Light or Rule 17 dimming">
            <choice>Special logic for Rev Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch indietro o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x8)">
            <choice>Reserved (0x8)</choice>
            <choice xml:lang="it">Riservata (0x8)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x9)">
            <choice>Reserved (0x9)</choice>
            <choice xml:lang="it">Riservata (0x9)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xA)">
            <choice>Reserved (0xA)</choice>
            <choice xml:lang="it">Riservata (0xA)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xB)">
            <choice>Reserved (0xB)</choice>
            <choice xml:lang="it">Riservata (0xB)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xC)">
            <choice>Reserved (0xC)</choice>
            <choice xml:lang="it">Riservata (0xC)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xD)">
            <choice>Reserved (0xD)</choice>
            <choice xml:lang="it">Riservata (0xD)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xE)">
            <choice>Reserved (0xE)</choice>
            <choice xml:lang="it">Riservata (0xE)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xF)">
            <choice>Reserved (0xF)</choice>
            <choice xml:lang="it">Riservata (0xF)</choice>
          </enumChoice>
        </enumVal>
        <label>Function 2 behavior</label>
        <label xml:lang="it">Comportamento Funzione 2)</label>
      </variable>
      <variable item="Function 3 effect generated" CV="53" mask="XXXXVVVV" minFn="3">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 3 effect generated</label>
        <label xml:lang="it">Funzione 3 effetti generati</label>
      </variable>
      <variable item="Function 3 behavior" CV="53" mask="VVVVXXXX" minFn="3">
        <enumVal>
          <enumChoice choice="Forward direction, ON with function ON, phase A">
            <choice>Forward direction, ON with function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with function ON, phase B">
            <choice>Reverse direction, ON with function ON, phase B</choice>
            <choice xml:lang="it">Direzione Indietro, ON con Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase A">
            <choice>Non directional, ON with function ON, effect phase A</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase A</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase B">
            <choice>Non directional, ON with function ON, effect phase B</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase B</choice>
          </enumChoice>
          <enumChoice choice="Forward direction, ON with F0 on &amp; function ON, phase A">
            <choice>Forward direction, ON with F0 on &amp; function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con F0 e Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with F0 on &amp; function ON, phase B">
            <choice>Reverse direction, ON with F0 on &amp; function ON, phase B</choice>
            <choice xml:lang="it">Direzione Indietro, ON con F0 e Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Fwd Ditch Light or Rule 17 dimming">
            <choice>Special logic for Fwd Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch Avanti o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Rev Ditch Light or Rule 17 dimming">
            <choice>Special logic for Rev Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch indietro o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x8)">
            <choice>Reserved (0x8)</choice>
            <choice xml:lang="it">Riservata (0x8)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x9)">
            <choice>Reserved (0x9)</choice>
            <choice xml:lang="it">Riservata (0x9)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xA)">
            <choice>Reserved (0xA)</choice>
            <choice xml:lang="it">Riservata (0xA)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xB)">
            <choice>Reserved (0xB)</choice>
            <choice xml:lang="it">Riservata (0xB)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xC)">
            <choice>Reserved (0xC)</choice>
            <choice xml:lang="it">Riservata (0xC)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xD)">
            <choice>Reserved (0xD)</choice>
            <choice xml:lang="it">Riservata (0xD)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xE)">
            <choice>Reserved (0xE)</choice>
            <choice xml:lang="it">Riservata (0xE)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xF)">
            <choice>Reserved (0xF)</choice>
            <choice xml:lang="it">Riservata (0xF)</choice>
          </enumChoice>
        </enumVal>
        <label>Function 3 behavior</label>
        <label xml:lang="it">Comportamento Funzione 3)</label>
      </variable>
      <variable item="Function 4 effect generated" CV="54" mask="XXXXVVVV" minFn="4">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 4 effect generated</label>
        <label xml:lang="it">Funzione 4 effetti generati</label>
      </variable>
      <variable item="Function 4 behavior" CV="54" mask="VVVVXXXX" minFn="4">
        <enumVal>
          <enumChoice choice="Forward direction, ON with function ON, phase A">
            <choice>Forward direction, ON with function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with function ON, phase B">
            <choice>Reverse direction, ON with function ON, phase B</choice>
            <choice xml:lang="it">Direzione Indietro, ON con Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase A">
            <choice>Non directional, ON with function ON, effect phase A</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase A</choice>
          </enumChoice>
          <enumChoice choice="Non directional, ON with function ON, effect phase B">
            <choice>Non directional, ON with function ON, effect phase B</choice>
            <choice xml:lang="it">Non Direzionale, ON con Funzione ON, effetto fase B</choice>
          </enumChoice>
          <enumChoice choice="Forward direction, ON with F0 on &amp; function ON, phase A">
            <choice>Forward direction, ON with F0 on &amp; function ON, phase A</choice>
            <choice xml:lang="it">Direzione Avanti, ON con F0 e Funzione ON, fase A</choice>
          </enumChoice>
          <enumChoice choice="Reverse direction, ON with F0 on &amp; function ON, phase B">
            <choice>Reverse direction, ON with F0 on &amp; function ON, phase B</choice>
            <choice xml:lang="it">Direzione Indietro, ON con F0 e Funzione ON, fase B</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Fwd Ditch Light or Rule 17 dimming">
            <choice>Special logic for Fwd Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch Avanti o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Special logic for Rev Ditch Light or Rule 17 dimming">
            <choice>Special logic for Rev Ditch Light or Rule 17 dimming</choice>
            <choice xml:lang="it">Logica Speciale per Luci Ditch indietro o attenuazione a Norma 17</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x8)">
            <choice>Reserved (0x8)</choice>
            <choice xml:lang="it">Riservata (0x8)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0x9)">
            <choice>Reserved (0x9)</choice>
            <choice xml:lang="it">Riservata (0x9)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xA)">
            <choice>Reserved (0xA)</choice>
            <choice xml:lang="it">Riservata (0xA)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xB)">
            <choice>Reserved (0xB)</choice>
            <choice xml:lang="it">Riservata (0xB)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xC)">
            <choice>Reserved (0xC)</choice>
            <choice xml:lang="it">Riservata (0xC)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xD)">
            <choice>Reserved (0xD)</choice>
            <choice xml:lang="it">Riservata (0xD)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xE)">
            <choice>Reserved (0xE)</choice>
            <choice xml:lang="it">Riservata (0xE)</choice>
          </enumChoice>
          <enumChoice choice="Reserved (0xF)">
            <choice>Reserved (0xF)</choice>
            <choice xml:lang="it">Riservata (0xF)</choice>
          </enumChoice>
        </enumVal>
        <label>Function 4 behavior</label>
        <label xml:lang="it">Comportamento Funzione 4</label>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/digitrax/bemf.xml"/>
      <variable CV="61" mask="XXXXXXVX" item="Advanced Ack">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-OffOn.xml"/>
        <label>Digitrax Transponding</label>
        <label xml:lang="it">Transponding Digitrax</label>
      </variable>
      <variable item="Split field motor" CV="61" mask="XXXXXVXX">
        <enumVal>
          <enumChoice choice="Normal DC motor">
            <choice>Normal DC motor</choice>
            <choice xml:lang="it">Normale Motore CC</choice>
          </enumChoice>
          <enumChoice choice="Split field/AC motor">
            <choice>Split field/AC motor</choice>
            <choice xml:lang="it">Motore in AC</choice>
          </enumChoice>
        </enumVal>
        <label>Split field motor</label>
        <label xml:lang="it">Motore in AC</label>
      </variable>
      <variable item="Directional Headlights" CV="61" mask="XXXXXXXV">
        <enumVal>
          <enumChoice choice="Normal headlight operation">
            <choice>Normal headlight operation</choice>
            <choice xml:lang="it">Normale operatività Luci di testa</choice>
          </enumChoice>
          <enumChoice choice="Reverse light lead controlled by F4">
            <choice>Reverse light lead controlled by F4</choice>
            <choice xml:lang="it">Inversione Luci di coda controllate da F4</choice>
          </enumChoice>
        </enumVal>
        <label>Directional Headlights</label>
        <label xml:lang="it">Luci Direzionali</label>
      </variable>
      <variable item="Vstart/Vmid/Vfull in 128 step mode" CV="61" mask="XXVXXXXX">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-enabledDisabled.xml"/>
        <label>Vstart/Vmid/Vfull in 128 step mode</label>
        <label xml:lang="it">Vstart/Vmid/Vfull in modalità 128 step</label>
      </variable>
      <variable item="Short-circuit protection" CV="61" mask="XVXXXXXX" comment="Undocumented feature, occasionally requested by Digitrax tech support">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-enabledDisabled.xml"/>
        <label>Short-circuit protection</label>
        <label xml:lang="it">Protezione Corto-circuito</label>
        <comment>Undocumented feature, occasionally requested by Digitrax tech support</comment>
        <comment xml:lang="it">Funzione non documentata, richiesta occasionalmente dal supporto tecnico Digitraxx</comment>
      </variable>
      <variable CV="62" mask="VVVVXXXX" item="Global lighting option 1" comment="0 is no keep-alive, use with LEDs">
        <decVal max="15"/>
        <label>Lamp keep-alive voltage</label>
        <label xml:lang="it">Tensione mantenimento Lampade</label>
        <comment>0 is no keep-alive, use with LEDs</comment>
        <comment xml:lang="it">0=nessuna, usare con i LED</comment>
      </variable>
      <variable CV="62" mask="XXXXVVVV" item="Global lighting option 2" comment="0 is fast, 15 is slow, 4 is recommended for start">
        <decVal max="15"/>
        <label>FX rate adjust</label>
        <label xml:lang="it">Aggiustamento FX</label>
        <comment>0 is fast, 15 is slow, 4 is recommended for start</comment>
        <comment xml:lang="it">0=veloce, 15= lento, 4 raccomandato per iniziare</comment>
      </variable>
      <variable CV="63" item="Global lighting option 3" comment="0 is none, 40 is realistic 5 seconds, 255 is about 20 seconds">
        <decVal/>
        <label>Ditch light hold-over time</label>
        <label xml:lang="it">Tempo di carica Luci Ditch</label>
        <comment>0 is none, 40 is realistic 5 seconds, 255 is about 20 seconds</comment>
        <comment xml:lang="it">0=nessuno, 40 realistico (5sec), 255= circa 20 sec.</comment>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/kickStart.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/fwdTrim.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/revTrim.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv67speedTableBasic.xml"/>
      <!-- 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"/>
      <constant item="F1 controls output 3" minOut="3" minFn="1" default="1"/>
      <constant item="F2 controls output 4" minOut="4" minFn="2" default="1"/>
      <constant item="F3 controls output 5" minOut="5" minFn="3" default="1"/>
      <constant item="F4 controls output 6" minOut="6" minFn="4" default="1"/>
      <constant item="F5 controls output 7" minOut="7" minFn="5" default="1"/>
      <constant item="F6 controls output 8" minOut="8" minFn="6" default="1"/>
      <constant item="F7 controls output 9" minOut="9" minFn="7" default="1"/>
      <constant item="F8 controls output 10" minOut="10" minFn="8" default="1"/>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="8">
        <label>Reset All CVs</label>
        <label xml:lang="it">Reset delle CV ai valori di fabbrica</label>
      </factReset>
      <factReset label="Reset All CVs except speed table" CV="8" default="9">
        <label>Reset All CVs except speed table</label>
        <label xml:lang="it">Reset delle CV salvo Tabella Velocità ai valori di fabbrica</label>
      </factReset>
    </resets>
  </decoder>
  <pane>
    <column>
      <display item="Advanced consist droop compensation for speed stabilization"/>
      <display item="Speed Compensation Control"/>
      <display item="Transponding"/>
      <display item="Split field motor"/>
      <display item="Vstart/Vmid/Vfull in 128 step mode"/>
      <display item="Short-circuit protection"/>
    </column>
    <name>Digitrax</name>
  </pane>
</decoder-config>
