GenBroker

GenBroker puts GENESIS64 in communication with legacy OPC servers residing on other machines in the same network or the internet. So you must set up and use GenBroker if you are talking to a legacy OPC server. You don’t need to use GenBroker if you are talking to OPC UA servers.

 

GenBroker is a high-speed communications utility you can use to designate network communications for a networked set of workstations. Communications established using GenBroker are used for all GENESIS64 applications. Employing a network of applications, GenBroker uses TCP/IP and SOAP/XML channels to achieve real-time and secure communications between Web browser clients and WebHMI servers. GenBroker technology simplifies the setup of Internet and intranet communications and provides Internet connectivity and operation with firewalls and routers. The basic philosophy of GenBroker communications lies in its use of reliable Request/Response protocols: The client sends requests, and the servers reply to them.

 

Using GenClient/GenBroker TCP communication gives you the following advantages:

The GenClient/GenBroker architecture consists of two main parts: GenClient.dll and GenBroker.exe. The GenClient.dll resides on the client side. It can communicate directly with OPC servers (using the traditional DCOM method), or it can establish a connection with GenBroker, which then communicates with the OPC servers on behalf of the client. Unlike DCOM, GenBroker can communicate over the Internet.

 

For example, a thin client sends a request over the internet to the WebHMI server, using GenBroker to transmit the request. The WebHMI server's response to the request is also returned via GenBroker. But if the thin client's request requires a response from a remote server in a local area network (LAN), WebHMI could be configured to use DCOM. The machine would use DCOM to return the response to the WebHMI server, which then would use GenBroker to relay the response to the thin client.

 

GenBroker uses the following basic methods for networked communications:

Note. In order to use SOAP/XML channels in GenBroker in GENESIS64 , you must first install Microsoft Internet Information Server (IIS)7.0  on the GenBroker Server node. The SOAP/XML server can be running only on Windows server or client. SOAP/XML support files are included in the GENESIS64 installation. GenBroker over SOAP/XML uses a SOAP/XML ISAPI listener that uses a WSDL (Web Services Description Language) file.

 

Most channels, direct or indirect, translate the OPC COM calls into one of two protocols and transmit them to the remote node, where GenBroker can execute them. (The OPC Direct channel is the only exception; it uses OPC calls.) Protocols that every channel can use for these transmissions are:

GenBroker Configuration Properties

You configure GenBroker properties using the FrameWorX Server, as following:

  1. Click on Start > All Programs > ICONICS > Tools > FrameWorX Server Configurator.

  2. In the Project Explorer, expand Classic OPC, then double-click GenBroker. The GenBroker Configuration Form appears, as shown below.

GenBroker Configuration Connections Tab

 

Refer to the following topics for descriptions of GenBroker's tabs:

GenBroker Miscellaneous Tab

The Advanced tab's Miscellaneous sub-tab, shown below, contains settings for the client-side cache and its refresh rates and synchronization feature.

 

GenBroker Miscellaneous Tab

 

The Default button restores all default property settings to their installation default values.

The Tag Retry Rate applies to tags where a subscription could not be established for any reason.

 

Tags that return bad quality (through a previously established subscription) are not considered "failed" for the Tag Retry Rate. They don’t have to be "retried". The server will just send their 'good' value as soon as it becomes available.

 

A tag may be "failed" in these cases:

• The node or server it belongs to is not available (e.g. due to network disconnection) or does not exist.

• The server returns errors when the client tries to subscribe to the tag.

 

