neilm Member N Join Date Feb 2019 Location Jackman Posts 28 Feb 14, 2019 #1 Hello Everyone, I had a doubt in reading expressions written in structured text in format c := a and b. Where a is a DINT and b is a constant value. What is the logical interpretation of it? Thank you.
Hello Everyone, I had a doubt in reading expressions written in structured text in format c := a and b. Where a is a DINT and b is a constant value. What is the logical interpretation of it? Thank you.
JeremyM Lifetime Supporting Member Join Date May 2014 Location Dallas, Texas Posts 1,233 Feb 14, 2019 #2 This is a bitwise ‘and’ operation. Each bit of ‘a’ is ANDed with the corresponding bits of ‘b’ and the result is stored in ‘c’.
This is a bitwise ‘and’ operation. Each bit of ‘a’ is ANDed with the corresponding bits of ‘b’ and the result is stored in ‘c’.
neilm Member OP N Join Date Feb 2019 Location Jackman Posts 28 Feb 14, 2019 #3 Got it! Thank you Jeremy.