302 lines
15 KiB
XML
302 lines
15 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml-stylesheet type="text/xsl" href="../XSLT/decoder.xsl"?>
|
|
<!-- Copyright (C) JMRI 2003, 2004. 2007 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="Peter Ulvestad" version="3" lastUpdated="20090725"/>
|
|
<version author="Bob Jacobsen" version="2" lastUpdated="20050621"/>
|
|
<!-- Made from the Lenz_DriveSelect.xml file version 5 -->
|
|
<!-- Version 2 adds lowVersionID from Ian Birchenough -->
|
|
<!-- Version 3 - added max value for CV2, changed Lenz tab name to Bachmann, updated dimensions and default values, added factory reset menu items (Peter Ulvestad) -->
|
|
<decoder>
|
|
<family name="E-Z Command decoders" mfg="Bachmann Trains" lowVersionID="46">
|
|
<model model="4 function decoder (36-550)" numOuts="4" numFns="8" maxMotorCurrent="1A" formFactor="HO" connector="NMRAmedium">
|
|
<output name="A" label="White" connection="plug"/>
|
|
<output name="B" label="Yellow" connection="plug"/>
|
|
<output name="C" label="Green" connection="plug"/>
|
|
<output name="D" label="Purple" connection="wire"/>
|
|
<size length="31.5" width="16.0" height="3.80" units="mm"/>
|
|
</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="1" comment="Range 0-31">
|
|
<decVal min="0" max="31"/>
|
|
<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>
|
|
</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>
|
|
</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>
|
|
</variable>
|
|
<!-- deleted max and mid voltage-->
|
|
<!-- CV 7-8 -->
|
|
<xi:include href="http://jmri.org/xml/decoders/nmra/mfgVersionId.xml"/>
|
|
<!-- 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"/>
|
|
<xi:include href="http://jmri.org/xml/decoders/nmra/cv29table1-28.xml"/>
|
|
<variable item="Motor Drive Selection" CV="50" mask="XXXXVXXX" default="0">
|
|
<enumVal>
|
|
<enumChoice choice="Precision Glide Control">
|
|
<choice>Precision Glide Control</choice>
|
|
</enumChoice>
|
|
<enumChoice choice="Silent Drive">
|
|
<choice>Silent Drive</choice>
|
|
</enumChoice>
|
|
</enumVal>
|
|
<label>Motor Drive Selection</label>
|
|
</variable>
|
|
<!-- CV=50 -->
|
|
<xi:include href="http://jmri.org/xml/decoders/nmra/cv50_DCbrake.xml"/>
|
|
<!-- CV=51 -->
|
|
<xi:include href="http://jmri.org/xml/decoders/nmra/cv51_DirectionalHeadlights.xml"/>
|
|
<variable item="Output A dimming control" CV="51" mask="XXXXXXVX" comment="Controls how headlight dims (CV 52 controls amount)">
|
|
<enumVal>
|
|
<enumChoice choice="Always dim">
|
|
<choice>Always dim</choice>
|
|
</enumChoice>
|
|
<enumChoice choice="F1 or F4 controls dimming">
|
|
<choice>F1 or F4 controls dimming</choice>
|
|
</enumChoice>
|
|
</enumVal>
|
|
<label>Output A dimming control</label>
|
|
<comment>Controls how headlight dims (CV 52 controls amount)</comment>
|
|
</variable>
|
|
<variable item="Output A dimming" CV="51" mask="XXXXXVXX" comment="Controls how front headlights dim">
|
|
<enumVal>
|
|
<enumChoice choice="Front headlight never dim">
|
|
<choice>Front headlight never dim</choice>
|
|
</enumChoice>
|
|
<enumChoice choice="Front headlight can dim">
|
|
<choice>Front headlight can dim</choice>
|
|
</enumChoice>
|
|
</enumVal>
|
|
<label>Output A dimming</label>
|
|
<comment>Controls how front headlights dim</comment>
|
|
</variable>
|
|
<variable item="Output A is Gyrolight" CV="51" mask="XXXVXXXX">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>Output A is Gyrolight</label>
|
|
</variable>
|
|
<variable item="Output A is Mars light" CV="51" mask="XXVXXXXX">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>Output A is Mars light</label>
|
|
</variable>
|
|
<variable item="Output A is single strobe" CV="51" mask="XVXXXXXX">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>Output A is single strobe</label>
|
|
</variable>
|
|
<variable item="Output A is double strobe" CV="51" mask="VXXXXXXX">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>Output A is double strobe</label>
|
|
</variable>
|
|
<variable item="Output A dim intensity" CV="52" default="64" comment="Controls how much headlights dim (0-dark to 255-max bright)">
|
|
<decVal min="0" max="255"/>
|
|
<label>Output A dim intensity</label>
|
|
<comment>Controls how much headlights dim (0-dark to 255-max bright)</comment>
|
|
</variable>
|
|
<variable item="Output B dimming control" CV="57" mask="XXXXXXVX">
|
|
<enumVal>
|
|
<enumChoice choice="Always dim">
|
|
<choice>Always dim</choice>
|
|
</enumChoice>
|
|
<enumChoice choice="F1 or F4 controls dimming">
|
|
<choice>F1 or F4 controls dimming</choice>
|
|
</enumChoice>
|
|
</enumVal>
|
|
<label>Output B dimming control</label>
|
|
</variable>
|
|
<variable item="Output B dimming" CV="57" mask="XXXXXVXX" comment="Controls how back headlights dims">
|
|
<enumVal>
|
|
<enumChoice choice="Back headlight never dim">
|
|
<choice>Back headlight never dim</choice>
|
|
</enumChoice>
|
|
<enumChoice choice="Back headlight can dim">
|
|
<choice>Back headlight can dim</choice>
|
|
</enumChoice>
|
|
</enumVal>
|
|
<label>Output B dimming</label>
|
|
<comment>Controls how back headlights dims</comment>
|
|
</variable>
|
|
<variable item="Output B is Gyrolight" CV="57" mask="XXXVXXXX">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>Output B is Gyrolight</label>
|
|
</variable>
|
|
<variable item="Output B is Mars light" CV="57" mask="XXVXXXXX">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>Output B is Mars light</label>
|
|
</variable>
|
|
<variable item="Output B is single strobe" CV="57" mask="XVXXXXXX">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>Output B is single strobe</label>
|
|
</variable>
|
|
<variable item="Output B is double strobe" CV="57" mask="VXXXXXXX">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>Output B is double strobe</label>
|
|
</variable>
|
|
<variable item="Output B dim intensity" CV="58" default="64" comment="Controls how much headlights dim (0-dark to 255-max bright)">
|
|
<decVal min="0" max="255"/>
|
|
<label>Output B dim intensity</label>
|
|
<comment>Controls how much headlights dim (0-dark to 255-max bright)</comment>
|
|
</variable>
|
|
<variable item="Output C, D blink rate" CV="56" default="15" minOut="3">
|
|
<decVal min="0" max="255"/>
|
|
<label>Output C, D blink rate</label>
|
|
</variable>
|
|
<variable item="Output C blinks" CV="53" minOut="3" mask="XXXXXXXV">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>Output C blinks</label>
|
|
</variable>
|
|
<variable item="Output D blinks" CV="53" minOut="4" mask="XXXXXXVX">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>Output D blinks</label>
|
|
</variable>
|
|
<variable item="Output C, D are ditch lights" CV="53" minOut="3" mask="XXXXXVXX">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>Output C, D are ditch lights</label>
|
|
</variable>
|
|
<variable CV="54" mask="XXXXXXXV" minOut="3" minFn="1" item="F1 controls output 3" default="1">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F1 controls output C</label>
|
|
</variable>
|
|
<variable CV="54" mask="XXXXXXVX" minOut="3" minFn="2" item="F2 controls output 3">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F2 controls output C</label>
|
|
</variable>
|
|
<variable CV="54" mask="XXXXXVXX" minOut="3" minFn="3" item="F3 controls output 3">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F3 controls output C</label>
|
|
</variable>
|
|
<variable CV="54" mask="XXXXVXXX" minOut="3" minFn="4" item="F4 controls output 3">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F4 controls output C</label>
|
|
</variable>
|
|
<variable CV="54" mask="XXXVXXXX" minOut="3" minFn="5" item="F5 controls output 3">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F5 controls output C</label>
|
|
</variable>
|
|
<variable CV="54" mask="XXVXXXXX" minOut="3" minFn="6" item="F6 controls output 3">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F6 controls output C</label>
|
|
</variable>
|
|
<variable CV="54" mask="XVXXXXXX" minOut="3" minFn="7" item="F7 controls output 3">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F7 controls output C</label>
|
|
</variable>
|
|
<variable CV="54" mask="VXXXXXXX" minOut="3" minFn="8" item="F8 controls output 3">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F8 controls output C</label>
|
|
</variable>
|
|
<variable CV="55" mask="XXXXXXXV" minOut="4" minFn="1" item="F1 controls output 4">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F1 controls output D</label>
|
|
</variable>
|
|
<variable CV="55" mask="XXXXXXVX" minOut="4" minFn="2" item="F2 controls output 4" default="1">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F2 controls output D</label>
|
|
</variable>
|
|
<variable CV="55" mask="XXXXXVXX" minOut="4" minFn="3" item="F3 controls output 4">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F3 controls output D</label>
|
|
</variable>
|
|
<variable CV="55" mask="XXXXVXXX" minOut="4" minFn="4" item="F4 controls output 4">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F4 controls output D</label>
|
|
</variable>
|
|
<variable CV="55" mask="XXXVXXXX" minOut="4" minFn="5" item="F5 controls output 4">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F5 controls output D</label>
|
|
</variable>
|
|
<variable CV="55" mask="XXVXXXXX" minOut="4" minFn="6" item="F6 controls output 4">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F6 controls output D</label>
|
|
</variable>
|
|
<variable CV="55" mask="XVXXXXXX" minOut="4" minFn="7" item="F7 controls output 4">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F7 controls output D</label>
|
|
</variable>
|
|
<variable CV="55" mask="VXXXXXXX" minOut="4" minFn="8" item="F8 controls output 4">
|
|
<xi:include href="http://jmri.org/xml/decoders/parts/enum-NoYes.xml"/>
|
|
<label>F8 controls output D</label>
|
|
</variable>
|
|
<!-- User private ID CV's are not documented by Bachamann, but appear to work -->
|
|
<xi:include href="http://jmri.org/xml/decoders/nmra/userId.xml"/>
|
|
<xi:include href="http://jmri.org/xml/decoders/nmra/cv67speedTableBasic.xml"/>
|
|
<!-- 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>Bachmann</name>
|
|
<column>
|
|
<display item="Motor Drive Selection"/>
|
|
<display item="Directional Headlights"/>
|
|
<label>
|
|
<text> </text>
|
|
</label>
|
|
</column>
|
|
<column>
|
|
<display item="Output A dimming"/>
|
|
<display item="Output A dimming control"/>
|
|
<display item="Output A is Gyrolight" format="checkbox"/>
|
|
<display item="Output A is Mars light" format="checkbox"/>
|
|
<display item="Output A is single strobe" format="checkbox"/>
|
|
<display item="Output A is double strobe" format="checkbox"/>
|
|
<display item="Output A dim intensity"/>
|
|
<label>
|
|
<text> </text>
|
|
</label>
|
|
<display item="Output B dimming"/>
|
|
<display item="Output B dimming control"/>
|
|
<display item="Output B is Gyrolight" format="checkbox"/>
|
|
<display item="Output B is Mars light" format="checkbox"/>
|
|
<display item="Output B is single strobe" format="checkbox"/>
|
|
<display item="Output B is double strobe" format="checkbox"/>
|
|
<display item="Output B dim intensity"/>
|
|
<label>
|
|
<text> </text>
|
|
</label>
|
|
<display item="Output C, D blink rate"/>
|
|
<display item="Output C blinks"/>
|
|
<display item="Output D blinks"/>
|
|
<display item="Output C, D are ditch lights"/>
|
|
</column>
|
|
</pane>
|
|
</decoder-config>
|