# industrial-edge/shopfloor-to-cloud-connectivity architecture

> Architecture diagram of the GitHub repository industrial-edge/shopfloor-to-cloud-connectivity, 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/shopfloor-to-cloud-connectivity
- Repository: https://github.com/industrial-edge/shopfloor-to-cloud-connectivity

## Overview

##### Main Components

a) Physical Layer Components:
- Southbound Edge Devices (Multiple instances)
- Northbound Edge Device
- PLCs (1512SP-1 PN)
- Cloud Layer (Insights Hub/MindSphere)

b) Software Components:
- Edge Applications Layer
- OPC UA Connector
- Databus
- Flow Creator
- DataXess
- IIH Essentials
- Energy Manager
- IIH Semantics
- Common Configurator

##### Key Elements to Highlight

a) Data Flow Directions:
- MQTT communication paths between layers

b) Security Boundaries:
- Clearly demarcate the Automation Cell Network
- DMZ/Datacenter separation
- Security measures between layers

##### Specific Implementation Details

**[Cloud Layer]**

- ▼
**[Northbound Edge Device]**
- IIH Essentials
- Energy Manager
- DataXess
- IIH Semantics

- ▼
**[Security Boundary / DMZ]**

- ▼
**[Southbound Edge Devices]**
- OPC UA Connector
- Databus
- Flow Creator
- DataXess

- ▼
**[Production Layer / PLCs]**

##### Technical Details

- MQTT topics and data flows
- Asset model hierarchy
- Network protocols (OPC UA, MQTT)
- Edge Management connections
- Data transformation points

This system design should clearly illustrate the secure, multi-layered approach to collecting, processing, and transmitting energy data from the shop floor to the cloud while maintaining strict security boundaries between the automation network and the internet-connected components.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Cloud
        MindSphere["MindSphere/Insights Hub"]:::cloud
    end

    subgraph NorthboundEdge["Northbound Edge Layer"]
        NorthboundDevice["Northbound Edge Device"]:::edge
        IIHEssentials["IIH Essentials"]:::app
        EnergyManager["Energy Manager"]:::app
        DataXessNorth["DataXess"]:::app
        IIHSemantics["IIH Semantics"]:::app
        NorthDatabus["Databus"]:::databus
    end

    subgraph DMZ["Security Boundary / DMZ"]
        Firewall["Firewall/DMZ"]:::security
    end

    subgraph SouthboundEdge["Southbound Edge Layer"]
        SouthDevice1["Southbound Edge Device 1"]:::edge
        SouthDevice2["Southbound Edge Device 2"]:::edge
        
        OPCUA1["OPC UA Connector 1"]:::connector
        OPCUA2["OPC UA Connector 2"]:::connector
        
        SouthDatabus1["Databus 1"]:::databus
        SouthDatabus2["Databus 2"]:::databus
        
        FlowCreator1["Flow Creator 1"]:::app
        FlowCreator2["Flow Creator 2"]:::app
        
        DataXessSouth1["DataXess 1"]:::app
        DataXessSouth2["DataXess 2"]:::app
    end

    subgraph Production["Production Layer"]
        PLC1["PLC 1512SP-1 PN"]:::plc
        PLC2["PLC 1512SP-1 PN"]:::plc
        Line1["Production Line 1"]:::production
        Line2["Production Line 2"]:::production
    end

    %% Connections
    MindSphere <--> NorthboundDevice
    NorthboundDevice --> IIHEssentials
    NorthboundDevice --> EnergyManager
    NorthboundDevice --> DataXessNorth
    NorthboundDevice --> IIHSemantics
    NorthboundDevice --> NorthDatabus

    NorthboundDevice <--> Firewall
    
    Firewall <--> SouthDevice1
    Firewall <--> SouthDevice2
    
    SouthDevice1 --> OPCUA1
    SouthDevice1 --> SouthDatabus1
    SouthDevice1 --> FlowCreator1
    SouthDevice1 --> DataXessSouth1
    
    SouthDevice2 --> OPCUA2
    SouthDevice2 --> SouthDatabus2
    SouthDevice2 --> FlowCreator2
    SouthDevice2 --> DataXessSouth2
    
    OPCUA1 --> PLC1
    OPCUA2 --> PLC2
    PLC1 --> Line1
    PLC2 --> Line2

    %% Styles
    classDef cloud fill:#9966FF,stroke:#333,stroke-width:2px
    classDef edge fill:#3399FF,stroke:#333,stroke-width:2px
    classDef app fill:#FFCC00,stroke:#333,stroke-width:2px
    classDef connector fill:#33CC33,stroke:#333,stroke-width:2px
    classDef databus fill:#FF9900,stroke:#333,stroke-width:2px
    classDef security fill:#FF3333,stroke:#333,stroke-width:2px
    classDef plc fill:#99CC00,stroke:#333,stroke-width:2px
    classDef production fill:#66CC99,stroke:#333,stroke-width:2px

    %% Click Events
    click NorthboundDevice "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/tree/main/src/CentralDevice/"
    click SouthDevice1 "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/tree/main/src/Device_Energy1/"
    click SouthDevice2 "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/tree/main/src/Device_Energy2/"
    click OPCUA1 "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/blob/main/src/Device_Energy1/Energy1_OPCUA_Connector.json"
    click OPCUA2 "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/blob/main/src/Device_Energy2/Energy2_OPCUA_Connector.json"
    click NorthDatabus "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/blob/main/src/CentralDevice/IE-Databus.json"
    click SouthDatabus1 "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/blob/main/src/Device_Energy1/Databus_Energy1_config.json"
    click EnergyManager "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/blob/main/src/Device_Energy1/EnergyManagement_Energy1.zap16"
    click MindSphere "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/blob/main/docs/install_MindSphere.md"
    click PLC1 "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/blob/main/docs/install_PLC_Devices_Southbound.md"
    click Line1 "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/blob/main/src/CentralDevice/Line1.json"
    click Line2 "https://github.com/industrial-edge/Shopfloor-to-Cloud-Connectivity/blob/main/src/CentralDevice/Line2.json"
```
