I am trying to read specific bit of OPC server item which is VT_I2.
If I create Advanced OPC Analog 16bit Integer point I get good quality decimal value.
What I need is individual value of specific bit, 1st, 2nd...7th.
How do I achieve this?
I tried creating Advanced OPC Digital point Boolean type and tried reading specific array element.
Any suggestion is appreciated.
Solved! Go to Solution.
If you create an Advanced OPC Digital Point and set the "Data Type" to "16-bit Integer", the "Number of Bits" to 1 and the "Bit Offset" to the required bit (0 to 15) then it will extract the required individual bit from the integer value.
As simple as that! I´m pretty new to GeoScada, I´m still learning.
I was mislead by these ARRAY type of data types.
this tag is coming from an OPC server whether or not you can address its individual bits and what that syntax is depends entirely on the server. Ideally, the server would expose a boolean Node for each bit.
Some servers let you append syntax such as .0 or .1 to the end of the NodeId (OPC Item Path in Ignition) to address bit 0 or bit 1. I don’t think the server in the S7-1500 supports this but it’s verifying.
Discuss challenges and get support in energy and automation with 30,000+ experts and peers.
Over 10,000+ support articles are available to help you find answers to your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!