This package for Node-RED includes helper functions for TwinCAT IoT. In its current version, it includes a parser for TwinCAT IoT JSON encoded messages, which splits the incoming message up.
The content is splitted as follows:
- The sub object "Values" is returned as output 1
- The sub object "MetaData" is returned as output 2
- A re-structured JSON object is returned on output 3
The re-structured object that is returned as output 3 is an array of all found symbols aggregated plus their MetaData.
Example
Input
As an input, a JSON object is expected that follows the TwinCAT IoT JSON format, which is used by the Beckhoff products TF6701, TF6710, TF6720 and EK9160.
Output 1
The first output of the node returns the "Values" sub object of the input.
Output 2
The second output of the node returns the "MetaData" sub object of the input.
Output 3
The third output of the node returns the modified JSON.