FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
06-18-2024 09:18 PM
Hi,
Is it possible to read the entire array from the datalayer to the PLC_APP? I've tried using the DL_ReadNode function block but i get access errors. I can successfully read individual dimensions but cant read the entire array. Any help would be much appreciated.
Solved! Go to Solution.
06-19-2024 12:09 PM - edited 06-19-2024 12:15 PM
You are right: DL_ReadNode provides access to simple IEC types only:
To read an array, use instead CXA_Datalayer.DL_ReadNodeValue. The example below shows how to use this function block to read an array of 100 integers (Int16).
See the Library Manager documentation for many more examples of the use of this library:
06-27-2024 12:23 PM
Could you add a screenshot of the metadata of the arrays head element in the data layer? There you see which data type is used and what can be done (read,write...) to this node.
As you are trying to access OPC UA variables via our app you can use the corresponding library CXA_OPCUAClient for accessing one dimensional arrays in whole.