<!--  This is for the 8 function output ESU decoder.  v1.3.8(r) 2103-12-21 -->
<decoder manu="ESU" type="V4.0 without FX" web="http://www.esu.eu" collapse="true" info="The ESU decoder is one of, if not the most feature rich decoders on the market today.  Please consult the manual before making changes.">
  <cvbyte nr="1" cat="Address" desc="Short Decoder Address" info="Range 0-127 - Bits 0-6 contain an address with a value between 1 and 127.  Bit seven must have a value of 0."/>
  <cvbyte nr="7" cat="Info" desc="Manufacturer Version No." readonly="true" info="This is reserved for the manufacturer to store information regarding the version of the decoder."/>
  <cvbyte nr="8" cat="Info" desc="Manufacturer's ID" readonly="true" info="ESU=151 CV8 contains the NMRA assigned id number of the manufacturer of the decoder."/>

  
<cvbyte nr="29" cat="General" desc="Direction, Speed Table, Analog mode" info=".">

<adip title="General Decoder Configuration">
 <dipgroup caption="General Configuration" type="1" ori="1">
      <dipvalue name="Invert direction" value="1"/>
      <dipvalue name="28/128 speed steps" value="2"/>
      <dipvalue name="Disable Analog Mode" value="4"/>
      <dipvalue name="Enable RailCom" value="8"/>
      <dipvalue name="Speed Curve CV 67-94" value="16"/>
      <dipvalue name="Long addresses (CV17, CV18)" value="32"/>


  </dipgroup>

</adip>
</cvbyte> 



  <cvbyte nr="2" cat="Speed" desc="Vstart" info="Range 0-100 - Default 3 - Vstart is used to define the voltage drive level used as the start voltage on the motor."/>

  <cvbyte nr="3" cat="Speed" desc="Acceleration Rate" info="Range 0-255 - each unit = 7ms between speed steps."/>
  <cvbyte nr="4" cat="Speed" desc="Deceleration Rate" info="Range 0-255 - each unit = 7ms between speed steps."/>
  <cvbyte nr="5" cat="Speed" desc="Vmax" info="Range 0-255 - V-max is used to specify the motor voltage drive levels at the maximum speed step."/>
  <cvbyte nr="6" cat="Speed" desc="Vmid" info="Range 0-255 - V-mid specifies the voltage drive level at the middle speed step.  Vmid is used to generate a performance curve in the decoder that translate speed step values into motor voltage drive levels and is specified as a fraction of available rectified supply voltage."/>
   <cvbyte nr="17" cat="Address" desc="Extended address high" info="The Extended Address is the locomotives address when the decoder is set up for extended addressing (indicated by a value of 1 in bit location 5 of CV#29).  CV#17 contains the most significant bits of the two byte address and must have a value between 11000000 and 11100111, inclusive, in order for this two byte address to be valid. CV 18 contains the least significant bits of the address and may contain any value."/>
  <cvbyte nr="18" cat="Address" desc="Extended address low" info="The Extended Address is the locomotives address when the decoder is set up for extended addressing (indicated by a value of 1 in bit location 5 of CV#29).  CV#17 contains the most significant bits of the two byte address and must have a value between 11000000 and 11100111, inclusive, in order for this two byte address to be valid. CV 18 contains the least significant bits of the address and may contain any value."/>
  
<cvbyte nr="27" cat="Brake Mode" desc="Brake Mode" info="">  
<adip title="Brake Configuration">
 <dipgroup caption="Brake Configuration" type="1" ori="1">
      <dipvalue name="ABC Braking - Voltage higher on right side" value="1"/>
      <dipvalue name="ABC Braking - Voltage higher on left side" value="2"/>
      <dipvalue name="Zimo HLU Brakes Active" value="4"/>
      <dipvalue name="Brake On DC if polarity against driving direction" value="8"/>
      <dipvalue name="Brake on DC if polarity with driving direction" value="16"/>

  </dipgroup>

</adip>
</cvbyte> 
<cvbyte nr="28" cat="Railcom" desc="Railcom" info="">  
<adip title="Railcom Configuration">
 <dipgroup caption="Railcom  Configuration" type="1" ori="1">

      <dipvalue name="Channel 1 Broadcast disabled" value="1"/>
      <dipvalue name="Data transmission allowed on channel 2" value="2"/>
      <dipvalue name="Railcom Plus automatic loco recognition" value="128"/>

  </dipgroup>
</adip>
</cvbyte> 

<cvbyte nr="31" cat="Index Registers" desc="Index Register H" info=" "/>  
<cvbyte nr="32" cat="Index Registers" desc="Index Register L" info=" "/>  



