Menu

OC 2.0: xap.xml format change

Help
2016-02-18
2016-02-19
  • Romain Naour

    Romain Naour - 2016-02-18

    Hello,

    In a previous thread I reported a format change in xap.xml generated file, see:
    https://sourceforge.net/p/openconf/discussion/help/thread/7b1d8c0c/#d8f7

    By looking at xap.xml files generated with each OC version, you can see that the PDO objects naming has changed:

    With OC 1.4.1:

    <ApplicationProcess>
      <ProcessImage type="output" size="46">
        <Channel Name="CN1.M00.X20PS9400a.NetworkStatus" dataType="USINT" dataSize="8" PIOffset="0x0000"/>
        <Channel Name="CN1.M00.X20PS9400a.StatusInput01" dataType="BITSTRING" dataSize="1" PIOffset="0x0001" BitOffset="0x00"/>
        <Channel Name="CN1.M00.X20PS9400a.Bit_Unused_01" dataType="BITSTRING" dataSize="1" PIOffset="0x0001" BitOffset="0x01"/>
        <Channel Name="CN1.M00.X20PS9400a.StatusInput02" dataType="BITSTRING" dataSize="1" PIOffset="0x0001" BitOffset="0x02"/>
    

    For example : CN1.M00.X20PS9400a.StatusInput01
    <CNx>.<Mxx>.<ObjectName>.<subIndexName>

    With OC 2.0.0:

    <ApplicationProcess>
      <ProcessImage type="output" size="37">
        <Channel Name="CN01_DOM01_VAR00_Index2100_Sub1E_NetworkStatus" dataType="Unsigned8" dataSize="8" PIOffset="0x0000"/>
        <Channel Name="CN01_DOM01_VAR01_Index2100_Sub1E_StatusInput01" dataType="BITSTRING" dataSize="1" PIOffset="0x0001" BitOffset="0x00"/>
        <Channel Name="CN01_DOM01_VAR02_Index2100_Sub1E_Bit_Unused_01" dataType="BITSTRING" dataSize="1" PIOffset="0x0001" BitOffset="0x01"/>
        <Channel Name="CN01_DOM01_VAR03_Index2100_Sub1E_StatusInput02" dataType="BITSTRING" dataSize="1" PIOffset="0x0001" BitOffset="0x02"/>
        <Channel Name="CN01_DOM01_VAR04_Index2100_Sub1E_Bit_Unused_02" dataType="BITSTRING" dataSize="5" PIOffset="0x0001" BitOffset="0x03"/>
        <Channel Name="CN01_DOM02_VAR00_Index2101_Sub1E_NetworkStatus" dataType="Unsigned8" dataSize="8" PIOffset="0x0002"/>
    

    For example: CN01_DOM01_VAR01_Index2100_Sub1E_StatusInput01
    <CNxx><DOMxx><VARXX><StructName><varDeclarationName>

    We import the xap.xml in a third parties tool to name each PDO objets with an intelligible name (i.e the name of the device placed at each index on the bus).
    With this new naming convention we lose this information.

    Can we keep at least <ObjectName> and <subIndexName> ?

    Best regards,
    Romain

     
  • Romain Naour

    Romain Naour - 2016-02-18

    Here is an exemple of our xdc file.

     
  • Christoph Ruecker

    Hi Romain,

    I did not forget your request in your last post. We had internal discussion about and I will change the format to suite your demands.

    The old format is a bit mixing apples with oranges because it is:
    <CNx>.<Mxx>.<ObjectName>.<varDeclarationName>

    So we thought about harmonising it. What do you think about this. This would most of the information I can get from the XDD about a dataObject.
    <CNxx><ObjectName><SubObjectName><varDeclarationName>

    Best regards,
    Christoph

     
    • Romain Naour

      Romain Naour - 2016-02-19

      Hi Christoph,

      Since I had no feedback on this topic, I took the opportunity to create a new thread to discuss about it :)

      Yes, the new format is fine.

      Thanks for your quick reply (as usual), It's very appreciated here.

      Best regards,
      Romain

       
  • Christoph Ruecker

    Hi Romain,

    I would propose the format you will find in the xap.xml
    <CNxx><DOMXX><ObjectName><SubObjectName><varDeclarationName>

    <DOMXX> & <varDeclarationName> only exists if a domain object is mapped.

    Best regards,
    Christoph

     

    Last edit: Christoph Ruecker 2016-02-19
    • Romain Naour

      Romain Naour - 2016-02-19

      Hi Christoph,

      I successfully imported this xap.xml in our third parties tool without any XML parser modification. That's great :)

      Best regards,
      Romain

       

Log in to post a comment.