[OPCSERVER]

Settings for the OPC server

[OPCSERVER] DEFAULTTRACEFILE

Type
string
This entry defines the file in which debug messages are to be logged.

Example:
[OPCSERVER]
STOPWITHLASTCLIENT = 0
DEFAULTTRACEFILE = "C:/TEMP/MeinLOG.log"
TRACEFILE = 1
TRACELEVEL = 8

[OPCSERVER] IgnoreTimestampChange

Type
bool
Default
1
Range
0|1
In the event of a timestamp change of an item, which is transferred from the OPC server, this change is ignored. Only a change of the quality or value lead to a transfer. This is the default behavior (IgnoreTimestampChange = 1). If this config entry is set to 0, the OPC server sends also items in the event of a timestamp change.

[OPCSERVER] OVERWRITELOGFILE

Type
bool
Default
1
Range
0|1
Allows a long tracing of the OPC server. This means the log file is overwritten and the file is copied before overwriting and is saved with the ending "bak" (behavior as so far). With "OVERWRITELOGFILE = 0" the trace file is changed and is saved with the endings ".0", ".1", ".2" etc. whereas the file with highest ending is the current trace file. Thus, you do not have to copy the log file anymore which can take longer in case of big "maxLogFileSize". Note that if you have problems with old values (if you should receive old values instead of new values from the OPC server) use this config entry.

[OPCSERVER] STOPWITHLASTCLIENT

Type
int
Default
1
Range
0|1
Defines whether the WinCC OA OPC server is stopped automatically after terminating a OPC client. If several clients have a connection to the OPC server, the server is stopped after terminating the last client.

[OPCSERVER] SubscribeOnUse

Type
bool
Default
0
Range
0|1
Specifies if the OPC server subscribes all items immediately and permanent at the Event manager (Value 0) or dynamically if an item is added by an OPC client. The latter mode is useful if the address space is very big and the clients are always interested in a part of the items only. This saves "dpConnect"-registrations at Event Manager.

[OPCSERVER] TRACEFILE

Type
int
Default
0
Range
0|1
Defines whether debug messages are to be written in the file specified by DEFAULTTRACEFILE (1 = yes).

[OPCSERVER] TRACELEVEL

Type
int
Default
0
Range
0..31
Defines which debug messages are to be logged. The tracelevel is the sum of the following values:
  • 1: Saves successful calls in the log file
  • 2: Saves information messages in the log file
  • 4: Saves warnings in the log file
  • 8: Saves errors in the log file
  • 16: Saves other messages in the log file

Example:
TRACELEVEL = 8 //saves just error messages
TRACELEVEL = 12 //saves errors and warnings (4+8)
TRACELEVEL = 31 //saves all messages (1+2+4+8+16)

Note:
If the keywords or values are written wrongly in the config file (e.g. missing "
at the beginning of the path with DEFAULTTRACEFILE) an error message takes place
in the Log Viewer and the OPC server does not start.

[OPCSERVER] Vendor

Type
string
Default
ETM professional control GmbH
Allows to specify an arbitrary vendor name of the OPC DA server.