Can I sample individual values from an OPC-UA array ?
- 17 May 2021
- 1 Minute to read
-
Contributors
-
Print
-
DarkLight
-
PDF
Can I sample individual values from an OPC-UA array ?
- Updated on 17 May 2021
- 1 Minute to read
-
Contributors
-
Print
-
DarkLight
-
PDF
Yes, if you have an array setup as shown below, then with a sample point as below you can collect the individual data from the array.
{
"SampleName" : "DistY",
"SampleDescription" : "Variable VIS_MachineTime.distance[1]",
"SamplesSaved" : 10,
"OnlySaveOnChanged" : true,
"SampleDataType" : "float",
"OPCUAObject":
{
"NodeIdNameSpaceIndex": 6,
"NodeIdType": "string",
"NodeIdString": "::AsGlobalPV:VIS_MachineTime.distance[1]",
"OPCUASampleInterval": 60
}
},
Was this article helpful?