mycnc:rotary_encoder_connection_and_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
mycnc:rotary_encoder_connection_and_setup [2019/11/05 15:13] – ivan | mycnc:rotary_encoder_connection_and_setup [2019/11/07 11:41] – ivan | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Rotary encoder connection and setup ===== | + | ====== Rotary encoder connection and setup ====== |
There are 2 types of rotary encoders widely used in pendants and operator panels: | There are 2 types of rotary encoders widely used in pendants and operator panels: | ||
Line 120: | Line 120: | ||
{{youtube> | {{youtube> | ||
- | =====Encoder | + | \\ |
+ | =====Closed-loop | ||
+ | |||
+ | //Read more about the topic in the [[mycnc: | ||
The following window is available upon navigating to Settings > Config > Hardware > Encoders: | The following window is available upon navigating to Settings > Config > Hardware > Encoders: | ||
Line 135: | Line 138: | ||
* Position | * Position | ||
* Linear encoder dimension. This should be set to the proper encoder dimension to convert the impulses from a linear encoder to mm (the most common values for this setting are 1 and 5 micrometers, | * Linear encoder dimension. This should be set to the proper encoder dimension to convert the impulses from a linear encoder to mm (the most common values for this setting are 1 and 5 micrometers, | ||
+ | |||
+ | The following global variables deal with encoder values: | ||
+ | |||
+ | | 9000 | (+16) Registers represent Encoder values. Writing to this registers does not affect anything. Selected channel Current Encoder value will be returned when reading these registers. \\ Reading these registers from the controller Hardware PLC will return actual Encoder value. \\ Encoder values in the software are updated about every 128ms. This delay should be counted when using Encoder values from the Software PLC. \\ 9000 - Encoder #0 value \\ 9001 - Encoder #1 value \\ 9002 - Encoder #2 value \\ 9003 - Encoder #3 value \\ 9004 - Encoder #4 value \\ 9005 - Encoder #5 value \\ 9006 - Encoder #6 value \\ 9007 - Encoder #7 value | | ||
+ | | 9200 | +16. Reserved to display the encoder position on an infinite scale (no value turnover on every full encoder turn, instead the value will keep climbing indefinitely into the positives/ | ||
+ | | 9216 | +16. Reserved to display the encoder position on an infinite scale WITH the current encoder dimension (to indicate the current encoder position) | | ||
+ | |||
+ | These global variables allow to display encoder values on the main screen of myCNC profiles that are geared towards encoder setups (such as 1366M4E and 1366PE): | ||
+ | |||
+ | {{: | ||
mycnc/rotary_encoder_connection_and_setup.txt · Last modified: 2022/03/22 13:49 by ivan