基于OPC通訊協(xié)議的自動(dòng)化仿真平臺(tái)_實(shí)踐篇_090601_第1頁(yè)
基于OPC通訊協(xié)議的自動(dòng)化仿真平臺(tái)_實(shí)踐篇_090601_第2頁(yè)
基于OPC通訊協(xié)議的自動(dòng)化仿真平臺(tái)_實(shí)踐篇_090601_第3頁(yè)
基于OPC通訊協(xié)議的自動(dòng)化仿真平臺(tái)_實(shí)踐篇_090601_第4頁(yè)
基于OPC通訊協(xié)議的自動(dòng)化仿真平臺(tái)_實(shí)踐篇_090601_第5頁(yè)
已閱讀5頁(yè),還剩29頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、基于OPC通訊協(xié)議的自動(dòng)化仿真平臺(tái)(實(shí)踐篇)(昆明電器科學(xué)研究所 技術(shù)開發(fā)中心)摘要:本文以實(shí)例形式,講解了OPC通訊協(xié)議分布式COM的具體配置方法。如何進(jìn)行OPC DCOM配置在配置之前,首先我們給出需要搭建的仿真平臺(tái)的示意圖: Matlab仿真器CIMPLICITY接現(xiàn)場(chǎng)PLC通訊協(xié)議OPC ClientOPC ServerDCOM其配置步驟如下:l 在CIMPLICITY中安裝OPC Server并配置l 配置DCOM(并在客戶端創(chuàng)建一個(gè)與主機(jī)中相同的賬戶)l 在Matlab中的OPC 客戶端配置OPC 第一部分 : 在Matlab中OPC的使用方法 (1)1. Underst

2、anding OPC Data Access Servers理解OPC數(shù)據(jù)訪問(wèn)服務(wù)器The OPC Toolbox is an OPC Data Access client application, capable of connecting to any OPC Data Access compliant server. By utilizing the OPC Foundation Data Access standard, the OPC Toolbox does not require any knowledge about the internal configuration and

3、 operation of the OPC server. Instead, the Data Access Standard provides the common mechanism for the server and client to interact with each other. OPC工具箱是一個(gè)OPC數(shù)據(jù)訪問(wèn)客戶端應(yīng)用程序,可以連接到任何一個(gè)OPC 數(shù)據(jù)訪問(wèn)應(yīng)允的服務(wù)器。使用OPC基金會(huì)數(shù)據(jù)訪問(wèn)標(biāo)準(zhǔn),OPC工具箱不需要任何有關(guān)交互式配置和OPC服務(wù)器操作的知識(shí)。取而代之,數(shù)據(jù)訪問(wèn)標(biāo)準(zhǔn),為服務(wù)器和客戶端間相互作用提供公共的機(jī)理。An OPC Data Access Serve

4、r is identified by a unique server ID. The server ID is unique to the computer on which the server is located. A combination of the host name of the server computer, and the server ID of the OPC server, provides a unique identifier for an OPC server on a network of computers. 一個(gè)OPC數(shù)據(jù)訪問(wèn)服務(wù)器被唯一的服務(wù)器ID號(hào)所

5、識(shí)別。服務(wù)器ID號(hào)對(duì)于每一個(gè)定位的計(jì)算機(jī)是唯一的。一個(gè)由服務(wù)器主機(jī)名、OPC服務(wù)器ID的組合,為每一個(gè)在計(jì)算機(jī)網(wǎng)絡(luò)上的OPC服務(wù)器提供唯一的辨識(shí)。1.1. OPC Server Name SpacesOPC服務(wù)器名字空間All OPC servers are required to publish a name space, consisting of an arrangement of the name of every server item (also known as an item ID) associated with that server. The name space pro

