Snoppy
Member
Hello, I am a new member to this site but have been able to find the answer to many questions here in the past.
I was hoping someone could help me understand how the expression "B9[(N12_0 AND -16)/16].[N12_0 AND 15]” works (this is a tag for a BOOL XIC). I know what it does but don't understand how it does it.Basically the XIC is true when "N12_0" is equal to the position of a bit that is also true in the array "B9". B9 is configured as 9 DINTs and somehow bits 16-31 are excluded from each DINT. For example; If N12_0 = 68 then the XIC is true only when the 68th bit in the array ("B9[4].4") is true.
Thanks.
I was hoping someone could help me understand how the expression "B9[(N12_0 AND -16)/16].[N12_0 AND 15]” works (this is a tag for a BOOL XIC). I know what it does but don't understand how it does it.Basically the XIC is true when "N12_0" is equal to the position of a bit that is also true in the array "B9". B9 is configured as 9 DINTs and somehow bits 16-31 are excluded from each DINT. For example; If N12_0 = 68 then the XIC is true only when the 68th bit in the array ("B9[4].4") is true.
Thanks.