Get Flexible Encoder System Info

Recovers the specified information from the named encoder system.

Block ID

Get System Info

Library

motohawk_flexenc_lib

Description

Overview

Recovers the specified information from the named encoder system. A drop down menu is used to specify what information is to be read. Multiple instances of the block can be used within a model, each of which can select the same or different data.

Is Zero Speed

Allows the application to query whether the encoder system considers the system to be at zero speed. If the pseudo encoder is not active then this status will return TRUE if all the other sources in the system except the pseudo encoder are flagging zero speed and FALSE otherwise. If the pseudo encoder is active then only the pseudo encoder is examined, returning TRUE if its commanded speed is zero and FALSE otherwise.

Pseudo Encoder State

Returns the state of the pseudo encoder (enumerated by motohawk_flexible_encoder_pseudoencoder_state_enum).

The pseudo encoder state has three broad categories, these being Unavailable, Inactive and Active.

The pseudo encoder is Unavailable if the encoder system failed to create or if the hardware is not able to support a pseudo encoder. An Inactive pseudo encoder exists, but the encoder system has not selected the pseudo encoder to be the active absolute source. An Active status is returned when the encoder system has selected the pseudo encoder as the active source.

There are three physical sub-states; Physical Undetectable, Physical Zero Speed and Physical Rotating.

The physical sub-state refers to the state of the physical sources specified by the system, that is, all the sources except the pseudo encoder. A state of Undetectable means the state of some (or all) of the other sources in the system can't be inferred while the pseudo encoder is active. Generally this is reported when pseudo encoder operation is mutually exclusive to the monitoring of the real encoder sources and thus reports that while the pseudo encoder is active the state of the physical system is undetectable. The other two states, Physical Zero Speed and Physical Rotating, infer the state of the physical system. These could be used, for example, to monitor whether because of pseudo encoder operation, or while the pseudo encoder is active, the physical encoder system has detected rotation, which wouldn't normally be acceptable.

The enumeration values are as follows:
Not Created (0)
Not Supported (1)
Inactive (2)
Active and Physical Undetectable (3)
Active and Physical Zero Speed (4)
Active and Physical Rotating (5)

Block Parameters

Parameter Field Values Comments/Description
Reference System Name Alpha-numeric text, quote enclosed The name of the encoder system that is to be queried.
Data Dropdown Data selected from:
Is Zero Speed
Pseudo Encoder State