<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2007, 2008 All rights reserved -->
<!--                                                                        -->
<!-- JMRI is free software; you can redistribute it and/or modify it under  -->
<!-- the terms of version 2 of the GNU General Public License as published  -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy     -->
<!-- of this license.                                                       -->
<!--                                                                        -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT    -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or  -->
<!-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License  -->
<!-- for more details.                                                      -->
<decoder-config xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://jmri.org/xml/schema/decoder-4-15-2.xsd">
  <version author="Jeff Schmaltz escopetas@comcast.net" version="1.0" lastUpdated="20110820"/>
  <!-- 
      This decoder XML is meant to be used with the "Custom" programmer format.
      The pane definitions are included below the decoder definition.  The Massoth
      decoders seem to fit the description of "weird" as mentioned in that
      programmer.  Also, this allows the tooltips from this decoder file to be
      displayed for the user.

      The range of versions listed is hypothetical as the versions for all the
      Massoth/LGB decoder types overlap. The highest version I have encountered
      is 3.4 (in both large and small onboard) and the lowest is 1.0 (in a
      MTS I 55020).

      CV 106 is used by Massoth as "ID for decoder type" and is possibly one way
      of determining decoder type from the CV's, as the version numbers overlap.
      To date, I have encountered the following values in CV 106 (any additions to
      this list would be appreciated):


      55020:              10
      55021:             192
      55022:              16
      Small onboard:      65 (steam), 73 (steam), 81 (diesel), 82 (diesel), 83 (rail car), 93
      Large onboard:     129 (steam), 134 (2-10-2), 137 (Aster steam), 145 (diesel/electric)
                         146 (rail car), 147 (US diesel)
      OnBoard-Sound:     154
      55027:             193
      eMOTION L:         201 (according to 1.0 manual)
      eMOTION LS:        202 (according to 2.2 manual)
      eMOTION XL:        193 (according to 2.0 manual), 200
      eMOTION XXL:       ???
      eMOTION XLS:       202 (according to 1.3 manual), 203
      eMOTION 8FL:       204 (according to 1.2 manual)
      LED Light:         204
      6500x sound unit:  208
      Hot Metal Car:      10

      This definition was based on the Massoth eMOTION XL documents Nr. 8150001,
      first unnumbered version (8 pages) and Version 1.2 (44 pages),
      eMOTION L Version 1.0 English version, eMOTION XXL Version 2.0 English
      version, eMOTION M Locomotive Driving Decoder Version 2.2, and eMOTION
      Configuration Manual/M, L, XL, XXL/Version 2.3, which are available from
      the Download Center on the Massoth website, www.massoth.com.

      I tried to match DecoderPro "item" names when I was fairly certain they were
      correct.  The "label" names tried to match the names used in the Massoth
      documentation.

      This is the PIKO 3612x version, based on Version 1.4 of Massoth_eMOTION_Motor.xml and
      the PIKO manual "Locomotive Driving Decoder Installation and Configuration Manual
      Version 2.4".  The following changes have been made to convert from Massoth to PIKO:
        - Changed family and model names, lowVersionID, removed 1 output
        - Changed default values for CVs 29, 49, 60, 61, 63
        - Changed "Massoth Configuration" to "PIKO configuration" in pane
        - Removed references to "(from vX.x)"

      Interestingly, the default motor settings given in the PIKO manual differ from the
      recommendations for PIKO 2-motor locos given in the Massoth Taurus and BR218 light set
      manuals:
         Light set manuals:     CV3 = 5 , CV4 = 5 , CV60 = 2 , CV61 = 150
         PIKO manual defaults:  CV3 = 3 , CV4 = 3 , CV60 = 2 , CV61 = 32
      The light set manuals were written before CV63 was implemented so that may explain the
      differences (or not...).

      Any and all feedback on this file would be appreciated.

      Version History:

        1.0 - Initial release 20 Aug 2011
