mycnc:linear_encoder_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
mycnc:linear_encoder_setup [2019/12/05 13:07] – ivan | mycnc:linear_encoder_setup [2020/11/23 12:31] – ivan | ||
---|---|---|---|
Line 28: | Line 28: | ||
{{: | {{: | ||
+ | |||
+ | ====Step-by-step setup example==== | ||
+ | |||
+ | THIS SECTION OF THE MANUAL IS A WORK-IN-PROGRESS. Please contact the myCNC Support Team should any questions arise. | ||
+ | |||
+ | Going through the setup process for linear encoder feedback: | ||
+ | |||
+ | 1. | ||
+ | At this point, the PID number, motor output and encoder channel number should be respectively equal. | ||
+ | I.e - | ||
+ | PID0, Motor0, Encoder0 | ||
+ | PID1, Motor1, Encoder1 | ||
+ | PID2, Motor2, Encoder2 | ||
+ | |||
+ | It is possible to customize arbitrarily, | ||
+ | |||
+ | [IMAGE 1] | ||
+ | |||
+ | 2. | ||
+ | Registers for displaying the magnitude of the PID mismatch error - 9016, 9017, 9018, 9019 ... and so on | ||
+ | for PID 0, 1, 2, 3 ... respectively | ||
+ | |||
+ | 3. | ||
+ | Baseline Profile for Ruler, Feedback and PID - X1366M4E | ||
+ | |||
+ | For PID tuning, it is recommended to output these registers to display the error value on the error indicator | ||
+ | and on the corresponding " | ||
+ | |||
+ | Now the XML settings in the profile are different, the version will be updated. | ||
+ | For those who have a profile already in work and a complete update is difficult, you need to make changes manually | ||
+ | |||
+ | 4. | ||
+ | Error magnitude display, coordinates-4.xml file | ||
+ | |||
+ | <code XML>< | ||
+ | <gitem where=" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | <gitem where=" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | <gitem where=" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | <gitem where=" | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | In the current version, registers 9232, 9233, ... were used at this location. | ||
+ | |||
+ | five. | ||
+ | Display of the following error graphs | ||
+ | X-bottab-left-mill.xml file | ||
+ | The type myscope is responsible for displaying oscillograms | ||
+ | Find and correct for displaying 3 graphs on one oscillogram | ||
+ | with variables 9016, 9017, 9018 - for errors PID0, PID1, PID2 | ||
+ | |||
+ | <code XML>< | ||
+ | | ||
+ | | ||
+ | |||
+ | [IMAGE 2 HERE] | ||
+ | |||
+ | 6. | ||
+ | In order for registers 9016, ... to show an error, the PID must be enabled. | ||
+ | |||
+ | This requires 2 steps - | ||
+ | 1) Check enable in the PID settings pullse-dir closed-loop | ||
+ | 2) Start the Servo-ON procedure by writing " | ||
+ | |||
+ | < | ||
+ | |||
+ | For automatic inclusion, this line can be added to __HANDLER_INIT | ||
+ | For manual start, there is a Servo-ON button, which, in turn, starts the __HANDLER_SERVO_ON procedure | ||
+ | And in it, in turn, there is a necessary entry in the register (after some other actions, for example, to include | ||
+ | Servo-ON signals on drives, etc.) | ||
+ | |||
+ | [IMAGE 3 HERE] | ||
+ | |||
+ | [IMAGE 4 HERE] | ||
+ | |||
+ | By means of a multiplier and a divider, the " | ||
+ | The controller will then operate with this program value. | ||
+ | That is, in the " | ||
+ | |||
+ | (If the PIDs are turned off and not used, but you just need to have a position indication, then other registers are used for display, the multiplier and divider fields are not used, and then the real resolution of the ruler is indicated in the " | ||
+ | |||
+ | Now also write the correct " |
mycnc/linear_encoder_setup.txt · Last modified: 2021/03/11 15:06 by ivan