Bonus Step: Sending additional info with values
How to send additional data (static data) with the payload?
First: in Tag Editor, for PUMP1.TRIP Tag, Setup user defined fields
Second: In the integration model editor, Select Send user defined fields with values.
The JSON message will look like the following:
[
{
"MsgSource": "PLC1",
"TagName": "PUMP1.TRIP",
"RawValue": "1",
"ScaledValue": "1",
"Status": "Alarm",
"ComStatus": null,
"TimeStamp": "2020-02-03 12:21:14"
"Location": "area1"
},
{
"MsgSource": "KEP_SERVER",
"TagName": "OPC.Ramp",
"RawValue": "88",
"ScaledValue": "88",
"Status": "Normal",
"ComStatus": null,
"TimeStamp": "2020-02-03 12:21:14"
}
]