-->
  <decoder>
    <family name="Massoth PIKO" mfg="Massoth Elektronik, GmbH">
      <model model="PIKO 3612x" lowVersionID="20" highVersionID="29" maxInputVolts="24 V" maxMotorCurrent="3 A" maxTotalCurrent="4 A" numOuts="8" numFns="18" formFactor="G" connector="other">
        <output name="1" label="Front light" maxcurrent="600 mA" connection="other"/>
        <output name="2" label="Rear light " maxcurrent="600 mA" connection="other"/>
        <output name="3" label="F1 " maxcurrent="600 mA" connection="other"/>
        <output name="4" label="F2 " maxcurrent="600 mA" connection="other"/>
        <output name="5" label="F3 " maxcurrent="600 mA" connection="other"/>
        <output name="6" label="F4 " maxcurrent="600 mA" connection="other"/>
        <output name="7" label="F5 " maxcurrent="600 mA" connection="other"/>
        <output name="8" label="F6 " maxcurrent="600 mA" connection="other"/>
        <size length="50" width="32" height="12" units="mm"/>
      </model>
    </family>
    <programming direct="yes" paged="no" register="yes" ops="yes"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable CV="2" default="2" item="Vstart" tooltip="x (1/255 Track Voltage)">
        <decVal min="1" max="255"/>
        <label>Starting Voltage</label>
        <label xml:lang="it">Volt Partenza</label>
        <label xml:lang="fr">V démarr.</label>
        <label xml:lang="de">Startspannung</label>
      </variable>
      <variable CV="3" default="3" item="Accel" tooltip="x 2ms x (1/255 Track Voltage)">
        <decVal min="1" max="255"/>
        <label>Acceleration time</label>
        <label xml:lang="it">Accellerazione (0-255)</label>
        <label xml:lang="fr">Accelération (0-255)</label>
        <label xml:lang="de">Anfahrverzögerung (0-255)</label>
      </variable>
      <variable CV="4" default="3" item="Decel" tooltip="x 2ms x (1/255 Track Voltage)">
        <decVal min="1" max="255"/>
        <label>Braking time</label>
        <label xml:lang="it">Decellerazione (1-255)</label>
        <label xml:lang="fr">Décélération (1-255)</label>
        <label xml:lang="de">Bremszeit (1-255)</label>
      </variable>
      <variable CV="5" default="255" item="Vhigh" tooltip="x (1/255 Track Voltage)">
        <decVal min="1" max="255"/>
        <label>Top Speed</label>
        <label xml:lang="it">Volt Massimi (0-255):</label>
        <label xml:lang="de">Höchstgeschwindigkeit</label>
      </variable>
      <variable CV="6" default="64" item="Vmid" tooltip="x (1/255 Track Voltage)">
        <decVal min="1" max="255"/>
        <label>Med-Speed</label>
        <label xml:lang="it">Volts intermedi (0-255)</label>
        <label xml:lang="de">Vmittel (0-255)</label>
      </variable>
      <variable CV="7" item="Decoder Version" tooltip="The decoder version number (read only)">
        <decVal/>
        <label>Software Version Number</label>
        <label xml:lang="it">Versione Decoder: </label>
        <label xml:lang="fr">Version décodeur: </label>
        <label xml:lang="de">Decoder Version: </label>
      </variable>
      <variable CV="8" readOnly="yes" default="123" item="Manufacturer" tooltip="The manufacturer's ID number (read only)">
        <decVal/>
        <label>Manufacturer ID</label>
        <label xml:lang="it">ID Costruttore: </label>
        <label xml:lang="fr">ID constructeur: </label>
        <label xml:lang="de">Hersteller ID: </label>
      </variable>
      <variable CV="9" default="0" item="Total PWM Period" tooltip="Factory pre-set (23.5 (16) kHz) is optimized for LGB motors">
        <enumVal>
          <enumChoice choice="23.5 (16) kHz"/>
          <enumChoice choice="2.9 (2) kHz"/>
          <enumChoice choice="960 (250) Hz"/>
          <enumChoice choice="90 (60) Hz"/>
        </enumVal>
        <label>Motor Frequency</label>
      </variable>
      <variable CV="13" mask="XXXXXXXV" default="0" item="Analog Mode Function Status - F1" tooltip="(On if value set)">
        <enumVal>
          <enumChoice choice="Off"/>
          <enumChoice choice="On"/>
        </enumVal>
        <label>F1 Function Output in Analog Mode</label>
      </variable>
      <variable CV="13" mask="XXXXXXVX" default="0" item="Analog Mode Function Status - F2" tooltip="(On if value set)">
        <enumVal>
          <enumChoice choice="Off"/>
          <enumChoice choice="On"/>
        </enumVal>
        <label>F2 Function Output in Analog Mode</label>
      </variable>
      <variable CV="13" mask="XXXXXVXX" default="0" item="Analog Mode Function Status - F3" tooltip="(On if value set)">
        <enumVal>
          <enumChoice choice="Off"/>
          <enumChoice choice="On"/>
        </enumVal>
        <label>F3 Function Output in Analog Mode</label>
      </variable>
      <variable CV="13" mask="XXXXVXXX" default="0" item="Analog Mode Function Status - F4" tooltip="(On if value set)">
        <enumVal>
          <enumChoice choice="Off"/>
          <enumChoice choice="On"/>
        </enumVal>
        <label>F4 Function Output in Analog Mode</label>
      </variable>
      <variable CV="13" mask="XXXVXXXX" default="0" item="Analog Mode Function Status - F5" tooltip="(On if value set)">
        <enumVal>
          <enumChoice choice="Off"/>
          <enumChoice choice="On"/>
        </enumVal>
        <label>F5 Function Output in Analog Mode</label>
      </variable>
      <variable CV="13" mask="XXVXXXXX" default="0" item="Analog Mode Function Status - F6" tooltip="(On if value set)">
        <enumVal>
          <enumChoice choice="Off"/>
          <enumChoice choice="On"/>
        </enumVal>
        <label>F6 Function Output in Analog Mode</label>
      </variable>
      <!-- CV=19 -->
     <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddrDirection.xml"/>
      <!-- CV=29 -->
     <xi:include href="http://jmri.org/xml/decoders/nmra/cv29direction.xml"/>
     <xi:include href="http://jmri.org/xml/decoders/nmra/cv29speedSteps.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29analog.xml"/>
      <variable CV="29" mask="XXXVXXXX" default="0" item="Speed Table Definition" tooltip="Determines whether loco will use manufacturer's internal or user-defined speed step table">
        <enumVal>
          <enumChoice choice="internal speed step table">
            <choice>internal speed step table</choice>
            <choice xml:lang="it">tabella velocità interna</choice>
          </enumChoice>
          <enumChoice choice="user-programmed speed step table (CV's 67-94)">
            <choice>user-programmed speed step table (CV's 67-94)</choice>
            <choice xml:lang="it">tabella velocità personalizzata (CV 67-94)</choice>
          </enumChoice>
        </enumVal>
        <label>Use Speed Table</label>
        <label xml:lang="it">Usa Tabella velocità</label>
      </variable>
      <variable item="Data Processing" CV="49" mask="XXXXXXXV" default="0" tooltip="Automatic Detection of Serial/Parallel">
        <enumVal>
          <enumChoice choice="Parallel Data Processing Only"/>
          <enumChoice choice="Serial + Parallel Data Processing"/>
        </enumVal>
        <label>Data Processing</label>
      </variable>
      <variable item="Digital Load Control" CV="49" mask="XXXXXXVX" default="1" tooltip="Load Control keeps the loco speed constant even as the load varies">
        <enumVal>
          <enumChoice choice="Off"/>
          <enumChoice choice="On"/>
        </enumVal>
        <label>Digital Load Control</label>
      </variable>
      <variable item="Analog Load Control" CV="49" mask="XXXXXVXX" default="0" tooltip="Load Control keeps the loco speed constant even as the load varies">
        <enumVal>
          <enumChoice choice="Off"/>
          <enumChoice choice="On"/>
        </enumVal>
        <label>Analog Load Control</label>
      </variable>
      <variable item="F1 Output" CV="49" mask="XXXXVXXX" default="0" tooltip="F1 Output = Fast Pulse String (P-Update) on F1 ONLY WITH Data Processing = Serial + Parallel Data Processing">
        <enumVal>
          <enumChoice choice="F1-Output Standard"/>
          <enumChoice choice="Fast Pulse String (P-Update) on F1"/>
        </enumVal>
        <label>F1 Output</label>
      </variable>
      <variable item="Bus Type" CV="49" mask="XXXVXXXX" default="1" tooltip="Determines which protocol is used on the bus connection to other devices">
        <enumVal>
          <enumChoice choice="Massoth"/>
          <enumChoice choice="SUSI"/>
        </enumVal>
        <label>Bus Type</label>
      </variable>
      <variable item="Light: Dimming Value (PWM)" CV="50" default="32" tooltip="Locos with interface = 32(full track voltage); direct connection of 5V bulbs = 5; direct connection of 19V bulbs = 26">
        <decVal min="1" max="32"/>
        <label>Light: Dimming Value (PWM)</label>
      </variable>
      <variable item="Front Light: Command Allocation - Direction" CV="51" mask="VVXXXXXX" default="2" tooltip="Direction for Front Light On">
        <enumVal>
          <enumChoice choice="Front Light On in both directions" value="0"/>
          <enumChoice choice="Front Light On in Reverse only" value="1"/>
          <enumChoice choice="Front Light On in Standard Driving Direction only" value="2"/>
        </enumVal>
        <label>Front Light: Command Allocation - Direction</label>
      </variable>
      <variable item="Front Light: Command Allocation - Function Keys" CV="51" mask="XXXVVVVV" default="0" tooltip="Function key which switches Front Light">
        <enumVal>
          <enumChoice choice="Light Key" value="0"/>
          <enumChoice choice="F1" value="1"/>
          <enumChoice choice="F2" value="2"/>
          <enumChoice choice="F3" value="3"/>
          <enumChoice choice="F4" value="4"/>
          <enumChoice choice="F5" value="5"/>
          <enumChoice choice="F6" value="6"/>
          <enumChoice choice="F7" value="7"/>
          <enumChoice choice="F8" value="8"/>
          <enumChoice choice="F9" value="9"/>
          <enumChoice choice="F10" value="10"/>
          <enumChoice choice="F11" value="11"/>
          <enumChoice choice="F12" value="12"/>
          <enumChoice choice="F13" value="13"/>
          <enumChoice choice="F14" value="14"/>
          <enumChoice choice="F15" value="15"/>
          <enumChoice choice="F16" value="16"/>
        </enumVal>
        <label>Front Light: Command Allocation - Function Keys</label>
      </variable>
      <variable item="Rear Light: Command Allocation - Direction" CV="52" mask="VVXXXXXX" default="1" tooltip="Direction for Rear Light On">
        <enumVal>
          <enumChoice choice="Rear Light On in both directions" value="0"/>
          <enumChoice choice="Rear Light On in Reverse only" value="1"/>
          <enumChoice choice="Rear Light On in Standard Driving Direction only" value="2"/>
        </enumVal>
        <label>Rear Light: Command Allocation - Direction</label>
      </variable>
      <variable item="Rear Light: Command Allocation - Function Keys" CV="52" mask="XXXVVVVV" default="0" tooltip="Function key which switches Rear Light">
        <enumVal>
          <enumChoice choice="Light Key" value="0"/>
          <enumChoice choice="F1" value="1"/>
          <enumChoice choice="F2" value="2"/>
          <enumChoice choice="F3" value="3"/>
          <enumChoice choice="F4" value="4"/>
          <enumChoice choice="F5" value="5"/>
          <enumChoice choice="F6" value="6"/>
          <enumChoice choice="F7" value="7"/>
          <enumChoice choice="F8" value="8"/>
          <enumChoice choice="F9" value="9"/>
          <enumChoice choice="F10" value="10"/>
          <enumChoice choice="F11" value="11"/>
          <enumChoice choice="F12" value="12"/>
          <enumChoice choice="F13" value="13"/>
          <enumChoice choice="F14" value="14"/>
          <enumChoice choice="F15" value="15"/>
          <enumChoice choice="F16" value="16"/>
        </enumVal>
        <label>Rear Light: Command Allocation - Function Keys</label>
      </variable>
      <variable item="F1 + F2: Dimming Value: Voltage on Output (PWM)" CV="53" mask="XXVVVVVV" default="32" tooltip="Locos with interface = 32(full track voltage); direct connection of 5V bulbs = 5; direct connection of 19V bulbs = 26">
        <decVal min="1" max="32"/>
        <label>F1 + F2: Dimming Value: Voltage on Output (PWM)</label>
      </variable>
      <variable item="F1 + F2: Dimming Value: Select Function to be Dimmed" CV="53" mask="VVXXXXXX" default="0" tooltip="Which function or functions is dimmed">
        <enumVal>
          <enumChoice choice="Full voltage on both outputs" value="0"/>
          <enumChoice choice="F1 is dimmed only" value="1"/>
          <enumChoice choice="F2 is dimmed only" value="2"/>
          <enumChoice choice="Both outputs are dimmed" value="3"/>
        </enumVal>
        <label>F1 + F2: Dimming Value: Select Function to be Dimmed</label>
      </variable>
      <variable item="F1: Command Allocation - Direction" CV="54" mask="VVXXXXXX" default="0" tooltip="Direction for F1 On">
        <enumVal>
          <enumChoice choice="F1 On in both directions" value="0"/>
          <enumChoice choice="F1 On in Reverse only" value="1"/>
          <enumChoice choice="F1 On in Standard Driving Direction only" value="2"/>
        </enumVal>
        <label>F1: Command Allocation - Direction</label>
      </variable>
      <variable item="F1: Command Allocation - Function Keys" CV="54" mask="XXXVVVVV" default="1" tooltip="Function key which switches F1">
        <enumVal>
          <enumChoice choice="Light Key" value="0"/>
          <enumChoice choice="F1" value="1"/>
          <enumChoice choice="F2" value="2"/>
          <enumChoice choice="F3" value="3"/>
          <enumChoice choice="F4" value="4"/>
          <enumChoice choice="F5" value="5"/>
          <enumChoice choice="F6" value="6"/>
          <enumChoice choice="F7" value="7"/>
          <enumChoice choice="F8" value="8"/>
          <enumChoice choice="F9" value="9"/>
          <enumChoice choice="F10" value="10"/>
          <enumChoice choice="F11" value="11"/>
          <enumChoice choice="F12" value="12"/>
          <enumChoice choice="F13" value="13"/>
          <enumChoice choice="F14" value="14"/>
          <enumChoice choice="F15" value="15"/>
          <enumChoice choice="F16" value="16"/>
        </enumVal>
        <label>F1: Command Allocation - Function Keys</label>
      </variable>
      <variable item="F1: Special Function: Blinking/Monoflop time base" CV="55" mask="XXXXVVVV" default="0" tooltip="0=Steady On (Standard Operation), 1..15=Blinking/Monoflop Time Base 0.25sec per value">
        <enumVal>
          <enumChoice choice="Steady On (Standard Operation)" value="0"/>
          <enumChoice choice="0.25 sec" value="1"/>
          <enumChoice choice="0.50 sec" value="2"/>
          <enumChoice choice="0.75 sec" value="3"/>
          <enumChoice choice="1.00 sec" value="4"/>
          <enumChoice choice="1.25 sec" value="5"/>
          <enumChoice choice="1.50 sec" value="6"/>
          <enumChoice choice="1.75 sec" value="7"/>
          <enumChoice choice="2.00 sec" value="8"/>
          <enumChoice choice="2.25 sec" value="9"/>
          <enumChoice choice="2.50 sec" value="10"/>
          <enumChoice choice="2.75 sec" value="11"/>
          <enumChoice choice="3.00 sec" value="12"/>
          <enumChoice choice="3.25 sec" value="13"/>
          <enumChoice choice="3.50 sec" value="14"/>
          <enumChoice choice="3.75 sec" value="15"/>
        </enumVal>
        <label>F1: Special Function: Blinking/Monoflop time base</label>
      </variable>
      <variable item="F1: Special Function: Select Special Function" CV="55" mask="VVXXXXXX" default="0" tooltip="Which special function, if any, for F1. For Monoflop, output is switched off automatically after timeout.">
        <enumVal>
          <enumChoice choice="Symmetric Blinking" value="0"/>
          <enumChoice choice="Short Term Function (Monoflop)" value="1"/>
          <enumChoice choice="Asymmetric Blinking (Short), Output blinks 1/3 On" value="2"/>
          <enumChoice choice="Asymmetric Blinking (Long), Output blinks 2/3 On" value="3"/>
        </enumVal>
        <label>F1: Special Function: Select Special Function</label>
      </variable>
      <variable item="F2: Command Allocation - Direction" CV="56" mask="VVXXXXXX" default="0" tooltip="Direction for F2 On">
        <enumVal>
          <enumChoice choice="F2 On in both directions" value="0"/>
          <enumChoice choice="F2 On in Reverse only" value="1"/>
          <enumChoice choice="F2 On in Standard Driving Direction only" value="2"/>
        </enumVal>
        <label>F2: Command Allocation - Direction</label>
      </variable>
      <variable item="F2: Command Allocation - Function Keys" CV="56" mask="XXXVVVVV" default="2" tooltip="Function key which switches F2">
        <enumVal>
          <enumChoice choice="Light Key" value="0"/>
          <enumChoice choice="F1" value="1"/>
          <enumChoice choice="F2" value="2"/>
          <enumChoice choice="F3" value="3"/>
          <enumChoice choice="F4" value="4"/>
          <enumChoice choice="F5" value="5"/>
          <enumChoice choice="F6" value="6"/>
          <enumChoice choice="F7" value="7"/>
          <enumChoice choice="F8" value="8"/>
          <enumChoice choice="F9" value="9"/>
          <enumChoice choice="F10" value="10"/>
          <enumChoice choice="F11" value="11"/>
          <enumChoice choice="F12" value="12"/>
          <enumChoice choice="F13" value="13"/>
          <enumChoice choice="F14" value="14"/>
          <enumChoice choice="F15" value="15"/>
          <enumChoice choice="F16" value="16"/>
        </enumVal>
        <label>F2: Command Allocation - Function Keys</label>
      </variable>
      <variable item="F2: Special Function: Blink/flop time or light effects" CV="57" mask="XXXVVVVV" default="0" tooltip="0=Steady On (Standard Operation), 1..15=Blinking/Monoflop Time Base 0.25sec per value">
        <enumVal>
          <enumChoice choice="Steady On (Standard Operation)" value="0"/>
          <enumChoice choice="0.25 sec" value="1"/>
          <enumChoice choice="0.50 sec" value="2"/>
          <enumChoice choice="0.75 sec" value="3"/>
          <enumChoice choice="1.00 sec" value="4"/>
          <enumChoice choice="1.25 sec" value="5"/>
          <enumChoice choice="1.50 sec" value="6"/>
          <enumChoice choice="1.75 sec" value="7"/>
          <enumChoice choice="2.00 sec" value="8"/>
          <enumChoice choice="2.25 sec" value="9"/>
          <enumChoice choice="2.50 sec" value="10"/>
          <enumChoice choice="2.75 sec" value="11"/>
          <enumChoice choice="3.00 sec" value="12"/>
          <enumChoice choice="3.25 sec" value="13"/>
          <enumChoice choice="3.50 sec" value="14"/>
          <enumChoice choice="3.75 sec" value="15"/>
          <enumChoice choice="Alternate Blinking with F1" value="16"/>
        </enumVal>
        <label>F2: Special Function: Blink/flop time or light effects</label>
      </variable>
      <variable item="F2: Special Function: Select Special Function" CV="57" mask="VVXXXXXX" default="0" tooltip="Which special function, if any, for F2. For Monoflop, output is switched off automatically after timeout.">
        <enumVal>
          <enumChoice choice="Symmetric Blinking" value="0"/>
          <enumChoice choice="Short Term Function (Monoflop)" value="1"/>
          <enumChoice choice="Asymmetric Blinking (Short), Output blinks 1/3 On" value="2"/>
          <enumChoice choice="Asymmetric Blinking (Long), Output blinks 2/3 On" value="3"/>
        </enumVal>
        <label>F2: Special Function: Select Special Function</label>
      </variable>
      <variable item="Pause Time for Stop and Reversing" CV="58" default="0" tooltip="0.5 sec per Value">
        <decVal min="0" max="255"/>
        <label>Pause Time for Stop and Reversing</label>
      </variable>
      <variable item="Switching Speed: Command Allocation - Function Keys" CV="59" default="8" tooltip="Function key which switches Half Speed">
        <enumVal>
          <enumChoice choice="Half Speed Off" value="0"/>
          <enumChoice choice="F1" value="1"/>
          <enumChoice choice="F2" value="2"/>
          <enumChoice choice="F3" value="3"/>
          <enumChoice choice="F4" value="4"/>
          <enumChoice choice="F5" value="5"/>
          <enumChoice choice="F6" value="6"/>
          <enumChoice choice="F7" value="7"/>
          <enumChoice choice="F8" value="8"/>
          <enumChoice choice="F9" value="9"/>
          <enumChoice choice="F10" value="10"/>
          <enumChoice choice="F11" value="11"/>
          <enumChoice choice="F12" value="12"/>
          <enumChoice choice="F13" value="13"/>
          <enumChoice choice="F14" value="14"/>
          <enumChoice choice="F15" value="15"/>
          <enumChoice choice="F16" value="16"/>
        </enumVal>
        <label>Switching Speed: Command Allocation - Function Keys</label>
      </variable>
      <variable item="Back EMF Adjustment Factor" CV="60" default="2" tooltip="Big Value = Fast Regulation">
        <decVal min="1" max="255"/>
        <label>Back EMF Adjustment Factor</label>
      </variable>
      <variable item="Back EMF Adjustment Speed" CV="61" default="32" tooltip="Big Value = Slow Regulation">
        <decVal min="1" max="255"/>
        <label>Back EMF Adjustment Speed</label>
      </variable>
      <variable item="Back EMF Adjustment Strength" CV="62" default="255" tooltip="255 = max. Strength">
        <decVal min="1" max="255"/>
        <label>Back EMF Adjustment Strength</label>
      </variable>
      <variable item="Back EMF Start-up Behavior - Regulation Time" CV="63" mask="XXXXVVVV" default="15" tooltip="Adjusts the speed of load control regulation, 1-15. Only alter if instructed by manufacturer.">
        <enumVal>
          <enumChoice choice="1" value="1"/>
          <enumChoice choice="2" value="2"/>
          <enumChoice choice="3" value="3"/>
          <enumChoice choice="4" value="4"/>
          <enumChoice choice="5" value="5"/>
          <enumChoice choice="6" value="6"/>
          <enumChoice choice="7" value="7"/>
          <enumChoice choice="8" value="8"/>
          <enumChoice choice="9" value="9"/>
          <enumChoice choice="10" value="10"/>
          <enumChoice choice="11" value="11"/>
          <enumChoice choice="12" value="12"/>
          <enumChoice choice="13" value="13"/>
          <enumChoice choice="14" value="14"/>
          <enumChoice choice="15" value="15"/>
        </enumVal>
        <label>Back EMF Start-up Behavior - Regulation Time</label>
      </variable>
      <variable item="Back EMF Start-up Behavior - Triggering Level" CV="63" mask="VVVVXXXX" default="3" tooltip="Defines the switchover point from slow approach load control to regular load control. Only alter if instructed by manufacturer.">
        <enumVal>
          <enumChoice choice="0" value="0"/>
          <enumChoice choice="16" value="1"/>
          <enumChoice choice="32" value="2"/>
          <enumChoice choice="48" value="3"/>
          <enumChoice choice="64" value="4"/>
          <enumChoice choice="80" value="5"/>
          <enumChoice choice="96" value="6"/>
          <enumChoice choice="112" value="7"/>
          <enumChoice choice="128" value="8"/>
          <enumChoice choice="144" value="9"/>
          <enumChoice choice="160" value="10"/>
          <enumChoice choice="176" value="11"/>
          <enumChoice choice="192" value="12"/>
          <enumChoice choice="208" value="13"/>
          <enumChoice choice="224" value="14"/>
          <enumChoice choice="240" value="15"/>
        </enumVal>
        <label>Back EMF Start-up Behavior - Triggering Level</label>
      </variable>
      <variable item="Engage/Disengage Acceleration/Deceleration Value: Command Allocation - Function Keys" CV="64" default="7" tooltip="Function key which switches Engage/Disengage Accel/Decel">
        <enumVal>
          <enumChoice choice="Engage/Disengage Accel/Decel Off" value="0"/>
          <enumChoice choice="F1" value="1"/>
          <enumChoice choice="F2" value="2"/>
          <enumChoice choice="F3" value="3"/>
          <enumChoice choice="F4" value="4"/>
          <enumChoice choice="F5" value="5"/>
          <enumChoice choice="F6" value="6"/>
          <enumChoice choice="F7" value="7"/>
          <enumChoice choice="F8" value="8"/>
          <enumChoice choice="F9" value="9"/>
          <enumChoice choice="F10" value="10"/>
          <enumChoice choice="F11" value="11"/>
          <enumChoice choice="F12" value="12"/>
          <enumChoice choice="F13" value="13"/>
          <enumChoice choice="F14" value="14"/>
          <enumChoice choice="F15" value="15"/>
          <enumChoice choice="F16" value="16"/>
        </enumVal>
        <label>Engage/Disengage Acceleration/Deceleration Value: Command Allocation - Function Keys</label>
      </variable>
      <variable item="Speed Table" CV="67">
        <speedTableVal>
          <speedTableEntry step="1" value="6"/>
          <speedTableEntry step="2" value="8"/>
          <speedTableEntry step="3" value="10"/>
          <speedTableEntry step="4" value="13"/>
          <speedTableEntry step="5" value="16"/>
          <speedTableEntry step="6" value="19"/>
          <speedTableEntry step="7" value="22"/>
          <speedTableEntry step="8" value="26"/>
          <speedTableEntry step="9" value="31"/>
          <speedTableEntry step="10" value="36"/>
          <speedTableEntry step="11" value="42"/>
          <speedTableEntry step="12" value="48"/>
          <speedTableEntry step="13" value="54"/>
          <speedTableEntry step="14" value="60"/>
          <speedTableEntry step="15" value="68"/>
          <speedTableEntry step="16" value="76"/>
          <speedTableEntry step="17" value="84"/>
          <speedTableEntry step="18" value="92"/>
          <speedTableEntry step="19" value="102"/>
          <speedTableEntry step="20" value="112"/>
          <speedTableEntry step="21" value="124"/>
          <speedTableEntry step="22" value="136"/>
          <speedTableEntry step="23" value="152"/>
          <speedTableEntry step="24" value="168"/>
          <speedTableEntry step="25" value="188"/>
          <speedTableEntry step="26" value="208"/>
          <speedTableEntry step="27" value="228"/>
          <speedTableEntry step="28" value="232"/>
        </speedTableVal>
        <label>Speed Table</label>
      </variable>
      <!-- Do not attempt to read CV 105 on an LGB decoder -->
      <variable CV="106" readOnly="yes" item="Decoder Type" tooltip="ID for Decoder Type (read only)(Only needed for Software Update)">
        <decVal/>
        <label>ID for Decoder Type</label>
      </variable>
      <variable item="F3 + F4: Dimming Value: Voltage on Output (PWM)" CV="112" mask="XXVVVVVV" default="32" tooltip="Locos with interface = 32(full track voltage); direct connection of 5V bulbs = 5; direct connection of 19V bulbs = 26">
        <decVal min="1" max="32"/>
        <label>F3 + F4: Dimming Value: Voltage on Output (PWM)</label>
      </variable>
      <variable item="F3 + F4: Dimming Value: Select Function to be Dimmed" CV="112" mask="VVXXXXXX" default="0" tooltip="Which function or functions is dimmed">
        <enumVal>
          <enumChoice choice="Full voltage on both outputs" value="0"/>
          <enumChoice choice="F3 is dimmed only" value="1"/>
          <enumChoice choice="F4 is dimmed only" value="2"/>
          <enumChoice choice="Both outputs are dimmed" value="3"/>
        </enumVal>
        <label>F3 + F4: Dimming Value: Select Function to be Dimmed</label>
      </variable>
      <variable item="F3: Command Allocation - Direction" CV="113" mask="VVXXXXXX" default="0" tooltip="Direction for F3 On">
        <enumVal>
          <enumChoice choice="F3 On in both directions" value="0"/>
          <enumChoice choice="F3 On in Reverse only" value="1"/>
          <enumChoice choice="F3 On in Standard Driving Direction only" value="2"/>
        </enumVal>
        <label>F3: Command Allocation - Direction</label>
      </variable>
      <variable item="F3: Command Allocation - Function Keys" CV="113" mask="XXXVVVVV" default="3" tooltip="Function key which switches F3">
        <enumVal>
          <enumChoice choice="Light Key" value="0"/>
          <enumChoice choice="F1" value="1"/>
          <enumChoice choice="F2" value="2"/>
          <enumChoice choice="F3" value="3"/>
          <enumChoice choice="F4" value="4"/>
          <enumChoice choice="F5" value="5"/>
          <enumChoice choice="F6" value="6"/>
          <enumChoice choice="F7" value="7"/>
          <enumChoice choice="F8" value="8"/>
          <enumChoice choice="F9" value="9"/>
          <enumChoice choice="F10" value="10"/>
          <enumChoice choice="F11" value="11"/>
          <enumChoice choice="F12" value="12"/>
          <enumChoice choice="F13" value="13"/>
          <enumChoice choice="F14" value="14"/>
          <enumChoice choice="F15" value="15"/>
          <enumChoice choice="F16" value="16"/>
        </enumVal>
        <label>F3: Command Allocation - Function Keys</label>
      </variable>
      <variable item="F3: Special Function: Blinking/Monoflop time base" CV="114" mask="XXXXVVVV" default="0" tooltip="0=Steady On (Standard Operation), 1..15=Blinking/Monoflop Time Base 0.25sec per value">
        <enumVal>
          <enumChoice choice="Steady On (Standard Operation)" value="0"/>
          <enumChoice choice="0.25 sec" value="1"/>
          <enumChoice choice="0.50 sec" value="2"/>
          <enumChoice choice="0.75 sec" value="3"/>
          <enumChoice choice="1.00 sec" value="4"/>
          <enumChoice choice="1.25 sec" value="5"/>
          <enumChoice choice="1.50 sec" value="6"/>
          <enumChoice choice="1.75 sec" value="7"/>
          <enumChoice choice="2.00 sec" value="8"/>
          <enumChoice choice="2.25 sec" value="9"/>
          <enumChoice choice="2.50 sec" value="10"/>
          <enumChoice choice="2.75 sec" value="11"/>
          <enumChoice choice="3.00 sec" value="12"/>
          <enumChoice choice="3.25 sec" value="13"/>
          <enumChoice choice="3.50 sec" value="14"/>
          <enumChoice choice="3.75 sec" value="15"/>
        </enumVal>
        <label>F3: Special Function: Blinking/Monoflop time base</label>
      </variable>
      <variable item="F3: Special Function: Select Special Function" CV="114" mask="VVXXXXXX" default="0" tooltip="Which special function, if any, for F3. For Monoflop, output is switched off automatically after timeout.">
        <enumVal>
          <enumChoice choice="Symmetric Blinking" value="0"/>
          <enumChoice choice="Short Term Function (Monoflop)" value="1"/>
          <enumChoice choice="Asymmetric Blinking (Short), Output blinks 1/3 On" value="2"/>
          <enumChoice choice="Asymmetric Blinking (Long), Output blinks 2/3 On" value="3"/>
        </enumVal>
        <label>F3: Special Function: Select Special Function</label>
      </variable>
      <variable item="F4: Command Allocation - Direction" CV="115" mask="VVXXXXXX" default="0" tooltip="Direction for F4 On">
        <enumVal>
          <enumChoice choice="F4 On in both directions" value="0"/>
          <enumChoice choice="F4 On in Reverse only" value="1"/>
          <enumChoice choice="F4 On in Standard Driving Direction only" value="2"/>
        </enumVal>
        <label>F4: Command Allocation - Direction</label>
      </variable>
      <variable item="F4: Command Allocation - Function Keys" CV="115" mask="XXXVVVVV" default="4" tooltip="Function key which switches F4">
        <enumVal>
          <enumChoice choice="Light Key" value="0"/>
          <enumChoice choice="F1" value="1"/>
          <enumChoice choice="F2" value="2"/>
          <enumChoice choice="F3" value="3"/>
          <enumChoice choice="F4" value="4"/>
          <enumChoice choice="F5" value="5"/>
          <enumChoice choice="F6" value="6"/>
          <enumChoice choice="F7" value="7"/>
          <enumChoice choice="F8" value="8"/>
          <enumChoice choice="F9" value="9"/>
          <enumChoice choice="F10" value="10"/>
          <enumChoice choice="F11" value="11"/>
          <enumChoice choice="F12" value="12"/>
          <enumChoice choice="F13" value="13"/>
          <enumChoice choice="F14" value="14"/>
          <enumChoice choice="F15" value="15"/>
          <enumChoice choice="F16" value="16"/>
        </enumVal>
        <label>F4: Command Allocation - Function Keys</label>
      </variable>
      <variable item="F4: Special Function: Blink/flop time or light effects" CV="116" mask="XXXVVVVV" default="0" tooltip="0=Steady On (Standard Operation), 1..15=Blinking/Monoflop Time Base 0.25sec per value">
        <enumVal>
          <enumChoice choice="Steady On (Standard Operation)" value="0"/>
          <enumChoice choice="0.25 sec" value="1"/>
          <enumChoice choice="0.50 sec" value="2"/>
          <enumChoice choice="0.75 sec" value="3"/>
          <enumChoice choice="1.00 sec" value="4"/>
          <enumChoice choice="1.25 sec" value="5"/>
          <enumChoice choice="1.50 sec" value="6"/>
          <enumChoice choice="1.75 sec" value="7"/>
          <enumChoice choice="2.00 sec" value="8"/>
          <enumChoice choice="2.25 sec" value="9"/>
          <enumChoice choice="2.50 sec" value="10"/>
          <enumChoice choice="2.75 sec" value="11"/>
          <enumChoice choice="3.00 sec" value="12"/>
          <enumChoice choice="3.25 sec" value="13"/>
          <enumChoice choice="3.50 sec" value="14"/>
          <enumChoice choice="3.75 sec" value="15"/>
          <enumChoice choice="Alternate Blinking with F3" value="16"/>
        </enumVal>
        <label>F4: Special Function: Blink/flop time or light effects</label>
      </variable>
      <variable item="F4: Special Function: Select Special Function" CV="116" mask="VVXXXXXX" default="0" tooltip="Which special function, if any, for F4. For Monoflop, output is switched off automatically after timeout.">
        <enumVal>
          <enumChoice choice="Symmetric Blinking" value="0"/>
          <enumChoice choice="Short Term Function (Monoflop)" value="1"/>
          <enumChoice choice="Asymmetric Blinking (Short), Output blinks 1/3 On" value="2"/>
          <enumChoice choice="Asymmetric Blinking (Long), Output blinks 2/3 On" value="3"/>
        </enumVal>
        <label>F4: Special Function: Select Special Function</label>
      </variable>
      <variable item="F5: Command Allocation - Direction" CV="117" mask="VVXXXXXX" default="0" tooltip="Direction for F5 On">
        <enumVal>
          <enumChoice choice="F5 On in both directions" value="0"/>
          <enumChoice choice="F5 On in Reverse only" value="1"/>
          <enumChoice choice="F5 On in Standard Driving Direction only" value="2"/>
        </enumVal>
        <label>F5: Command Allocation - Direction</label>
      </variable>
      <variable item="F5: Command Allocation - Function Keys" CV="117" mask="XXXVVVVV" default="5" tooltip="Function key which switches F5">
        <enumVal>
          <enumChoice choice="Light Key" value="0"/>
          <enumChoice choice="F1" value="1"/>
          <enumChoice choice="F2" value="2"/>
          <enumChoice choice="F3" value="3"/>
          <enumChoice choice="F4" value="4"/>
          <enumChoice choice="F5" value="5"/>
          <enumChoice choice="F6" value="6"/>
          <enumChoice choice="F7" value="7"/>
          <enumChoice choice="F8" value="8"/>
          <enumChoice choice="F9" value="9"/>
          <enumChoice choice="F10" value="10"/>
          <enumChoice choice="F11" value="11"/>
          <enumChoice choice="F12" value="12"/>
          <enumChoice choice="F13" value="13"/>
          <enumChoice choice="F14" value="14"/>
          <enumChoice choice="F15" value="15"/>
          <enumChoice choice="F16" value="16"/>
        </enumVal>
        <label>F5: Command Allocation - Function Keys</label>
      </variable>
      <variable item="F5: Special Function: Blinking/Monoflop/Voltage Buffer" CV="118" mask="XXXVVVVV" default="0" tooltip="0=Steady On (Standard Operation), 1..15=Blinking/Monoflop Time Base 0.25sec per value">
        <enumVal>
          <enumChoice choice="Steady On (Standard Operation)" value="0"/>
          <enumChoice choice="0.25 sec" value="1"/>
          <enumChoice choice="0.50 sec" value="2"/>
          <enumChoice choice="0.75 sec" value="3"/>
          <enumChoice choice="1.00 sec" value="4"/>
          <enumChoice choice="1.25 sec" value="5"/>
          <enumChoice choice="1.50 sec" value="6"/>
          <enumChoice choice="1.75 sec" value="7"/>
          <enumChoice choice="2.00 sec" value="8"/>
          <enumChoice choice="2.25 sec" value="9"/>
          <enumChoice choice="2.50 sec" value="10"/>
          <enumChoice choice="2.75 sec" value="11"/>
          <enumChoice choice="3.00 sec" value="12"/>
          <enumChoice choice="3.25 sec" value="13"/>
          <enumChoice choice="3.50 sec" value="14"/>
          <enumChoice choice="3.75 sec" value="15"/>
          <enumChoice choice="Control of Voltage Buffer in Programming Mode" value="31"/>
        </enumVal>
        <label>F5: Special Function: Blinking/Monoflop/Voltage Buffer</label>
      </variable>
      <variable item="F5: Special Function: Select Special Function" CV="118" mask="VVXXXXXX" default="0" tooltip="Which special function, if any, for F5. For Monoflop, output is switched off automatically after timeout.">
        <enumVal>
          <enumChoice choice="Symmetric Blinking" value="0"/>
          <enumChoice choice="Short Term Function (Monoflop)" value="1"/>
          <enumChoice choice="Asymmetric Blinking (Short), Output blinks 1/3 On" value="2"/>
          <enumChoice choice="Asymmetric Blinking (Long), Output blinks 2/3 On" value="3"/>
        </enumVal>
        <label>F5: Special Function: Select Special Function</label>
      </variable>
      <variable item="F6: Command Allocation - Direction" CV="119" mask="VVXXXXXX" default="0" tooltip="Direction for F6 On">
        <enumVal>
          <enumChoice choice="F6 On in both directions" value="0"/>
          <enumChoice choice="F6 On in Reverse only" value="1"/>
          <enumChoice choice="F6 On in Standard Driving Direction only" value="2"/>
        </enumVal>
        <label>F6: Command Allocation - Direction</label>
      </variable>
      <variable item="F6: Command Allocation - Function Keys" CV="119" mask="XXXVVVVV" default="6" tooltip="Function key which switches F6">
        <enumVal>
          <enumChoice choice="Light Key" value="0"/>
          <enumChoice choice="F1" value="1"/>
          <enumChoice choice="F2" value="2"/>
          <enumChoice choice="F3" value="3"/>
          <enumChoice choice="F4" value="4"/>
          <enumChoice choice="F5" value="5"/>
          <enumChoice choice="F6" value="6"/>
          <enumChoice choice="F7" value="7"/>
          <enumChoice choice="F8" value="8"/>
          <enumChoice choice="F9" value="9"/>
          <enumChoice choice="F10" value="10"/>
          <enumChoice choice="F11" value="11"/>
          <enumChoice choice="F12" value="12"/>
          <enumChoice choice="F13" value="13"/>
          <enumChoice choice="F14" value="14"/>
          <enumChoice choice="F15" value="15"/>
          <enumChoice choice="F16" value="16"/>
        </enumVal>
        <label>F6: Command Allocation - Function Keys</label>
      </variable>
      <variable item="F6: Special Function: Time Base for Sound Pulse Generator" CV="120" mask="XXXXVVVV" default="0" tooltip="0=Steady On (Standard Operation), 1..15=Time Base for Sound Pulse Generator Time Base (1=slow pulse, 15=fast pulse">
        <decVal min="0" max="15"/>
        <label>F6: Special Function: Time Base for Sound Pulse Generator</label>
      </variable>
      <variable item="F3: Special Function Servo" CV="121" mask="XXXXXXXV" default="0" tooltip="F3 standard output or servo">
        <enumVal>
          <enumChoice choice="F3 normal output"/>
          <enumChoice choice="F3 Servo"/>
        </enumVal>
        <label>F3: Special Function Servo</label>
      </variable>
      <variable item="F3: Servo Inverse Operation" CV="121" mask="XXXXXVXX" default="0" tooltip="F3 servo has inverse operation">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3: Servo Inverse Operation</label>
      </variable>
      <variable item="F3: Servo Switched Off" CV="121" mask="XXXXVXXX" default="0" tooltip="F3 servo is switched off after a motion">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
        <label>F3: Servo Switched Off</label>
      </variable>
      <variable item="F3: Servo Lower End Position" CV="122" default="16" tooltip="Needs to be adjusted to servo">
        <decVal min="5" max="50"/>
        <label>F3: Servo Lower End Position</label>
      </variable>
      <variable item="F3: Servo Upper End Position" CV="123" default="32" tooltip="Needs to be adjusted to servo">
        <decVal min="5" max="50"/>
        <label>F3: Servo Upper End Position</label>
      </variable>
      <variable item="Time Value for Servo Speed" CV="127" default="1" tooltip="1 unit = 10 msec">
        <decVal min="1" max="16"/>
        <label>Time Value for Servo Speed</label>
      </variable>
      <variable item="Shuttle Contact Blocking Period" CV="128" default="0" tooltip="0=deactivated, 1-3 not used, 4-255 * 0.5 seconds equals blocking period">
        <decVal min="0" max="255"/>
        <label>Shuttle Contact Blocking Period</label>
      </variable>
      <variable CV="255" readOnly="yes" item="New ID for Decoder Type" tooltip="New ID for Decoder Type (read only)(Only needed for Software Update)">
        <decVal/>
        <label>New ID for Decoder Type</label>
      </variable>
    </variables>
    <resets>
      <factReset label="Reset basic settings" CV="7" default="55"/>
      <factReset label="Reset motor settings" CV="7" default="66"/>
      <factReset label="Reset lights and functions" CV="7" default="77"/>
    </resets>
  </decoder>
  <pane>
    <name>Basic</name>
    <column>
      <dccaddress/>
      <label>
        <text> </text>
      </label>
      <display item="Short Address"/>
      <display item="Extended Address"/>
      <display item="Address Format"/>
      <label>
        <text> </text>
      </label>
      <display item="Locomotive Direction"/>
      <display item="Speed Step Mode"/>
      <display item="Analog (DC) Operation"/>
    </column>
    <column>
      <label>
        <text> </text>
      </label>
      <label>
        <text> </text>
      </label>
      <label>
        <text> </text>
      </label>
      <label>
        <text> </text>
      </label>
      <label>
        <text> </text>
      </label>
      <separator/>
      <label>
        <text> </text>
      </label>
      <display item="Manufacturer"/>
      <display item="Decoder Version"/>
      <display item="Decoder Type"/>
      <display item="New ID for Decoder Type" label="New Decoder Type"/>
    </column>
  </pane>
  <pane>
    <name>Motor</name>
    <column>
      <display item="Accel"/>
      <display item="Decel"/>
      <label>
        <text> </text>
      </label>
      <display item="Total PWM Period"/>
      <label>
        <text> </text>
      </label>
      <display item="Pause Time for Stop and Reversing"/>
      <display item="Shuttle Contact Blocking Period" label="Shuttle Contact Blocking Period"/>
      <label>
        <text> </text>
      </label>
      <display item="Digital Load Control"/>
      <display item="Analog Load Control"/>
      <label>
        <text> </text>
      </label>
      <display item="Back EMF Adjustment Factor"/>
      <display item="Back EMF Adjustment Speed"/>
      <display item="Back EMF Adjustment Strength"/>
      <display item="Back EMF Start-up Behavior - Regulation Time" label="Back EMF Start-up Behavior - Regulation Time"/>
      <display item="Back EMF Start-up Behavior - Triggering Level" label="Back EMF Start-up Behavior - Triggering Level"/>
    </column>
  </pane>
  <pane>
    <name>Basic Speed Control</name>
    <column>
      <row>
        <column>
          <label>
            <text> </text>
          </label>
          <display item="Speed Table Definition" format="offradiobutton" layout="above" label="Select this button to use settings shown below"/>
          <label>
            <text>           To turn off, use Speed Table pane</text>
          </label>
          <label>
            <text> </text>
          </label>
        </column>
      </row>
      <row>
        <label>
          <text> </text>
        </label>
      </row>
      <row>
        <label>
          <text> </text>
        </label>
      </row>
      <row>
        <column>
          <display item="Vstart" tooltip="Sets the starting voltage at throttle speed step 1"/>
          <display item="Vmid" tooltip="Sets the voltage at mid throttle"/>
          <display item="Vhigh" tooltip="Sets the maximum voltage at full throttle"/>
          <display item="Speed Table/Mid Range Cab Speed Step" tooltip="Sets voltage curve for mid throttle, set Vstart and Vhigh first"/>
        </column>
        <column>
          <display item="Vstart" format="hslider" label="" tooltip="Sets the starting voltage at throttle speed step 1"/>
          <display item="Vmid" format="hslider" label="" tooltip="Sets the voltage at mid throttle"/>
          <display item="Vhigh" format="hslider" label="" tooltip="Sets the maximum voltage at full throttle"/>
        </column>
      </row>
    </column>
  </pane>
  <pane>
    <name>Speed Table</name>
    <column>
      <row>
        <column>
          <display item="Speed Table Definition" format="onradiobutton" layout="above" label="Select this button to use a Speed Table for Speed Control"/>
          <label>
            <text>            To turn off, use Basic Speed Control pane</text>
          </label>
        </column>
      </row>
      <row>
        <label>
          <text> </text>
        </label>
      </row>
      <row>
        <label>
          <text> </text>
        </label>
      </row>
      <row>
        <column>
          <label>
            <text> </text>
          </label>
          <display item="Speed Table Selection" tooltip="Select manufacturer's speed table or user table"/>
        </column>
      </row>
      <row>
        <column>
          <display item="Speed Table" layout="above"/>
          <label>
            <text> </text>
          </label>
        </column>
      </row>
    </column>
  </pane>
  <pane>
    <name>Lights and Functions</name>
    <column>
      <display item="Light: Dimming Value (PWM)"/>
      <display item="Front Light: Command Allocation - Direction"/>
      <display item="Front Light: Command Allocation - Function Keys"/>
      <display item="Rear Light: Command Allocation - Direction"/>
      <display item="Rear Light: Command Allocation - Function Keys"/>
      <label>
        <text> </text>
      </label>
      <display item="F1: Command Allocation - Direction"/>
      <display item="F1: Command Allocation - Function Keys"/>
      <display item="F1: Special Function: Blinking/Monoflop time base"/>
      <display item="F1: Special Function: Select Special Function"/>
      <label>
        <text> </text>
      </label>
      <display item="F1 + F2: Dimming Value: Voltage on Output (PWM)"/>
      <display item="F1 + F2: Dimming Value: Select Function to be Dimmed"/>
      <label>
        <text> </text>
      </label>
      <display item="F2: Command Allocation - Direction"/>
      <display item="F2: Command Allocation - Function Keys"/>
      <display item="F2: Special Function: Blink/flop time or light effects"/>
      <display item="F2: Special Function: Select Special Function"/>
      <label>
        <text> </text>
      </label>
      <display label="F3: Special Function Servo" item="F3: Special Function Servo"/>
      <display item="F3: Command Allocation - Direction"/>
      <display item="F3: Command Allocation - Function Keys"/>
      <display item="F3: Special Function: Blinking/Monoflop time base"/>
      <display item="F3: Special Function: Select Special Function"/>
      <label>
        <text> </text>
      </label>
      <display item="F3 + F4: Dimming Value: Voltage on Output (PWM)"/>
      <display item="F3 + F4: Dimming Value: Select Function to be Dimmed"/>
      <label>
        <text> </text>
      </label>
      <display item="F4: Command Allocation - Direction"/>
      <display item="F4: Command Allocation - Function Keys"/>
      <display item="F4: Special Function: Blink/flop time or light effects"/>
      <display item="F4: Special Function: Select Special Function"/>
      <label>
        <text> </text>
      </label>
      <display item="F5: Command Allocation - Direction"/>
      <display item="F5: Command Allocation - Function Keys"/>
      <display item="F5: Special Function: Blinking/Monoflop/Voltage Buffer"/>
      <display item="F5: Special Function: Select Special Function"/>
      <label>
        <text> </text>
      </label>
      <display item="F6: Command Allocation - Direction"/>
      <display item="F6: Command Allocation - Function Keys"/>
      <display item="F6: Special Function: Time Base for Sound Pulse Generator"/>
    </column>
  </pane>
  <pane>
    <name>Servo</name>
    <column>
      <display item="F3: Special Function Servo"/>
      <display item="F3: Servo Inverse Operation" label="F3: Servo Inverse Operation"/>
      <display item="F3: Servo Switched Off" label="F3: Servo Switched Off"/>
      <label>
        <text> </text>
      </label>
      <display item="F3: Servo Lower End Position"/>
      <display item="F3: Servo Upper End Position"/>
      <label>
        <text> </text>
      </label>
      <display item="Time Value for Servo Speed"/>
    </column>
  </pane>
  <pane>
    <name>Analog Controls</name>
    <column>
      <display item="Analog (DC) Operation"/>
    </column>
    <column>
      <display item="Analog Mode Function Status - F1" format="checkbox"/>
      <display item="Analog Mode Function Status - F2" format="checkbox"/>
      <display item="Analog Mode Function Status - F3" format="checkbox"/>
      <display item="Analog Mode Function Status - F4" format="checkbox"/>
      <display item="Analog Mode Function Status - F5" format="checkbox"/>
      <display item="Analog Mode Function Status - F6" format="checkbox"/>
    </column>
  </pane>
  <pane>
    <name>Miscellaneous</name>
    <column>
      <row>
        <column>
          <label>
            <text>Consist</text>
          </label>
          <separator/>
          <label>
            <text> </text>
          </label>
          <display item="Consist Address"/>
          <display item="Consist Direction"/>
          <label>
            <text> </text>
          </label>
          <label>
            <text> </text>
          </label>
          <label>
            <text> </text>
          </label>
        </column>
      </row>
      <row>
        <column>
          <display item="Switching Speed: Command Allocation - Function Keys"/>
          <display item="Engage/Disengage Acceleration/Deceleration Value: Command Allocation - Function Keys"/>
          <label>
            <text> </text>
          </label>
          <label>
            <text> </text>
          </label>
          <label>
            <text> </text>
          </label>
        </column>
      </row>
      <row>
        <column>
          <label>
            <text>PIKO configuration</text>
          </label>
          <separator/>
          <label>
            <text> </text>
          </label>
          <display item="Data Processing"/>
          <display item="F1 Output"/>
          <display item="Bus Type" label="Bus Type"/>
        </column>
      </row>
    </column>
  </pane>
  <pane>
    <name>CVs</name>
    <column>
      <cvtable/>
    </column>
  </pane>
</decoder-config>
