Connect Data to UNS
Disponible enEdgeCloudEnterprise
Esta página aún no está disponible en tu idioma.
How to Build a Data Model
Section titled “How to Build a Data Model”Based on simple folder-file structure, you can define the data hierarchy to a tree map.
Building Models Manually
Section titled “Building Models Manually”- Log in to Tier0, select UNS.
- Hover over the upper-right corner icon
> New Path to add a path factory. - Enter the path name
factory, click Create. - Select
factory, hover over the same icon and add another pathequipmentunder it. - Select
equipment, hover over the same icon > New Topic, and add a topicCNCunder it. - Set the topic Name, Type, select Enable History/Mock Data*, click the arrow to continue.
- Set the payload fields, click Create to finish the topic creation.
Importing Models
Section titled “Importing Models”- By JSON text
- On the UNS page, click the upper-right corner icon Import.
- Select the JSON tab, wirte JSON text on the window.
- Click Submit to import the model.
- By JSON file
- On the Import window, select the File tab.
- Click Download Template at the upper-right corner to download a JSON template.
- Enter the model content in the template and save it.
- Upload the file on the Import window, and click Submit to complete.
How to Connect Data to UNS
Section titled “How to Connect Data to UNS”- Log in to Tier0, go to Flows.
- Click New Flow at the upper-right corner.
- Enter a name, set the Flow Type to Source Flow, and click Create.
- Click the flow you just added, drag in nodes according to your data source type (e.g.
modbus) on the canvas. - Drag in an
mqtt outnode, select the Server as emqx. - Enter the topic name copies from UNS (e.g.
factory/equipment/CNC), click Done. - Click Deploy at the upper-right corner, trigger the flow and the data will be sent to corresponding model under UNS.
Addtional Options
Section titled “Addtional Options”| Scope | Parameter | Item | When to use |
|---|---|---|---|
| Path | Extended Attribute/Custom Attributes | - | Use when you need to add additional attributes to the path, such as unit information. |
| Topic | Topic Type | Metric, State, Action | Select the topic type that matches the data semantics: measurements, current status, or executable operations. |
| Topic | Attribute Generation Method | Pre-defined | Manually set attributes for the topic one by one. |
| Topic | Attribute Generation Method | Auto-Parsing | Generates attributes automatically from JSON text in batches. |
- Build Apps on UNS — Build industrial applications with UNS data.
- Analyze UNS Data — Analyze UNS data with Marimo Notebook and Python.