<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2002, 2005, 2007 All rights reserved -->
<!-- $Id: Digitrax_01x3.xml 17977 2011-07-18 17:23:46Z zoo $ -->
<!--                                                                        -->
<!-- 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 Ulvestad" version="30" lastUpdated="20091101"/>
  <version author="Peter Ulvestad" version="29" lastUpdated="20090704"/>
  <version author="Peter Ulvestad" version="28" lastUpdated="20080908"/>
  <version author="Bob Jacobsen" version="27" lastUpdated="20080819"/>
  <version author="Michael Mosher" version="26" lastUpdated="20080504"/>
  <version author="Bob Jacobsen" version="25" lastUpdated="20080313"/>
  <version author="Martin Gostling" version="24" lastUpdated="20080308"/>
  <version author="Bob Jacobsen" version="23" lastUpdated="20071120"/>
  <version author="Christopher Zurek" version="22" lastUpdated="20070831"/>
  <version author="Bob Blackwell afticarr@sympatico.ca" version="21" lastUpdated="20070830"/>
  <version author="Bob Blackwell afticarr@sympatico.ca" version="20" lastUpdated="20070828"/>
  <version author="Michael Mosher" version="19" lastUpdated="20070824"/>
  <version author="Bob Blackwell afticarr@sympatico.ca" version="18" lastUpdated="20070304"/>
  <version author="Bob Blackwell afticarr@sympatico.ca" version="17" lastUpdated="20070216"/>
  <version author="Bob Blackwell afticarr@sympatico.ca" version="16" lastUpdated="20060807"/>
  <version author="Howard G. Penny" version="15" lastUpdated="20050422"/>
  <version author="Simon Ginsburg" version="13" lastUpdated="20050422"/>
