1. 程式人生 > >【教程】Matrikon OPC使用教程連載(一)

【教程】Matrikon OPC使用教程連載(一)

MatrikonOPC介紹:

Matrikon是基於OPC UA和基於OPC的控制自動化資料互操作性產品的供應商,提供自動化廠商的高階OPC UA開發工具包,適用於從嵌入式裝置到雲應用的所有產品線。對於終端使用者客戶,Matrikon提供了關鍵資料工具,以最好地促進企業廣泛的資料共享。產品主要包含:各類 MatrikonOPC ServersMatrikonOPC Archiving and Analytics套包MatrikonOPC Data Management套包MatrikonOPC Security套包MatrikonOPC UA (Unified Architecture)

等產品。

本文件旨在作為使用以下MatrikonOPC工具的指南(所有這些工具必須安裝在本地計算機上):

  • MatrikonOPC Server for DDE (用於DDE的MatrikonOPC Server)

  • MatrikonOPC Explorer

  • MatrikonOPC Server for Simulation and Testing(用於模擬和測試的MatrikonOPC Server)

  • MatrikonOPC Data Manager(MatrikonOPC資料管理器)

上面列出的應用程式都可以下載用於測試目的。注意:要完成本教程,還必須在本地計算機上安裝 Microsoft Excel。

MatrikonOPC工具概述:

OPC架構圖(圖1)描述了OPC軟體應用程式如何相互連線。每個框表示單獨的軟體應用程式。每條線表示連線。

圖1 - OPC架構

在圖1中,過程控制系統的安排如下:

  1. Microsoft Excel 充當資料來源。所有過程控制資料都從 Microsoft Excel 中讀取並寫入。

  2. MatrikonOPC Server for DDE 將 Microsoft Excel 連線到OPC客戶端。

  3. MatrikonOPC Explorer充當資料接收器。它讀取資料和命令,並將資料寫回 Microsoft Excel。

  4. MatrikonOPC Server for Simulation and Testing模擬與樣本裝置或樣本應用程式的連線。它傳輸由MatrikonOPC Explorer讀取的模擬資料。

  5. MatrikonOPC Data Manager具有連線兩個OPC Server的OPC客戶端功能。樣本標記值在 MatrikonOPC Server for Simulation and Testing 和 MatrikonOPC Server for DDE 之間共享。

下載和安裝MatrikonOPC工具

本教程中使用的所有MatrikonOPC軟體均可作為免費評估版提供,可通過以下連結下載:

MatrikonOPC Explorer:

http://matrikonopc.com/products/opc-desktop-tools/opc-explorer.aspx

MatrikonOPC Server for DDE:

http://www.matrikonopc.com/opc-drivers/168/base-driver-details.aspx

MatrikonOPC Server for Simulation and Testing:

http://matrikonopc.com/products/opc-drivers/opc-simulation-server.aspx

MatrikonOPC Data Manager:

http://www.matrikonopc.com/products/opc-data-management/opc-data-manager.aspx

要安裝每個軟體包,請下載並執行每個可執行檔案。按照每個安裝附帶的說明進行操作。

注意:

  1. MatrikonOPC Server for DDE 和 MatrikonOPC Data Manager僅用於演示目的,並提供免費的30天全功能演示許可證。演示期結束後,軟體將停止執行,直到安裝了註冊版本。

  2. MatrikonOPC Explorer 和 MatrikonOPC Server for Simulation and Testing是功能齊全的OPC測試工具,這些應用程式無需許可。

教程概述

本教程中的練習描述了每個MatrikonOPC應用程式的功能,同時通過配置MatrikonOPC Server for DDE的過程提供指導。通過本教程提供必要的知識,通過突出顯示連線任何OPC軟體應用程式時可能出現的問題,幫助解決OPC軟體實施問題。

使用以下步驟配置 MatrikonOPC Server for DDE:

  1. 使用Microsoft Excel建立示例資料。有關更多資訊,請參閱 配置資料來源

  2. 配置DDE伺服器(使用MatrikonOPC Server for DDE)和 Microsoft Excel 之間的連線。有關更多資訊,請參閱 配置OPC伺服器

  3. 配置MatrikonOPC Explorer,使用 MatrikonOPC Server for DDE 從 Microsoft Excel 讀取和寫入值。有關更多資訊,請參閱使用OPC客戶端(MatrikonOPC Explorer)

  4. 將 MatrikonOPC Explorer 連線到 MatrikonOPC Server for Simulation and Testing。然後使用 MatrikonOPC Data Manager 連線兩個OPC伺服器。有關更多資訊,請參閱在兩個OPC伺服器之間交換資料

未完待續......