03-28-2017 04:00 AM
Hello,
I have done a Programme that is measuring the Angular Position of the incremental Encoder, but the Programme only keeps decreasing as counter when i rotate the shaft of the encoder, so actuall I need to find a way to make sure my programme is working right or not ? is there anyway to test the Encoder if it is working correctly ?
Thanks in advance,
Ghaith
Solved! Go to Solution.
03-28-2017 04:19 AM
Hi Ghaith,
I need to find a way to make sure my programme is working right or not ?
Well, at first I would test the hardware…
is there anyway to test the Encoder if it is working correctly ?
Use a scope (or even a DMM) to test each encoder output.
Does your encoder also provide a Z output?
Did you do the wiring correctly?
Did you choose the correct PFI inputs?
03-28-2017 04:40 AM
Hello GerdW,
Thanks for your answer, actually my Encoder is like this one in the Picture in attachment.
but i have no idea how to test this kind with DMM.
Yes, it provides a Z-Index output.
Yes, the wiring is conntect to IO Box and it's correct.
Yes, I checked the PIN configuration of my Device.
Thanks in advance,
Ghaith
03-28-2017 04:49 AM
Hi Ghaith,
i have no idea how to test this kind with DMM.
Supply power to your encoder. Then connect the DMM to one of its outputs. Then turn the encoder slowly and watch the encoder output. The AB outputs might still be too fast for a DMM (use a scope then), but the Z output will only pulse once per rotation…
03-28-2017 08:27 AM
03-28-2017 08:33 AM
I am using the IO box which was specified in the PIN configurations that PFI0 is connected with channel A and PFI9 is connected with channel B.
03-28-2017 08:35 AM - edited 03-28-2017 08:38 AM
03-29-2017 01:50 AM
Hello,
Well the IO box is just a tool from the company I am working in, but when I checked the PIN configuration of this device in the PIN display in NImax, it shows another PINs with channel A and channel B and that's because the device isn't compatible with the NImax.
Thanks for the tips.