<< Click to Display Table of Contents >> Encoder input |
This function block reads values from Robotino's encoder input.
The encoder input interprets signals from a digital motor encoder (A,B-channel gray-code).
Rising and falling edges are considered. This leads to a quad effective resolution.
Example: The motor encoder of Robotino' s drive motors has a resolution of 500 ticks.
Effectively 2000 ticks are counted.
Inputs |
Type |
Unit |
Default |
Description |
Reset position |
bool |
0 |
If true the actual position is reset to 0. |
|
Outputs |
||||
Actual velocity |
int |
ticks/s |
The measured velocity. |
|
Actual position |
int |
ticks |
The sum of all ticks measured since the start of robotino or since "Reset position" = true. |