User Tools

Site Tools


mycnc:rotary_encoder_connection_and_setup

Differences

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 [2018/09/07 21:59]
skirillov
mycnc:rotary_encoder_connection_and_setup [2019/08/01 15:17] (current)
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 
-  * Simple rotary encoder based on 2 switches. This type of encoders usually ​generate ​10-40 pulses per revolution (PPR) and used as fancy style "​endless multi-turn potentiometer"​.+  * Simple rotary encoder based on 2 switches. This type of encoders usually ​generates around ​10-40 pulses per revolution (PPR) and used as fancy style "​endless multi-turn potentiometer"​.
  
 {{hardware:​et7:​encoder-en11.jpg?​300}} {{hardware:​et7:​encoder-en11.jpg?​300}}
-  * Industrial style MPG with 100ppr and line driver 5V output{{hardware:​et7:​encoder-en11-.jpg}} 
  
-Both types can be connected to myCNC controller and used in operator control panel.+  * Industrial style MPG with 100ppr and line driver 5V output 
 + 
 +Both types can be connected to myCNC controller and used the operator control panel.
  
 ==== EN11 rotary encoder connection ==== ==== EN11 rotary encoder connection ====
  
-Encoders can be connected to galvanic isolated binary inputs. 2 Inputs are used to connect each encoder.+Encoders can be connected to the galvanic isolated binary inputs. 2 Inputs are used to connect each encoder.
  
 {{hardware:​et7:​et7-rotary-encoder-001.jpg}} {{hardware:​et7:​et7-rotary-encoder-001.jpg}}
  
- +Encoder should be set up in the **Config ​> Inputs/Outputs/Sensors > MPG through binary inputs** configuration dialog.
-Encoder should be setup in **Cfg->​Inputs/​Sensors->MPG through binary inputs** configuration dialog.+
  
 myCNC controllers support up to 4 software encoders defined through binary inputs. ​ myCNC controllers support up to 4 software encoders defined through binary inputs. ​
Line 23: Line 23:
 === ET7 controller slow encoders setup === === ET7 controller slow encoders setup ===
  
