Skip to main content
7-Bedrock
January 9, 2025
Solved

Kepserver OPC UA Driver - what data type support Boolean Array [1000] & string array ( 255)

  • January 9, 2025
  • 1 reply
  • 1009 views

Hi  Experts

 

I getting Bad quality while  i am fetching data from OPC UA Server for the below tags,  please suggest what type of data need to assign for these.

 

 

10262148_P0019_MV_abActiveFaults

ARRAY OF BOOL

 

 

10262148_P0019_MV_MaxStringLength

STRING[255]

 

ns=4;s=G_MES.stOpcData.stAlarmingSystem.abActiveFaults[0]
ns=4;s=G_MES.stOpcData.stAlarmingSystem.abActiveFaults[1]
ns=4;s=G_MES.stOpcData.stAlarmingSystem.abActiveFaults[2]
ns=4;s=G_MES.stOpcData.stAlarmingSystem.abActiveFaults[3]
ns=4;s=G_MES.stOpcData.stAlarmingSystem.abActiveFaults[4]
ns=4;s=G_MES.stOpcData.stAlarmingSystem.abActiveFaults[5]

.
.
.
.
.
.
ns=4;s=G_MES.stOpcData.stAlarmingSystem.abActiveFaults[1000]

Best answer by rajskumar

Hello,

We cannot read individual elements over UA unless they exist as individual elements exposed as tags in the UA server. If that server has a Boolean Array, we will only be able to request the entire array as a single item reference. Our client driver cannot explicitly ask for an individual element of that array; the target server will most likely reject the request. The same applies to strings. You can only ask for it by name; you cannot specify the number of bytes to read from a string.

 

Here is the article that has Workaround: https://www.ptc.com/en/support/article/CS325193

 

If you are prompted to log in to view the complete article, you can use your MyKepware login credentials.

 

 

1 reply

rajskumar16-PearlAnswer
16-Pearl
January 14, 2025

Hello,

We cannot read individual elements over UA unless they exist as individual elements exposed as tags in the UA server. If that server has a Boolean Array, we will only be able to request the entire array as a single item reference. Our client driver cannot explicitly ask for an individual element of that array; the target server will most likely reject the request. The same applies to strings. You can only ask for it by name; you cannot specify the number of bytes to read from a string.

 

Here is the article that has Workaround: https://www.ptc.com/en/support/article/CS325193

 

If you are prompted to log in to view the complete article, you can use your MyKepware login credentials.