Ik heb hier geen Lopi4 liggen, dus ik kan het zo niet testen. Maar in POM mode zou je iig de hoge cv's moeten kunnen programmeren.
<?xml version="1.0" encoding="utf-16"?><xsl:stylesheet version="1.0" encoding="UTF-8" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- remove empty lines --> <xsl:strip-space elements="*" /> <!-- identity copy --> <xsl:template match="@*|node()" name="identity"> <xsl:copy> <xsl:apply-templates select="@*|node()" /> </xsl:copy> </xsl:template> <!-- translation part for the LoPi4 template --> <xsl:template match="@PI[parent::ivariable]"> <xsl:attribute name="PI"> <xsl:value-of select="floor(number(substring-before(../@CVname,'.')) div 100)" /> </xsl:attribute> <xsl:attribute name="SI"> <xsl:value-of select="floor(number(substring-before(../@CVname,'.')) mod 100)" /> </xsl:attribute> </xsl:template> <xsl:template match="@CV[parent::ivariable]"> <xsl:attribute name="CV"> <xsl:value-of select="99" /> </xsl:attribute> </xsl:template> <xsl:template match="@name[parent::family]"> <xsl:attribute name="name"> <xsl:value-of select="'ESU LokPilot V4.0 NanoX'" /> </xsl:attribute> </xsl:template> <xsl:template match="@mfg[parent::family]"> <xsl:attribute name="mfg"> <xsl:value-of select="'ESU NanoX'" /> </xsl:attribute> </xsl:template> <!-- translation part for the actual decoder file, e.g. Riva1300.xml --> <xsl:template match="@family[parent::decoder]"> <xsl:attribute name="family"> <xsl:value-of select="'ESU LokPilot V4.0 NanoX'" /> </xsl:attribute> </xsl:template> <xsl:template match="indexedCVvalue/@iCv"> <xsl:attribute name="piVal"> <xsl:value-of select="floor(number(substring-before(../@name,'.')) div 100)" /> </xsl:attribute> <xsl:attribute name="siVal"> <xsl:value-of select="floor(number(substring-before(../@name,'.')) mod 100)" /> </xsl:attribute> <xsl:attribute name="iCv"> <xsl:value-of select="99" /> </xsl:attribute> </xsl:template></xsl:stylesheet>
<constant label="PICV" default="96" comment="CV used for Primary Index"/>
<constant label="SICV" default="97" comment="CV used for Secondary Index"/> <!-- Output Effects --> <ivariable label="Set HighCV bank" CVname="032" CV="32" PI="-1" SI="-1" default="0" item="Directional Headlights" mask="XXXXXXVV"> <ienumVal> <ienumChoice choice="Bank 0"> <choice>Bank 0</choice> </ienumChoice> <ienumChoice choice="Bank 1"> <choice>Bank 1</choice> </ienumChoice> <ienumChoice choice="Bank 2"> <choice>Bank 2</choice> </ienumChoice> <ienumChoice choice="Bank 3"> <choice>Bank 3</choice> </ienumChoice> </ienumVal> </ivariable>
Programmeer bijvoorbeeld waarde 112 in cv259 door cv96->2, cv97->59 en cv99->112.Uiteraard werkt dit ook handmatig via de MultiMaus.
Ik heb gisteren een geprogrammeerde 16F648A naar Erik gestuurd, en hij is zo vriendelijk om proefkonijn te spelen. Eens kijken of we daarmee zonder omwegen hoge cv's via de MM en computer kunnen lezen en programmeren.