Configuration

The Configuration element is used to define the persistent configuration which will run on the simulator.

Example

Example XML for Persistent Configuration
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<Configuration UserVersion="1">
  <EtherCatObjects>
    <EtherCatObject Name="Kp" Index="0x2412" DataType="Float32" Value="1.0"/>
    
    <EtherCatObject Name="Generic filter" Index="0x2418">
      <EtherCatObject Name="B0" SubIndex="1" DataType="Float32" Value="1.0"/>
      <EtherCatObject Name="B1" SubIndex="2" DataType="Float32" Value="0.0"/>
      <EtherCatObject Name="B2" SubIndex="3" DataType="Float32" Value="0.0"/>
      <EtherCatObject Name="A1" SubIndex="4" DataType="Float32" Value="0.0"/>
      <EtherCatObject Name="A2" SubIndex="5" DataType="Float32" Value="0.0"/>
    </EtherCatObject>

    <EtherCatObject Name="Parameter1" Index="0x2422" DataType="Float32" Value="NaN"/>
    <EtherCatObject Name="Parameter2" Index="0x2423" DataType="Float32" Value="Inf"/>
    <EtherCatObject Name="Parameter3" Index="0x2424" DataType="Float32" Value="-Inf"/>
  </EtherCatObjects>
</Configuration>

XML schema

Element Configuration
1
2
3
4
5
6
7
8
<xs:element name="Configuration">
  <xs:complexType>
    <xs:all>
      <xs:element ref="EtherCatObjects" minOccurs="0" maxOccurs="1"/>
    </xs:all>
    <xs:attribute name="UserVersion" type="xs:integer" use="required" />
  </xs:complexType>
</xs:element>

Attribute

Description

UserVersion

An integer representing the version number.