<?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_4007.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="John Bicknell" version="2" lastUpdated="20081501"/>
  <version author="Ian Birchenough" version="1" lastUpdated="20072009"/>
<!--   version 3 Moved factory reset from tab to top menu.-->
  <decoder>
    <family name="ZTC 4007" mfg="ZTC" lowVersionID="0" highVersionID="0">
      <model model="ZTC 4007" numOuts="3" numFns="5"/>
    </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" default="0">
        <decVal/>
        <label>Vhigh</label>
      </variable>
      <variable label="Vmid" CV="6" default="0">
        <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" item="Manufacturer">
        <decVal/>
        <label>Manufacturer ID: </label>
      </variable>
      <variable label="Total PWM Period" CV="9" default="1" tooltip="Sets motor drive frequency. Range=0 to 255. Low value=large motor; High value=coreless motors">
        <decVal/>
        <label>Total PWM Period</label>
      </variable>
      <variable label="Packet Time-out Value" CV="11" default="100" tooltip="Delay on no DCC x 0.01 sec before switching to DC mode">
        <decVal/>
        <label>Packet Time-out Value</label>
      </variable>
      <variable label="DC Conversion Available (Read Only)" CV="12" readOnly="yes" item="Analog" default="1">
        <decVal/>
        <label>DC Conversion Available (Read Only)</label>
      </variable>
      <variable label="Alternate Function Status" CV="14" default="3" item="alt function">
        <decVal/>
        <label>Alternate Function Status</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" default="100" 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" default="3" comment="Allows Automatic stop on detection of Assymetric signal        0=Disable, 1=Right Rail, 2= Left Rail, 3= Both Rails">
        <enumVal>
          <enumChoice choice="Disable">
            <choice>Disable</choice>
          </enumChoice>
          <enumChoice choice="Enable stop when Right Rail has +ve asymetric signal">
            <choice>Enable stop when Right Rail has +ve asymetric signal</choice>
          </enumChoice>
          <enumChoice choice="Enable stop when Left Rail has +ve asymetric signal">
            <choice>Enable stop when Left Rail has +ve asymetric signal</choice>
          </enumChoice>
          <enumChoice choice="Enable stop when either Rail has +ve asymetric signal">
            <choice>Enable stop when either Rail has +ve asymetric signal</choice>
          </enumChoice>
        </enumVal>
        <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" item="talkbackconfig" comment="Used to configure ZTC Talkback       0= Talkback OFF, 1= Constant Broadcast, 2= Broadcast on detection of Asymetric Signal">
        <enumVal>
          <enumChoice choice="Disabled">
            <choice>Disabled</choice>
          </enumChoice>
          <enumChoice choice="Constant Broadcast" value="1">
            <choice>Constant Broadcast</choice>
          </enumChoice>
          <enumChoice choice="Broadcast on Asymetric Signal" value="2">
            <choice>Broadcast on Asymetric Signal</choice>
          </enumChoice>
        </enumVal>
        <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" default="0" 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="Speed Steps" CV="29" default="1" 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>Speed Steps</label>
      </variable>
      <variable label="Power Source Conversion" CV="29" default="0" 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" default="0" mask="XXXXVXXX" item="ZTC Talkback">
        <enumVal>
          <enumChoice choice="Disabled">
            <choice>Disabled</choice>
          </enumChoice>
          <enumChoice choice="Enabled">
            <choice>Enabled</choice>
          </enumChoice>
        </enumVal>
        <label>ZTC Talkback</label>
      </variable>
      <variable label="Speed Table Definition" CV="29" default="0" 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" default="0" 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 1" CV="33" mask="XXXXXXXV" 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 1</label>
      </variable>
      <variable label="F0(f) controls output 2" CV="33" mask="XXXXXXVX" item="FL(f) controls output 2" default="0" 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 2</label>
      </variable>
      <variable label="F0(f) controls output 3" CV="33" mask="XXXXXVXX" item="FL(f) controls output 2" default="0" 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 3</label>
      </variable>
      <variable label="F0(r) controls output 1" CV="34" mask="XXXXXXXV" item="FL(r) controls output 1" default="0" 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 1</label>
      </variable>
      <variable label="F0(r) controls output 2" CV="34" mask="XXXXXXVX" 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 2</label>
      </variable>
      <variable label="F0(r) controls output 3" CV="34" mask="XXXXXVXX" item="FL(r) controls output 2" default="0" 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 3</label>
      </variable>
      <variable label="F1 controls output 1" CV="35" mask="XXXXXXXV" default="0" 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" default="0" 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" default="1" 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="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" default="1" minOut="3" 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="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="3" 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="F4 controls output 5" CV="37" mask="XXXVXXXX" default="1" minOut="3" 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="Auto Stopping Distance" CV="48" tooltip="0 = None; 255=max" 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="Motor Feedback Enable" item="feedback" CV="56" default="1" comment="0=OFF, 1=ON">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>Motor Feedback Enable</label>
        <comment>0=OFF, 1=ON</comment>
      </variable>
      <variable label="Feedback Proportional Gain" CV="57" default="140" comment="Insert comment">
        <decVal/>
        <label>Feedback Proportional Gain</label>
        <comment>Insert comment</comment>
      </variable>
      <variable label="Feedback Integral Gain" CV="58" default="143" comment="Insert comment">
        <decVal/>
        <label>Feedback Integral Gain</label>
        <comment>Insert comment</comment>
      </variable>
      <variable label="ZTC Real Slow Mode Enable" CV="60" default="0" comment="Enables ZTCs own slow running mode">
        <enumVal>
          <enumChoice choice="No">
            <choice>No</choice>
          </enumChoice>
          <enumChoice choice="Yes">
            <choice>Yes</choice>
          </enumChoice>
        </enumVal>
        <label>ZTC Real Slow Mode Enable</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 max="20"/>
        <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="feedback"/>
          <label label=" ">
            <label> </label>
          </label>
          <display item="Feedback Proportional Gain" format="hslider" label=" ">
            <label> </label>
          </display>
          <display item="Feedback Proportional Gain"/>
          <display item="Feedback Integral Gain" format="hslider" label=" ">
            <label> </label>
          </display>
          <display item="Feedback Integral Gain"/>
          <separator/>
          <label label=" ">
            <label> </label>
          </label>
          <display item="ZTC Real Slow Mode Enable" label="ZTC Real Slow Mode Enable">
            <label>ZTC Real Slow Mode Enable</label>
          </display>
          <label label=" ">
            <label> </label>
          </label>
          <display item="ZTC Real Slow Mode Tuning" format="hslider" label=" " tooltip="Adjust Top Speed Resolution. 0=Fastest: 20=Slowest">
            <label> </label>
          </display>
          <display item="ZTC Real Slow Mode Tuning" tooltip="Adjust Top Speed Resolution. 0=Fastest: 20=Slowest"/>
          <label label=" ">
            <label> </label>
          </label>
          <separator/>
          <label label=" ">
            <label> </label>
          </label>
          <display item="Decoder Automatic Stopping Configuration"/>
          <label label=" ">
            <label> </label>
          </label>
          <display item="Auto Stopping Distance" format="hslider" label="">
            <label/>
          </display>
          <display item="Auto Stopping Distance"/>
          <label label=" ">
            <label> </label>
          </label>
          <separator/>
          <label label=" ">
            <label> </label>
          </label>
          <display item="ZTC Talkback"/>
          <label label=" ">
            <label> </label>
          </label>
          <display item="talkbackconfig"/>
          <label label=" ">
            <label> </label>
          </label>
          <separator/>
          <separator/>
          <label label=" ">
            <label> </label>
          </label>
          <display item="alt function" tooltip="Sets which functions operate in DC mode: 3=Directional lights"/>
          <label label=" ">
            <label> </label>
          </label>
          <display item="Analog" tooltip="Read Only CV: 1=Yes"/>
        </column>
      </row>
    </column>
    <name>ZTC</name>
  </pane>
</decoder-config>

