# industrial-edge/performance-analytics architecture

> Architecture diagram of the GitHub repository industrial-edge/performance-analytics, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/industrial-edge/performance-analytics
- Repository: https://github.com/industrial-edge/performance-analytics

## Overview

##### Component Details

a. Plant Layer:

b. Edge Layer:
- OPC UA Connector
- S7 Connector
- Databus
- IIH Essentials
- Performance Insight

c. Application Layer:
- Asset Model
- Reference Duration Configuration
- Step Time Comparison
- Performance Analytics

##### Important Elements

- Version numbers for key components
- Protocol specifications
- Clear labeling of all interfaces
- Data flow direction indicators

##### Additional Details

- Asset model structure
- Step time analysis workflow
- Data processing pipeline

##### Technical Specifications

A small table showing:
- Required versions of components
- Protocol specifications
- Performance metrics

Remember to include:
- Clear boundaries between different system layers
- Data flow paths from PLCs through Edge device to dashboards
- Integration points between different components
- Security zones and network segments
- Monitoring and analysis points

## Diagram (Mermaid)

```mermaid
graph TB
    %% Styles and classes
    classDef plc fill:#a8d1f0,stroke:#333
    classDef opcua fill:#4a90e2,stroke:#333,color:white
    classDef s7plus fill:#50c878,stroke:#333
    classDef edge fill:#f5f5f5,stroke:#333
    classDef app fill:#ffe4b5,stroke:#333
    classDef connector fill:#b19cd9,stroke:#333
    classDef dashboard fill:#ffd700,stroke:#333

    %% Plant Layer
    subgraph Plant["Plant Layer"]
        PLC1[PLC 1 - OPC UA]:::plc
        PLC2[PLC 2 - OPC UA]:::plc
        PLC3[PLC 3 - S7+]:::plc
        PLC4[PLC 4 - S7+]:::plc
        PLC5[PLC 5 - S7+]:::plc
    end

    %% Edge Layer
    subgraph Edge["Industrial Edge Device"]
        OPCUA[OPC UA Connector]:::connector
        S7[S7 Connector]:::connector
        Databus[Databus]:::edge
        IIH[IIH Essentials]:::edge
        PI[Performance Insight]:::edge
    end

    %% Application Layer
    subgraph App["Application Layer"]
        direction TB
        STA["Step Time Analysis Dashboard"]:::dashboard
        click STA "https://github.com/industrial-edge/Performance-Analytics/blob/main/src/StepTimeAnalysis_20221129_1438.7z"
        
        subgraph Components
            AM[Asset Model]:::app
            RDC[Reference Duration Configuration]:::app
            STC[Step Time Comparison]:::app
            PA[Performance Analytics]:::app
        end
    end

    %% Connections
    PLC1 --> OPCUA
    PLC2 --> OPCUA
    PLC3 --> S7
    PLC4 --> S7
    PLC5 --> S7

    OPCUA --> Databus
    S7 --> Databus
    Databus --> IIH
    IIH --> PI
    PI --> STA
    STA --> AM
    STA --> RDC
    STA --> STC
    STA --> PA

    %% Legend
    subgraph Legend
        L1[PLC Device]:::plc
        L2[OPC UA Component]:::opcua
        L3[S7+ Component]:::s7plus
        L4[Edge Component]:::edge
        L5[Application Component]:::app
        L6[Dashboard]:::dashboard
    end

    %% Documentation Links
    click Edge "https://github.com/industrial-edge/Performance-Analytics/tree/main/docs/"
    click Legend "https://github.com/industrial-edge/Performance-Analytics/tree/main/docs/graphics/"
    click App "https://github.com/industrial-edge/Performance-Analytics/blob/main/docs/Installation.md"
```
