Configuring the Server

The OPC server can retrieve data from the AggreGate server and the AggreGate agent.

Configuring the AggreGate agent

First, let's consider for example the agent configuration as a data source. For this, use any TPS based on TiOS. Upload the firmware Official TPS Demo Application with the help of TIDE application.

When the firmware is uploaded, set a password and adjust the IP address if necessary. If you have any difficulties, please refer to the documentation for Official TPS Demo Application .

Using your favorite browser, go to TPS IP address and enter your password:

tps-login

Go to the AggreGate tab and set the connection settings (your PC IP address and port 6481 as a default for agents in the OPC Server):

tps-agggregate-settings

Press Save , then Reload .

After that, press Start —> All Programs —> Tibbo OPC Server —> Tibbo OPC Server Configurator . Press the button Add Agent... , enter agent parameters and press OK :

agent-settngs

If the connection is successful, the left panel displays the tree of the agent variables.

agent-tree

Add the necessary variables using the «drag-and-drop» feature, double-click on the tab or Add This Tag in the tag context menu in the tree panel:

agent-configurator

The Alias is the name of the tag in OPC. Value field applies only to the variables in the table. The scalar value of the specified column is transferred to OPC. Otherwise, the entire table is converted to a string.

In the above-mentioned example, the I/O variables have the table value. For the variable I0 we get the Enabled field , for the variable I1 we get the Set Low field. The variable I10 is converted into the string.

The Polling parameter sets the frequency of data updates (in milliseconds).

If Sync option is activated (set to True ), data update occurs when changes come from the data source asynchronously. However, data is pushed to the OPC clients only once in a polling period.

In a synchronous mode, the OPC server automatically requests data once in a polling period.

The Path , R , W and Type shows respectively the AggreGate variable context path, read/write modes and the data type. These fields are for information only and are not intended for editing. Other parameters can be edited (double click on the tag or select Properties in the tag context menu):

tag-properties

To remove the tag, you can use the Delete hot button or context menu.

To save any changes, press the Save Project button.

The Settings button allows to set default parameters and establish the incoming port for agents connection:

default-settings

Configuring the AggreGate server

Now let's consider for example adding the AggreGate server as a data source. To add the AggreGate server variables, press the button Add Agent... , enter server parameters and press OK :

server-settings

Rules for adding server variables adding and tags manipulation are similar to the functionality of the agent described above:

server-configurator

DCOM fine-tuning

Some OPC clients require the server to run with a specific system user, or need some additional security settings. For fine-tuning DCOM security, use Windows Management console (press Win+R and enter dcomcnfg in Windows x32 or mmc comexp.msc /32 in Windows x64 bit edition):

dcom-settings

Choose one by one: Console Root —> Component Service —> Computers —> My Computer —> DCOM Config —> AggreGate OPC Server —> Properties :

dcom

Set up the settings needed:

dcom-user