OPC UA協定
於2006年發表的OPC UA協定,加入SOA
(Service-Oriented Architecture) 物件導向模
型,統一各元件介面,備援機制與安全性等特
性與跨平台能力,透過OPC UA 可相容於傳統
OPC 以及其它既有之工業用通訊協定,其架構
圖,如圖。
![](http://limitironbox.myds.me/wordpress/wp-content/uploads/2019/09/9_20161103153852-已解鎖.jpg)
OPC UA client 架構
使用OPC UA Client API來收送Application
層的Service requests 與responses,經由
Communication Stack層之訊息資料轉換,再對
外與OPC UA Server溝通,如圖。
![](http://limitironbox.myds.me/wordpress/wp-content/uploads/2019/09/9_201611031538521-已解鎖-1.jpg)
OPC UA Client
OPC UA server 架構
OPC UA Server 主要面對PLC等實體介
面,並收送來自OPC UA Client 的Request/
Response,另外有subscribe/notification 機制,
如圖5[3] , OPC UA Server 內部使用
AddressSpace Node代表實際的物件,OPC UA
Server Application使用OPC UA Server API來收
送來自OPC UA Client 的Messages , 並處理
subscribe/notification機制,如圖。
![](http://limitironbox.myds.me/wordpress/wp-content/uploads/2019/09/9_2016110315385213-已解鎖.jpg)
![](http://limitironbox.myds.me/wordpress/wp-content/uploads/2019/09/9_20161103153852d-已解鎖.jpg)
工具機OPC UA協定架構
使用OPC UA協定傳輸工具機資料至後台
圖中間最下面那個OPC UA Server呈現其內部架構,最底層是作業系統,在此實作例子是使用微軟視窗作業系統,在作業系統上執行了三個程式, 最左邊的VMX是工研院工具機中心所開發的程式,其作用是取得工具機的資料,然後儲存到中間的SQL Server,SQL Server 是微軟的資料庫,最後由右邊的VMX OPC UA Server程式的DB Proxy模組讀取SQL Server中的資料,最後傳送給OPC UA Client。
![](http://limitironbox.myds.me/wordpress/wp-content/uploads/2019/09/image-1.png)