6、vides the internal map of every device and location that the server is able to monitor and/or update. 所有的OPC服務(wù)器都需要一個(gè)公布的名字空間,由每個(gè)服務(wù)器項(xiàng)(即項(xiàng)的ID號(hào))的名字空間所組成,這些服務(wù)器項(xiàng)又與服務(wù)器相對(duì)應(yīng)。名字空間為提供每一個(gè)設(shè)備及其定位提供一個(gè)樹狀子圖,可以監(jiān)視和(或)刷新。The following figure shows a portion of the name space on a typical OPC server.下圖所示為一個(gè)典型OPC服務(wù)器名字空間的一部

7、分。Figure 1-1: Example of OPC Server and Name Space圖1-1:OPC服務(wù)器和名字空間的例子A server item represents a value on the OPC server that a client may be interested in. A server item could represent a physical measurement device (such as a temperature sensor), a particular component of a device (such as the set-

8、point for a controller), or a variable or storage location in a supervisory control and data acquisition (SCADA) system. Each server item is uniquely represented on the server by a fully qualified item ID. The fully qualified item ID is usually made up of the path to that server item in the tree, wi

9、th each node name separated by a period character. In Figure 1-1, the fully qualified item ID for the highlighted server item might be Area01.UnitA.FIC01.PV. 一個(gè)服務(wù)器項(xiàng)表示OPC服務(wù)器上的一個(gè)客戶端可能感興趣的值。一個(gè)服務(wù)器可以表示一個(gè)物理檢測(cè)設(shè)備(例如一個(gè)溫度傳感器),一個(gè)設(shè)備的特殊組件(如控制器的設(shè)定點(diǎn)), 在一個(gè)監(jiān)督控制和數(shù)據(jù)采集系統(tǒng)(SCADA)中的變量或局部訪問(wèn)。每一個(gè)服務(wù)器項(xiàng)在服務(wù)器上,由一個(gè)完全許可的ID項(xiàng)唯一表示。完全許

10、可的ID項(xiàng)通常由在樹狀圖中的到服務(wù)項(xiàng)的路徑所組成,每一個(gè)節(jié)點(diǎn)的名字被一個(gè)節(jié)點(diǎn)符所分隔。在圖1-1中,高亮度顯示的完全許可的ID項(xiàng)可能是Area01.UnitA.FIC01.PV。Most OPC servers provide a hierarchical name space, where server items are arranged in a tree-like structure. The tree can contain many different categories (called branch nodes), each with one or more branches

11、and/or leaf nodes. A leaf node contains no other branches, and often represents a specific server Item. The fully qualified item ID of a server item is simply the path' to that leaf node, with a server-dependent separator. 大部分OPC 服務(wù)器提供一個(gè)等級(jí)式的名字空間,其中服務(wù)器項(xiàng)被安排在一個(gè)樹狀結(jié)構(gòu)中。樹狀結(jié)構(gòu)可以包含很多不同的類別(叫做分支節(jié)點(diǎn)),其中的每一個(gè)節(jié)點(diǎn)

12、都有一個(gè)或多個(gè)分支和(或)葉子節(jié)點(diǎn)。Some OPC servers provide only a flat name space, where server items are all arranged in one single group. You could consider a flat name space as a name space containing only leaf nodes. 一些OPC服務(wù)器僅提供一個(gè)平面名字空間,其中很多項(xiàng)都被整理在一個(gè)單獨(dú)的組里。你可以把一個(gè)平面名字空間看作一個(gè)包含很多葉子節(jié)點(diǎn)的名字空間。It is possible to convert a

13、 hierarchical name space into a flat name space. It is not always possible to convert a flat name space into a hierarchical name space. 它可以把一個(gè)等級(jí)式的名字空間轉(zhuǎn)化為一個(gè)平面式的名字空間。但一個(gè)平面式的名字空間卻不一定可以轉(zhuǎn)化為一個(gè)等級(jí)式的名字空間。For information on how to obtain the name space of an OPC server, see Browsing the OPC Server Name Space.

14、如何得到OPC服務(wù)器的名字空間的相關(guān)信息,可以流覽OPC Server Name Space。2. Understanding the OPC Toolbox Object Hierarchy理解OPC工具箱對(duì)象等級(jí)The OPC Toolbox is implemented using three basic objects, designed to help you manage connections to servers and collections of server items. The three objects are arranged in a specific hiera

