Home

aliazzz
There is a newer version of this page. You can find it here.

Project Members:

Download DebugLogger

DebugLogger

CodesysV23 version by Sebastian Rau: https://github.com/SebastianRau/Codesys2-DebugMessages

Adds debug messages to a global array (message Queue) in your application

Use case:

Add/ save debug messages (or any other info) in a global message Queue

Usage:

Include the .Library in your project,
(optional) write time of the Event to stDebugInformation.dtActualTime := SOME_DT_VAR;
Call function DebugLog(...) to add a Message to the Ringbuffer.

Parameters are:

    sMessage    : T_MaxString;                   // Message (max 255 chars)
    ePriority   : E_DebugMessagePriority;       // A given priority

Priorities are:

    DEBUG := 0
    INFO := 1
    WARN := 2
    ERROR := 3
    FATAL := 4

All messages will be added to the stDebugInformation Struct in Global Variables of the Library.

Change the default Ringbuffer size;

No coding neccesary! You can change the iMaxDebugEntries in the DebugLogParam library parameter dialog;

Opening the global message Queue online;

Open the library manager, select GVL_DEBUG in DebugLogger,

Doubleclick here;

Results into;