ECAD Export XML Datei

Beim Importieren ist die ECAD Export XML Datei im Import Dialog erforderlich.

Sie enthält die erforderlichen Informationen über die Struktur der I/O´s und das Mapping der SPS Variablen. Beckhoff verwendet ein XML Schema zur Spezifizierung der Struktur der XML Datei. Diese Schemadatei nennt sich ECAD2TwinCAT.xsd und die entsprechende TcBaseTypes.xsd Datei befindet sich im installierten TcEcad Ordner.

Hier ein einfaches Beispiel einer ECAD Export XML Datei

<?xml version="1.0" encoding="UTF-8"?>
<Project>
  <Name><![CDATA[SOMENAME XML]]></Name>
  <Author><![CDATA[UNKOWN]]></Author>
  <Version>1.0</Version>
  <Description><![CDATA[SOMEDESCRIPTION]]></Description>
  <ChangeDate>2003-10-14T13:18:44</ChangeDate>
  <CPUs>
    <CPU>
      <Name><![CDATA[CPU1]]></Name>
      <Interfaces>
        <Interface>
          <Name><![CDATA[FB1]]></Name>
          <Comment><![CDATA[Interfacekommentar]]></Comment>
          <Type><![CDATA[FC2002]]></Type>
          <ChannelNo>1</ChannelNo>
          <Boxes>
            <Box>
              <Name><![CDATA[LBF1]]></Name>
              <Comment><![CDATA[BK2000]]></Comment>
              <Type><![CDATA[BK2000]]></Type>
              <BoxNo>1</BoxNo>
              <Variables>
                <Variable>
                  <Name><![CDATA[byAF1Status]]></Name>
                  <IsInput>1</IsInput>
                  <Comment><![CDATA[LWL-BUS-Koppler Klemmstelle 1 Festseite]]></Comment>
                  <IoName><![CDATA[State]]></IoName>
                  <IoDataType>BYTE</IoDataType>
                </Variable>
              </Variables>
              <Terminals>
                <Terminal>
                  <Name><![CDATA[Q01]]></Name>
                  <Comment><![CDATA[Terminalkommentar]]></Comment>
                  <Type><![CDATA[KL2032]]></Type>
                  <Channels>
                    <Channel>
                      <Name><![CDATA[A01]]></Name>
                      <Comment><![CDATA[]]></Comment>
                      <Variables>
                        <Variable>
                          <Name><![CDATA[bQHF1FormatbYSchnellMinus]]></Name>
                          <IsInput>0</IsInput>
                          <Comment><![CDATA[Formatbearbeitung Y-Achse schnell minus]]></Comment>
                          <IoDataType>Bool</IoDataType>
                        </Variable>
                      </Variables>
                    </Channel>
                    <Channel>
                      <Name><![CDATA[A02]]></Name>
                      <Comment><![CDATA[]]></Comment>
                      <Variables>
                        <Variable>
                          <Name><![CDATA[bQHF1FormatbYLangsMinus]]></Name>
                          <IsInput>0</IsInput>
                          <Comment><![CDATA[Formatbearbeitung Y-Achse langsam minus]]></Comment>
                          <IoDataType>Bool</IoDataType>
                        </Variable>
                      </Variables>
                    </Channel>
                  </Channels>
                </Terminal>
              </Terminals>
            </Box>
          </Boxes>
        </Interface>
        <Interface>
          <Name><![CDATA[FB1]]></Name>
          <Comment><![CDATA[Interfacekommentar]]></Comment>
          <Type><![CDATA[FC2002]]></Type>
          <ChannelNo>2</ChannelNo>
        </Interface>
      </Interfaces>
    </CPU>
  </CPUs>
</Project>