HOOK_isAckable()
The system executes the function when you acknowledge alarms. Implement the function in a CONTROL library.
Synopsis
HOOK_isAckable(int type, dyn_string &dps, int &ackable);
Parameters
Parameters | Meaning |
---|---|
Type | Type of acknowledgement (1 = Sum acknowledgement, 2 = Single acknowledgement). |
Dps | Time of the alert to acknowledge. |
Ackable | Returns 0 if alert cannot be acknowledged, otherwise returns 1. |
Return value
-
Error
Description
The system executes the function when you acknowledge alarms. Implement the function in a CONTROL library. You have to load this CONTROL library in the user interface when you acknowledge an alarm. Use, for example, the LoadCtrlLibs entry in the config.level file to load the CONTROL library.
Example
If you acknowledge an alarm of the data points ExampleDP_Arg1 or ExampleDP_Arg2 and the acknowledgement was successful, the log viewer shows the Debug information (HOOK_isAckable()).
In the same way if you acknowledge and alarm and you used the simple configuration for the table and acknowledge an alarm, the log viewer shows the debug information (HOOK_ep_acknowledgeTableFunction()). Note that you have to implement these functions in a CONTROL library and you have to load the library as mentioned above.
void HOOK_isAckable(int type, dyn_atime &dps, int
&ackable)
{
string dp;
dp=getAIdentifier(dps[1]);
DebugTN(dp, dps);
}
Assignment
Availability
CTRL