papaya

Encoder reset and events on encoder position

3 posts in this topic

Hello,

 I have a 1734-VHSC24 fast entry card.

 An ifm rup 500 encoder.

 I want to reset my encoder counter on a rising edge of a sensor.

 The problem is that on a rising edge it doesn't reset my counter, I feel like I need to maintain my pulse for at least 50ms.

 

 I also want to trigger events on an encoder position, what is the best way?

 I am using a comparator, but I don't think this is the best way to go.

codeur.PNG

Share this post


Link to post
Share on other sites

Your Counter Reset Tag is only true for one scan of your PLC Program.  WIth distributed I/O like this it is quite likely that the scan your reset bit is true for is not the scan you pull data to send it to the module on.

I would suggest let the leading edge of sensor turn on a latch bit and grab the value of the counter at that time.  When you see the counter value come back less than the value you grabbed unlatch the reset bit.

You do have discrete outputs on the VHSC which can fire at specific counter values.  These might be a better way to go if you don't have too many settings triggering things.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now