【正文】
000 /s) ? GEFanuc Intellution iHistorian ? Relatively new to market. Product created with Mountain Systems ? Causing a stir for OSIsoft, AspenTech on pricing ? Some other players ? Honeywell (POMS) Uniformance ? Invensys (Wonderware) IndustrialSQL ? Rockwell Automation (RSBizWare) Historian ? Siemens (WinCC) Historian (bases on MS SQL Server) 歷史數(shù)據(jù)的處理 history database field data operator actions corrections log anisation application SQL OPC collector OPC HDA ODBC/SQL and OPC HDA are plementary HDA: Historical Data Access Field device OPC HDA Server HDA Clients independent processes history database Field device OPC DA Server proprietary data acquisition。000 actions/ s, up to 10039。E presents an interface that allows the client to browse the server to explore its structure, with the methods: BrowseOPCArea ChangeBrowsePosition (up, down, root) GetQualifiedAreaName GetQualifiedSourceName There is no GetQualifiedItemID, since the condition name is known from the source. 事件的種類 OPC AE defines three kinds of events: 1. simple: process control system related events (change of a boolean variable) 2. conditionrelated: notifies a change of an alarm condition (CLEARED, ACKNOWLEDGED), (see later) 3. trackingrelated: origin outside of the process (. operator intervention) Event identification Tank1 Tank2 Tank3 event HiLevelCond HiLevelCond An event is identified by its source (the object that generates the event. . Tank1) and the event name (which can be the same as in another object, . HiLevelCond) event HiLevelCond event event LoLevelCond LoLevelCond event LOLevelCond event Event PLC Function block event signal (boolean expression) is an external signal to be used ? signal name for external signal (20 characters) name of the source (30 characters) message (60 characters) Simple Event function blocks in a controller are used to signal a simple event. The event is identified by the concatenation of the name of the containing object (SrcName) and the event handling function block name (here: SimpleEventDetector_1). The source name can be that of the containing code module (owner object), assuming that a plant object is represented by a code module. name of the event Events Notification Level Switch OPC AE Server timestamp AE Client event notification Tank1LevelHigh_SimpleEvent (source, timestamp, message, severity, category) Event FB Controller Plant Tank1 message queue Events Time Stamp There are three places where events can be timestamped: at the device that originally produced the data (external event lowlevel event) allowing SequenceOfEvents with a high resolution, down to microseconds at the controller, (internal event) using the controller39。 Events Interface gives access to the OPC Event server, allowing to: browse the OPC Aamp。 delete this object (was created by New) Set MyServer = Nothing To speed up connection/disconnection, an OPC server remembers its groups and clients when a client disconnects. To do this, an OPC server initialises its structures with a client counter of 2, instead of 1. Therefore, it is imperative to shut down explicitly the server, otherwise links will subside (and you will have kill the server to clear them). OPC DA的類庫 The OPC DA specification is not formal, conformance can hardly be checked against this document. To ensure that the standard is observed, the OPC foundation distributes on its website the DLLs (, op_ps,…) that contain the type libraries to access the OPC server. The vendors are not pelled to implement all features. For instance, the description of the variables is seldom used. Calling unimplemented functions causes exceptions that must be caught in Visual Basic with On Error … statements. There exist three versions of DA, , and , that behave differently, however, older servers do not have a property indicating which version they support. OPC AE 接口標(biāo)準(zhǔn) ? AE 相關(guān) 概念 ? AE的組態(tài) ? AE的目的 ? AE 通信模式 ? 事件的種類 ? 報(bào)警的條件 ? 報(bào)警確認(rèn) AE 相關(guān) 概念 An event is a general change of state that is relevant to the OPC server. An event signal a change: 1) in the field device (production started) 2) in the OPC server (alarm acknowledged) 3) in the application (operator action) An alarm is a state of the process that requires attention and is relevant to the OPC server. An alarm is represented by an alarm condition, (or short: condition), a state machine indicating if the alarm has been enabled, triggered or acknowledged. AE相關(guān)概念 An event or an alarm does not transmit analogue process values, but they transmit information about their origin, the time of their occurrence and a message intended for a human operator. Alarms and events may not get lost (contrarily to OPC DA, which does not guarantee pleteness) Alarms and event are precisely timestamped by their source, (contrarily to process variables, which are timestamped by the receiving OPC server). controller OPC AE Client . event logger OPC AE Server . Ether controllers field devices OPC AE Client . alarm printer OPC Aamp。 create a dummy server object Set myGroups = Nothing 39。 quit End Sub This event signals to the client that the server shut down. The client must declare its server ?WithEvents“ and provide the corresponding event Subroutine This should stop all actions, otherwise exceptions will occur. OPC 的斷開 Private Sub ServerShutdown Dim dummyServer As OPCServer Dim Servers As Variant 39。 define the event .. .. Private Sub Myserver_ServerShutDown(ByVal Reason As Str