<!-- Created from version 5 of the 1x2 file -->
<!-- V2: fix default values for CV56, 57 BEMF -->
<!-- V3: change to new name -->
<!-- V4: change to yet another name, add decoders -->
<!-- V5: advanced consist options and parameters added -->
<!-- V6: BEMF defaults updated - jake -->
<!-- V7: decoder lock feature - jake -->
<!-- V8: Function Output Map, CV's 33 to 46, defaults updated by Bob Blackwell, CV9 added -->
<!-- Version 9 - fix "rule 17" typos -->
<!-- Version 10 - remove DH123 (created new file for it), fixed decoder sizes -->
<!-- Version 10.1 - changed spelling of "behavior" (Jack Shall) -->
<!-- Version 11 - added DZ123 (Bob Jacobsen) -->
<!-- Version 12 - added some tooltips (Jack Shall) -->
<!-- Version 13 - added DN163K1B and DN163I0 (Simon Ginsburg) -->
<!-- Version 14 - fixed mask for "Vstart/Vmid/Vfull in 128 step mode" - Bob Jacobsen -->
<!-- Version 15 - added factory reset menu items (Howard G. Penny) -->
<!-- Version 16 - added DN163K1C (Simon Ginsburg, Bob Blackwell) -->
<!-- Version 17 - added DN163A2, DN163K0D, DN163I1A, DN163I1B, DN163I1C, DH163PS; corrected maxMotorCurrent and output name for most DN series decoders ( Bob Blackwell) -->
<!-- Version 18 - corrected errors introduced in Version 17 maxMotorCurrent. Added dimensions for DH163L0, DN143,  (Bob Blackwell) -->
<!-- Version 19 - Added DH165xx decoders -->
<!-- Version 20 - Added DN123K3, Corrected list sorted error; moved DG series ahead of DH series  (Bob Blackwell) -->
<!-- Version 21 - Revised highVersionID to accomodate DN123K3. Value changed from 49 to 51. New value provided by Kent Sulivan (Bob Blackwell) -->
<!-- Version 22 - Removed "Rear Headlight Controlled by F4", not supported in this series of decoders  (Christopher Zurek) -->
<!-- Version 23 - Updated connectors from web info (Bob Jacobsen) -->
<!-- Version 24 - Added  DN143IP and DZ125xx decoders -->
<!-- Version 25 - Add DN143K1, DN143K2 (Bob Jacobsen) -->
<!-- Version 26 - Add DH165Q1 (Michael Mosher) -->
<!-- Version 27 - DG*83 have functions through F12 (Bob Jacobsen) -->
<!-- Version 28 - Add DH165IP (Peter Ulvestad) -->
<!-- Version 29 - Add DN163K1D. Updated 'maxMotorCurrents' on DN163K1A,B,C (Peter Ulvestad) -->
<!-- Version 30 - Add DZ123MO (Peter Ulvestad) -->
  <decoder>
    <family name="Series 3 with FX3, silent, readback" mfg="Digitrax" lowVersionID="49" highVersionID="51">
      <model model="DG383" numOuts="8" numFns="14" maxMotorCurrent="3A (peak=5A)" formFactor="O/G" connector="9pin">
        <output name="4" label="Violet" connection="wire"/>
        <output name="5" label="Brown" connection="wire"/>
        <output name="6" label="Wht/Yel" connection="wire"/>
        <output name="7" label="Wht/Grn" connection="wire"/>
        <output name="8" label="Wht/Blu" connection="wire"/>
        <size length="2.23" width="1.45" height="0" units="inches"/>
      </model>
      <model model="DG583" numOuts="8" numFns="14" maxMotorCurrent="5A (peak=10A)" formFactor="O/G" connector="9pin">
        <output name="4" label="Violet" connection="wire"/>
        <output name="5" label="Brown" connection="wire"/>
        <output name="6" label="Wht/Yel" connection="wire"/>
        <output name="7" label="Wht/Grn" connection="wire"/>
        <output name="8" label="Wht/Blu" connection="wire"/>
        <size length="2.23" width="1.45" height="0" units="inches"/>
      </model>
      <model model="DH163" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="9pin">
        <output name="4" label="Violet" connection="wire"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="1.05" width="0.67" height="0.25" units="inches"/>
      </model>
      <model model="DH163AT" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="9pin">
        <output name="4" label="Violet" connection="wire"/>
        <output name="5" label="Pad 1" connection="solder"/>
        <output name="6" label="Pad 2" connection="solder"/>
        <size length="1.05" width="0.67" height="0.25" units="inches"/>
      </model>
      <model model="DH163A0" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="9pin">
        <output name="1" label="Pad" connection="solder"/>
        <output name="2" label="Pad" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.877" width="0.667" height="0.173" units="inches"/>
      </model>
      <model model="DH163D" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="9pin">
        <output name="4" label="Violet" connection="wire"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="1.05" width="0.67" height="0.25" units="inches"/>
      </model>
      <model model="DH163IP" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="NMRAmedium">
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="1.05" width="0.67" height="0.25" units="inches"/>
      </model>
      <model model="DH163K0" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="9pin">
        <output name="1" label="Pad" connection="solder"/>
        <output name="2" label="Pad" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.877" width="0.667" height="0.173" units="inches"/>
      </model>
      <model model="DH163L0" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="9pin">
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="1.05" width=".67" height=".25" units="inches"/>
      </model>
      <model model="DH163P" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="NMRAmedium">
        <output name="3" label="Green" connection="wire"/>
        <output name="4" label="Violet" connection="wire"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="1.05" width="0.67" height="0.25" units="inches"/>
      </model>
      <model model="DH163PS" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="NMRAmedium">
        <output name="3" label="Green" connection="wire"/>
        <output name="4" label="Violet" connection="wire"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="1.05" width="0.67" height="0.25" units="inches"/>
      </model>
      <model model="DH165A0" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="9pin">
        <output name="1" label="Pad" connection="solder"/>
        <output name="2" label="Pad" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.877" width="0.667" height="0.173" units="inches"/>
      </model>
      <model model="DH165IP" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="NMRAmedium">
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="1.05" width="0.67" height="0.25" units="inches"/>
      </model>
      <model model="DH165K0" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="9pin">
        <output name="1" label="Pad" connection="solder"/>
        <output name="2" label="Pad" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.877" width="0.667" height="0.173" units="inches"/>
      </model>
      <model model="DH165K1A" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="LED" connection="solder"/>
        <output name="4" label="LED" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.877" width="0.667" height="0.173" units="inches"/>
      </model>
      <model model="DH165L0" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO" connector="9pin">
        <output name="1" label="Pin" connection="solder"/>
        <output name="2" label="Pin" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="1.05" width=".67" height=".25" units="inches"/>
      </model>
      <model model="DH165Q1" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="HO">
        <output name="1" label="Pin" connection="solder"/>
        <output name="2" label="Pin" connection="solder"/>
        <output name="3" label="Pin" connection="solder"/>
        <output name="4" label="Pin" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.877" width=".667" height=".173" units="inches"/>
      </model>
      <model model="DN123K3" numOuts="2" numFns="8" maxMotorCurrent="1.25A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <size length="Unknown" width="Unknown" height="Unknown" units="inches"/>
      </model>
      <model model="DN143" numOuts="4" numFns="8" maxMotorCurrent="1.25A (peak=2A)" formFactor="N" connector="9pin">
        <output name="4" label="Violet" connection="wire"/>
        <size length=".55" width=".36" height=".13" units="inches"/>
      </model>
      <model model="DN143IP" numOuts="4" numFns="8" lowVersionID="36" highVersionID="64" maxMotorCurrent="1.A (peak=1.5A)" formFactor="Z" connector="NMRAmedium">
        <output name="3" label="Pad (Green)" connection="solder"/>
        <output name="4" label="Pad (Violet)" connection="solder"/>
        <size length="0.55" width="0.36" height="0.13" units="inches"/>
      </model>
      <model model="DN143K1" numOuts="4" numFns="8" maxMotorCurrent="1.25A (peak=2A)" formFactor="Kato N Locomotive" connector="9pin">
        <output name="4" label="Violet" connection="wire"/>
        <size length=".55" width=".36" height=".13" units="inches"/>
      </model>
      <model model="DN143K2" numOuts="4" numFns="8" maxMotorCurrent="1.25A (peak=2A)" formFactor="Kato N Locomotive" connector="9pin">
        <output name="4" label="Violet" connection="wire"/>
        <size length=".55" width=".36" height=".13" units="inches"/>
      </model>
      <model model="DN163" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="N" connector="9pin">
        <output name="4" label="Violet" connection="wire"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="0" width="0" height="0" units="inches"/>
      </model>
      <model model="DN163A0" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="3.0015" width="0.374" height="0.157" units="inches"/>
      </model>
      <model model="DN163A1" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="3.875" width="3.374" height="0.157" units="inches"/>
      </model>
      <model model="DN163A2" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="3.875" width="3.374" height="0.157" units="inches"/>
      </model>
      <model model="DN163I0" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="3.0015" width="0.374" height="0.157" units="inches"/>
      </model>
      <model model="DN163I1A" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="Pad" connection="solder"/>
        <output name="2" label="Pad" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.165" width="0.472" height="0.098" units="inches"/>
      </model>
      <model model="DN163I1B" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="Pad" connection="solder"/>
        <output name="2" label="Pad" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.165" width="0.472" height="0.098" units="inches"/>
      </model>
      <model model="DN163I1C" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="Pad" connection="solder"/>
        <output name="2" label="Pad" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.165" width="0.472" height="0.098" units="inches"/>
      </model>
      <model model="DN163K0A" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.2165" width="0.5485" height="0.1015" units="inches"/>
      </model>
      <model model="DN163K0B" numOuts="6" numFns="10" maxMotorCurrent="1.0A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="Pad" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.2165" width="0.5485" height="0.1015" units="inches"/>
      </model>
      <model model="DN163K0D" numOuts="6" numFns="10" maxMotorCurrent="1.0A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.2165" width="0.5485" height="0.1015" units="inches"/>
      </model>
      <model model="DN163K1A" numOuts="6" numFns="10" maxMotorCurrent="1.0A (peak=1.25A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="3.11" width="0.426" height="0.195" units="inches"/>
      </model>
      <model model="DN163K1B" numOuts="6" numFns="10" maxMotorCurrent="1.0A (peak=1.25A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="3.11" width="0.426" height="0.195" units="inches"/>
      </model>
      <model model="DN163K1C" numOuts="6" numFns="10" maxMotorCurrent="1.0A (peak=1.25A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="3.11" width="0.426" height="0.195" units="inches"/>
      </model>
      <model model="DN163K1D" numOuts="6" numFns="10" maxMotorCurrent="1.0A (peak=1.25A)" formFactor="N">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="3.11" width="0.426" height="0.195" units="inches"/>
      </model>
      <model model="DN163K2" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=2A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="LED" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="3.18" width="0.354" height="0.128" units="inches"/>
      </model>
      <model model="DN163M0" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=1.5A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="Pad" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.158" width="0.58" height="0.135" units="inches"/>
      </model>
      <model model="DN163PS" numOuts="6" numFns="10" maxMotorCurrent="1.5A (peak=1.5A)" formFactor="N" connector="9pin">
        <output name="1" label="LED" connection="solder"/>
        <output name="2" label="Pad" connection="solder"/>
        <output name="3" label="Pad" connection="solder"/>
        <output name="4" label="Pad" connection="solder"/>
        <output name="5" label="Pad" connection="solder"/>
        <output name="6" label="Pad" connection="solder"/>
        <size length="2.158" width="0.58" height="0.135" units="inches"/>
      </model>
      <model model="DZ123" numOuts="2" numFns="8" lowVersionID="36" highVersionID="64" maxMotorCurrent="1A (peak=2A)" formFactor="Z" connector="9pin">
        <size length="0.55" width="0.36" height="0.13" units="inches"/>
      </model>
      <model model="DZ123MO" numOuts="2" numFns="8" lowVersionID="36" highVersionID="64" maxMotorCurrent="1A (peak=2A)" formFactor="Z" connector="9pin">
        <size length="0.55" width="0.36" height="0.13" units="inches"/>
      </model>
      <model model="DZ143" numOuts="4" numFns="8" lowVersionID="64" highVersionID="65" maxMotorCurrent="1.25A (peak=2A)" formFactor="Z" connector="9pin">
        <output name="4" label="Violet" connection="wire"/>
        <size length="0.55" width="0.36" height="0.13" units="inches"/>
      </model>
      <model model="DZ143PS" numOuts="4" numFns="8" lowVersionID="64" highVersionID="65" maxMotorCurrent="1.25A (peak=2A)" formFactor="Z" connector="9pin">
        <output name="4" label="Violet" connection="wire"/>
        <size length="0.55" width="0.36" height="0.13" units="inches"/>
      </model>
      <model model="DZ125" numOuts="2" numFns="8" lowVersionID="36" highVersionID="64" maxMotorCurrent="1A (peak=2A)" formFactor="Z" connector="9pin">
        <size length="0.418" width="0.340" height="0.112" units="inches"/>
      </model>
      <model model="DZ125PS" numOuts="2" numFns="8" lowVersionID="36" highVersionID="64" maxMotorCurrent="1A (peak=2A)" formFactor="Z" connector="NMRAmedium">
        <size length="0.418" width="0.340" height="0.112" units="inches"/>
      </model>
      <model model="DZ125IN" numOuts="2" numFns="8" lowVersionID="36" highVersionID="64" maxMotorCurrent="1A (peak=2A)" formFactor="Z" connector="NMRAsmall">
        <size length="0.418" width="0.340" height="0.112" units="inches"/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes" transpRead="yes"/>
    <variables>
      <variable label="Primary Address" CV="1" comment="Short address" item="Short Address" default="03">
        <shortAddressVal/>
        <label>Primary Address</label>
        <comment>Short address</comment>
      </variable>
      <variable label="Start Volts" CV="2" item="Vstart" comment="A value of 255 corresponds to 100%">
        <decVal/>
        <label>Start Volts</label>
        <comment>A value of 255 corresponds to 100%</comment>
      </variable>
      <variable label="Acceleration Rate" CV="3" item="Accel">
        <decVal max="31"/>
        <label>Acceleration Rate</label>
      </variable>
      <variable label="Deceleration Rate" CV="4" item="Decel">
        <decVal max="31"/>
        <label>Deceleration Rate</label>
      </variable>
      <variable label="Max Volts" CV="5" item="Vhigh">
        <decVal/>
        <label>Max Volts</label>
      </variable>
      <variable label="Mid Volts" CV="6" item="Vmid">
        <decVal/>
        <label>Mid Volts</label>
      </variable>
      <variable label="Version ID" CV="7" readOnly="yes" item="Decoder Version">
        <decVal/>
        <label>Version ID</label>
      </variable>
      <variable label="Manufacturer ID" CV="8" readOnly="yes" item="Manufacturer">
        <decVal/>
        <label>Manufacturer ID</label>
      </variable>
      <variable label="Motor Drive Frequency" CV="9" item="Total PWM Period" default="0" comment="00 is fastest, 255 is slowest">
        <decVal/>
        <label>Motor Drive Frequency</label>
        <comment>00 is fastest, 255 is slowest</comment>
      </variable>
      <variable label="Long Address" CV="17" item="Extended Address">
        <longAddressVal/>
        <label>Long Address</label>
      </variable>
      <variable label="Advanced Consist address" CV="19" item="Consist Address" mask="XVVVVVVV" default="0">
        <decVal max="127"/>
        <label>Advanced Consist address</label>
      </variable>
      <variable label="Advanced Consist direction" CV="19" item="Consist Direction" mask="VXXXXXXX" default="0">
        <enumVal>
          <enumChoice choice="forward">
            <choice>forward</choice>
          </enumChoice>
          <enumChoice choice="reverse">
            <choice>reverse</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist direction</label>
      </variable>
      <variable label="Advanced Consist Function 1 Override" CV="21" mask="XXXXXXXV" item="Consist Address Active For F1" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 1 Override</label>
      </variable>
      <variable label="Advanced Consist Function 2 Override" CV="21" mask="XXXXXXVX" item="Consist Address Active For F2" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 2 Override</label>
      </variable>
      <variable label="Advanced Consist Function 3 Override" CV="21" mask="XXXXXVXX" item="Consist Address Active For F3" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 3 Override</label>
      </variable>
      <variable label="Advanced Consist Function 4 Override" CV="21" mask="XXXXVXXX" item="Consist Address Active For F4" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 4 Override</label>
      </variable>
      <variable label="Advanced Consist Function 5 Override" CV="21" mask="XXXVXXXX" item="Consist Address Active For F5" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 5 Override</label>
      </variable>
      <variable label="Advanced Consist Function 6 Override" CV="21" mask="XXVXXXXX" item="Consist Address Active For F6" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 6 Override</label>
      </variable>
      <variable label="Advanced Consist Function 7 Override" CV="21" mask="XVXXXXXX" item="Consist Address Active For F7" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 7 Override</label>
      </variable>
      <variable label="Advanced Consist Function 8 Override" CV="21" mask="VXXXXXXX" item="Consist Address Active For F8" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 8 Override</label>
      </variable>
      <variable label="Advanced Consist Function 0 Override" CV="22" mask="XXXXXXXV" item="Consist Address Active For F0" default="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Advanced Consist Function 0 Override</label>
      </variable>
