Example
This example Data Stream demonstrates how to use this Action Agent to update the pump's temperature (Int4), money forecast (money), and pressure (Real8) Item Values on the OPC DA Server.
Refer to configuration to understand all configuration options of this Agent.
Step 1: Add the Agent
Drag the OPC DA Action Agent onto the canvas.
Rename the Agent, link the input endpoint to the sensor data and link the output endpoint to the printer.
Save the Data Stream.
Double-click to configure the Agent.
Step 2: Configure Settings
Enter the Connection details of your OPC DA Server: server, and security.
In this case, select the server "Matrikon.OPC.Simulation", and leave Use Authenticaion unticked. Do tick to specify the timestamp, quality, and Enable Tag Browsing.
Step 3: Configure Browse Tags/Items
Select the Branch Type and Path/Level. In this case, select Using Drilldown, and add Simulation Items and Bucket Brigade levels.
Step 4: Configure Items
Select from the Available Tags and click Add Selected Tags to populate the Items Grid. In this case, select Money, Int4, and Real8.
Step 5: Configure Data Mapping
Select the column or attribute from the input payload for the corresponding values, quality, and timestamp in the Mapping Grid.
In this case, select the Pump Heat, Money, and Pressure as the item values. Select the Quality as the item quality and Timestamp as the item timestamp.
Step 6: Results
Apply the changes, save the Data Stream, and publish it.
Let's look at the Live Data View. Observe the incoming data is printed and the asset's Int8 and Qualities values are updated on the OPC DA Server.
And you can use the OPC DA Listener to observe the Pump's updated Temp, Money and Pressure tags.
Files
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Last updated