Have a look to the PLC library CXA_Datalayer in the library manager of ctrlX PLC Enginnering, where description and examples are included:
This example shows how to read a node value using DL_ReadNode(). This function must only be used on simple data types! For complex types please use DL_ReadNodeValue(). To use this function correctly you need to know the type of the returned value. If you don’t know the value type, the DL_ReadNodeValue() function will provide a NodeValue-object which can be used to request the specific type.
... View more