Skip to content

Building Shopfloor Workflow with Agent

Available inCloud

UNS agent provides a faster and easier way to build factory data models, connect data from factories and create alarm events based on the data through conversation in natural language.

A mixing tank mixes materials while heating them. Build a data model and collect temperature, water level, and heater status to determine whether the tank is overheated and trigger an alarm.

flowchart RL
  source["Source Flow<br/>(connect data sources)"]
  event["Event Flow<br/>(event logic and alarm)"]
  uns["UNS<br/>(modeling)"]

  source -->|"mixing tank data"| uns
  event -->|"alarm data"| uns

  classDef t0accent fill:#EFFFD2,stroke:#8AC926,stroke-width:1px,color:#18230B
  classDef t0node fill:#F8FAFC,stroke:#CBD5E1,stroke-width:1px,color:#111827
  class uns t0accent
  class source,event t0node
  1. Start a conversation with the UNS agent in UNS with full_access.

  2. Enter the prompt to build UNS models.

    Terminal window
    Create a data model representing the temperature, water level and heater status of a mixing tank, temperature and level in one metric topic and heater status in a state topic.
  3. Once you confirm that the model is complete, enter the prompt and let the agent connect the corresponding data to the model.

    Terminal window
    Create a source flow to send data to these 2 topics, simulate reasonable data.
  4. Enter the prompt to create an event with the following logic.

    • Low water level warning: Triggered when the water level is below 20% and the heater is on.
    • Dry-heating alarm: Triggered when the water level is below 15%, temperature is above 90°C and the heater is on.
    Terminal window
    Create an Event Flow for the following alarm logic:
    - Warning: Trigger when level < 20 and heater_status = true.
    - Critical: Trigger when level < 15, temperature > 90, and heater_status = true.
    - Clear the active alarm when level > 25 or heater_status = false.
    Create a new topic under the existing UNS model to receive the alarm result. Include the alarm level, message, active status, and timestamp in the output.
  5. Check the results on UNS.