Is there a way to show the contents of the device log in a visu? So showing the current devicelog content in a visu as similar like an alarmtable. I have searched the help for it but could not any straight answers.
Hoping to hear from the community on some tips, workarounds or solutions!
Device Log like the forge project? Or standard log when you double click your device and select the log tab?
The standard log when you double click your device and select the log tab (i.e. PLC DeviceLog)
Currently I let CfUnit write every message to the standard PLC DeviceLog.
I am thinking about writing a webinterface to show the produced log in a "more" user friendly manner then the current log.
The current log is not bad, dont get me wrong, but if I can make it even more user-friendly, that will lower the threshold for CfUnit usage even further.
This new feature will be added in CfUnit after I finish integration of the new xUnit xml reporter module which I am currently developing for TcUnit.
An alternative is to implement the IEC DeviceLog into CfUnit. That will take some extra rework...
Not that I could figure out. Refactor to write all messages to an array and display that.
You could use the text editor to display the plc-log file on the plc.
Hi, this sounds interesting, with plc-log you mean the Plc Device Log?
Would you explaning / showing this?
Thank you :)
you sould be able to write the plc log to file with the following settings.
Logger.0.Backend.0.ClassId=0x00000104 ;writes logger messages in a file
Not sure if you can open this file with the texteditor (due to security concerns when accessing files outside of the $visu$ folder) but you could try.
Currently we have a seperate CfUnit log file in place.
The only concern I have is that CfUnit MUST be able to run on every CODESYS compatible device.
I have found the following features in the CODESYSControl.cfg;
;Logger.0.Backend.2.ClassId=0x00000135 ;sends logger messages as UDP syslog
Would you care to explain this cvery very interesting option, as I want to send an xml formatted file to a CI/CD environment
@i-campbell you got any example for this?
"CfUnit MUST be able to run on every CODESYS compatible device."
"@i-campbell you got any example for this?"
No. refactor all of your log writings to write to an array (as well as / instead of). You have a single POU for your logs, so you only have to change it in one spot, right?
Log in to post a comment.