Template

The Template element can be used to configure a template.

The Name attribute of the Template element is used to define a new name or select an existing template interface. The TemplateType attribute of the Template element is used to define the type of the template.

See also

Template

Explanation of the general concept of a sensor and its purpose in the motion software.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<Controller Name="Arcas 5EG-0">
  <Template Name="PositionControlTemplate" TemplateType="ProcessingBlock">
    <Updatable Name="Updatable">
      <FilePath>C:\your\path\to\PositionControlSimple-windows-x86_64.bin</FilePath>
    </Updatable>
  </Template>

  <Template Name="PositionControlTemplate2" TemplateType="ProcessingBlock">
    <Updatable Name="Updatable">
      <Content>AAAAAAoDHvcmBQAAAA==</Content>
    </Updatable>
  </Template>
</Controller>

Note

A Template is instantiated (and scoped) within a controller. If a Template with the provided name already exists in the controller where it is defined, then either:

  • if it has the exact same attributes (specifying attributes when Template already exists is optional), then updatable content can be changed.

  • otherwise, initialization fails.

XML schema

Complex type TemplateType
1
2
3
4
5
6
7
8
<xs:complexType name="TemplateType">
  <xs:choice minOccurs="0" maxOccurs="1">
    <xs:element name="Updatable" type="UpdatableType" minOccurs="0" maxOccurs="1"/>
    <xs:element name="Variant" type="TemplateVariantType"/>
  </xs:choice>
  <xs:attribute name="Name" type="xs:string" use="required"/>
  <xs:attribute name="TemplateType" type="xs:string"/>
</xs:complexType>

Attribute

Description

Name

Used to define a name for a Template.

TemplateType

Defines the type of a temple. Accepted types are: ProcessingBlock, AxisControl and AxisControlGroup.

Complex type TemplateVariantType
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<xs:complexType name="TemplateVariantType">
  <xs:complexContent>
    <xs:extension base="BaseVariantType">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Updatable" type="UpdatableType" minOccurs="0" maxOccurs="1"/>
        <xs:element name="Variant" type="TemplateVariantType"/>
      </xs:choice>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>