Hello,

I would like to create a Simulink block from my generated xml file. To do
this, I found two problems previously requested.

|| http://lists.etherlab.org/pipermail/etherlab-users/2009/000543.html
|| http://lists.etherlab.org/pipermail/etherlab-users/2010/000694.html

The generated file with the EtherCAT master is attached.
By putting the xml into the EtherCATInfo command in MATLAB the answer will
be "null".

|| >> ei = EtherCATInfo('ebox_EtherCATInfo.xml')
|| ei =
||    EtherCATInfo with properties:
||    node: [1x1 org.apache.xerces.dom.DeferredElementImpl]
|| >> ei.node
|| ans =
||    [EtherCATInfo: null]

Further, I am using Matlab 2013b with EtherLab 2.1.0.
I hope someone can help me to create my e/box Simulink block.

Thank you in advance,
*Ralph Oosterveld*
<?xml version="1.0" ?>
<EtherCATInfo>
  <!-- Slave 0 -->
  <Vendor>
    <Id>1280</Id>
  </Vendor>
  <Descriptions>
    <Devices>
      <Device>
        <Type ProductCode="#x01107001" RevisionNo="#x00000004">E/BOX</Type>
        <Name><![CDATA[E/BOX SMF Ketels]]></Name>
        <Sm Enable="1" StartAddress="#x1000" ControlByte="#x26" DefaultSize="128" />
        <Sm Enable="1" StartAddress="#x1080" ControlByte="#x22" DefaultSize="128" />
        <Sm Enable="1" StartAddress="#x1100" ControlByte="#x24" DefaultSize="0" />
        <Sm Enable="1" StartAddress="#x1180" ControlByte="#x20" DefaultSize="0" />
        <RxPdo Sm="2" Fixed="1" Mandatory="1">
          <Index>#x1600</Index>
          <Name>Receive PDO mapping</Name>
          <Entry>
            <Index>#x7000</Index>
            <SubIndex>1</SubIndex>
            <BitLen>8</BitLen>
            <Name>Control</Name>
            <DataType>UINT8</DataType>
          </Entry>
          <Entry>
            <Index>#x7000</Index>
            <SubIndex>2</SubIndex>
            <BitLen>8</BitLen>
            <Name>Dout</Name>
            <DataType>UINT8</DataType>
          </Entry>
          <Entry>
            <Index>#x7002</Index>
            <SubIndex>1</SubIndex>
            <BitLen>16</BitLen>
            <Name>Aout 1</Name>
            <DataType>UINT16</DataType>
          </Entry>
          <Entry>
            <Index>#x7002</Index>
            <SubIndex>2</SubIndex>
            <BitLen>16</BitLen>
            <Name>Aout 2</Name>
            <DataType>UINT16</DataType>
          </Entry>
          <Entry>
            <Index>#x7003</Index>
            <SubIndex>1</SubIndex>
            <BitLen>16</BitLen>
            <Name>PWM 1</Name>
            <DataType>UINT16</DataType>
          </Entry>
          <Entry>
            <Index>#x7003</Index>
            <SubIndex>2</SubIndex>
            <BitLen>16</BitLen>
            <Name>PWM 2</Name>
            <DataType>UINT16</DataType>
          </Entry>
        </RxPdo>
        <TxPdo Sm="3" Fixed="1" Mandatory="1">
          <Index>#x1a00</Index>
          <Name>Transmit PDO mapping</Name>
          <Entry>
            <Index>#x6000</Index>
            <SubIndex>1</SubIndex>
            <BitLen>8</BitLen>
            <Name>Status</Name>
            <DataType>UINT8</DataType>
          </Entry>
          <Entry>
            <Index>#x6000</Index>
            <SubIndex>2</SubIndex>
            <BitLen>8</BitLen>
            <Name>Counter</Name>
            <DataType>UINT8</DataType>
          </Entry>
          <Entry>
            <Index>#x6000</Index>
            <SubIndex>3</SubIndex>
            <BitLen>8</BitLen>
            <Name>Din</Name>
            <DataType>UINT8</DataType>
          </Entry>
          <Entry>
            <Index>#x6001</Index>
            <SubIndex>1</SubIndex>
            <BitLen>32</BitLen>
            <Name>Ain 1</Name>
            <DataType>UINT32</DataType>
          </Entry>
          <Entry>
            <Index>#x6001</Index>
            <SubIndex>2</SubIndex>
            <BitLen>32</BitLen>
            <Name>Ain 2</Name>
            <DataType>UINT32</DataType>
          </Entry>
          <Entry>
            <Index>#x6001</Index>
            <SubIndex>3</SubIndex>
            <BitLen>32</BitLen>
            <Name>Timestamp</Name>
            <DataType>UINT32</DataType>
          </Entry>
          <Entry>
            <Index>#x6002</Index>
            <SubIndex>1</SubIndex>
            <BitLen>32</BitLen>
            <Name>Encoder 1</Name>
            <DataType>UINT32</DataType>
          </Entry>
          <Entry>
            <Index>#x6002</Index>
            <SubIndex>2</SubIndex>
            <BitLen>32</BitLen>
            <Name>Encoder 2</Name>
            <DataType>UINT32</DataType>
          </Entry>
        </TxPdo>
      </Device>
    </Devices>
  </Descriptions>
</EtherCATInfo>
_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to