Jinx

Minimizing OR function

11 posts in this topic

Hi, I have a program where the output stays on through a shift register sequence of m coils from m800 to m816 but they have programmed each m coil as an OR function holding the output on.

I am in the middle of adding new OR functions to hold output on in seperate machine sequence but im having an error 'OVER THE EDIT RANGE'

How do i create an input for example [=>m801 =<m8016] (stay on from m801 to m816)

I am using Q series PLC

Share this post


Link to post
Share on other sites

hello,

something like this?

if it doesn't help would you share your SW or important parts of it?

prg.PNG

Share this post


Link to post
Share on other sites

hi Scot,

Like the above but im using simple ladder format.

The NE function block im assuming is not equals.. so in ladder format i would write [<> k4m801]

Share this post


Link to post
Share on other sites

The complete instruction would be: <> K4M801 H0

Share this post


Link to post
Share on other sites

what does the H0 mean?

Share this post


Link to post
Share on other sites

its zero, you have to compare value from K4M801 against something

Edited by sczot

Share this post


Link to post
Share on other sites

thats a great help. thank you all. i have managed to write the the input in that configuration. i will test it on my machine today.

 

 

Share this post


Link to post
Share on other sites

The above will work, but just to give you more options.. I have been a fan of the NOT-NOT style rungs for large groups of OR.

 

|/A|---|/B|---|/C|---|/D|---|/E|---|/F|---|/G|---|/H|---/----(OUT)

Share this post


Link to post
Share on other sites

Since people are offering multiple solutions to the same problem, I might as well also throw in the following:

If you have a lot of bits (or in some cases words) in series that needs comparing with a "binary" output state you can also look into a FOR-NEXT loop. Just compare one device in each loop and trigger a flag that states if one (or more) have been triggered as either true or false.

In some cases this is more efficient.

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