Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 662 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 662 Bytes

Codesys2-DebugMessages

Adding Debug Messaged to an Global Array

Usage:

  • include Library

  • (optinal) write the actucal time to stDebugInformation.dtActualTime := SOME_TIME_VALRIABLE_AS_DT;

  • call function DebugLog(...) to add a Message to the Ringbuffer. Parameters are:

sMessage 	: STRING(64);
ePriority 	: E_DebugMessagePriority;
  • Prioritys are
DEBUG := 0
INFO := 1
WARN := 2
ERROR := 3
FATAL := 4
  • All Messaged will be added to the stDebugInformation Struct in Global Variables of the Lib
  • Change the Ringbuffer size set the the iMaxDebugEntries constant in your project GVL.