rid96

High speed counter

2 posts in this topic

Hello!

      I wrote a ladder program where I use PRV function for reading current position from rotary encoder. My issue is I received data on PRV only when Oringin_Search is on, I want to read value without Origin_Search active. I tried with High speed counter but  I don't receive  values. I used port's 0,1, 3 because I have three servomotors with encoders.

I have CJ2M CPU and MD211 Module.

1.PNG

Share this post


Link to post
Share on other sites

There are only two high speed counters available for each MD211 module.

Right hand MD211 uses counters 0 and 1, left hand MD211 uses counters 2 and 3.

To read the present value for each counter the Port Specifier of the PRV(881) instruction is #0010, #0011, #0012 and #0013 and the Control Data is #0000.

You must configure the type of counter in the PLC Setup, then download the setup to the PLC.

THEN MOST IMPORTANTLY POWER CYCLE THE PLC FOR THE NEW SETTINGS TO TAKE EFFECT.

Attached is link for MD211 module manual. See Section 7 for details on high-speed counters and 2-3-3 for PLC Setup

https://assets.omron.eu/downloads/manual/en/v3/w486_cj2m-md21_pulse_i_o_module_users_manual_en.pdf

Edited by BITS N BYTES

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