# 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-2] | 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.

## Platforms

DM380, DM580

## Notes

Version: 6.4.0