<cvbyte nr="33" cat="Function Mappings" desc="Function mapping " info="Due to the complexity of ESU function mapping, please use a Lok-Programmer."/>  
<!-- 
<cvbyte nr="34" cat="Functions" desc="Function mapping - F0R" info="REV function mapping "/>
<cvbyte nr="35" cat="Functions" desc="Function mapping - F1" info="F1 function mapping "/>
<cvbyte nr="36" cat="Functions" desc="Function mapping - F2" info="F2 function mapping "/>
<cvbyte nr="37" cat="Functions" desc="Function mapping - F3" info="F3 function mapping "/>
<cvbyte nr="38" cat="Functions" desc="Function mapping - F4" info="F4 function mapping "/>
<cvbyte nr="39" cat="Functions" desc="Function mapping - F5" info="F5 function mapping "/>
<cvbyte nr="40" cat="Functions" desc="Function mapping - F6" info="F6 function mapping "/>
-->

<cvbyte nr="47" cat="Protocol Selection" desc="ESU Protocol Selection" info="" >  
<adip title="Protocol Select">
 <dipgroup caption="ESU Protocol Select" type="1" ori="1">

      <dipvalue name="Enable DCC protocol" value="1"/>
      <dipvalue name="Enable M4 protocol" value="2"/>
      <dipvalue name="Enable Motorola protocol" value="4"/>
      <dipvalue name="Enable Selectrix protocol" value="8"/>

        </dipgroup>

</adip>
</cvbyte> 



<cvbyte nr="49" cat="Extended Configuration" desc="ESU Extended Configuration #1" info="">  
<adip title="Extended Configuration #1">
 <dipgroup caption="Extended  Configuration #1" type="1" ori="1">

      <dipvalue name="Enable back EMF" value="1"/>
      <dipvalue name="40kc motor PWM frequency (20kc is default)" value="2"/>
      <dipvalue name="Enable Marklin Delta mode" value="4"/>
      <dipvalue name="Enable Marklin 2nd address" value="8"/>
      <dipvalue name="Enable automatic DCC speed step detection" value="16"/>
      <dipvalue name="Enable LGB button function mode" value="32"/>
      <dipvalue name="Enable Zimo Manual Function" value="64"/>
  </dipgroup>

</adip>
</cvbyte> 
<cvbyte nr="124" cat="Extended Configuration" desc="Extended Configuration #2" info="">
<adip title="Extended Configuration #2">
 <dipgroup caption="Extended  Configuration #2" type="1" ori="1">

      <dipvalue name="Enable driving direction when shifting direction." value="1"/>
      <dipvalue name="Enable decoder lock with CV15/16" value="2"/>
      <dipvalue name="Enable serial protocol for C-Sinus" value="8"/>
      <dipvalue name="Constant (non-adaptive) regulation frequency" value="16"/>
      <dipvalue name="Motor Safety when Blocked" value="32" />

        </dipgroup>

</adip>
</cvbyte> 



<cvbyte nr="50" cat="Analog Mode" desc="ESU analog mode" info="">  
<adip title="Analog mode ">
 <dipgroup caption="Analog mode" type="1" ori="1">

      <dipvalue name="Enable AC Analog mode" value="1"/>
      <dipvalue name="Enable DC Analog mode" value="2"/>
        </dipgroup>

