Skip to content

sebastianrau/codesys2-debug-messages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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.

About

Adding Debug Messages to an Global Array

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published