15、rchy, shown in the following figure.OPC工具箱被裝載在樹狀基礎(chǔ)對(duì)象中,被設(shè)計(jì)來(lái)幫助你管理到服務(wù)器和服務(wù)器項(xiàng)收集的連接。樹狀對(duì)象被組織在一個(gè)特殊的等級(jí)結(jié)構(gòu)中,如下圖所示。OPC Toolbox Object HierarchyOPC工具箱對(duì)象等級(jí)結(jié)構(gòu)1. OPC Data Access Client objects (opcda client objects) represent a specific OPC client instance that can communicate with only one server. You define the s

16、erver using the Host and ServerID properties. The Host property defines the computer on which the server is installed. The ServerID property defines the Program ID (ProgID) of the server, created when the server was installed on that host. The opcda client object acts as a container for multiple gro

17、up objects, and manages the connection to the server, communication with the server, and server name space browsing. OPC數(shù)據(jù)訪問(wèn)客戶端對(duì)象(opcda client objects)表示了一種特殊的OPC客戶端接口可以與唯一的一個(gè)OPC服務(wù)器通訊。你使用主機(jī)和服務(wù)器ID屬性定義一個(gè)服務(wù)器。主機(jī)屬性定義了安裝了服務(wù)器的主機(jī)。服務(wù)器ID屬性定義了服務(wù)器的程序ID(ProgID),當(dāng)服務(wù)器被安裝在主機(jī)上時(shí)被創(chuàng)建。OPC數(shù)據(jù)訪問(wèn)(opcda)客戶端對(duì)象作為一個(gè)多組對(duì)象的容器,管理了到

18、服務(wù)器的連接,服務(wù)器間的通訊和服務(wù)器名字空間的瀏覽。2. Data Access Group objects (dagroup objects) represent containers for one or more server items (data points on the server.) A dagroup object manages how often the items in the group must be read, whether historical item information must be stored, and also manages creatio

19、n and deletion of items. Groups cannot exist without an opcda client object. You create dagroup objects using the addgroup function of an opcda client object. 數(shù)據(jù)訪問(wèn)組對(duì)象(dagroup對(duì)象)表述了一個(gè)或多個(gè)服務(wù)器對(duì)象的容器(服務(wù)器上的數(shù)據(jù)點(diǎn)。)一個(gè)數(shù)據(jù)訪問(wèn)組(dagroup)管理在組里的項(xiàng)被訪問(wèn)得有多頻繁,是否歷史項(xiàng)信息必須被存儲(chǔ),同時(shí)也管理項(xiàng)的創(chuàng)建和刪除。組不能獨(dú)立于opcda服務(wù)端對(duì)象外而存在??梢允褂靡粋€(gè)opcda服務(wù)端對(duì)象的

20、addgroup功能創(chuàng)建dagroup對(duì)象。3. Data Access Item objects (daitem objects) represent server items. Items are defined by an item ID, which uniquely defines that server item in the server's name space. A daitem object has a Value, a Quality, and a TimeStamp, representing the information collected by the s

21、erver from an instrument or data point in a SCADA system. The Value, Quality, and TimeStamp properties represent the information known to the server when the server was last asked to access information from that instrument. 數(shù)據(jù)訪問(wèn)項(xiàng)對(duì)象(daitem對(duì)象)表述了服務(wù)器項(xiàng)。項(xiàng)被項(xiàng)ID定義,僅僅在服務(wù)器名字空間里定義了服務(wù)器項(xiàng)。一個(gè)daitem對(duì)象有一個(gè)值、一個(gè)性質(zhì)和一個(gè)時(shí)間

