Flexible Encoder Output Definition

Allows the developer to specify an instance of the Flexible Encoder Output behavior. A Flexible Encoder Output can be thought of as an encoder signal generator that is locked to the active encoder source with a specified phase relationship.

Block ID

Encoder Output

Library

motohawk_flexenc_lib

Description

Allows the developer to specify an instance of the Flexible Encoder Output behavior. A Flexible Encoder Output can be thought of as an encoder signal generator that is locked to the active encoder source with a specified phase relationship.

The Flexible Encoder Output is able to generate an encoder pattern that is specified via a Pattern Definition reference. The behavior's output stage will be set to the Critical Edge Action each time the active encoder source observes a <LogicalDeg> angle specified by the pattern. The complementary state is applied <WidthDeg> after a <LogicalDeg> angle has been observed. Runtime patterns have an implicit <WidthDeg> value based upon the number of teeth being generated.

Block Parameters

Defn Tab

Parameter Field Values Comments/Description
Name Single quote enclosed alpha-numeric text The name must be c-legal and have a unique encoder source name. This name is used by access blocks to affect this instance of the behavior.
Resource Dropdown Select the resource that the behavior is to be instantiated. Only those resources that are supported by a target will be available for selection.

Config Tab

Parameter Field Values Comments/Description
Phase Treatment Dropdown Defines how the output is to behave when it encounters a change of phase and the output is active.

Restart: The output restarts using the new phase timing.
Critical Edge Action Dropdown Defines what the output will do when the critical edge of a pattern is to be generated.
Pattern Data Source Dropdown Selects whether the pattern to be generated by the output is specified explicitly or by referencing another encoder source.
Pattern Definition Name Single quote enclosed alpha-numeric text Visible when the Pattern Data Source is set to Explicit. This is the name of the Pattern Definition instance that this output is to generate.
Repeat Data Source Dropdown Selects whether the number of pattern repeats to be generated by the output is specified explicitly or by referencing another encoder source.
Repeats Per Cycle Dropdown Visible when the Repeat Data Source is set to Explicit. Defines whether the pattern is to be generated once or twice per engine cycle.
Reference Encoder Source Name Single quote enclosed alpha-numeric text Visible when either the Repeat Data Source or the Pattern Data Source is set to By Reference. Enter the name of the absolute or companion encoder source that shall be queried to determine the value of the appropriate attribute.

Calibration Tab

Parameter Field Values Comments/Description
Allow Critical Edge to be Calibration Checkbox Defines whether the Critical Edge Action is to support calibration. When not checked the action won't be exposed to the calibration.
Critical Edge Read Access Dropdown Access level of the read when Critical Edge Action supports calibration.
Critical Edge Write Access Dropdown Access level of the write when Critical Edge Action supports calibration.
Pattern Instrumentation Group Single quote enclosed alpha-numeric text Instrumentation Group string to be associated with the Critical Edge Action calibration when it is supported.
Allow Pattern Calibration Checkbox Visible when the Pattern Data Source is Explicit, this attribute specifies whether the Pattern Name supports calibration. When not checked the pattern won't be exposed to the calibration.
Pattern Read Access Dropdown Access level of the read when Pattern Name supports calibration.
Pattern Write Access Dropdown Access level of the write when Pattern Definition Name supports calibration.
Pattern Instrumentation Group Single quote enclosed alpha-numeric text Instrumentation Group string to be associated with the Pattern Definition Name calibration when it is supported.
Allow Repeat Calibration Checkbox Visible when the Repeat Data Source is Explicit, this attribute specifies whether the Repeats Per Cycle supports calibration. When not checked the attribute won't be exposed to the calibration.
Repeat Read Access Dropdown Access level of the read when Repeats Per Cycle supports calibration.
Repeat Write Access Dropdown Access level of the write when Repeats Per Cycle supports calibration.
Repeat Instrumentation Group Single quote enclosed alpha-numeric text Instrumentation Group string to be associated with the Repeats Per Cycle calibration when it is supported.