Documentation Home Page RT-XSG Toolbox Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Block

Mask

Description

This block implements the standard way to package 2 Quad Decoder application blocks into the standardized I/O interface.

Parameters

This block has no parameters.

Inputs

QEInThis port is the input to the Quad Decoder. It is a concatenation of A, B and Z signals.
NPPR1This port is the number of A/B pulses per turn (i.e. between two consecutive Z pulses if the rotation direction does not change).
AleadsB1This port is used to specify the encoding pattern (according to the encoder specification, the A pulse may come before or after the B pulse, for a positive speed).

Outputs

Angle[X] where X=[1,2]These ports are the angle modulating the quadrature-encoded rotating device. The angle value is provided as a turn ratio, in the range [0,1[ and in the UFix16_16 format.
Timestamp[X] where X=[1,2]These ports are the timestamp of the last update of the angle, detected as an event on A, B or Z. It is expressed as an integer number of clock ticks. These ports can be used along with the angle outputs to compute precisely the speed of an encoder.
DataReady[X] where X=[1,2]These ports indicates the validity of other ports' values. It is active high and activated only if the angle has been updated since the last synchronization pulse (ModelSync).
EventCount[X] where X=[1,2]

These ports give the number of increments or decrements of the angle since the last synchronization pulse (ModelSync), in the signed integer format Fix21_0.

Characteristics and Limitations

This block has no special characteristics or limitations.

  • No labels