Sign in to follow this  
Followers 0
noorloai

how to logic AND array of bool in studio5000

2 posts in this topic

Hi Guys,

Is there a way to logic AND array element in ladder logic studio5000 ? I have Array[BOOL 64], and I want to make sure all the elements are 1 to activate an LED.  I was thinking to use FAL instruction however this instruction does not accept BOOL. is there any suggestion ?

Thanks,

 

Share this post


Link to post
Share on other sites

You may have to move the BOOL array into 2 DINTs and then compare the DINTs to -1 (a DINT will be -1 if all of its bits are 1). The COP, MOV, MVM, etc. instructions work on integer type tags, not BOOL arrays.

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
Sign in to follow this  
Followers 0