cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

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

Prashanth_GU
7-Bedrock

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

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]

ACCEPTED SOLUTION

Accepted Solutions

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.

 

 

View solution in original post

1 REPLY 1

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.

 

 

Announcements


Top Tags