【教學】透過FsBP OPC UA Server取得FsBP資料

回覆文章
EJ
新兵
新兵
文章: 9
註冊時間: 2024-10-01, 23:54

【教學】透過FsBP OPC UA Server取得FsBP資料

文章 EJ »

一、基本說明

介紹如何透過 OPC UA Client 端工具「UA Expert」,連線至 FsBP 的 OPC UA Server,並成功讀取以下資料:
  • Common Database中的即時資料。
  • Event Database 中的資料集資料。

二、事前準備

1. 安裝UA Expert。

[1] 下載網址:https://www.unified-automation.com/prod ... xpert.html

[2] 安裝並啟動應用程式。

2. 於FsBP OPC UA Server APP 設定以下內容。

20250417006.png
20250417006.png (26.09 KiB) 已瀏覽 1636 次

3. 重啟FsBP OPC UA Server APP。


三、建立連線

1. 開啟 UA Expert。

2. 新增連線 Add Server。

[1] 路徑:Project > Servers >右鍵>Add。

[2] 輸入 Endpoint URL(手動新增)。
  • 找到 Custom Discovery。
  • 雙擊「Double click to Add Server」。
  • Enter URL輸入:opc.tcp://<FIELD system BOX IP>:4840/OPCUAServer。
  • 按下OK。
    
20250417007.png
20250417007.png (2.47 KiB) 已瀏覽 1636 次

3. 驗證設定 Authentication Settings。

[1] 展開opc.tcp://<FIELD system BOX IP>:4840/OPCUAServer。

[2] 點選「Aes256_Sha256_RsaPss – Sign & Encrypt」。

[3] 輸入 Username。

[4] 勾選 Store。

[5] 輸入Password。

[6] 點選【OK】。


若出現「Connect Error」視窗,請點選Ignore。

20250417008.png
20250417008.png (11.24 KiB) 已瀏覽 1636 次

4. 信任伺服器憑證(若使用加密模式)

[1] 若 Server 使用安全憑證,會出現「Certificate Validation」視窗。

20250417009.png
20250417009.png (99.91 KiB) 已瀏覽 1636 次

[2] 點選【Trust Server Certificate】。

20250417010.png
20250417010.png (33.16 KiB) 已瀏覽 1636 次

[3] 點選【Continue】。


5. 連線伺服器

[1] 路徑:Project>Servers。

[2] 找到:OPC UA Server@<FIELD system BOX IP>

[3] 右鍵點選【Connect】。

若出現「Connect Error」視窗,請點選【Ignore】。

20250417011.png
20250417011.png (11.24 KiB) 已瀏覽 1636 次


四、瀏覽資料

1. 至Address Space。

2. 將想查看的節點資訊拖曳到Data Access View

[1] 通用資料庫


20250417012.png
20250417012.png (194.03 KiB) 已瀏覽 1636 次


[2] 事件資料庫


20250417013.png
20250417013.png (167.47 KiB) 已瀏覽 1636 次

[3] Machines

20250417014.png
20250417014.png (196.1 KiB) 已瀏覽 1636 次
回覆文章