<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
<!-- Copyright (C) JMRI 2005 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="Bernd Wisotzki (Ba)" version="7" lastUpdated="20140522"/>
  <version author="Jeff Schmaltz escopetas@comcast.net" version="6" lastUpdated="20130724"/>
  <version author="Bob Jacobsen" version="5" lastUpdated="20121227"/>
  <version author="Paul Bender" version="4" lastUpdated="20050814"/>
  <version author="Mark Schutzer mark.schutzer@sbcglobal.net" version="3" lastUpdated="20050814"/>
  <!-- Version 1 - created  "20050228"-->
  <!-- Version 2 - added SUSI pane, fixed CV127 default value-->
  <!-- Version 3 - added versionID range of 60 to 61 for Gold Mini support
						   - and removed SUSI varible support for Gold Mini-->
  <!-- Version 4 - added factory reset menu items (Paul Bender) -->
  <!-- Version 5 - XInclude (Bob Jacobsen) -->
  <!-- Version 6 - Added GOLD maxi, changed high version for family to 72, removed writeOnly from CV127 (Jeff Schmaltz) -->
  <!-- Version 7 - Added German translation (Bob Jacobsen) and refactoring (Ba) -->
  <!-- These are the Gold decoders, with "6th gen BEMF", "Precision Braking Control" -->
  <!-- and "Low Gear Switching Drive" -->
  <decoder>
    <family name="Lenz Gold with 6th gen BEMF" mfg="Lenz" highVersionID="72" lowVersionID="60" comment="Decoders featuring Precision Braking Control and Low Gear Switching Drive">
      <model model="Gold Mini" numOuts="2" numFns="10" lowVersionID="60" maxMotorCurrent="0.5A (peak=0.8A)" formFactor="N">
        <output name="1" label="A - White"/>
        <output name="2" label="B - Yellow"/>
      </model>
      <model model="Gold" numOuts="4" numFns="14" lowVersionID="61" nmraWarrant="yes" nmraWarrantStart="200604" maxMotorCurrent="1.0A (peak=1.8A)" formFactor="HO">
        <output name="1" label="A - White"/>
        <output name="2" label="B - Yellow"/>
        <output name="3" label="C - Green"/>
        <output name="4" label="D - Violet"/>
      </model>
      <model model="Gold Maxi" numOuts="8" numFns="14" lowVersionID="72" maxMotorCurrent="3.0A (peak=5.0A)" formFactor="G">
        <output name="1" label="A"/>
        <output name="2" label="B"/>
        <output name="3" label="C"/>
        <output name="4" label="D"/>
        <output name="5" label="E"/>
        <output name="6" label="F"/>
        <output name="7" label="G"/>
        <output name="8" label="H"/>
      </model>
    </family>
    <programming direct="yes" paged="yes" register="yes" ops="yes"/>
    <variables>
      <xi:include href="http://jmri.org/xml/decoders/nmra/shortAndLongAddress.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/vStartHighMid.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/accelDecel.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/mfgVersionId_cv7_8.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/bemfRep_cv9.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/consistAddrDirection.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/railcom_cv28_29.xml"/>
      <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"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/cv29table3-28.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/protection_cv30.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/functionmap.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/motorControl_cv50.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/braking_cv51.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/abc_cv51.xml"/>
      <variable CV="51" mask="XVXXXXXX" item="Signal stop activated with external contact" minOut="8" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Signal stop activated with external contact</label>
        <label xml:lang="de">Halt am Signal durch externen Kontakt aktiviert</label>
        <label xml:lang="ca">Para al senyal amb contacte extern</label>
      </variable>
      <variable CV="51" mask="VXXXXXXX" item="Push-pull operation activated with external contact" minOut="8" default="0">
        <xi:include href="http://jmri.org/xml/decoders/parts/enum-disabledEnabled.xml"/>
        <label>Push-pull operation activated with external contact</label>
        <label xml:lang="de">Pendelzugbetrieb durch externen Kontakt aktiviert</label>
        <label xml:lang="ca">Operació Push-Pull activa amb contacte extern</label>
      </variable>
      <xi:include href="http://jmri.org/xml/decoders/lenz/lightingOptions1_cv55_56.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/fn_ctrl_57_59.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/lighting_cv60_cv64.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/speedTable_cv67.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/motorControl2_cv112_114.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/susi_cv126_127.xml"/>
      <xi:include href="http://jmri.org/xml/decoders/lenz/serviceNo_cv128.xml"/>
    </variables>
    <resets>
      <factReset label="Reset All CVs" CV="8" default="33">
        <label xml:lang="it">Reset delle CV ai valori di fabbrica</label>
        <label xml:lang="ca">Reset de totes les CV a valors ede fàbrica</label>
      </factReset>
    </resets>
  </decoder>
  <xi:include href="http://jmri.org/xml/decoders/lenz/paneFunctionMap.xml"/>
  <xi:include href="http://jmri.org/xml/decoders/lenz/paneLenz.xml"/>
  <xi:include href="http://jmri.org/xml/decoders/lenz/paneLighting.xml"/>
  <xi:include href="http://jmri.org/xml/decoders/lenz/paneSUSI.xml"/>
</decoder-config>