</adip>
</cvbyte> 
<cvbyte nr="2" cat="Motor Control" desc="Vstart" info="Range 0-100 - also see Motor Control - Section 11 of the manual - Vstart is used to define the voltage drive level used as the start voltage on the motor."/>

  <cvbyte nr="51" cat="Motor Control" desc="Parameter I Slow" info="Adjusts the inertia of the motor separately for slow speeds and starting from a stop."/>
  <cvbyte nr="52" cat="Motor Control" desc="Parameter K Slow" info="Defines the power of load control. The higher the value, the stronger the motor will be controlled by the decoder."/>
  <cvbyte nr="53" cat="Motor Control" desc="EMF Reference Voltage" info="Defines the Back EMF voltage, which the motor should generate at maximum speed. The higher the efficiency of the motor, the higher this value may be set. If the engine does not reach maximum speed, reduce this parameter."/>
  <cvbyte nr="54" cat="Motor Control" desc="Parameter K" info="Defines the effect of load control. The higher the value, the stronger the effect of Back EMF control."/>
  <cvbyte nr="55" cat="Motor Control" desc="Parameter I" info="Defines the momentum (inertia) of the motor. The higher the momentum of the motor (large flywheel or bigger motor diameter), the higher this value has to be set."/>
  <cvbyte nr="56" cat="Motor Control" desc="Control Influence" info="Defines up to which speed in % load control will be active. A value of 32 indicates that load control will be switched off after reaching half speed."/>

  <cvbyte nr="66" cat="Motor Trim &amp; Torque" desc="Forward Trim" info="Divided by 128 is the factor used to multiple the motor voltage. A value of zero deactivates."/>
  <cvbyte nr="95" cat="Motor Trim &amp; Torque" desc="Reverse Trim" info="Reverse trim, values 1-127 add to reverse speed, values 129-255 add to forward speed."/>
  <cvbyte nr="116" cat="Motor Trim &amp; Torque" desc="Torque kick rate" info="The  number of 16ms periods in a row that motor is `kicked' with a voltage pulse"/>
  <cvbyte nr="117" cat="Motor Trim &amp; Torque" desc="Torque kick strength" info=" How much voltage is used to kick the motor at slow speeds. Reduces to 0 as speed is increased."/>


  <cvbyte nr="67" cat="Speed Table" desc="Index 1" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps)"/>
  <cvbyte nr="68" cat="Speed Table" desc="Index 2" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="69" cat="Speed Table" desc="Index 3" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="70" cat="Speed Table" desc="Index 4" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="71" cat="Speed Table" desc="Index 5" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="72" cat="Speed Table" desc="Index 6" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="73" cat="Speed Table" desc="Index 7" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="74" cat="Speed Table" desc="Index 8" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="75" cat="Speed Table" desc="Index 9" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="76" cat="Speed Table" desc="Index 10" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="77" cat="Speed Table" desc="Index 11" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="78" cat="Speed Table" desc="Index 12" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="79" cat="Speed Table" desc="Index 13" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="80" cat="Speed Table" desc="Index 14" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="81" cat="Speed Table" desc="Index 15" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="82" cat="Speed Table" desc="Index 16" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="83" cat="Speed Table" desc="Index 17" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="84" cat="Speed Table" desc="Index 18" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="85" cat="Speed Table" desc="Index 19" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="86" cat="Speed Table" desc="Index 20" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="87" cat="Speed Table" desc="Index 21" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="88" cat="Speed Table" desc="Index 22" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="89" cat="Speed Table" desc="Index 23" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="90" cat="Speed Table" desc="Index 24" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="91" cat="Speed Table" desc="Index 25" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="92" cat="Speed Table" desc="Index 26" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="93" cat="Speed Table" desc="Index 27" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  <cvbyte nr="94" cat="Speed Table" desc="Index 28" info=" Uploadable speed table steps 1-28 (128 speed mode calculates intermediate steps"/>
  
  <cvbyte nr="105" cat="Scratchpad" desc="Spare CV" info="Scratchpad CV #1."/>
  <cvbyte nr="106" cat="Scratchpad" desc="Spare CV" info="Scratchpad CV #2."/>
  <cvbyte nr="112" cat="Blink Frequency" desc="Blink rate" info="Default 30  Range 4-64  Multiples of 0.065536 seconds"/>

  <cvbyte nr="113" cat="Power Fail" desc="Power Fail Bypass" info="Default 50  Range 0-255 "/>
  
  

<cvbyte nr="125" cat="Analog Options" desc="Starting Voltage analog DC." info=""/>
<cvbyte nr="126" cat="Analog Options" desc="Maximum Speed Analog DC" info=""/>
<cvbyte nr="127" cat="Analog Options" desc="Starting Voltage Analog AC." info=""/>
<cvbyte nr="128" cat="Analog Options" desc="Maximum Speed Analog AC" info=""/>


<cvbyte nr="19" cat="Consist" desc="Consist Address" info="Contains a seven bit address in bit positions 0-6. Bit 7 indicates the relative direction of this unit within a consist, with a value of 0 indicating normal direction, and a value of 1 indicating a direction opposite the unit's normal direction. If the seven bit address in bits 0-6 is 0000000 the unit is not in a consist."/>
<cvbyte nr="21" cat="Consist" desc="Consist Addr Active for F1-F8" info="Defines for functions F1-F8 whether the function is controlled by the consist address."/>
<cvbyte nr="22" cat="Consist" desc="Consist Addr Active for FL,F9-F12" info="Defines for function FL whether the function is controlled by the consist address."/>
  
  <cvbyte nr="246" cat="Coupling" desc="Auto decoupling driving speed" />
<cvbyte nr="247" cat="Coupling" desc="Decouping remove time." info="Value * .016"/>
<cvbyte nr="248" cat="Coupling" desc="Decouple pushing time." info="Value * .016"/>


<cvbyte nr="253" cat="Constant Brake" desc="Constant Brake mode. " info="Only active is CV254 > 0"/>
<cvbyte nr="254" cat="Constant Brake" desc="Constant Brake Distance Fwd" info="Please see manual."/>
<cvbyte nr="255" cat="Constant Brake" desc="Constant Brake Distance Rev" info="Please see manual"/>

<cvbyte nr="30" cat="Reset" desc="Reset and Error" info="Set to 8 on the Programming track to reset to factory defaults.  If the decoder has an error condition this Configuration Variable shall contain the error condition as specified by the manufacturer.  0 = no error has occurred."/>

</decoder>

