Codesys WebVisu - alarm management issue

Hello Comunnity,

We are currently finalizing project for our customer and we face some strange behavior of Alarm management in Codesys Webvisu. PADE

To specify detailed information about error we use LATCH variables. (Fig.1)

Those LATCH variables are filled in from our program as soon as error is triggered. (Fig.2)

But problem is that most of the times (not every time) the Latch variables are shown as „0000000“ instead of string in variable. (Fig.3)

It gets even more strange when one Latch variable is "IPO 090F2002" (Fig.4). In alarm table it is shown as "IPO 00000000 00000000" (Fig.5), it looks like it takes in count only the first part of the string.

Have you encountered this behavior before? Do you have any hints?

Thanks and best regards.

Best reply by Sgilk

Hello Antonio3 ,

I tried to reproduce your problem and was unable to. I tried with a number of varying string lengths and formats and the behavior was as expected.

In image 4.png above, it looks like you are populating the latch variables using an array of strings.

Where is this array being written to? Is it possible that the values have not been updated correctly at the time of alarm?

View original
4.png
66.56KB
5.png
86.5KB
3.png
97.56KB
2.png
107.45KB
1.png
218.2KB
2 replies