Encoder Fault Status

This MotoHawk™ block returns the code for the last encoder fault that has occurred.

Block ID

motohawk_encoder_fault

Library

MotoHawk_lib/Encoder Blocks

Description

The encoder fault status indications are described below.
 

Signals

Fault Status (enum, uint8)

"motohawk_encoder_fault_enum" is a script that returns a cell array with the enumeration. It can be used in the Enumeration field of a probe to decode the return value of this block.

Fault Status Description
0: No Fault Has Occurred Indicates no fault occurred.
1: Crank Synchronization Fault Indicates that the teeth seen do not match the tooth pattern as setup in the Encoder Definition block
2: Reverse Rotation Fault When the encoder pattern is rotating in reverse relative to the selected tooth pattern.
3: No Crank Edges Fault Indicates that no edges are seen on the Crank pins, but edges are seen on the CAM pins (implying rotation). Only available when a CAM sensor is used.
4: No CAM Edges Fault Indicates that CAM edges are not being detected, but Crank teeth are being observed (implying rotation).
5: CAM Synchronization Fault The CAM has observed a problem that is not related to a loss of cam. Perhaps the incorrect pattern is in use.
6: Encoder Sync error on Slave Only available in a dual redundant encoder system. This error is issued when a synchronization fault is detected on the slave encoder channel.
7: Reverse rotation on Slave. Only available in a dual redundant encoder system. This error is issued when the primary encoder source of the slave channel is indicating reverse rotation.
8: Primary Slave Encoder Loss. Only available in a dual redundant encoder system. This error is issued when no encoder edges are observed on the slave encoder.
9: Encoder Mirror Error. A running encoder mirror has experienced an error. Common cause - Host CPU updated EncoderMirror too late. (Only possible on some hardware)

Block Parameters

This MotoHawk™ block has no user-definable parameters.