Configuration file

dOPC XGate's configuration is a XML file which makes it easy to configure dOPC XGate.

The file itself is named dOPCXGate.cfg and is located in the dOPC XGate main folder which you will normally find in the folder Kassl in your Programs folder.

You can edit the file with a normal editor or by using Edit Configuration from dOPC XGate's Context Menu.

Should you by chance have deleted the file's content so that dOPC XGate won't run properly, simply delete dOPCXGate.cfg and dOPC XGate will create the file again while registering OPC COM servers.

The content of the dOPCXGate.cfg should look similar to this:

<?xml version="1.0"?>
<options version="1.0">
<port>80</port>
<ssl>0</ssl>
<sslpass>sslpass</sslpass>
<log>0</log>
<keep-alive>1</keep-alive>
<ignoretimeout>1</ignoretimeout>

<serverlist>

<server>
<name>Matrikon.OPC.Simulation.1</name>
<clsid>{F8582CF2-88FB-11D0-B850-00C0F0104305}</clsid>
<computer></computer>
<readonly>0</readonly>
<autoload>0</autoload>
<active>1</active>
<timeout>300</timeout>
<connectdelay>300</connectdelay>
<readfromcache>0</readfromcache>
</server>

<server>
<name>Test.OPC.Server</name>
<clsid>{C0EA8631-8F70-4622-A097-28BCFCBC9AF5}</clsid>
<computer></computer>
<readonly>0</readonly>
<autoload>0</autoload>
<active>1</active>
<timeout>0</timeout>
<connectdelay>0</connectdelay>
<readfromcache>0</readfromcache>
</server>

</serverlist>
</options>

Within the serverlist you can see how every single server is listed.

For dOPC XGate:
port
Use 80 for normal servers and 443 for SSL server or the port number your server uses.
ssl
1 or 0 (on/off) to use dOPC XGate as secure web server. This option is currently not supported
sslpass
SSL password (currently not supported)
log
1 or 0 (on/off) when on all XML requests and responses are save to log file (dOPCXGateYY-MM-DD.log)
Please set log only to on for testing.
keep-alive
1 or 0 (on/off) when off a new connection has to be astablished for every request
ignoretimeout
dOPC XGate ignores the timeout command from the OPC XML DA protocol
For each listet server:
name
Name/URL of the server. (http://localhost:8080/opcxmlda/name)
clsid
Class ID of the server
computer
If the server is not local enter the computer name or IP address
readonly
1 or 0 (on/off) when on users can only read OPC Items
autoload
1 or 0 (on/off) when on dOPC XGate tries to connect to this server on startup otherwise only on a request
active
1 or 0 (on/off) set this to off when this server should be off for OPC XML clients
timeout
A value > 0 means dOPC XGate automatically disconnect OPC server after the specified time (seconds) of inactivity.
connectdelay
Several OPC servers need a little bit time after they are connected before they are ready to be called. If there is problem with OPC server access then define a delay of e.g. 500 ms.
readfromcache
Allows to specify if READ operations performed on CACHE= 1 or DEVICE = 0. In most cases, access to CACHE data is expected to be fast while access to the DEVICE is expected to be slow