介紹如何透過 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 設定以下內容。
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。
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。
4. 信任伺服器憑證(若使用加密模式)
[1] 若 Server 使用安全憑證,會出現「Certificate Validation」視窗。
[2] 點選【Trust Server Certificate】。
[3] 點選【Continue】。
5. 連線伺服器
[1] 路徑:Project>Servers。
[2] 找到:OPC UA Server@<FIELD system BOX IP>
[3] 右鍵點選【Connect】。
若出現「Connect Error」視窗,請點選【Ignore】。
四、瀏覽資料
1. 至Address Space。
2. 將想查看的節點資訊拖曳到Data Access View
[1] 通用資料庫
[2] 事件資料庫
[3] Machines