User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
mycnc:rotary_encoder_connection_and_setup [2019/11/07 11:41]
mycnc:rotary_encoder_connection_and_setup [2019/12/30 11:47] (current)
Line 64: Line 64:
 On-panel rotary encoders are mostly used to control the following values on-the-fly: On-panel rotary encoders are mostly used to control the following values on-the-fly:
-  * Overspeed [%]+  * Overspeed [%] (5-150% safe range)
   * THC Arc reference voltage [V] (actually cutting height)   * THC Arc reference voltage [V] (actually cutting height)
   * Spindle speed   * Spindle speed
Line 121: Line 121:
 \\ \\
-=====Closed-loop setup===== 
-//Read more about the topic in the [[mycnc:​closed_loop_configuration|MyCNC closed loop configuration manual]].// 
-The following window is available upon navigating to Settings > Config > Hardware > Encoders: 
-The following settings are available: ​ 
-  * Encoder resolution for each particular encoder number. ​ 
-  * The current encoder value is displayed on this screen. This is the fastest way to check if the encoder is connected/​working - for example, turning an MPG wheel handle should immediately change the current encoder value in this field for the selected encoder. ​ 
-  * Z-position 
-  * Mul coefficients (multiplication value), and 
-  * /(2^Div). These Mul and Div coefficients are used due to the fact that the controller cannot handle floating number data in calculations,​ therefore it is necessary to first multiply and then divide a number by certain coefficients. They are used to bring the value of the encoder in line with the pulses/unit value specified in the Axes/Motors tab. Larger numbers allow to reduce the error. For example, if the ratio between the Axes/Motors value and the encoder pulse/unit value is 3.5, then the multiplication value (Mul) can be set to 7, while Div can be set to 1 (//2^1 =2, 7/2 = 3.5//​).  ​ 
-  * Encoder 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,​ as shown in the screenshot). 
-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): 
mycnc/rotary_encoder_connection_and_setup.1573144897.txt.gz ยท Last modified: 2019/11/07 11:41 by ivan