Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

Encoder keep resetting if Z phase enabled

$
0
0

Dear all,

 

I'm using NI USB-6341 USB DAQ with Labview 2015. I'm  OMRON open collect incremental encoder with 720pulse/rev.

I have all Phase A, Phase B, and Phase Z connected to 5V pull-up resistor. I checked the connection with ordinary counter. All the signal a counted correctly. All the ticks matched 720 pulse/rev. The index phase z triggers once every full rotation.

 

By using NI-DAQmx assistant, i'm able to get angular positions. All X1, X2, X4 decoding if working find without phase Z. But whenever Phase Z is enable for reset back to 0, the measured position keeps resetting at every count of Phase A and B (even slightest rotation, way before a complete rotation, or even close to indexing location).  like 0.25 -> 0, 0.25 -> 0, 0.25 -> 0. It keeps returning to 0 before measuring anything.

 

I wonder if phase Z enable captures the rising edge of a signal as high or the state of the input as high. Because if it's the latter, since it's pulled up, it's gonna be always high, and hence the immediate reset. If that's the case, is there any work around it? Removing the pull-up resistor doesn't return any values. What should I do to make crank position to work with open collector phase Z with NI-DAQmx assistant?

 

Regards

RJ


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>