<!--
		<variable label="Advanced Consist Function 9 Override" CV="22" mask="XXXVXXXX" item="Consist Address Active For F9" default="0">
			<enumVal>
				<enumChoice choice="No"/>
				<enumChoice choice="Yes"/>
				</enumVal>
			</variable>
		<variable label="Advanced Consist Function 10 Override" CV="22" mask="XXVXXXXX" item="Consist Address Active For F10" default="0">
			<enumVal>
				<enumChoice choice="No"/>
				<enumChoice choice="Yes"/>
				</enumVal>
			</variable>
		<variable label="Advanced Consist Function 11 Override" CV="22" mask="XVXXXXXX" item="Consist Address Active For F11" default="0">
			<enumVal>
				<enumChoice choice="No"/>
				<enumChoice choice="Yes"/>
				</enumVal>
			</variable>
		<variable label="Advanced Consist Function 12 Override" CV="22" mask="VXXXXXXX" item="Consist Address Active For F12" default="0">
			<enumVal>
				<enumChoice choice="No"/>
				<enumChoice choice="Yes"/>
				</enumVal>
			</variable>
-->
      <variable label="Normal direction of motion" CV="29" mask="XXXXXXXV" item="Locomotive Direction">
        <enumVal>
          <enumChoice choice="forward">
            <choice>forward</choice>
          </enumChoice>
          <enumChoice choice="reverse">
            <choice>reverse</choice>
          </enumChoice>
        </enumVal>
        <label>Normal direction of motion</label>
      </variable>
      <variable label="Speed steps" CV="29" mask="XXXXXXVX" item="Speed Step Mode" default="1">
        <enumVal>
          <enumChoice choice="14">
            <choice>14</choice>
          </enumChoice>
          <enumChoice choice="28/128">
            <choice>28/128</choice>
          </enumChoice>
        </enumVal>
        <label>Speed steps</label>
      </variable>
      <variable label="Analog conversion mode" CV="29" mask="XXXXXVXX" default="1" item="Analog (DC) Operation">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Analog conversion mode</label>
      </variable>
      <variable label="Use Speed Table" CV="29" mask="XXXVXXXX" item="Speed Table Definition">
        <enumVal>
          <enumChoice choice="Use Vstart, Vmid, Vhigh">
            <choice>Use Vstart, Vmid, Vhigh</choice>
          </enumChoice>
          <enumChoice choice="Use Table">
            <choice>Use Table</choice>
          </enumChoice>
        </enumVal>
        <label>Use Speed Table</label>
      </variable>
      <variable label="Addressing Mode" CV="29" mask="XXVXXXXX" item="Address Format">
        <enumVal>
          <enumChoice choice="2 digit addressing">
            <choice>2 digit addressing</choice>
          </enumChoice>
          <enumChoice choice="4 digit addressing">
            <choice>4 digit addressing</choice>
          </enumChoice>
        </enumVal>
        <label>Addressing Mode</label>
      </variable>
      <variable label="Forward light F0F effect generated" 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>
      </variable>
      <variable label="Forward light F0F behavior" CV="49" mask="VVVVXXXX" item="Function F0F behavior">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Forward light F0F behavior</label>
      </variable>
      <variable label="Reverse light F0R effect generated" 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>
      </variable>
      <variable label="Reverse light F0R behavior" CV="50" mask="VVVVXXXX" item="Function F0R behavior">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Reverse light F0R behavior</label>
      </variable>
      <variable label="Function 1 effect generated" CV="51" mask="XXXXVVVV" minOut="3">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 1 effect generated</label>
      </variable>
      <variable label="Function 1 behavior" CV="51" mask="VVVVXXXX" minOut="3">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 1 behavior</label>
      </variable>
      <variable label="Function 2 effect generated" CV="52" mask="XXXXVVVV" minOut="4">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 2 effect generated</label>
      </variable>
      <variable label="Function 2 behavior" CV="52" mask="VVVVXXXX" minOut="4">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 2 behavior</label>
      </variable>
      <variable label="Function 3 effect generated" CV="113" mask="XXXXVVVV" minOut="5">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 3 effect generated</label>
      </variable>
      <variable label="Function 3 behavior" CV="113" mask="VVVVXXXX" minOut="5">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 3 behavior</label>
      </variable>
      <variable label="Function 4 effect generated" CV="114" mask="XXXXVVVV" minOut="6">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 4 effect generated</label>
      </variable>
      <variable label="Function 4 behavior" CV="114" mask="VVVVXXXX" minOut="6">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 4 behavior</label>
      </variable>
      <variable label="Function 5 effect generated" CV="115" mask="XXXXVVVV" minOut="7">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 5 effect generated</label>
      </variable>
      <variable label="Function 5 behavior" CV="115" mask="VVVVXXXX" minOut="7">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 5 behavior</label>
      </variable>
      <variable label="Function 6 effect generated" CV="116" mask="XXXXVVVV" minOut="8">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/effectgen.xml"/>
        <label>Function 6 effect generated</label>
      </variable>
      <variable label="Function 6 behavior" CV="116" mask="VVVVXXXX" minOut="8">
        <xi:include href="http://jmri.org/xml/decoders/digitrax/functionbehavior.xml"/>
        <label>Function 6 behavior</label>
      </variable>
      <variable label="Static compensation for speed stabilization" CV="55" default="128" item="EMF Static Config" comment="Factory default is 128, no effect until droop (CV57) set">
        <decVal/>
        <label>Static compensation for speed stabilization</label>
        <comment>Factory default is 128, no effect until droop (CV57) set</comment>
      </variable>
      <variable label="Dynamic compensation for speed stabilization" CV="56" default="48" item="EMF Dynamic Config" comment="Factory default is 48, no effect until droop (CV57) set">
        <decVal/>
        <label>Dynamic compensation for speed stabilization</label>
        <comment>Factory default is 48, no effect until droop (CV57) set</comment>
      </variable>
      <variable label="Solo operation droop compensation for speed stabilization" CV="57" mask="XXXXVVVV" default="6" item="EMF Droop Config" comment="0 is compenstation off, 15 is full on, typical value is 5">
        <decVal max="15"/>
        <label>Solo operation droop compensation for speed stabilization</label>
        <comment>0 is compenstation off, 15 is full on, typical value is 5</comment>
      </variable>
      <variable label="Advanced consist droop compensation for speed stabilization" CV="57" mask="VVVVXXXX" default="0" comment="0 is compenstation off, 15 is full on, typical value is 5">
        <decVal max="15"/>
        <label>Advanced consist droop compensation for speed stabilization</label>
        <comment>0 is compenstation off, 15 is full on, typical value is 5</comment>
      </variable>
      <variable label="Speed Compensation Control" CV="61" mask="XXXVXXXX">
        <enumVal>
          <enumChoice choice="F5 has no effect on speed compensation">
            <choice>F5 has no effect on speed compensation</choice>
          </enumChoice>
          <enumChoice choice="F5 On disables speed compensation">
            <choice>F5 On disables speed compensation</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Compensation Control</label>
      </variable>
      <variable label="Digitrax Transponding" CV="61" mask="XXXXXXVX" tooltip="Activates Digitrax Transponding" item="Advanced Ack">
        <enumVal>
          <enumChoice choice="Off">
            <choice>Off</choice>
          </enumChoice>
          <enumChoice choice="On">
            <choice>On</choice>
          </enumChoice>
        </enumVal>
        <label>Digitrax Transponding</label>
      </variable>
      <variable label="Split field motor" CV="61" mask="XXXXXVXX">
        <enumVal>
          <enumChoice choice="Normal DC motor">
            <choice>Normal DC motor</choice>
          </enumChoice>
          <enumChoice choice="Split field/AC motor">
            <choice>Split field/AC motor</choice>
          </enumChoice>
        </enumVal>
        <label>Split field motor</label>
      </variable>
      <variable label="Vstart/Vmid/Vfull in 128 step mode" CV="61" mask="XXVXXXXX">
        <enumVal>
          <enumChoice choice="Enabled">
            <choice>Enabled</choice>
          </enumChoice>
          <enumChoice choice="Disabled">
            <choice>Disabled</choice>
          </enumChoice>
        </enumVal>
        <label>Vstart/Vmid/Vfull in 128 step mode</label>
      </variable>
      <variable label="Short-circuit protection" CV="61" mask="XVXXXXXX" comment="Undocumented feature, occasionally requested by Digitrax tech support">
        <enumVal>
          <enumChoice choice="Enabled">
            <choice>Enabled</choice>
          </enumChoice>
          <enumChoice choice="Disabled">
            <choice>Disabled</choice>
          </enumChoice>
        </enumVal>
        <label>Short-circuit protection</label>
        <comment>Undocumented feature, occasionally requested by Digitrax tech support</comment>
      </variable>
      <variable label="Lamp keep-alive voltage" 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>
        <comment>0 is no keep-alive, use with LEDs</comment>
      </variable>
      <variable label="FX rate adjust" 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>
        <comment>0 is fast, 15 is slow, 4 is recommended for start</comment>
      </variable>
      <variable label="Ditch light hold-over time" 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>
        <comment>0 is none, 40 is realistic 5 seconds, 255 is about 20 seconds</comment>
      </variable>
      <variable label="Switching speed enabled by F6" CV="54" mask="XXXXXXXV" tooltip="When enabled, F6 reduces top speed">
        <enumVal>
          <enumChoice choice="Disabled">
            <choice>Disabled</choice>
          </enumChoice>
          <enumChoice choice="Enabled">
            <choice>Enabled</choice>
          </enumChoice>
        </enumVal>
        <label>Switching speed enabled by F6</label>
      </variable>
      <variable label="Torque compensation" CV="54" mask="XXXVXXXX">
        <enumVal>
          <enumChoice choice="Enabled">
            <choice>Enabled</choice>
          </enumChoice>
          <enumChoice choice="Disabled">
            <choice>Disabled</choice>
          </enumChoice>
        </enumVal>
        <label>Torque compensation</label>
      </variable>
      <variable label="Decoder Lock Feature" CV="54" mask="XVXXXXXX" default="0">
        <enumVal>
          <enumChoice choice="Enabled">
            <choice>Enabled</choice>
          </enumChoice>
          <enumChoice choice="Disabled">
            <choice>Disabled</choice>
          </enumChoice>
        </enumVal>
        <label>Decoder Lock Feature</label>
      </variable>
      <variable label="Decoder Lock ID number" CV="16" mask="XXXXXVVV" default="0">
        <decVal/>
        <label>Decoder Lock ID number</label>
      </variable>
      <variable label="Kick Start" CV="65">
        <decVal/>
        <label>Kick Start</label>
      </variable>
      <variable label="Forward Trim" CV="66">
        <decVal/>
        <label>Forward Trim</label>
      </variable>
      <variable label="Reverse Trim" CV="95">
        <decVal/>
        <label>Reverse Trim</label>
      </variable>
      <variable label="User Private ID #1" CV="105" item="User Id #1">
        <decVal/>
        <label>User Private ID #1</label>
      </variable>
      <variable label="User Private ID #2" CV="106" item="User Id #2">
        <decVal/>
        <label>User Private ID #2</label>
      </variable>
      <variable label="Speed Table" CV="67">
        <speedTableVal/>
        <label>Speed Table</label>
      </variable>

    <xi:include href="http://jmri.org/xml/decoders/digitrax/functionmap.xml"/>

    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="8"/>
      <factReset label="Reset All CVs except speed table" CV="8" default="9"/>
    </resets>
  </decoder>
  <pane name="Digitrax">
    <column>
      <display item="Advanced consist droop compensation for speed stabilization"/>
      <display item="Speed Compensation Control"/>
      <display item="Split field motor"/>
      <display item="Vstart/Vmid/Vfull in 128 step mode"/>
      <display item="Short-circuit protection"/>
      <display item="Switching speed enabled by F6"/>
      <display item="Torque compensation"/>
      <display item="Decoder Lock Feature" tooltip="Activates Decoder Locking feature"/>
      <display item="Decoder Lock ID number" tooltip="Set this decoder's unique locking ID number"/>
    </column>
    <name>Digitrax</name>
  </pane>
</decoder-config>

