OPC UA Connector supports the 'Tag Write' functionality. This enables you to write a tag. You must add a topic in Databus in following format to write a tag:
ie/d/j/simatic/v1/opcuac1/dp/w/
For example, ie/d/j/simatic/v1/opcuac1/dp/w/opcua1
The JSON payload structure for Bulk subscribe is as follows:
Where, seq: unique sequence number of the payload.
vals: array of 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 is an optional field. It provides specific integer value to indicate the quality of the data point value.
For more information on qc, refer JSON structure for Tags Data.
ts: timestamp of the data point. It is an optional field. 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.
NOTE
You can use the metadata to get the tag id published from the OPC UA Connector for Tag Write functionality.
For more information on Bulk Publish, refer Bulk Publish Tags.
For more information on topic format structure, refer Topic Structure for Data and Metadata.