# ENCODER.MODE

Sets or gets the mode the encoder signals are interpreted if the Encoder Direction pin is defined.

## Actions

SET/GET Property

## Arguments

Name | Type | Range | Meaning
--- | --- | --- | ---
value | enum | [0-5] | 0: Encoder A signal counts up. You can configure the encoder to count up on rising edge only or on rising and falling edge with ENCODER.DOUBLE-RATE. 1: Encoder A signal counts and Encoder B sets when the count of Encoder A goes up (Encoder B is unset) or down (Encoder B is set). If you enable ENCODER.DOUBLE-RATE, Encoder A counts on rising and falling edge. 2: Encoder A signal counts up, Encoder B signal counts down. If you enable ENCODER.DOUBLE-RATE, both Encoders count on rising and falling edge. 3: Encoder A and Encoder B form quadrature (SIN/COS) signal, 1 count per cycle. 4: Encoder A and Encoder B form quadrature (SIN/COS) signal, 2 counts per cycle. 5: Encoder A and Encoder B form quadrature (SIN/COS) signal, 4 counts per cycle.

## Platforms

DM280, DM370, DM470

## Notes

Version: 5.5.0