The following tables list the members exposed by AppPlugin.
Name | Description | |
---|---|---|
![]() | AppPlugin Constructor |
Name | Description | |
---|---|---|
![]() | Browse | Virtual mode browse handling. Called only from the Professional edition generic server. OPC DA V3 Browse method to browse the specified branch. This method is called when the server is configured for virtual mode browsing and a client calls the OPC DA V3 browse function. This method handles only the item browsing part of the OPC DA browse function. The GetItemProperties method is called to get the item's properties information. |
![]() | BrowseChangePosition | Virtual mode browse handling. Called only from the Professional edition generic server when BrowseMode VIRTUAL is configured. Change the current browse branch to the specified branch in virtual address space. |
![]() | BrowseGetFullItemID | Virtual mode browse handling. Called only from the Professional edition generic server when BrowseMode VIRTUAL is configured. This method returns the fully qualified name of the specified item in the current branch in the virtual address space. This name is used to add the item to the real address space. This method has to be implemented according the OPC DA V2 specification. |
![]() | BrowseItemIDs | Virtual mode browse handling. Called only from the Professional edition generic server when BrowseMode VIRTUAL is configured. This method browses the items in the current branch of the virtual address space. It has to be implemented according the OPC DA V2 specification. |
![]() | CreateServerItems | This method is called from the generic server at the startup, when the first client connects. All items supported by the server need to be defined by calling the AddItem callback method for each item. The Item IDs are fully qualified names ( e.g. Dev1.Chn5.Temp ) The branch separator character used in the fully qualified item name must match the separator character defined in the GetServerParameters method. |
![]() | DefineCallbacks | This method is called from the generic server at startup. It passes the callback methods supported by the generic server. These callback methods can be called anytime to exchange data with the generic server. The DefineCallbacks method must not be overloaded or changed. The default implementation stores the delegates for later callbacks. (Inherited from NSPlugin.GenericServer) |
![]() | DefineCallbacks2 | This method is called from the professional edition generic server V5.1 an newer at startup. It passes an additional callback methods supported by the professional edition generic server. The callback method can be called anytime to exchange data with the generic server. The DefineCallbacks2 method must not be overloaded or changed. The default implementation stores the delegates for later callbacks. (Inherited from NSPlugin.GenericServer) |
![]() | GetAEServerRegistryDef | Registration definitions for the Alarm/Event Server Option. This method is called from the generic server at startup for normal operation or for registration. It provides server registry information for this application required for DCOM registration. The DANSrv registers the OPC server accordingly. The XDARap XML DA server ignores most of the registration information. The default implementation in IGeneric.cs/vb initializes default values and tries to read the configuration definitions from the file DANSrv.exe.config respectively web.config for XML DA servers. The method can be replaced by defining an overload in ServerAdapt.cs/vb. |
![]() | GetItemProperties | Virtual mode browse handling. Called only from the Professional edition generic server. Returns the the values of the requested properties for one item. This method is called in virtual browse mode for items that are not yet added to the generic cache. |
![]() | GetModeDefinitions | Optional method. Called from DANSrv/XDARap Professional Edition generic server only. The default method can be replaced by defining an overload in ServerAdapt.cs/vb. The definitions can be made in the code to prevent them from being changed without a recompilation. |
![]() | GetPropertyValue | Returns the values of the requested custom properties of the requested item. This method is not called for the OPC standard properties 1..6. These are handled in the generic server. |
![]() | GetServerParameters | This method is called from the generic server at startup, when the first client connects. The default method can be replaced by defining a method overload in ServerAdapt.cs/vb. The definitions can be made in the code to protect them from being changed without a recompilation. |
![]() | GetServerRegistryDef | This method is called from the generic server at startup for normal operation or for registration. It provides server registry information for this application required for DCOM registration. The DANSrv registers the OPC server accordingly. The XDARap XML DA server ignores most of the registration information. The default implementation in IGeneric.cs/vb initializes default values and tries to read the configuration definitions from the file DANSrv.exe.config respectively web.config for XML DA servers. The method can be replaced by defining an overload in ServerAdapt.cs/vb. |
![]() | GetVersion | |
![]() | LogEvent | |
![]() | LookupItemID | |
![]() | QueryProperties | Query the custom item properties defined for the specified item. The OPC standard properties 1..6 should not be included. They are handled in the generic server. |
![]() | RefreshItems | Refresh the items listed in the appHandles array in the cache. This method is called when a client executes a read from device or a read with maxAge argument |
![]() | ServerInstancesChange | This method is called when: a) A client connects and therefore a new server instance has to be created. If the method returns an error code then no instance is created and the client connect is failed. b) A server instance is terminating (a client disconnects). This method cannot prevent this. The call is to inform the plugin of the status change. |
![]() | ShutdownSignal | This method is called from the generic server when a Shutdown is executed. To ensure proper process shutdown, any communication channels should be closed and all threads terminated before this method returns. |
![]() | ValidateItems | Overloaded. DEPRECIATED! This overload is is only called if the overload with the client handle argument is not defined. This method is called when the client accesses items that do not yet exist in the server's cache. OPC DA V2 clients typically first call AddItems() or ValidateItems(). OPC DA V3 client may access items directly using the ItemIO read/write functions. In XML DA the calls directly specify the item ID. If ValidateMode 'ALWAYS' is configured then the method is called for each client call, even if the item exists in the server cache. The access can be denied for a specific client by returning an error code in err[] for such items. This module can: - add the item to the servers real address space and return success. For each item to be added the callback method 'AddItem' has to be called. - return error for all or some items |
![]() | WriteItems | Overloaded. DEPRECIATED! This overload is is only called if the overload with the client handle argument is not defined. This method is called when a client executes a 'write' server call. The items specified in the appHandles array need to be written to the device. The cache update handling depends on the configuration parameter writeCacheUpdateMode For 0 (Generic): The cache is updated in the generic server after returning from the customization WiteItems method. Items with write error are not updated in the cache. For 1 (Custom): The customization module needs to update the cache by executing the SetItemValue callback method for each written item. The generic server does not update the cache. |