MotoHawk Flexible Encoder Absolute Source State

Recovers the current encoder state of the named Absolute Encoder Source.

Block ID

Get Absolute Source State

Library

motohawk_flexenc_lib

Description

Block Parameters

Parameter Field Values Comments/Description
Reference Source Name Alpha-numeric text, quote enclosed The name of the Absolute Source that this block is to recover the state from. 

Overview

Recovers the current encoder state of the named Absolute Encoder Source. An absolute source state differs from a Companion Source state in that it considers the halfcycle state, which a companion encoder source won't.

This block behaves the same as the encoder state except the state references a specific Absolute Encoder Source rather than the active absolute encoder source of the encoder system.

Available States

The m-script motohawk_flexible_encoder_state_enum enumerates the state value.

Not Created (value=0)

The referenced encoder source has failed to create. Creation could fail because the referenced encoder pattern is not considered valid. The encoder pattern status block can be used to verify whether a pattern is valid.

Zero Speed (value=1)

The encoder source has observed the Zero Speed timeout since a tooth was last observed on this source.

Rotating (value=2)

Rotation has been detected on the source, but that source has not yet achieved synchronization.

Partial Synchronization (value=3)

The source is rotating and has synchronized (a synchronizing key has been recognized by the source), but a source is used to detect the halfcycle state and that source has not yet synchronized or is in error.

Full Synchronization (value=4)

The source is rotating and has fully synchronized. A referenced halfcycle companion (if one exists) has also synchronized and is not considered to be in error.