Hi,
I have noticed an error message in the Online Log which is repeating indefinitely and with little information about how to resolve it.
What does „MSG_ONL0156“ mean? I need to know where in the code to start looking for what is causing this error.
image.png
Hello!
This flood behavior often initiate by string processing functions.
Try to activate string error halt. It will help you to locate trouble, if it cause by this error class.
Best regards.
Hello!</p>This flood behavior often initiate by string processing functions.</p>Try to activate string error halt. It will help you to locate trouble, if it cause by this error class.</p>[https://forum.plcnext-community.net/uploads/T1E75H4ES3XS/d0-b8-d0-b7-d0-be-d0-b1-d1-80-d0-b0-d0-b6-d0-b5-d0-bd-d0-b8-d0-b5.png</a></p> Best regards.</p>
That’s a great idea
It immediately halted on a string function where I was using LEFT().
At first I could not see anything wrong, so I guessed that maybe the string function didn’t like that I was storing the trimmed variable with its original name (overwriting it).
But giving the variable a new name did not help.
image.png
However, after consulting with a rather helpful chatbot, I was tipped that maybe the LEFT() function attempted to trim more characters than the string contained, and that would indeed be the case early in the program.
The above code is retrieving json data from the software manifest json-file on the PLC to obtain version number, build time etc - but before this code has completed, the string I am trying to trim using LEFT, is empty.
The solution was to put the LEFT-function inside an IF-statement that checked that the function had completed. I suppose it also would work to initialize the string to a given number of characters (min. 5) so that it is never shorter than the attempted trim length.
Thank you for kicking me in the right direction,
Oh… never mind.
Even though the string error was caught and rectified, the MSG_ONL0156 still overflows my Online Log with new entries every second.
I need to dig deeper.
, can you help here?
This case has been given to the PLCnext Engineer support team, and I have asked them to give an answer here.
This case has been given to the PLCnext Engineer support team, and I have asked them to give an answer here.</p>
Hi,
Thanks for assisting me.
You can let the team know that I found the problem: CONCAT_LDATE was given zeroes in some of its input parameters (because the retain memory was wiped).
image.pngimage.png
Even I activated the ‚show string errors‘ option and I delete the code with CONCAT_LDATE, this error msg MSG_ONL0156 doesn’t stop. Please give us a list of all function which gives this Log Msg, thank you! Or maybe someone can share how to debug this?