When the "Bulk Publish" is enabled, all tags data is published under single group with topic name as:
ie/d/j/simatic/v1/slmp1/dp/r/<connection-name>/default
The JSON structure is as follows:
The JSON structure is as follows:
Where, seq: unique sequence number of the payload.
vals: data points published in the payload.
id: unique identification of data point. You must fetch the tag ID from metadata payload based on the tag name.
qc: quality code. It provides specific integer value to indicate the quality of the data point value.
ts: timestamp of the data point. it is in ISO 8601 Zulu format.
val: value of the Tag. Based on the data type of the data point, the value can be simple scalar value, an array, or an object.
With "SLMP Connector V2.0", with qc, qx is published which holds all the bits data: quality code, sub status, extended sub status, flags, and limit. qc is published in decimal value, for example,192. You must convert it into binary to get the bit information.
Only if when any of the bits '0 to 5' and '8 to 15' is 1, the qx field is published.