Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Errors in PLC log

patrik
2022-05-15
2022-05-17
  • patrik - 2022-05-15

    My PLC had stopped some time during the last few days. When I went to check in my PLC log it was full of these errors in the attached picture. I'm guessing they had overwritten the actual exception that stopped my PLC. I'm not sure what these log entries are. I'm guessing that they are a bi product of the PLC being stopped but I don't know. Does anyone have any more information about the errors? Thanks in advance!

     
  • eschwellinger

    eschwellinger - 2022-05-16

    Hi,
    this message is not critical - I assume you are using Control Win plc , right?
    Please enable the log to file by in:

    c:\ProgramData\CODESYS\CODESYSControlWinV3x64\xxxxxxxxx\CODESYSControl.cfg

    [CmpLog]
    Logger.0.Name=PlcLog
    ;Logger.0.Filter=0xFFFFFFFF
    Logger.0.Enable=1
    Logger.0.MaxEntries=200000
    Logger.0.MaxFileSize=500000
    Logger.0.MaxFiles=3
    Logger.0.Backend.1.ClassId=0x00000104 ;writes logger messages in a file

    If this happens again - check the PlcLog.csv file in:
    c:\ProgramData\CODESYS\CODESYSControlWinV3x64\xxxxxxxxx\

    This should at least point us in the right direction.

     
  • patrik - 2022-05-17

    Do I need to do something more to enable the logging? I've done as you said but I can't see any file named PlcLog.csv in the folder.
    [CmpLog]
    Logger.0.Name=PlcLog
    ;Logger.0.Filter=0xFFFFFFFF
    Logger.0.Enable=1
    Logger.0.MaxEntries=10000
    Logger.0.MaxFileSize=50000
    Logger.0.MaxFiles=10
    ;Logger.0.Backend.0.ClassId=0x0000010B ;sends logger messages to SysOut
    Logger.0.Backend.1.ClassId=0x00000104 ;writes logger messages in a file
    ;Logger.0.Backend.2.ClassId=0x00000135 ;sends logger messages as UDP syslog
    Logger.0.Type=0x314 ;Set the timestamp to RTC

     

Log in to post a comment.