<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2004 All rights reserved -->
<!--                                                                        -->
<!-- JMRI is free software; you can redistribute it and/or modify it under  -->
<!-- the terms of version 2 of the GNU General Public License as published  -->
<!-- by the Free Software Foundation. See the "COPYING" file for a copy     -->
<!-- of this license.                                                       -->
<!--                                                                        -->
<!-- JMRI is distributed in the hope that it will be useful, but WITHOUT    -->
<!-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or  -->
<!-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License  -->
<!-- for more details.                                                      -->
<decoder-config xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://jmri.org/xml/schema/decoder.xsd">
  <version author="Paul Bednder (paul.bender@acm.org)" version="1" lastUpdated="20040326"/>
  <!-- Version 2 - added factory reset menu items (Paul Bender) -->
  <decoder>
    <family name="Lenz Value Line decoders" mfg="Lenz" lowVersionID="10" highVersionID="10">
      <model model="LE1000A" numOuts="2" numFns="0" lowVersionID="10" highVersionID="10" nmraWarrant="yes" nmraWarrantStart="2004" nmraWarrantEnd="200901">
        <size length="0.9" width=".63" height=".13" units="inches"/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <variable CV="2" item="Vstart" default="16" comment="Range 0-31">
        <decVal/>
        <label>Start Volts</label>
        <label xml:lang="it">Volt Partenza</label>
        <label xml:lang="fr">V démarr.</label>
        <label xml:lang="de">Anfahrspannung</label>
        <comment>Range 0-31</comment>
        <comment xml:lang="de">Range 0-31</comment>
      </variable>
      <variable item="Accel" CV="3" default="1" comment="Range 0-31">
        <decVal max="31"/>
        <label>Accel</label>
        <label xml:lang="it">Accellerazione (0-31)</label>
        <label xml:lang="fr">Accelération (0-31)</label>
        <label xml:lang="de">Anfahrverzögerung (0-31)</label>
        <comment>Range 0-31</comment>
        <comment xml:lang="it">Valori 0-31</comment>
      </variable>
      <variable item="Decel" CV="4" default="1" comment="Range 0-31">
        <decVal max="31"/>
        <label>Decel</label>
        <label xml:lang="it">Decellerazione (0-31)</label>
        <label xml:lang="fr">Décélération (0-31)</label>
        <label xml:lang="de">Bremszeit (0-31)</label>
        <comment>Range 0-31</comment>
        <comment xml:lang="it">Valori 0-31</comment>
      </variable>
      <!-- deleted max and mid voltage-->
      <variable CV="7" item="Decoder Version" readOnly="yes">
        <decVal/>
        <label>Version ID</label>
        <label xml:lang="it">Versione Decoder: </label>
        <label xml:lang="fr">Version décodeur: </label>
        <label xml:lang="de">Decoder Version: </label>
      </variable>
      <variable CV="8" readOnly="yes" item="Manufacturer" default="99">
        <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="8" default="99" item="Reset" comment="Writing a value of 33 will reset decoder to factory defaults">
        <decVal/>
        <label>Manufacturer ID - Reset</label>
        <comment>Writing a value of 33 will reset decoder to factory defaults</comment>
        <label xml:lang="de">Reset</label>
        <comment xml:lang="de">Writing a value of 33 will reset decoder to factory defaults</comment>
      </variable>
      <!-- Deleted all CV 13 references-->
      <!-- 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"/>
     <!-- CV=50 -->
     <xi:include href="http://jmri.org/xml/decoders/nmra/cv50_DCbrake.xml"/>
      <variable CV="51" mask="VVVVVVVV" item="Function F0F options" comment="Controls which function dims headlight (CV 52 controls amount)">
        <enumVal>
          <enumChoice choice="Always Dim" value="00000000">
            <choice>Always Dim</choice>
            <choice xml:lang="de">Always Dim</choice>
          </enumChoice>
          <enumChoice choice="F1" value="1">
            <choice>F1</choice>
            <choice xml:lang="de">F1</choice>
          </enumChoice>
          <enumChoice choice="F2" value="2">
            <choice>F2</choice>
            <choice xml:lang="de">F2</choice>
          </enumChoice>
          <enumChoice choice="F3" value="4">
            <choice>F3</choice>
            <choice xml:lang="de">F3</choice>
          </enumChoice>
          <enumChoice choice="F4" value="8">
            <choice>F4</choice>
            <choice xml:lang="de">F4</choice>
          </enumChoice>
          <enumChoice choice="F5" value="16">
            <choice>F5</choice>
            <choice xml:lang="de">F5</choice>
          </enumChoice>
          <enumChoice choice="F6" value="32">
            <choice>F6</choice>
            <choice xml:lang="de">F6</choice>
          </enumChoice>
          <enumChoice choice="F7" value="64">
            <choice>F7</choice>
            <choice xml:lang="de">F7</choice>
          </enumChoice>
          <enumChoice choice="F8" value="128">
            <choice>F8</choice>
            <choice xml:lang="de">F8</choice>
          </enumChoice>
        </enumVal>
        <label>Headlight Dimmed By</label>
        <comment>Controls which function dims headlight (CV 52 controls amount)</comment>
        <label xml:lang="de">Function F0F options</label>
        <comment xml:lang="de">Controls which function dims headlight (CV 52 controls amount)</comment>
      </variable>
      <variable CV="52" default="255" comment="Controls how much headlights dim (0-dark to 255-max bright)" item="Function F0F behavior">
        <decVal min="0" max="255"/>
        <label>Headlight Dimming intensity</label>
        <comment>Controls how much headlights dim (0-dark to 255-max bright)</comment>
        <label xml:lang="de">Function F0F behavior</label>
        <comment xml:lang="de">Controls how much headlights dim (0-dark to 255-max bright)</comment>
      </variable>
      <variable CV="105" item="User Id #1">
        <decVal/>
        <label>User Private ID #1</label>
        <label xml:lang="de">User Id #1</label>
      </variable>
      <variable CV="106" item="User Id #2">
        <decVal/>
        <label>User Private ID #2</label>
        <label xml:lang="de">User Id #2</label>
      </variable>
      <!-- Define the fixed Function-Output mapping -->
      <constant item="FL(f) controls output 1" minOut="1" default="1"/>
      <constant item="FL(r) controls output 2" minOut="2" default="1"/>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="33">
        <label xml:lang="it">Reset delle CV ai valori di fabbrica</label>
      </factReset>
    </resets>
  </decoder>
  <pane>
    <name>Lenz</name>
    <name xml:lang="de">Lenz</name>
    <column>
      <display item="Function F0F behavior"/>
      <display item="Function F0F options"/>
    </column>
  </pane>
</decoder-config>
