<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2007 All rights reserved -->
<!-- $Id: ZTC_255v2.xml 19343 2011-12-10 06:55:53Z jacobsen $ -->
<!--                                                                        -->
<!-- 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="3" lastUpdated="20111203"/>
  <version author="Ian Birchenough" version="2" lastUpdated="20080229"/>
  <version author="Ian Birchenough" version="1" lastUpdated="20071215"/>
  <!--   version 3 Moved factory reset from tab to top menu.-->
  <decoder>
    <family name="ZTC 255" mfg="ZTC" lowVersionID="132" highVersionID="132">
      <model model="ZTC 255"/>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="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="Vstart" CV="2" comment="A value of 255 corresponds to 100%">
        <decVal/>
        <label>Vstart</label>
        <comment>A value of 255 corresponds to 100%</comment>
      </variable>
      <variable label="Acceleration Rate" CV="3" item="Accel" default="1">
        <decVal max="31"/>
        <label>Acceleration Rate</label>
      </variable>
      <variable label="Deceleration Rate" CV="4" item="Decel" default="1">
        <decVal max="31"/>
        <label>Deceleration Rate</label>
      </variable>
      <variable label="Vhigh" CV="5">
        <decVal/>
        <label>Vhigh</label>
      </variable>
      <variable label="Vmid" CV="6">
        <decVal/>
        <label>Vmid</label>
      </variable>
      <variable label="Manufacturer Version No: " CV="7" readOnly="yes" item="Decoder Version">
        <decVal/>
        <label>Manufacturer Version No: </label>
      </variable>
      <variable label="Manufacturer ID: " CV="8" readOnly="yes" item="Manufacturer">
        <decVal/>
        <label>Manufacturer ID: </label>
      </variable>
      <variable label="Total PWM Period" CV="9">
        <decVal/>
        <label>Total PWM Period</label>
      </variable>
      <variable label="Packet Time-out Value" CV="11">
        <decVal/>
        <label>Packet Time-out Value</label>
      </variable>
      <variable label="Analog Power Conversion" CV="12" mask="XXXXXXXV" readOnly="yes">
        <enumVal>
          <enumChoice choice="off">
            <choice>off</choice>
          </enumChoice>
          <enumChoice choice="on">
            <choice>on</choice>
          </enumChoice>
        </enumVal>
        <label>Analog Power Conversion</label>
      </variable>
      <variable label="Extended Address" CV="17" item="Long Address">
        <longAddressVal/>
        <label>Extended Address</label>
      </variable>
      <variable label="Speed Table/Mid Range Cab Speed Step" CV="25" comment="See RP 9.2.2 for more information. Values from 2 to 127 indicate preloaded speed tables. 0 or 1 means not used.  Values between 128 and 154 define the cab throttle position where the mid range decoder speed value is applied">
        <decVal/>
        <label>Speed Table/Mid Range Cab Speed Step</label>
        <comment>See RP 9.2.2 for more information. Values from 2 to 127 indicate preloaded speed tables. 0 or 1 means not used.  Values between 128 and 154 define the cab throttle position where the mid range decoder speed value is applied</comment>
      </variable>
      <variable label="Decoder Automatic Stopping Configuration" CV="27" comment="Allows Automatic stop on detection of Assymetric signal 0=Disable, 1=Right Rail, 2= Left Rail, 3= Both Rails">
        <decVal/>
        <label>Decoder Automatic Stopping Configuration</label>
        <comment>Allows Automatic stop on detection of Assymetric signal 0=Disable, 1=Right Rail, 2= Left Rail, 3= Both Rails</comment>
      </variable>
      <variable label="ZTC Talkback Configuration" CV="28" comment="Used to configure ZTC Talkback 0= Talkback OFF, 1= Constant Broadcast, 2= Broadcast on detection of Asymetric Signal">
        <decVal/>
        <label>ZTC Talkback Configuration</label>
        <comment>Used to configure ZTC Talkback 0= Talkback OFF, 1= Constant Broadcast, 2= Broadcast on detection of Asymetric Signal</comment>
      </variable>
      <variable label="Locomotive Direction" CV="29" mask="XXXXXXXV">
        <enumVal>
          <enumChoice choice="normal">
            <choice>normal</choice>
          </enumChoice>
          <enumChoice choice="reversed">
            <choice>reversed</choice>
          </enumChoice>
        </enumVal>
        <label>Locomotive Direction</label>
      </variable>
      <variable label="FL Location" CV="29" mask="XXXXXXVX" item="Speed Step Mode">
        <enumVal>
          <enumChoice choice="14 speed step format">
            <choice>14 speed step format</choice>
          </enumChoice>
          <enumChoice choice="28 speed step format">
            <choice>28 speed step format</choice>
          </enumChoice>
        </enumVal>
        <label>FL Location</label>
      </variable>
      <variable label="Power Source Conversion" CV="29" mask="XXXXXVXX" item="Analog (DC) Operation">
        <enumVal>
          <enumChoice choice="NMRA Digital only">
            <choice>NMRA Digital only</choice>
          </enumChoice>
          <enumChoice choice="DC conversion enabled">
            <choice>DC conversion enabled</choice>
          </enumChoice>
        </enumVal>
        <label>Power Source Conversion</label>
      </variable>
      <variable label="ZTC Talkback" CV="29" mask="XXXXVXXX" item="ZTC Talkback">
        <enumVal>
          <enumChoice choice="disabled">
            <choice>disabled</choice>
          </enumChoice>
          <enumChoice choice="Constant Broadcast">
            <choice>Constant Broadcast</choice>
          </enumChoice>
          <enumChoice choice="Broadcast on Asymetric Signal">
            <choice>Broadcast on Asymetric Signal</choice>
          </enumChoice>
        </enumVal>
        <label>ZTC Talkback</label>
      </variable>
      <variable label="Speed Table Definition" CV="29" mask="XXXVXXXX">
        <enumVal>
          <enumChoice choice="Use Vstart, Vmid, Vhigh">
            <choice>Use Vstart, Vmid, Vhigh</choice>
          </enumChoice>
          <enumChoice choice="Use table in CVs 66 through 95">
            <choice>Use table in CVs 66 through 95</choice>
          </enumChoice>
        </enumVal>
        <label>Speed Table Definition</label>
      </variable>
      <variable label="Address Format" CV="29" mask="XXVXXXXX">
        <enumVal>
          <enumChoice choice="One byte (short) address">
            <choice>One byte (short) address</choice>
          </enumChoice>
          <enumChoice choice="Two byte (extended) address">
            <choice>Two byte (extended) address</choice>
          </enumChoice>
        </enumVal>
        <label>Address Format</label>
      </variable>
      <variable label="F0(f) controls output A" CV="33" mask="XXXXVXXX" item="FL(f) controls output 1" default="1" minOut="1" minFn="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F0(f) controls output A</label>
      </variable>
      <variable label="F0(r) controls output A" CV="34" mask="XXXXVXXX" item="FL(r) controls output 1" minOut="1" minFn="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F0(r) controls output A</label>
      </variable>
      <variable label="F0(f) controls output B" CV="33" mask="XXXVXXXX" item="FL(f) controls output 2" minOut="2" minFn="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F0(f) controls output B</label>
      </variable>
      <variable label="F0(r) controls output B" CV="34" mask="XXXVXXXX" item="FL(r) controls output 2" default="1" minOut="2" minFn="0">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F0(r) controls output B</label>
      </variable>
      <variable label="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 label="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 label="F1 controls output 3" CV="35" 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 label="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 label="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 label="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 label="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 label="F1 controls output 8" CV="35" mask="VXXXXXXX" minOut="8" minFn="1">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F1 controls output 8</label>
      </variable>
      <variable label="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 label="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 label="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 label="F2 controls output 4" CV="36" 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 label="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 label="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 label="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 label="F2 controls output 8" CV="36" mask="VXXXXXXX" minOut="8" minFn="2">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F2 controls output 8</label>
      </variable>
      <variable label="F3 controls output 1" CV="37" mask="XXXXXXXV" minOut="1" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 1</label>
      </variable>
      <variable label="F3 controls output 2" CV="37" mask="XXXXXXVX" minOut="2" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 2</label>
      </variable>
      <variable label="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 label="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 label="F3 controls output 5" CV="37" 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 label="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 label="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 label="F3 controls output 8" CV="37" mask="VXXXXXXX" minOut="8" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F3 controls output 8</label>
      </variable>
      <variable label="F4 controls output 1" CV="38" mask="XXXXXXXV" minOut="1" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 1</label>
      </variable>
      <variable label="F4 controls output 2" CV="38" mask="XXXXXXVX" minOut="2" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 2</label>
      </variable>
      <variable label="F4 controls output 3" CV="38" mask="XXXXXVXX" minOut="3" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 3</label>
      </variable>
      <variable label="F4 controls output 4" CV="38" mask="XXXXVXXX" minOut="4" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 4</label>
      </variable>
      <variable label="F4 controls output 5" CV="38" mask="XXXVXXXX" minOut="5" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 5</label>
      </variable>
      <variable label="F4 controls output 6" CV="38" mask="XXVXXXXX" minOut="6" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 6</label>
      </variable>
      <variable label="F4 controls output 7" CV="38" mask="XVXXXXXX" minOut="7" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 7</label>
      </variable>
      <variable label="F4 controls output 8" CV="38" mask="VXXXXXXX" minOut="8" minFn="3">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>F4 controls output 8</label>
      </variable>
      <variable label="Auto Stopping Distance" CV="48" comment="Sets the constant Braking Distance for auto stopping 0-255">
        <decVal/>
        <label>Auto Stopping Distance</label>
        <comment>Sets the constant Braking Distance for auto stopping 0-255</comment>
      </variable>
      <variable label="Output 1 effect generated" CV="49" mask="XXVVVVVV" minOut="3">
        <enumVal>
          <enumChoice choice="Output is ON or OFF">
            <choice>Output is ON or OFF</choice>
          </enumChoice>
          <enumChoice choice="On/Off 8 times per second">
            <choice>On/Off 8 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off 3.5 times per second">
            <choice>On/Off 3.5 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off 2.5 times per second">
            <choice>On/Off 2.5 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off 2 times per second">
            <choice>On/Off 2 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off every second">
            <choice>On/Off every second</choice>
          </enumChoice>
          <enumChoice choice="On/Off every 2 seconds">
            <choice>On/Off every 2 seconds</choice>
          </enumChoice>
          <enumChoice choice="On/Off every 4 seconds">
            <choice>On/Off every 4 seconds</choice>
          </enumChoice>
          <enumChoice choice="On for 0.05 seconds then Off">
            <choice>On for 0.05 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.1 seconds then Off">
            <choice>On for 0.1 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.2 seconds then Off">
            <choice>On for 0.2 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.3 seconds then Off">
            <choice>On for 0.3 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.4 seconds then Off">
            <choice>On for 0.4 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.5 seconds then Off">
            <choice>On for 0.5 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.6 seconds then Off">
            <choice>On for 0.6 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.7 seconds then Off">
            <choice>On for 0.7 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.8 seconds then Off">
            <choice>On for 0.8 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.9 seconds then Off">
            <choice>On for 0.9 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 1 second then Off">
            <choice>On for 1 second then Off</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 1. This is the dimmest setting">
            <choice>Dim Level 1. This is the dimmest setting</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 2.">
            <choice>Dim Level 2.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 3.">
            <choice>Dim Level 3.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 4.">
            <choice>Dim Level 4.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 5.">
            <choice>Dim Level 5.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 6.">
            <choice>Dim Level 6.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 7.">
            <choice>Dim Level 7.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 8.">
            <choice>Dim Level 8.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 9.">
            <choice>Dim Level 9.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 10.">
            <choice>Dim Level 10.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 11.">
            <choice>Dim Level 11.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 12.">
            <choice>Dim Level 12.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 13.">
            <choice>Dim Level 13.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 14.">
            <choice>Dim Level 14.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 15.">
            <choice>Dim Level 15.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 16. This is the brightest setting">
            <choice>Dim Level 16. This is the brightest setting</choice>
          </enumChoice>
          <enumChoice choice="Mars effect">
            <choice>Mars effect</choice>
          </enumChoice>
          <enumChoice choice="Beacon effect">
            <choice>Beacon effect</choice>
          </enumChoice>
          <enumChoice choice="Flame effect">
            <choice>Flame effect</choice>
          </enumChoice>
          <enumChoice choice="Ashpan effect">
            <choice>Ashpan effect</choice>
          </enumChoice>
        </enumVal>
        <label>Output 1 effect generated</label>
      </variable>
      <variable label="Output 2 effect generated" CV="50" mask="XXVVVVVV" minOut="3">
        <enumVal>
          <enumChoice choice="Output is ON or OFF">
            <choice>Output is ON or OFF</choice>
          </enumChoice>
          <enumChoice choice="On/Off 8 times per second">
            <choice>On/Off 8 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off 3.5 times per second">
            <choice>On/Off 3.5 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off 2.5 times per second">
            <choice>On/Off 2.5 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off 2 times per second">
            <choice>On/Off 2 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off every second">
            <choice>On/Off every second</choice>
          </enumChoice>
          <enumChoice choice="On/Off every 2 seconds">
            <choice>On/Off every 2 seconds</choice>
          </enumChoice>
          <enumChoice choice="On/Off every 4 seconds">
            <choice>On/Off every 4 seconds</choice>
          </enumChoice>
          <enumChoice choice="On for 0.05 seconds then Off">
            <choice>On for 0.05 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.1 seconds then Off">
            <choice>On for 0.1 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.2 seconds then Off">
            <choice>On for 0.2 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.3 seconds then Off">
            <choice>On for 0.3 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.4 seconds then Off">
            <choice>On for 0.4 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.5 seconds then Off">
            <choice>On for 0.5 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.6 seconds then Off">
            <choice>On for 0.6 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.7 seconds then Off">
            <choice>On for 0.7 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.8 seconds then Off">
            <choice>On for 0.8 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.9 seconds then Off">
            <choice>On for 0.9 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 1 second then Off">
            <choice>On for 1 second then Off</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 1. This is the dimmest setting">
            <choice>Dim Level 1. This is the dimmest setting</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 2.">
            <choice>Dim Level 2.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 3.">
            <choice>Dim Level 3.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 4.">
            <choice>Dim Level 4.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 5.">
            <choice>Dim Level 5.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 6.">
            <choice>Dim Level 6.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 7.">
            <choice>Dim Level 7.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 8.">
            <choice>Dim Level 8.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 9.">
            <choice>Dim Level 9.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 10.">
            <choice>Dim Level 10.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 11.">
            <choice>Dim Level 11.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 12.">
            <choice>Dim Level 12.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 13.">
            <choice>Dim Level 13.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 14.">
            <choice>Dim Level 14.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 15.">
            <choice>Dim Level 15.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 16. This is the brightest setting">
            <choice>Dim Level 16. This is the brightest setting</choice>
          </enumChoice>
          <enumChoice choice="Mars effect">
            <choice>Mars effect</choice>
          </enumChoice>
          <enumChoice choice="Beacon effect">
            <choice>Beacon effect</choice>
          </enumChoice>
          <enumChoice choice="Flame effect">
            <choice>Flame effect</choice>
          </enumChoice>
          <enumChoice choice="Ashpan effect">
            <choice>Ashpan effect</choice>
          </enumChoice>
        </enumVal>
        <label>Output 2 effect generated</label>
      </variable>
      <variable label="Output 3 effect generated" CV="51" mask="XXVVVVVV" minOut="3">
        <enumVal>
          <enumChoice choice="Output is ON or OFF">
            <choice>Output is ON or OFF</choice>
          </enumChoice>
          <enumChoice choice="On/Off 8 times per second">
            <choice>On/Off 8 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off 3.5 times per second">
            <choice>On/Off 3.5 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off 2.5 times per second">
            <choice>On/Off 2.5 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off 2 times per second">
            <choice>On/Off 2 times per second</choice>
          </enumChoice>
          <enumChoice choice="On/Off every second">
            <choice>On/Off every second</choice>
          </enumChoice>
          <enumChoice choice="On/Off every 2 seconds">
            <choice>On/Off every 2 seconds</choice>
          </enumChoice>
          <enumChoice choice="On/Off every 4 seconds">
            <choice>On/Off every 4 seconds</choice>
          </enumChoice>
          <enumChoice choice="On for 0.05 seconds then Off">
            <choice>On for 0.05 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.1 seconds then Off">
            <choice>On for 0.1 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.2 seconds then Off">
            <choice>On for 0.2 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.3 seconds then Off">
            <choice>On for 0.3 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.4 seconds then Off">
            <choice>On for 0.4 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.5 seconds then Off">
            <choice>On for 0.5 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.6 seconds then Off">
            <choice>On for 0.6 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.7 seconds then Off">
            <choice>On for 0.7 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.8 seconds then Off">
            <choice>On for 0.8 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 0.9 seconds then Off">
            <choice>On for 0.9 seconds then Off</choice>
          </enumChoice>
          <enumChoice choice="On for 1 second then Off">
            <choice>On for 1 second then Off</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 1. This is the dimmest setting">
            <choice>Dim Level 1. This is the dimmest setting</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 2.">
            <choice>Dim Level 2.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 3.">
            <choice>Dim Level 3.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 4.">
            <choice>Dim Level 4.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 5.">
            <choice>Dim Level 5.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 6.">
            <choice>Dim Level 6.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 7.">
            <choice>Dim Level 7.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 8.">
            <choice>Dim Level 8.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 9.">
            <choice>Dim Level 9.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 10.">
            <choice>Dim Level 10.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 11.">
            <choice>Dim Level 11.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 12.">
            <choice>Dim Level 12.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 13.">
            <choice>Dim Level 13.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 14.">
            <choice>Dim Level 14.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 15.">
            <choice>Dim Level 15.</choice>
          </enumChoice>
          <enumChoice choice="Dim Level 16. This is the brightest setting">
            <choice>Dim Level 16. This is the brightest setting</choice>
          </enumChoice>
          <enumChoice choice="Mars effect">
            <choice>Mars effect</choice>
          </enumChoice>
          <enumChoice choice="Beacon effect">
            <choice>Beacon effect</choice>
          </enumChoice>
          <enumChoice choice="Flame effect">
            <choice>Flame effect</choice>
          </enumChoice>
          <enumChoice choice="Ashpan effect">
            <choice>Ashpan effect</choice>
          </enumChoice>
        </enumVal>
        <label>Output 3 effect generated</label>
      </variable>
      <variable label="OUTPUT4 Mode" CV="52" comment="0= On/Off 1-38 are different pulse periods, brilliances and lighting effects">
        <decVal/>
        <label>OUTPUT4 Mode</label>
        <comment>0= On/Off 1-38 are different pulse periods, brilliances and lighting effects</comment>
      </variable>
      <variable label="Motor Feedback Enable" CV="56" comment="0=OFF, 1=ON">
        <decVal/>
        <label>Motor Feedback Enable</label>
        <comment>0=OFF, 1=ON</comment>
      </variable>
      <variable label="Feedback Proportional Gain" CV="57" comment="Insert comment">
        <decVal/>
        <label>Feedback Proportional Gain</label>
        <comment>Insert comment</comment>
      </variable>
      <variable label="Feedback Integral Gain" CV="58" comment="Insert comment">
        <decVal/>
        <label>Feedback Integral Gain</label>
        <comment>Insert comment</comment>
      </variable>
      <variable label="ZTC Real Slow Mode Enable/Disable" CV="60" comment="Enables ZTCs own slow running mode">
        <decVal/>
        <label>ZTC Real Slow Mode Enable/Disable</label>
        <comment>Enables ZTCs own slow running mode</comment>
      </variable>
      <variable label="ZTC Real Slow Mode Tuning" CV="61" comment="allows fine tuning of the speed range">
        <decVal/>
        <label>ZTC Real Slow Mode Tuning</label>
        <comment>allows fine tuning of the speed range</comment>
      </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="Speed Table" CV="67">
        <speedTableVal/>
        <label>Speed Table</label>
      </variable>
      <variable label="Reverse Trim" CV="95">
        <decVal/>
        <label>Reverse Trim</label>
      </variable>
      <variable label="User Id #1" CV="105">
        <decVal/>
        <label>User Id #1</label>
      </variable>
      <variable label="User Id #2" CV="106">
        <decVal/>
        <label>User Id #2</label>
      </variable>
    </variables>
  <resets>
      <factReset label="Reset All CVs" CV="8" default="8"/>
  </resets>
  </decoder>
  <pane name="ZTC">
    <column>
      <row>
        <column>
          <display item="Motor Feedback Enable" format="checkbox" label=" Motor Feedback Enable 1=On">
            <label> Motor Feedback Enable 1=On</label>
          </display>
          <display item="Feedback Proportional Gain" format="hslider" label="">
            <label/>
          </display>
          <display item="Feedback Proportional Gain"/>
          <display item="Feedback Integral Gain" format="hslider" label="">
            <label/>
          </display>
          <display item="Feedback Integral Gain"/>
          <display item="ZTC Real Slow Mode Enable/Disable" format="checkbox" label="ZTC Real Slow Mode Enable/Disable 1=On">
            <label>ZTC Real Slow Mode Enable/Disable 1=On</label>
          </display>
          <display item="ZTC Real Slow Mode Tuning" format="hslider" label="">
            <label/>
          </display>
          <display item="ZTC Real Slow Mode Tuning"/>
          <display item="Decoder Automatic Stopping Configuration" format="checkbox" label="Decoder Automatic Stopping Configuration 1=On">
            <label>Decoder Automatic Stopping Configuration 1=On</label>
          </display>
          <display item="Auto Stopping Distance" format="hslider" label="">
            <label/>
          </display>
          <display item="Auto Stopping Distance"/>
          <display item="ZTC Talkback"/>
        </column>
      </row>
      <separator/>
      <row>
        <column>
          <display item="Motor Drive Selection" layout="above" label="Motor Drive Selection">
            <label>Motor Drive Selection</label>
          </display>
        </column>
      </row>
    </column>
    <name>ZTC</name>
  </pane>
</decoder-config>

