Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84248members
353347posts

Individual bit from OPC INT

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.

Solved
Oz_Ba
Lieutenant JG
Lieutenant JG
0 Likes
3
2189

Individual bit from OPC INT

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.

Tags (1)

Accepted Solutions
AndrewScott
Commander
Commander
1
2185

Re: Individual bit from OPC INT

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.


Andrew Scott, Lead Engineer, AVEVA

See Answer In Context

TrevorWilson
Crewman Crewman
Crewman

Re: Individual bit from OPC INT

ClearSCADA Advanced OPC driver with OFS tested and confirmed a Digital Point configured with ItemID.bit offset also works.

See Answer In Context

3 Replies 3
AndrewScott
Commander
Commander
1
2186

Re: Individual bit from OPC INT

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.


Andrew Scott, Lead Engineer, AVEVA
Oz_Ba
Lieutenant JG
Lieutenant JG
0 Likes
0
2179

Re: Individual bit from OPC INT

@AndrewScott 

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.

TrevorWilson
Crewman Crewman
Crewman

Re: Individual bit from OPC INT

ClearSCADA Advanced OPC driver with OFS tested and confirmed a Digital Point configured with ItemID.bit offset also works.