FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
01-23-2024 02:34 PM
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.
Solved! Go to Solution.
01-23-2024 04:56 PM
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?
01-30-2024 11:10 AM
Hello @Sgilk,
You were right. In the program we are watching Error bit from AxisInterface (arAxisStatus_gb[Axis_XA.AxisNo].Diag.Error), and at the time Error becomes TRUE, diagnostic NumberMain and NumberDetail (arAxisStatus_gb[Axis_XA.AxisNo].Diag.NumberDetail) are reset and written to AxisStatus structure as 0000 0000 and after delay between 100-250ms set as required (e.g. 091F2002).
I was not counting with that delay and because of that behavior I think it's not possible to implement DiagNumbers as latch variable to Error message in Alarm management.