22、標(biāo)簽,表述了,從一個(gè)設(shè)備或數(shù)據(jù)采集系統(tǒng)(SCADA)中地一個(gè)數(shù)據(jù)點(diǎn),由服務(wù)器收集的信息。值、性質(zhì)和時(shí)間標(biāo)簽屬性,表述了對(duì)于服務(wù)器的信息,知道服務(wù)器最后一個(gè)經(jīng)由設(shè)備訪問(wèn)信息的請(qǐng)求。A dagroup object can only exist "within" an opcda client object. Similarly, a daitem object can only exist within a dagroup object. You create dagroup objects using the addgroup method of an opcda clie

23、nt object. You create daitem objects using the additem method of the dagroup object.一個(gè)dagroup對(duì)象僅能依存于一個(gè)opcda服務(wù)端對(duì)象而存在。類似地,一個(gè)daitem對(duì)象僅能依存于一個(gè)dagroup對(duì)象而存在。可以使用addgroup對(duì)象的additem來(lái)創(chuàng)建daitem對(duì)象。3. How OPC Toolbox Objects Relate to OPC Servers如何把OPC工具箱對(duì)象與OPC服務(wù)器聯(lián)系起來(lái)The OPC Toolbox uses objects to define the ser

24、ver that the client must connect to, and the arrangement of items in groups. The following figure shows the relationship between the OPC Toolbox objects and an OPC server.OPC工具箱使用對(duì)象來(lái)定義客戶必須連接的服務(wù)器,并把項(xiàng)組織在一個(gè)組里。下圖所示為OPC工具箱對(duì)象與OPC服務(wù)器的關(guān)系。Figure 1-2: Relationship Between OPC Toolbox Objects and OPC Server圖1-

25、2:OPC工具箱對(duì)象與OPC服務(wù)器的關(guān)系The opcda client object establishes the connection between the OPC Toolbox and the OPC server, using OPC Data Access Specification standards. The standards are based on Microsoft COM/DCOM interoperability standards. opcda客戶端對(duì)象,使用OPC數(shù)據(jù)訪問(wèn)特別標(biāo)準(zhǔn),建立了OPC工具箱對(duì)象與OPC服務(wù)器之間的連接。標(biāo)準(zhǔn)是基于COM/DCOM可互

26、操作標(biāo)準(zhǔn)的。The daitem objects represent specific server items. Note that a client typically requires only a subset of the entire name space of a server in order to operate effectively. In Figure 1-2, only the PV and SP items of FIC01, and the LIT01 item, are required for that particular group. Another gr

27、oup may only contain a single daitem object, representing a single server item.Daitem對(duì)象表述了特殊服務(wù)器項(xiàng)。注意一個(gè)典型的客戶端僅需求一個(gè)服務(wù)器完整名字空間的子集以便能有效操作。在圖1-2中,僅FIC01的PV和SP項(xiàng),及LIT01項(xiàng),被特殊的組請(qǐng)求。其它組僅可以裝載一個(gè)單獨(dú)的daitem對(duì)象,表述了一個(gè)單獨(dú)的服務(wù)器對(duì)象。Note The dagroup object has no equivalent on the OPC server. However, the server keeps a record

28、 of each group that a client has created, and uses that group name to communicate to the client information about the items in that group.注意:dagroup對(duì)象在OPC服務(wù)器上并不等價(jià)。盡管如此,服務(wù)器保留了一個(gè)客戶端創(chuàng)建的每個(gè)組的紀(jì)錄,并使用組名來(lái)通訊,以獲得有關(guān)組中項(xiàng)的客戶端信息。4. Preparing to Use the OPC Toolbox準(zhǔn)備使用OPC工具箱Before you can communicate with OPC server

29、s on your network, you need to prepare your workstation (and possibly the OPC server host computer) to use the technologies on which the OPC Toolbox is built. These technologies, described in About OPC, allow you to browse for and connect to OPC servers on your network, and allow those OPC servers t

30、o interact with your MATLAB session using the OPC Toolbox. The specific steps are described in the following sections: Installing the OPC Foundation Core Components describes how you can install the OPC Foundation Core Components, which allow you to browse for OPC servers from your workstation. Conf

