JSON attributes

As described in the introductory part of the Technical introduction section, there is a possibility to transmit an additional JSON attribute with a message.

The JsonXml library (PLC library Tc3_JsonXml) can be used to generate the JSON when creating and when receiving.

PLC

The JSON attribute can be specified before the Send() but after the Create()/CreateEx().

JSON attributes 1:

C++

The JSON attribute can be specified before the Send() but after the CreateMessage()/CreateAlarm().

JSON attributes 2:

Output

JSON attributes 3:

The Logged Events window provides two visualizations for the JSON attributes, which can be selected via the drop-down menu inside the information column and opened by clicking on the magnifying glass:

Text Visualizer

JSON attributes 4:

JSON Visualizer

JSON attributes 5: