Parameter Editor
The Parameter Editor allows to configure symbol meta data for symbols in a publisher channel. As a prerequisite, the publisher channel has to be configured to use the "TwinCAT JSON" data format. You can then add new symbol parameters by right clicking a symbol and select Add Symbol Parameter.
This will add a new symbol parameter entry to the Parameter Editor. You can then specify the data type, name and value of the new parameter.
A result of the above configuration may look as follows when using the TwinCAT JSON data format. In this configuration, the variable "GVL_nodes_dynamic.dyn_scalar_UI8" has been configured with the symbol parameters Min, Max and Unit. These parameters will be added to the "MetaData" section of the TwinCAT JSON formatted message.
{
"Timestamp": "2020-09-28T12:32:49.0370000+02:00",
"GroupName": "Publisher",
"Values": {
"GVL_nodes_dynamic.dyn_scalar_UI8": 259096147,
"GVL_nodes_dynamic.dyn_scalar_UI1": 83,
"GVL_nodes_dynamic.dyn_scalar_UI2": 32339,
"GVL_nodes_dynamic.dyn_scalar_UI4": 259096147
},
"MetaData": {
"GVL_nodes_dynamic.dyn_scalar_UI8": {
"Timestamp": "2020-09-28T12:32:49.0350000+02:00",
"Min": -10,
"Max": 100,
"Unit": "Celsius"
},
"GVL_nodes_dynamic.dyn_scalar_UI1": {
"Timestamp": "2020-09-28T12:32:49.0350000+02:00"
},
"GVL_nodes_dynamic.dyn_scalar_UI2": {
"Timestamp": "2020-09-28T12:32:49.0350000+02:00"
},
"GVL_nodes_dynamic.dyn_scalar_UI4": {
"Timestamp": "2020-09-28T12:32:49.0350000+02:00"
}
}
}
In addition, you can also add parameters to a channel, which will add meta data properties to the root message. Example:
As a result, the root message now contains a static meta data property called "Room", which has the value "LivingRoom":
{
"Timestamp": "2020-09-30T09:55:58.1160000+02:00",
"GroupName": "Publisher",
"Room": "LivingRoom",
"Values": {
"GVL_nodes_dynamic.dyn_scalar_UI8": 267266470,
"GVL_nodes_dynamic.dyn_scalar_UI1": 166,
"GVL_nodes_dynamic.dyn_scalar_UI2": 10662,
"GVL_nodes_dynamic.dyn_scalar_UI4": 267266470
},
"MetaData": {
"GVL_nodes_dynamic.dyn_scalar_UI8": {
"Timestamp": "2020-09-30T09:55:58.1140000+02:00",
"Min": -10,
"Max": 100,
"Unit": "Celsius"
},
"GVL_nodes_dynamic.dyn_scalar_UI1": {
"Timestamp": "2020-09-30T09:55:58.1140000+02:00"
},
"GVL_nodes_dynamic.dyn_scalar_UI2": {
"Timestamp": "2020-09-30T09:55:58.1140000+02:00"
},
"GVL_nodes_dynamic.dyn_scalar_UI4": {
"Timestamp": "2020-09-30T09:55:58.1140000+02:00"
}
}
}