cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Codesys WebVisu - alarm management issue

Codesys WebVisu - alarm management issue

Antonio3
Member

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.

2 REPLIES 2

Sgilk
Contributor

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?

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.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist