Quadrature Encoder Get

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
Supported Targets: Olimexino, E407, P405

General information about Quadrature Encoder Get

This block reads the counter of the quadrature encoder module.

Block

QuadratureEncoderGet.png

Mask

QuadratureEncoderGetMask.png

Inputs (inports)

reset input (optional) if the value goes from 0 to 1 the counter output will be reset.

Outport

The output is a 32-bit signed counter. The counter starts at zero and counts up or down depending on the direction of the sensor shaft.[int32]

Block parameters

Parameter Description
Quad encoder module Select the output pin where the PWM signal should be generated.
Configuration Select the pin electrical configuration.
Show counter reset input When this checkbox is ticked an input appears.
Sample time Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model.