Steven58

Input inhibit

3 posts in this topic

Hi all,

I have been asked by the company I work for to make some modifications to a Omron CP1L, using CX Programmer.

Part of the program, which I am working on has 12 inputs which turn on at random times, usually only 3 at any one time, and 12 outputs which corespondent to the 12 inputs, simple!

I have been asked to only let 3 outputs come on at any onetime( the first 3 that are requested) no matter how many inputs come on. If then 1 output goes off, this then will let another 1 output come on.

Any ideas how I can program this inhibit type system?

Thanks

Share this post


Link to post
Share on other sites

Maybe the BCNT instruction could help you?

Share this post


Link to post
Share on other sites

Hi would this solution work for you?

code0.thumb.JPG.4c82ec3b3d87c173f125b9f3

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