31、iguring DCOM describes steps that you or your system administrator will need to take on your local workstation and on the OPC server computers to enable interaction between the OPC Toolbox and the OPC servers on those host computers. Installing the Matrikon OPC Simulation Server describes how to dow

32、nload and install the Matrikon OPC Simulation Server. This optional step allows you to run the examples provided in this guide.具體步驟被描述在如下的章節(jié)中:安裝OPC基金會(huì)核組件,允許在你的工作站中瀏覽OPC服務(wù)器。配置DCOM描述了,你和你的系統(tǒng)管理員需要把你的本地工作站及OPC服務(wù)器電腦,在那些主機(jī)中,授權(quán)OPC 工具箱與OPC服務(wù)器的互作用。安裝Matrikon OPC仿真服務(wù)器,描述了如何下載并安裝Matrikon OPC仿真服務(wù)器。這個(gè)可選的步驟允許你啟動(dòng)一

33、個(gè)例子來(lái)提供向?qū)ё饔谩?.1. Installing the OPC Foundation Core Components安裝OPC基金會(huì)核組件The OPC Foundation has provided a set of tools for browsing other computers on your network for OPC servers, and for communicating with the OPC servers. These tools are called the OPC Foundation Core Components, and are shipped

34、with the OPC Toolbox. OPC基金會(huì)已經(jīng)提供了一組工具,在你的網(wǎng)絡(luò)或OPC服務(wù)器上瀏覽其它電腦,用于與OPC服務(wù)器通訊。這些工具叫做OPC基金會(huì)核組件,已經(jīng)和OPC工具箱一起裝載。To install the OPC Foundation Core Components, you use the opcregister function. You can also use the opcregister function to remove or repair the OPC Foundation Core Components installation. Installi

35、ng, repairing, and removing the OPC Foundation Core Components follows the same steps: 1. If you are repairing or removing the OPC Foundation Core Components, make sure that you do not have any OPC Toolbox objects in memory. Use the opcreset function to clear all objects from memory. opcreset;2. Run

