Read more about the topic in the MyCNC closed loop configuration manual.
Linear encoders are typically used on higher-end machines to allow for a more precise monitoring of the difference between the real and the expected machine position (incremental change from the absolute position). This article focuses on the linear encoder setup and on the methods to make the information obtained from the encoders useful within the myCNC software.
The following window is available upon navigating to Settings > Config > Hardware > Encoders:
The following settings are available:
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/negatives depending on where the encoder handle is spun)|
|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):