cipi65

MrPLC Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About cipi65

  • Rank
    Hi, I am New!

Profile Information

  • Country Romania
  1. Hi, I have a project developed in Citect 7.20 and I imported in Citect 7.30. Everything it's ok exept alarm display. I use custom alarm page that worked in 7.20 http://forums.mrplc.com/uploads/monthly_06_2014/post-52477-0-61926500-1403096160_thumb.jpg I read this: "For 7.30 the functions AlarmSetQuery() and Query() have been made obsolete and have been replaced with new alarm filter edit functions." In my Cicode.ci file I made the filter like this : // called from GUI //FUNCTION QueryAlarm(STRING Category1, STRING Category2) // AlarmSetQuery(-1, "MyCheckCustomFunction", Category1, Category2, TRUE); //END // Called n times by AlarmSetQuery (n = number of alarm) INT FUNCTION MyCheckCustomFunction(INT nRid, INT nVer, INT iCategory1, INT iCategory2) STRING sCustom; // Get the information in CUSTOM2 sCustom = AlarmGetFieldRec(nRid, "Category"); // Prompt(sCustom); IF (sCustom = IntToStr (iCategory1) OR sCustom = IntToStr (iCategory2)) THEN // contents custom field match one of entered strings // Lets display this Prompt(sCustom); RETURN TRUE; ELSE // Skip over this RETURN FALSE; END END I need help to call my "MyCheckCustomFunction" without using AlarmSetQuery. I read the instructions from : http://www.citect-webhelp.schneider-electric.com/vijeo730/default1.htm, but I can manage the modification. Regards,