EcoStruxure Geo SCADA Expert Forum
Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.
Posted: 2020-04-21 03:25 AM . Last Modified: 4 weeks ago
Hi,
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.
No success.
Any suggestion is appreciated.
Posted: 2020-04-21 03:33 AM
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.
Posted: 2021-07-27 06:27 PM
ClearSCADA Advanced OPC driver with OFS tested and confirmed a Digital Point configured with ItemID.bit offset also works.
Posted: 2020-04-21 03:33 AM
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.
Posted: 2020-04-21 05:55 AM
As simple as that! I´m pretty new to GeoScada, I´m still learning.
I was mislead by these ARRAY type of data types.
Many thanks.
Posted: 2021-07-27 06:27 PM
ClearSCADA Advanced OPC driver with OFS tested and confirmed a Digital Point configured with ItemID.bit offset also works.
Posted: Sunday
It does not work with multi-bits when doing a write (Control method write to byte value) from ClearSCADA to PLC (M580). Example: Bits=2, bit offset=10. Instead it always writes to Bits 0 & 1 of the corresponding PLC word.
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.