CapinWinky
Member
I'm not a ladder or AB guy and the people asking me are using both, so this has me stumped.
Long story short, they have several arrays of BOOL[32] and in most case want to simply see if all of them are false, but in at least one case, they want to see if the first 12 are true and don't care about the rest.
Unless I want to create lots of 32 high rungs I need to find a clean way to do this. COP doesn't allow BOOL or BOOL[] input or I'd just use that; NEQ requires the the datatypes to match and might not accept arrays. I've also found that AOIs and subroutines don't allow arrays as inputs.
Maybe there is a way to change from
to
?
Long story short, they have several arrays of BOOL[32] and in most case want to simply see if all of them are false, but in at least one case, they want to see if the first 12 are true and don't care about the rest.
Unless I want to create lots of 32 high rungs I need to find a clean way to do this. COP doesn't allow BOOL or BOOL[] input or I'd just use that; NEQ requires the the datatypes to match and might not accept arrays. I've also found that AOIs and subroutines don't allow arrays as inputs.
Maybe there is a way to change from
Code:
MyBOOL[MyIndex]
Code:
MyDINT.MyIndex
?