Logging

Previous chapterNext chapter Show allShow all    Hide allHide all

The driver allows activating a configurable logging of the communication. The logged data is written to the file <name>_LOG.TXT in the project directory and can be read with any text editor.

Logging is activated by creating a section in the project.ini that has the driver name as a name and contains the following entries:

LOG_FLAGS0

Allows to configure the depth of the logging.

Bit/Numerical

Meaning

1/1

Log errors. Always active

2/2

Warnings.

3 /4

Add item will be logged

4/8

Add group will be logged.

5/16

Server starts will be logged.

6/32

Value changes will be logged.

7/64

Item activation will be logged.

8/128

Item deactivation will be logged.

9/256

Event DataChange will be logged.

10/512

Write will be logged.

The sum of the numerical values is the value for 'LOG_FLAGS0='; e.g.:

LOG_FLAGS0=65535

Activates logging for all.

LOGON

Allows to globally switch logging on(1) or off(0); e.g.:

LOGON=1

Complete entry in the project.ini

[OPC Client V2.0]

LOG_FLAGS0=65535

LOGON=1

info Info

For the entry between the brackets [ ] you have to use the driver name. You can find it in the driver properties. Select the driver in the Editor, under Properties – General – Description you will find the driver name.