36、 opcregister with the action you would like to perform. If you do not supply an option, the function assumes that you want to install the components. Otherwise, use 'repair' to repair an installation (reinstall the files), or 'remove' to remove the components. opcregister('instal

37、l')3. You will be prompted to type Yes to confirm the action you want to perform. You must type Yes exactly as shown, without any quotes. This confirmation question is used to ensure that you acknowledge the action that is about to take place. 4. The OPC Foundation Core Components will be instal

38、led, repaired, or removed from your system. 5. If you receive a warning about having to reboot your computer, you must quit MATLAB and restart your computer for the changes to take effect.Note If you get an error message stating that your version of the Microsoft Installer is incorrect, you will nee

39、d to download the Microsoft Installer 2.0 from the Microsoft Web site (). Microsoft Installer 2.0 ships with Windows XP, and with Windows 2000 Service Pack 2 or later.4.1.1. Configuring DCOM配置DCOMDCOM is a client-server based architecture for enabling communication between two applications running o

40、n distributed computers. The OPC Data Access Specification utilizes DCOM for communication between the OPC Client (for example, the OPC Toolbox) and the OPC server. In order to successfully use DCOM, those two computers must share a common security configuration so that the two applications are gran

41、ted the necessary rights to communicate with each other. DCOM是一個(gè)架構(gòu)上的client-server,它允許運(yùn)行在分布式電腦上的兩個(gè)應(yīng)用程序之間實(shí)現(xiàn)通訊。OPC特定數(shù)據(jù)訪問(wèn)(OPC Data Access Specification)使用DCOM實(shí)現(xiàn)兩個(gè) OPC Client之間的通訊。例如,OPC工具箱和OPC server之間。為成功地使用DCOM,這兩個(gè)電腦必須共享一個(gè)公共安全配置,以便保證兩個(gè)應(yīng)用程序之間通訊的必要權(quán)利。This section describes two typical DCOM configuration

42、 options to allow the OPC Toolbox to work. Other DCOM options may provide sufficient permissions for the OPC Toolbox to work with an OPC server; the options described here are known to work with tested vendors' OPC servers. 這一節(jié)描述兩個(gè)典型的DCOM配置選項(xiàng),允許OPC工具箱可以工作。其它DCOM選項(xiàng),可以提供足夠的特許使OPC工具箱與一個(gè) OPC server工

43、作。在這里描述的選項(xiàng)被用以與測(cè)試過(guò)的vendors' OPC servers一起工作。There are two configuration types described in this section: 在這一節(jié)中我們給出兩個(gè)配置類型:· Security between the client and server negotiated on a dedicated named user basis. You do not have to be logged in as the named user in order to use this mechanism; all

44、communications between the client and the server are performed using the dedicated named user, independently of the user making the OPC requests. 在一個(gè)特定命名用戶基礎(chǔ)上的client和server間的安全性。不需要以用戶名登陸,來(lái)使用這個(gè)機(jī)制。所有在client與server間的通訊,如同使用特定命名用戶名來(lái)工作,獨(dú)立于使用OPC請(qǐng)求。· No security between the client and server. Use thi

45、s option only if you are connecting to an OPC server on a dedicated, private network. This configuration option has been known to cause some services in Microsoft Windows to fail. 在client與server間沒(méi)有安全性。使用這個(gè)選項(xiàng)僅當(dāng),你在一個(gè)特定的、私有的網(wǎng)絡(luò)上連接一個(gè)OPC server。這個(gè)配置選項(xiàng)引起在Microsoft Windows中的服務(wù)失敗。You should use the named use

46、r configuration, unless your system administrator indicates that no security is required for OPC access.除非你的系統(tǒng)管理員指出OPC訪問(wèn)不需要安全性;否則你必須使用命名的用戶配置。Caution If your OPC server software comes with DCOM setup guidelines, you should follow the instructions provided by the OPC server vendor. The guidelines pro

47、vided in this section are generic and may not suit your specific network and security model.擔(dān)心:如果你的OPC服務(wù)器軟件和DCOM安裝準(zhǔn)則一起,你必須遵循由OPC服務(wù)器銷售員提供的指導(dǎo)。在這一節(jié)中提供的準(zhǔn)則通常是一般的情況,可能不適于你特殊的網(wǎng)絡(luò)或安全模型。4.1.2. Configuring DCOM to Use Named User Security使用命名的用戶安全性配置DCOMNote The following instructions apply to the Windows 2000

48、operating system. Users of Windows NT and Windows XP should be able to adapt these instructions in order to configure DCOM on their systems.注意:以下準(zhǔn)則是為Windows 2000操作系統(tǒng)提供的。Windows NT和Windows XP的用戶必須能適應(yīng)這些準(zhǔn)則,以便在他們的系統(tǒng)中配置DCOM。In order to configure DCOM to use named user security, you will have to ensure th

49、at both the server machine and client machine have a common user who is granted DCOM access rights on both the server and client machines. You should consult the following sections for information on configuring each machine: 為命名的用戶安全性配置DCOM,你必須同時(shí)保證服務(wù)器機(jī)器與客戶端機(jī)器有一個(gè)公共的用戶。而這個(gè)公共用戶,他保證服務(wù)器機(jī)器與客戶端機(jī)器上DCOM訪問(wèn)權(quán)。

50、你可以參看隨后一節(jié)為每一臺(tái)機(jī)器配置的信息。· OPC server machine configuration provides the steps that you must perform on each of the machines providing OPC servers. · OPC 服務(wù)器機(jī)器配置提供的步驟,你必須在每一臺(tái)有OPC服務(wù)器的機(jī)器上實(shí)現(xiàn)。· Client machine configuration provides the steps that you must perform on the machine that will run

51、MATLAB and the OPC Toolbox.· 客戶端機(jī)器配置提供的步驟,你必須在每一臺(tái)要運(yùn)行MATLAB和OPC工具箱的機(jī)器上實(shí)現(xiàn)。OPC server machine configuration. On the machines hosting the OPC servers, perform the following steps: OPC 服務(wù)器機(jī)器配置。OPC服務(wù)器主機(jī)上,應(yīng)實(shí)現(xiàn)的步驟如下:1. Create a new local user. The name used in these instructions is "opc" but y

52、ou can choose any name you like, as long as you remain consistent throughout these instructions. 創(chuàng)建一個(gè)新的本地用戶。在這些設(shè)備中使用的名字是“opc”,但你可以選擇任何你喜歡的名字,只要在所有的設(shè)備中保持一致就行。2. Click Start and choose Run. At the prompt, type 點(diǎn)擊開始選擇運(yùn)行。在提示中,鍵入dcomcnfg3. Select the OPC server from the list provided and click on Propert

53、ies to view the properties. 從提供的列表中選擇OPC服務(wù)器,點(diǎn)擊屬性來(lái)看屬性。4. Under the General tab, select Authentication Level and choose Connect. 在常規(guī)標(biāo)簽中,選擇身份驗(yàn)證級(jí)別,并選擇連接。5. Under the Identity tab choose the radio button labeled This User. Specify the username as "opc" and provide the password for that user. 在識(shí)

54、別標(biāo)簽里,選擇這個(gè)用戶。并指明用戶名為“opc”及其密碼。6. If the OPC server runs as a service, make sure that the service runs as the "opc" user (created in Step 1) and not as the system account. 如果OPC服務(wù)器以一個(gè)服務(wù)器啟動(dòng),確定以在第一步中創(chuàng)建的用戶名啟動(dòng)“opc”,而不是系統(tǒng)帳戶。7. Repeat Steps 3-6 for each OPC server installed on the server machine.

55、8. 為每一部安裝了OPC服務(wù)端的服務(wù)器重復(fù)3-6步。9. In the Default Security tab in the Distributed COM Configuration Properties window, ensure that the "opc" user is granted launch permissions and access permissions.在分布式COM配置屬性窗口的默認(rèn)安全標(biāo)簽中,確定“opc”用戶被允許啟動(dòng)并訪問(wèn)許可。Client machine configuration. On the machine(s) that w

56、ill be running MATLAB and the OPC Toolbox, perform the following steps: 客戶端機(jī)器配置。在將要運(yùn)行MATLAB和OPC工具箱的機(jī)器上,執(zhí)行下列步驟:1. On the client machine(s), create the identical local user with the same name and password permissions as you set up in Step 1 of the OPC server machine configuration. 在客戶端機(jī)器,使用相同的名字和密碼許可創(chuàng)

57、建識(shí)別本地用戶,如OPC服務(wù)器機(jī)器配置的第一步。2. Run dcomcnfg (see Step 2 of the OPC server machine configuration) and select the Default Security tab. 運(yùn)行dcomcnfg(參看OPC服務(wù)器機(jī)器配置的第二步),選擇默認(rèn)安全機(jī)制標(biāo)簽。3. Ensure that the "opc" user created in Step 1 is granted launch permissions and access permissions.保證在第一部中創(chuàng)建的“opc”用戶被允

58、許啟動(dòng)并訪問(wèn)許可。4.1.3. Configuring DCOM to Use No Security為不使用安全性配置DCOMCaution You should not use this option if you are not in a completely trusted network. Turning off DCOM security means that any user on the network can launch any COM object on your local machine. Consult with your network administrator before following these instructions.當(dāng)心:如果不是在完全受信任的網(wǎng)絡(luò)中,你不可使用這個(gè)選項(xiàng)。關(guān)閉DCOM安全性,意味著任何在網(wǎng)絡(luò)上的用戶可以在你的本地機(jī)器上,啟動(dòng)任何COM對(duì)象。在執(zhí)行下列條例前,咨詢你的網(wǎng)絡(luò)管理員。1. On the server machine, click Start and choose Run. At the prompt, type 在服務(wù)器機(jī)器上,點(diǎn)擊開始選擇運(yùn)

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論