Alarm Manager Client

somlioy
2018-04-19
2018-04-19
  • somlioy - 2018-04-19

    Hello

    Trying to create a Alarm Manger Client (which implements IAlarmManagerClient) but apparantly I'm missing an interface to make it work.

    I'm only getting the error sayin IAlarmFilterCriteria is not defined which is the datatype used by method "GetFilterCriteria" in the client.

    Zitat:
    C0046: Identifier 'IAlarmFilterCriteria' not defined PFC200_2ETH_RS_3G LastAlarmMessageClient Line 3 (Decl) 4/19/2018 3:31:03 PM

    Where can I find this? I'm using Wagos e!Cockpit.
    When I'm opening this example (https://store.codesys.com/all-products/ ... nager.html) i dont get an error, but I can't find it there either. "Go to Definition" dosent lead anywhere.

    FUNCTION_BLOCK LastAlarmMessageClient IMPLEMENTS IAlarmManagerClient
    
    METHOD ActiveAlarmsChanged
    VAR
       iActiveAlarmsCount    : INT;
       paitfActiveAlarms      : POINTER TO ARRAY[0..0] OF AlarmManager.IAlarm;
    END_VAR
    
    METHOD AlarmStorageModified
    VAR
       udiResult : UDINT;
    END_VAR
    
    METHOD GetFilterCriteria : AlarmManager_Interfaces.IAlarmFilterCriteria
    GetFilterCriteria := m_fb_AllAlarmsCriteria;
    
     
  • somlioy - 2018-04-19

    Alright. Figured it out.

    When you're at the "add library" dialog, click advanced at bottom, open the "intern" folder, scroll down and open "AlarmManger" then add "Alarm Manager Interfaces * Intern" and voilà.

     

Log in to post a comment.