<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2004, 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="peter.brandenburg@t-online.de" version="3" lastUpdated="20042912"/>
  <!-- Based on the contribution of "sip@euronet.nl",Zimo_MX61_2000_11.xml-->
  <!-- version 2 - add consist direction - jake -->
  <!-- version 3 - added CT-programmer panes and tooltips- Peter -->
  <decoder>
    <family name="DCX Series (old)" mfg="CT Elektronik">
      <model model="DCX50" numOuts="7" numFns="5" maxMotorCurrent="1.2 Amp" maxTotalCurrent="1.2 Amp">
        <versionCV lowVersionID="3"/>
        <output name="1" label="White"/>
        <output name="2" label="Yellow"/>
        <output name="3" label="Brown"/>
        <output name="4" label="Brown"/>
        <output name="5" label="NC-Logic Level"/>
        <output name="6" label="NC-Logic Level"/>
        <output name="7" label="NC-Logic Level"/>
      </model>
      <model model="DCX70" numOuts="7" numFns="5" maxMotorCurrent="0.8 Amp" maxTotalCurrent="0.8 Amp">
        <versionCV lowVersionID="3"/>
        <output name="1" label="White"/>
        <output name="2" label="Yellow"/>
        <output name="3" label="Brown"/>
        <output name="4" label="Brown"/>
        <output name="5" label="NC-Logic Level"/>
        <output name="6" label="NC-Logic Level"/>
        <output name="7" label="NC-Logic Level"/>
      </model>
      <model model="DCX73" numOuts="2" numFns="2" maxMotorCurrent="0.8 Amp" maxTotalCurrent="0.8 Amp">
        <versionCV lowVersionID="3"/>
        <output name="1" label="White"/>
        <output name="2" label="Yellow"/>
      </model>
    </family>
    <programming direct="yes" paged="no" register="no" ops="yes"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable item="Vstart" CV="2" default="2" comment="Range 0-252">
        <decVal max="252"/>
        <label>Vstart</label>
        <label xml:lang="it">Volt Partenza</label>
        <label xml:lang="fr">V démarr.</label>
        <label xml:lang="de">Startspannung</label>
        <comment>Range 0-252</comment>
      </variable>
      <variable CV="3" default="1" item="Accel" comment="Range 0-255">
        <decVal max="255"/>
        <label>Acceleration</label>
        <label xml:lang="it">Accellerazione (0-255)</label>
        <label xml:lang="fr">Accelération (0-255)</label>
        <label xml:lang="de">Anfahrverzögerung (0-255)</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable CV="4" default="1" item="Decel" comment="Range 0-255">
        <decVal max="255"/>
        <label>Deceleration</label>
        <label xml:lang="it">Decellerazione (0-255)</label>
        <label xml:lang="fr">Décélération (0-255)</label>
        <label xml:lang="de">Bremszeit (0-255)</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable item="Vhigh" CV="5" default="252" comment="Range 0-252">
        <decVal max="252"/>
        <label>Vhigh</label>
        <label xml:lang="it">Volt Massimi (0-252)</label>
       <label xml:lang="fr">Vmax(0-252)</label>
       <label xml:lang="de">Höchstgeschwindigkeit(0-252)</label>
        <comment>Range 0-252</comment>
      </variable>
      <variable item="Vmid" CV="6" default="75" comment="Range 0-252">
        <decVal max="252"/>
        <label>Vmid</label>
        <label xml:lang="it">Volt Intermedi(0-252)</label>
        <label xml:lang="fr">Vmoy(0-252)</label>
        <label xml:lang="de">Mittengeschwindigkeit(0-252)</label>
        <comment>Range 0-252</comment>
      </variable>
      <variable CV="7" item="Decoder Version" readOnly="yes">
        <decVal/>
        <label>Decoder Version</label>
        <label xml:lang="it">Versione Decoder: </label>
        <label xml:lang="fr">Version décodeur: </label>
        <label xml:lang="de">Decoder Version: </label>
      </variable>
      <variable CV="8" readOnly="yes" item="Manufacturer" default="117">
        <decVal/>
        <label>Manufacturer ID</label>
        <label xml:lang="it">ID Costruttore: </label>
        <label xml:lang="fr">ID constructeur: </label>
        <label xml:lang="de">Hersteller ID: </label>
      </variable>
      <!--	<variable label="Manufacturer ID - Reset" CV="8">
			<decVal/>
			</variable>	-->
      <variable item="Total PWM Period" CV="9" default="150" tooltip="13-63=30-150Hz, 141-191=16kHz" comment="Range 13-63/141-191">
        <decVal/>
        <label>Total PWM Period</label>
        <label xml:lang="fr">Total PWM Period(fr)</label>
        <label xml:lang="it">Periodo Totale PWM</label>
        <comment>Range 13-63/141-191</comment>
      </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"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29table3-28.xml"/>
      <variable item="FL(f) controls output 1" CV="33" default="1" mask="XXXXXXXV" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 1</label>
      </variable>
      <variable item="FL(f) controls output 2" CV="33" mask="XXXXXXVX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 2</label>
      </variable>
      <variable item="FL(f) controls output 3" CV="33" mask="XXXXXVXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 3</label>
      </variable>
      <variable item="FL(f) controls output 4" CV="33" mask="XXXXVXXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 4</label>
      </variable>
      <variable item="FL(f) controls output 5" CV="33" mask="XXXVXXXX" minOut="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 5</label>
      </variable>
      <variable item="FL(f) controls output 6" CV="33" mask="XXVXXXXX" minOut="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 6</label>
      </variable>
      <variable item="FL(f) controls output 7" CV="33" mask="XVXXXXXX" minOut="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(f) controls output 7</label>
      </variable>
      <variable item="FL(r) controls output 1" CV="34" mask="XXXXXXXV" minOut="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 1</label>
      </variable>
      <variable item="FL(r) controls output 2" CV="34" default="1" mask="XXXXXXVX" minOut="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 2</label>
      </variable>
      <variable item="FL(r) controls output 3" CV="34" mask="XXXXXVXX" minOut="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 3</label>
      </variable>
      <variable item="FL(r) controls output 4" CV="34" mask="XXXXVXXX" minOut="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 4</label>
      </variable>
      <variable item="FL(r) controls output 5" CV="34" mask="XXXVXXXX" minOut="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 5</label>
      </variable>
      <variable item="FL(r) controls output 6" CV="34" mask="XXVXXXXX" minOut="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 6</label>
      </variable>
      <variable item="FL(r) controls output 7" CV="34" mask="XVXXXXXX" minOut="7">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>FL(r) controls output 7</label>
      </variable>
      <variable item="F1 controls output 1" CV="35" mask="XXXXXXXV" minOut="1" minFn="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 1</label>
      </variable>
      <variable item="F1 controls output 2" CV="35" mask="XXXXXXVX" minOut="2" minFn="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 2</label>
      </variable>
      <variable item="F1 controls output 3" CV="35" default="1" mask="XXXXXVXX" minOut="3" minFn="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 3</label>
      </variable>
      <variable item="F1 controls output 4" CV="35" mask="XXXXVXXX" minOut="4" minFn="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 4</label>
      </variable>
      <variable item="F1 controls output 5" CV="35" mask="XXXVXXXX" minOut="5" minFn="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 5</label>
      </variable>
      <variable item="F1 controls output 6" CV="35" mask="XXVXXXXX" minOut="6" minFn="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 6</label>
      </variable>
      <variable item="F1 controls output 7" CV="35" mask="XVXXXXXX" minOut="7" minFn="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 7</label>
      </variable>
      <variable item="F2 controls output 1" CV="36" mask="XXXXXXXV" minOut="1" minFn="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 1</label>
      </variable>
      <variable item="F2 controls output 2" CV="36" mask="XXXXXXVX" minOut="2" minFn="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 2</label>
      </variable>
      <variable item="F2 controls output 3" CV="36" mask="XXXXXVXX" minOut="3" minFn="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 3</label>
      </variable>
      <variable item="F2 controls output 4" CV="36" default="1" mask="XXXXVXXX" minOut="4" minFn="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 4</label>
      </variable>
      <variable item="F2 controls output 5" CV="36" mask="XXXVXXXX" minOut="5" minFn="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 5</label>
      </variable>
      <variable item="F2 controls output 6" CV="36" mask="XXVXXXXX" minOut="6" minFn="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 6</label>
      </variable>
      <variable item="F2 controls output 7" CV="36" mask="XVXXXXXX" minOut="7" minFn="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 7</label>
      </variable>
      <variable item="F3 controls output 3" CV="37" mask="XXXXXVXX" minOut="3" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 3</label>
      </variable>
      <variable item="F3 controls output 4" CV="37" mask="XXXXVXXX" minOut="4" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 4</label>
      </variable>
      <variable item="F3 controls output 5" CV="37" default="1" mask="XXXVXXXX" minOut="5" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 5</label>
      </variable>
      <variable item="F3 controls output 6" CV="37" mask="XXVXXXXX" minOut="6" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 6</label>
      </variable>
      <variable item="F3 controls output 7" CV="37" mask="XVXXXXXX" minOut="7" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 7</label>
      </variable>
      <variable item="F4 controls output 3" CV="38" mask="XXXXXXXV" minOut="3" minFn="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 3</label>
      </variable>
      <variable item="F4 controls output 4" CV="38" mask="XXXXXXVX" minOut="4" minFn="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 4</label>
      </variable>
      <variable item="F4 controls output 5" CV="38" mask="XXXXXVXX" minOut="5" minFn="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 5</label>
      </variable>
      <variable item="F4 controls output 6" CV="38" default="1" mask="XXXXVXXX" minOut="6" minFn="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 6</label>
      </variable>
      <variable item="F4 controls output 7" CV="38" mask="XXXVXXXX" minOut="7" minFn="4">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 7</label>
      </variable>
      <variable item="F5 controls output 3" CV="39" mask="XXXXXXXV" minOut="3" minFn="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 3</label>
      </variable>
      <variable item="F5 controls output 4" CV="39" mask="XXXXXXVX" minOut="4" minFn="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 4</label>
      </variable>
      <variable item="F5 controls output 5" CV="39" mask="XXXXXVXX" minOut="5" minFn="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 5</label>
      </variable>
      <variable item="F5 controls output 6" CV="39" mask="XXXXVXXX" minOut="6" minFn="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 6</label>
      </variable>
      <variable item="F5 controls output 7" CV="39" default="1" mask="XXXVXXXX" minOut="7" minFn="5">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F5 controls output 7</label>
      </variable>
      <variable item="F6 controls output 3" CV="40" mask="XXXXXXXV" minOut="3" minFn="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 3</label>
      </variable>
      <variable item="F6 controls output 4" CV="40" mask="XXXXXXVX" minOut="4" minFn="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 4</label>
      </variable>
      <variable item="F6 controls output 5" CV="40" mask="XXXXXVXX" minOut="5" minFn="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 5</label>
      </variable>
      <variable item="F6 controls output 6" CV="40" mask="XXXXVXXX" minOut="6" minFn="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 6</label>
      </variable>
      <variable item="F6 controls output 7" CV="40" mask="XXXVXXXX" minOut="7" minFn="6">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F6 controls output 7</label>
      </variable>
      <variable item="Signal Dependent Acceleration" CV="61" default="0" comment="Range 0-255">
        <decVal max="255"/>
        <label>Signal Dependent Acceleration</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable item="Signal Dependent Deceleration" CV="53" default="3" comment="Range 0-255">
        <decVal max="255"/>
        <label>Signal Dependent Deceleration</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable item="-U-" CV="60" default="40" comment="Range 0-252">
        <decVal max="252"/>
        <label>-U-</label>
        <comment>Range 0-252</comment>
      </variable>
      <variable item="-L-" CV="59" default="110" comment="Range 0-252">
        <decVal max="252"/>
        <label>-L-</label>
        <comment>Range 0-252</comment>
      </variable>
      <variable CV="51" default="80" item="EMF Static Config" tooltip="P adjustment, 0-255" comment="Range 0-255">
        <decVal max="255"/>
        <label>P adjustment</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable CV="52" default="35" item="EMF Dynamic Config" tooltip="I adjustment, 0-255" comment="Range 0-255">
        <decVal max="255"/>
        <label>I adjustment</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable CV="49" default="160" item="EMF Droop Config" tooltip="160 = 16V track voltage" comment="Range 0-255">
        <decVal max="255"/>
        <label>Track Voltage reference</label>
        <comment>Range 0-255</comment>
      </variable>
      <variable CV="50" default="255" item="EMF Feedback Cutout" tooltip="BEMF Pull" comment="Controls how much BEMF (0-no BEMF to 255-max)">
        <decVal min="0" max="255"/>
        <label>BEMF Pull</label>
        <comment>Controls how much BEMF (0-no BEMF to 255-max)</comment>
      </variable>
      <variable item="Output Reduction" CV="54" default="100" comment="Controls function output voltage">
        <decVal min="0" max="100"/>
        <label>Output Reduction</label>
        <comment>Controls function output voltage</comment>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv67speedTableBasic.xml"/>
      <variable CV="105" item="User Id #1">
        <decVal/>
        <label>User Private ID #1</label>
      </variable>
      <variable CV="106" item="User Id #2">
        <decVal/>
        <label>User Private ID #2</label>
      </variable>
      <variable item="Address Pulse" CV="29" mask="XXXXVXXX" default="1">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Address Pulse</label>
      </variable>
      <variable item="NMRA" CV="29" mask="XVXXXXXX" default="1">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>NMRA</label>
      </variable>
      <variable CV="29" item="Dither frequency" tooltip="PWM low=30-150Hz, high=16kHz" mask="VXXXXXXX" default="1">
        <enumVal>
          <enumChoice choice="30-150Hz">
            <choice>30-150Hz</choice>
          </enumChoice>
          <enumChoice choice="16kHz">
            <choice>16kHz</choice>
          </enumChoice>
        </enumVal>
        <label>PWM period low/high</label>
      </variable>
      <variable item="Dim Output 1" CV="57" mask="XXXXXXXV" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Dim Output 1</label>
      </variable>
      <variable item="Dim Output 2" CV="57" mask="XXXXXXVX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Dim Output 2</label>
      </variable>
      <variable item="Dim Output 3" CV="57" mask="XXXXXVXX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Dim Output 3</label>
      </variable>
      <variable item="Dim Output 4" CV="57" mask="XXXXVXXX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Dim Output 4</label>
      </variable>
      <variable item="Dim Output 5" CV="57" mask="XXXVXXXX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Dim Output 5</label>
      </variable>
      <variable item="Dim Output 6" CV="57" mask="XXVXXXXX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Dim Output 6</label>
      </variable>
      <variable item="Dim Output 7" CV="57" mask="XVXXXXXX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Dim Output 7</label>
      </variable>
      <variable item="Coupler Control reduced voltage" CV="55" default="32" comment="Controls Voltage to hold-     0=0%/100=100% Voltage">
        <decVal min="0" max="100"/>
        <label>Coupler Control reduced voltage</label>
        <comment>Controls Voltage to hold-     0=0%/100=100% Voltage</comment>
      </variable>
      <variable item="Coupler Control time full voltage" CV="56" default="60" comment="Controls Time with full voltage applied-     1/20 sec/0=0sec/60=3sec/255=12,5sec">
        <decVal min="0" max="255"/>
        <label>Coupler Control time full voltage</label>
        <comment>Controls Time with full voltage applied-     1/20 sec/0=0sec/60=3sec/255=12,5sec</comment>
      </variable>
      <variable item="Coupler Output 1" CV="58" mask="XXXXXXXV" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Coupler Output 1</label>
      </variable>
      <variable item="Coupler Output 2" CV="58" mask="XXXXXXVX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Coupler Output 2</label>
      </variable>
      <variable item="Coupler Output 3" CV="58" mask="XXXXXVXX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Coupler Output 3</label>
      </variable>
      <variable item="Coupler Output 4" CV="58" mask="XXXXVXXX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Coupler Output 4</label>
      </variable>
      <variable item="Coupler Output 5" CV="58" mask="XXXVXXXX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Coupler Output 5</label>
      </variable>
      <variable item="Coupler Output 6" CV="58" mask="XXVXXXXX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Coupler Output 6</label>
      </variable>
      <variable item="Coupler Output 7" CV="58" mask="XVXXXXXX" default="0">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Coupler Output 7</label>
      </variable>
    </variables>
  </decoder>
  <pane>
    <column>
      <display item="Output Reduction" layout="below" format="vslider" label="">
        <label/>
      </display>
      <display item="Output Reduction" layout="below" tooltip="50=50% output reduction"/>
    </column>
    <column>
      <label>
        <text>Dim Outputs (CV 57)</text>
      </label>
      <separator/>
      <display item="Dim Output 1" format="radiobuttons" label="Output 1">
        <label>Output 1</label>
      </display>
      <display item="Dim Output 2" format="radiobuttons" label="Output 2">
        <label>Output 2</label>
      </display>
      <display item="Dim Output 3" format="radiobuttons" label="Output 3">
        <label>Output 3</label>
      </display>
      <display item="Dim Output 4" format="radiobuttons" label="Output 4">
        <label>Output 4</label>
      </display>
      <display item="Dim Output 5" format="radiobuttons" label="Output 5">
        <label>Output 5</label>
      </display>
      <display item="Dim Output 6" format="radiobuttons" label="Output 6">
        <label>Output 6</label>
      </display>
    </column>
    <column>
      <label>
        <text>F-6 Key Dims Outputs</text>
      </label>
      <separator/>
      <display item="F6 key dims Output 1" format="checkbox" label="Output 1">
        <label>Output 1</label>
      </display>
      <display item="F6 key dims Output 2" format="checkbox" label="Output 2">
        <label>Output 2</label>
      </display>
      <display item="F6 key dims Output 3" format="checkbox" label="Output 3">
        <label>Output 3</label>
      </display>
      <display item="F6 key dims Output 4" format="checkbox" label="Output 4">
        <label>Output 4</label>
      </display>
      <display item="F6 key dims Output 5" format="checkbox" label="Output 5">
        <label>Output 5</label>
      </display>
      <display item="F6 key dims Output 6" format="checkbox" label="Output 6">
        <label>Output 6</label>
      </display>
      <display item="F6 key inverted" format="checkbox" label="F-6 Key inverted">
        <label>F-6 Key inverted</label>
      </display>
      <label>
        <text> </text>
      </label>
      <label>
        <text>F-7 Key Dims Outputs</text>
      </label>
      <separator/>
      <display item="F7 key dims Output 1" format="checkbox" label="Output 1">
        <label>Output 1</label>
      </display>
      <display item="F7 key dims Output 2" format="checkbox" label="Output 2">
        <label>Output 2</label>
      </display>
      <display item="F7 key dims Output 3" format="checkbox" label="Output 3">
        <label>Output 3</label>
      </display>
      <display item="F7 key dims Output 4" format="checkbox" label="Output 4">
        <label>Output 4</label>
      </display>
      <display item="F7 key dims Output 5" format="checkbox" label="Output 5">
        <label>Output 5</label>
      </display>
      <display item="F7 key dims Output 6" format="checkbox" label="Output 6">
        <label>Output 6</label>
      </display>
      <display item="F7 key inverted" format="checkbox" label="F-7 Key inverted">
        <label>F-7 Key inverted</label>
      </display>
    </column>
    <name>Output Handling</name>
  </pane>
  <pane>
    <column>
      <display item="Shunting Usage"/>
      <display item="Shunt Function Key"/>
      <display item="Half Speed"/>
      <label>
        <text> </text>
      </label>
      <display item="Special Function Usage"/>
    </column>
    <column>
      <display item="Coupler Control reduced voltage"/>
      <display item="Coupler Control time full voltage"/>
      <label>
        <text>      Coupler Outputs</text>
      </label>
      <separator/>
      <display item="Coupler Output 1" format="checkbox" label="Output 1">
        <label>Output 1</label>
      </display>
      <display item="Coupler Output 2" format="checkbox" label="Output 2">
        <label>Output 2</label>
      </display>
      <display item="Coupler Output 3" format="checkbox" label="Output 3">
        <label>Output 3</label>
      </display>
      <display item="Coupler Output 4" format="checkbox" label="Output 4">
        <label>Output 4</label>
      </display>
      <display item="Coupler Output 5" format="checkbox" label="Output 5">
        <label>Output 5</label>
      </display>
      <display item="Coupler Output 6" format="checkbox" label="Output 6">
        <label>Output 6</label>
      </display>
    </column>
    <column>
      <label>
        <text>Analog Mode Functions</text>
      </label>
      <separator/>
      <display item="Analog Mode Function Status - F1" format="checkbox" label="F-1">
        <label>F-1</label>
      </display>
      <display item="Analog Mode Function Status - F2" format="checkbox" label="F-2">
        <label>F-2</label>
      </display>
      <display item="Analog Mode Function Status - F3" format="checkbox" label="F-3">
        <label>F-3</label>
      </display>
      <display item="Analog Mode Function Status - F4" format="checkbox" label="F-4">
        <label>F-4</label>
      </display>
      <display item="Analog Mode Function Status - F5" format="checkbox" label="F-5">
        <label>F-5</label>
      </display>
      <display item="Analog Mode Function Status - F6" format="checkbox" label="F-6">
        <label>F-6</label>
      </display>
      <display item="Analog Mode Function Status - F7" format="checkbox" label="F-7">
        <label>F-7</label>
      </display>
      <display item="Analog Mode Function Status - F8" format="checkbox" label="F-8">
        <label>F-8</label>
      </display>
    </column>
    <name>Advanced</name>
  </pane>
  <pane>
    <column>
      <display item="Signal Dependent Acceleration"/>
      <display item="Signal Dependent Deceleration"/>
    </column>
    <column>
      <display item="Address Pulse"/>
      <display item="NMRA"/>
    </column>
    <column>
      <label>
        <text>Signal Dependent Speed Limits</text>
      </label>
      <separator/>
      <label>
        <text> </text>
      </label>
      <display item="-U-" tooltip="60"/>
      <display item="-L-" tooltip="59"/>
    </column>
    <name>Zimo</name>
  </pane>
</decoder-config>
