isAckable()
The CTRLLib.ctl function is called before an acknowledgment with a simple configuration (see Acknowledge).
Synopsis
void isAckable(int iType, dyn_string &dsDPs, int &iReturnValue[,
dyn_time dTimeOfAlarm = makeDynTime(), dyn_int diCntOfAlarm =
makeDynInt()]);
Parameters
Parameter | Meaning |
---|---|
iType | type of acknowledgement, single or general |
daDps | data points to be acknowledged (either of type dyn_string or dyn_atime) |
iReturnValue |
1 acknowledgeable 0 not acknowledgeable |
Return value
None
Description
The CTRLLib.ctl function is called before an acknowledgment with a simple configuration (see Acknowledge). The function helps to customize a project. For example, you can exclude data point elements from an acknowledgment list.
Example
In the following example, with the second entry of the acknowledgment list, the elements will be ignored, that is, not acknowledged.
void isAckable(int iType, dyn_string &daDps, int
&iReturnValue)
{
if (dynlen(daDps)>1)
dynRemove(daDps,2);
iReturnValue = 1;
DebugN("Hello test");
}
Assignment
Miscellaneous functions, simple configuration
Availability
CTRL (LibCTRL.ctl)