-However ​myCNC-ET7 control board has 2 encoders (Encoder #0, #1) defined permanently. These encoders are supposed to be installed on ET7-Key keyboard panel and connected to the 20-pin X4 connector on ET7 control board. It's possible to use external encoders without ET7-key panel board and connect ​it directly to X4 pins 11,12,13,14 and 19. See the table below+The myCNC-ET7 control board has 2 encoders (Encoder #0, #1) reserved ​defined permanently. These encoders are supposed to be installed on the ET7-KEY keyboard panel and connected to the 20-pin X4 connector on ET7 control board. It's possible to use external encoders without ​the ET7-key panel board and to connect ​those directly to X4 pins 11,12,13,14 and 19. See the table below for more information on the ET7 X4 pinout table
- +
-ET7 connector ​X4 pinout table+
  
 ^^ X4 connector to External 25-keys keyboard ^ ^^ X4 connector to External 25-keys keyboard ^
Line 37: Line 35:
 {{hardware:​et7:​et7-ext-keyboard.jpg}} {{hardware:​et7:​et7-ext-keyboard.jpg}}
  
-These pins are actually Binary inputs #16, #17, #18, #19 which are permanently configured as Encoder#0 and Encoder#1 in myCNC-ET7 controller firmware. This is the reason Slow Encoders #0, #1 configuration for ET7 controller in myCNC software is ignored and can be skipped. +These pins are actually Binary inputs #16, #17, #18, #19 which are permanently configured as Encoder#0 and Encoder#1 in myCNC-ET7 controller firmware. This is the reason Slow Encoders #0, #1 configuration for ET7 controller in myCNC software is ignored and can be skipped. ​**However, Encoder #2, Encoder#3 can be attached to any or binary inputs and configured accordingly ​when using the ET7 board.**
-However, Encoder #2, Encoder#3 can be attached to any or binary inputs and configured accordingly. +
- +
-For all other control boards ET6, ET10, ET15 all slow encoders configuration #0 - #3 is active and can be used by users. +
  
 +For all other control boards (ET6, ET10 and ET15), the slow encoders configurations #0-3 are active and can be used by users.
  
 Rotary encoders setup example is shown on a picture below Rotary encoders setup example is shown on a picture below
  
-{{hardware:et7:mycnc-configuration--74.png}} +{{:mycnc:items-004-mpg.png}} 
- +There are 2 encoders attached on Inputs #0,1,2,and set up in the dialog. 
- +  * Encoder #2 is attached to inputs #and #and used as a Pendant MPG/​Wheel. 
-There are 2 encoders attached on Inputs #8,9,10,11 and set up in the dialog. +  * Encoder #3 is attached to inputs #and #and used as a general purpose encoder.
-  * Encoder #2 is attached to inputs #and #and used as a Pendant MPG/​Wheel. +
-  * Encoder #3 is attached to inputs #10 and #11 and used as a general purpose encoder. +
- +
-For ET7 controller Encoders #0, #1 connected to X4 connector pins 11-14 (or through ET7-KEY keyboard) are configured despite on disabled settings. +
- +
- +
  
 +For ET7 controller, Encoders #0 and #1 are connected to the X4 connector pins 11-14 (or through the ET7-KEY keyboard) and are configured despite being disabled in the myCNC settings window. ​
  
 ==== Encoder connection setup through configuration dialog. ==== ==== Encoder connection setup through configuration dialog. ====
 +{{:​mycnc:​calibrate-axes-003.png}}
  
 A general purpose encoder can be connected to one of the system variables for convenient control. ​ A general purpose encoder can be connected to one of the system variables for convenient control. ​
  
-There is configuration dialog to set up connection between slow encoder values and CNC parameters.+There is configuration dialog ​(described further in the [[mycnc:​mycnc_configuration_dialogs|MyCNC Configuration Dialogs]] manual) which can be used to set up connection between slow encoder values and CNC parameters.
  
-  * Source - a source of connection - can be Encoder, ADC, input/​output pin, PWM, a global variable or other parameters+  * Source - a source of connection - can be an Encoder, ADC, input/​output pin, PWM, a global variable or other parameters
   * Source/​Parameter - address of the source. It can be Encoder number, input pin number, global variable address etc   * Source/​Parameter - address of the source. It can be Encoder number, input pin number, global variable address etc
   * Destination - destination connection   * Destination - destination connection
   * Destination/​Parameter - destination address   * Destination/​Parameter - destination address
   * K - destination ratio. For example, Spindle speed will be increased 100RPM every encoder clicks if "​K=100"​.   * K - destination ratio. For example, Spindle speed will be increased 100RPM every encoder clicks if "​K=100"​.
 +  * K0 - destination shift ratio. Usually left to be at 0 (field left to be blank).
  
- +On-panel rotary encoders ​are mostly used to control ​the following values ​on-the-fly:
-{{hardware:​et7:​mycnc-profiles--42.png}} +
- +
-On-panel rotary encoders mostly used to control on-the-fly+
  
   * Overspeed [%]   * Overspeed [%]
Line 80: Line 68:
   * Spindle speed   * Spindle speed
  
-A rotary encoder should be connected to XML configuration Item "​motion-overspeed"​ to control Overspeed [%] +A rotary encoder should be connected to the XML configuration Item "​motion-overspeed"​ to control Overspeed [%] 
  
 Global variable register 7011 is used to change on-the-fly Cutting height (THC Arc reference voltage) Global variable register 7011 is used to change on-the-fly Cutting height (THC Arc reference voltage)
  
-To change Spindle speed XML Item "​spindle-default-speed"​ can be used.+To change Spindle speed, the XML Item "​spindle-default-speed"​ can be used.
  
-{{hardware:et7:mycnc-profiles--43.png}} +{{:mycnc:calibrate-axes-003.png}}
- +
- +
-^ Name ^ Destination type ^ Parameter ^ +
-| Overspeed [%] | Item | motion-overspeed | +
-| THC Arc voltage reference | Item | cnc-gvariable-7011 | +
-| Spindle Speed | Item | spindle-default-speed |+
  
 +A further selection of commonly used Items can be found in the [[mycnc:​item_list|Common Item List]] manual.
  
  
 ==== Obsolete method to establish connection through "​cnc-variables.xml"​ configuration file. ==== ==== Obsolete method to establish connection through "​cnc-variables.xml"​ configuration file. ====
  
-<​code>​(this method was used before the dialog described above was issued)</​code>​+<​code>​This method was used before the dialog described above was released. 
 +Only used on the old deprecated software versions</​code>​
  
-The connection assignment can be written directly in cnc-variables.xml configuration file . For example+The connection assignment can be written directly in the cnc-variables.xml configuration file. For example:
  
 <code xml> <code xml>
Line 122: Line 106:
   * **dest="​item:​cnc-gvariable-7012"​** - Global variable for THC Arc Voltage Adjustment value is a destination for the connection   * **dest="​item:​cnc-gvariable-7012"​** - Global variable for THC Arc Voltage Adjustment value is a destination for the connection
  
-Encoder #2 connected to THC Arc voltage adjustment. Adjustment Arc value will be changed "​+1"​ or "​-1"​ every encoder click. ​+Encoder #2 is connected to the THC Arc voltage adjustment. Adjustment Arc value will be changed ​to "​+1"​ or "​-1" ​on every encoder click. ​
  
  
 ==== Encoder connection troubleshooting ====  ==== Encoder connection troubleshooting ==== 
  
-  - Goto Diagnose widget ​and check binary input pins the encoder attached to are blinking while you turn the encoder. ​There are input pins #18#19 on a picture {{hardware:​et7:​mycnc-profiles--44.png}} +  - Go to the Diagnostics page in myCNC software ​and check which binary input pins the encoder ​is attached to. To do so, monitor the binary inputs section of the Diagnostics page as you turn the encoder ​- the relevant input pins should blink as the encoder dial is movedThe input pins #18 and #19 are used in this example, as can be seen in the following ​picture{{hardware:​et7:​mycnc-profiles--44.png}} 
-  - Check "Slow Encoder" ​value are changed while you turn the encoder. +  - Check that the "Slow Encoder" ​values ​are changed while you turn the encoder. 
-  - Check Destination item value is changed while you turn the encoder.+  - Check that the Destination item value has changed while you turn the encoder
 +  - After the checkup has been complete, reload the program to refresh the settings to the newest configuration
  
 {{hardware:​et7:​mycnc-encoders-test.png}} {{hardware:​et7:​mycnc-encoders-test.png}}
- 
- 
- 
  
 {{youtube>​V9wLOCGS6YM?​800x480}} {{youtube>​V9wLOCGS6YM?​800x480}}
  
  
mycnc/rotary_encoder_connection_and_setup.1536371980.txt.gz · Last modified: 2018/09/07 21:59 by skirillov