Industry Online Support
Technical Forum
12/10/2007 4:05 AM | |
Posts: 5 Rating: (3) |
Hi, all I came across a problem in my project that customers need a seperately acknowledgement function for different kind of messages in thefaceplate. For example, in valve faceplate, they have five kinds of messages: Alarm High, Alarm Low, Warning High, Warning Low and Fault. Therefore, five seperate buttons are neededtoacknowledge corresponding messages, one for Alarm High, one for Alarm Low.....ect. According to my idea, I am planning to create an addtional comment in Text 10 for each message in alarm logging. For instance, object "CA21V200" is a valve. A comment "CA21V200.AH" will be added in Text 10 for the alarm high message of this object. Then, I create a c scripton the mouse action of the acknowledge button, using the structure "MSG_RTCREATE_STRUCT" and function "MSRTCreateMsg". In which, I am planning to usecontent of Text10 as keyword to get the exact message and acknowledge it. But, actually, failed. The function can not be compiled successfully.I attached my script here. Hope you guys can give me some suggestion.Much thanks! PS: I noticed that there is limited information about structure "MSRTCreateMsg". Does anybody know where to get detail description of this structure? PS again: There is a standard funtion in c-script library called "Acknowledge Message". It acknowledge the messages according to Message number and it do works. I write the script almost the same as it does. AttachmentMsgAck.zip (166 Downloads) |
Last edited by: AlecksWang at: 10.12.2007 11:16 |
|
12/11/2007 11:44 AM | |
Posts: 1776 Rating: (95)
|
Hi, can you use the FAQ http://support.automation.siemens.com/WW/view/de/25012006 see the limitation (remarks) at the end of the FAQ. Use the new function described in the FAQ. Hope you get success. April |
Follow us on