Latch

The Latch element provides an interface to configure and access a latch in a controller, usually a position latch that is triggered by a configurable input.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<Controller Name="Arcas 5EG-0">
  <NamedMutation FromDefault="UserSignalDouble0" To="Data"/>
  <NamedMutation FromDefault="UserSignalBool0" To="Trigger"/>

  <Latch Name="Latch1" TriggerMode="OneShot" TriggerType="RisingEdge">
    <Event Name="Triggered" ContextEnabled="True"/>
    <Input Name="DataSource" Source="Data"/>
    <Input Name="TriggerSource" Source="Trigger"/>
  </Latch>
</Controller>
  • Latch can only be configured when in NotConfigured state.

XML schema

Complex type LatchType
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<xs:complexType name="LatchType">
  <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="Signal" type="SignalType"/>
    <xs:element name="Input" type="InputType"/>
    <xs:element name="StateMachine" type="StateMachineType"/>
    <xs:element name="Event" type="EventType"/>
    <xs:element name="Variant" type="LatchVariantType"/>
    <xs:element name="NamedMutation" type="NamedMutationType"/>
  </xs:choice>
  <xs:attribute name="Name" type="xs:string" use="required"/>
  <xs:attribute name="TriggerMode" type="xs:string"/>
  <xs:attribute name="TriggerType" type="xs:string"/>
</xs:complexType>

Attribute

Description

Name

Used to specify the Latch, which is required to be used.

TriggerMode

Alignment methods. Accepted modes are: None, OneShot, Continuous.

TriggerType

Limits the homing procedure time (s). Accepted types are: None, RisingEdge, FallingEdge, AnyEdge.

Complex type LatchVariantType
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<xs:complexType name="LatchVariantType">
  <xs:complexContent>
    <xs:extension base="BaseVariantType">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Signal" type="SignalType"/>
        <xs:element name="Input" type="InputType"/>
        <xs:element name="StateMachine" type="StateMachineType"/>
        <xs:element name="Event" type="EventType"/>
        <xs:element name="Variant" type="LatchVariantType"/>
        <xs:element name="NamedMutation" type="NamedMutationType"/>
      </xs:choice>
    </xs:extension>
  </xs:complexContent>
</xs:complexType>