When a tag is "failed", it still might exist in the future (i.e., it makes sense to repeatedly try to subscribe to it - a computer may need to be turned on, an OPC server's configuration may change, etc.).

 

The tags with invalid syntax are not "failed" in this sense, because they can never become OK.

 

If a device is in "commfail" but the OPC server lets us create a subscription to the tag (and probably returns the "bad - communication failure" quality), then the Tag Retry Rate will not apply. If the OPC server itself has failed, and no subscription is made or the pre-made subscription is broken, then the Tag Retry Rate will come into effect.

 

The Tag Retry Rate is independent of the polling rate for the tag. Most systems have fast polling rates. Accordingly, a fast Tag Retry Rate for failed tags is reasonable in these types of situations. It allows for fast recovery in situations where the OPC server has only briefly dropped offline, or is slow to respond to an initial request. However, for situations where you need a much slower rate, the Tag Retry Rate can be configured to be something slower.

Back to Top (GenBroker Overview)

 

GenBroker OPC Engine Tab

The Advanced tab's OPC Engine sub-tab contains settings for allowing the use of different OPC versions, setting OPC DA group names, and some additional queue and status settings. The OPC Engine offers the following options:

 

GenBroker OPC Engine Tab

 

The Default button restores all default property settings to their installation default values.

Note: Group names are not needed for normal operation. However, some servers may require them for some specific purposes (for example, for security).

Back to Top (GenBroker Overview)

 

GenBroker Optimization Tab

The Advanced tab's Optimization sub-tab, shown below, controls update and cache items which can be helpful in adjusting the performance of the service.

 

GenBroker Optimization Tab

 

The Default button restores all default property settings to their installation default values.

Caching OPC items is optional, and you can switch this feature on and off. To your advantage, it improves the speed of screen switching. Caching takes place for both OPC Direct operation and operation via GenBroker channels. If you use caching, in the Cache Size specify the maximum number of items to be stored in the cache.  If you like, put a check mark in the Remove Items Older Than (X) Seconds check box, then define how long (in seconds) the items should be kept in the cache. When Deactivate Cached Items is checked, the items are deactivated when put into the cache, thereby decreasing the number of updates coming in from the OPC servers (otherwise the items in the cache are also updated).

None: Turns enumeration off so the attributes are not obtained. When ranges are not required, this could improve display switching speed.

Standard: Enumerates all items in the current OPC group. When an item is added to a group (for example, an item in a pop-up window), the whole group is enumerated again.

Intelligent: A separate group is created for the newly added items, and the new group is enumerated and then removed. Intelligent enumeration only enumerates the newly added items, but it uses some overhead to create and destroy the auxiliary group. Standard enumeration does not have this overhead, but it also enumerates items already on the display. If your users have large displays with pop-up windows, intelligent enumeration is typically faster. But if your users just switch between displays, standard enumeration is faster because there is no overhead.

Back to Top (GenBroker Overview)

 

GenBroker Connection Tab

The Advanced tab's Connection sub-tab, shown below, controls different communications properties for each of the defined connections.

 

GenBroker Connection Tab

 

The Default button restores all default property settings to their installation default values.

 

The Connection sub-tab offers the following options:

The frequency of the test for remote servers can be different than the frequency for local servers. Specify the test rate for the local OPC server on the left, and for the remote OPC server on the right. Note that a remote server is actually local for a GenBroker that is located remotely but on the same node as the server.

The frequency of the test for remote servers can be different than the frequency for local servers. Specify the time out rate for the local OPC server on the left, and for the remote OPC server on the right. Note that a remote server is actually local for a GenBroker that is located remotely but on the same node as the server.  

If a server’s values are typically constant, it is acceptable for the server not to send updates. However, if the server doesn’t send an update inside the time frame specified in the Minimum Callback Rate option, the client can force the server to send an update so that client knows the server and the connection are still alive. You can choose one of the Force options (below) so that the server must refresh even the constant values. (Make sure you choose no more than one; choosing more than one generates additional, unnecessary traffic.)

Re-advise (the default): The client re-creates the callback connection.

Re-create OPC Group: The client destroys the group the callback connection is bound to, then re-creates the group along with the callback connection.

Re-Create Server: The client destroys the whole server, as when the whole server dies.

 

Back to Top (GenBroker Overview)