Suppose you have several booleans data on PLC. Which is better in terms of driver performance, considering that the PLC is a Siemens one and using the Ignitions Siemens driver’s:
1- Make one integer opc tag and make several expressions tags using getBit function for reading the bits and writing the bits using functions to make a mask to the integer tag.
2- Make severals boolean tags using bit addressing for reading and writing
The most preffered way of doing this thing from a desing point of view is 2, but my doubt is whether the driver programming contemplates obtaining a whole word if they try to read various bits of it, instead of getting each bit separately and if not, It should do this as described in 1, if you want to favor performance.
Thanks in advance.