by cncdrive » Sat Jun 30, 2018 11:30 am
A positioning drive with closed loop needs a position feedback signal which is usually an encoder, so yes, you will need to wire the signal to the closed loop drive.
For the UCCNC if you want the software to read the encoder then you will have to wire the encoder also to inputs of the motion controller.
Then you have to configure those input pins as Encoder A and B channels.
And for the UCCNC you need a motor and drive with incremental encoder. Absolute encoders and resolvers will not work, because they using complex communication protocols and different drives using different ones.
Once you have the encoder connected and the inputs configured in the software then the software will count the encoder pulses and will display the position in a DRO.
You can do things with the value of the DRO, for example verify the position with comparing it with position DRO.
To do things like that you will have to write macro or macroloop or plugin.
If the encoder wires are long and are running in noisy environment (e.g. together with high voltage cables) then it is the best to use differential line driver to run the signal into a twisted wire pair and on the receiver end terminate it with terminating resistor and/or snubber and convert the signal back to single ended signal with a differential line receiver.
A good example for such devices is the 26LS31 and 26LS32 line driver and receiver pair.