Cicode Programming Reference > Cicode Function Categories > Alarm Functions Introduction > AlarmGetThresholdRec


Gets the threshold of analog alarms by the alarm record number. If calling this function from a remote client, use the MsgRPC() function.

Note: Record numbers obtained from AlarmGetDsp are not valid for this function. Instead use AlarmFirstTagRec() to get the record. This should be called from the server side using MsgRPC.

When the Alarm Server is not in the calling process, this function will become blocking and cannot be called from a foreground task. In this case, the return value will be undefined and a Cicode hardware alarm will be raised.


AlarmGetThresholdRec(Record, Type [, ClusterName] )


The alarm record number, returned from any of the following alarm functions:

To store this value, use data type Int in Cicode or Long for variable tags (Long needs 4 bytes).


The type of threshold:

0 - High high

1 - High

2 - Low

3 - Low low

4 - Deadband

5 - Deviation

6 - Rate of change


Specifies the name of the cluster in which the Alarm Server resides. This is optional if you have one cluster or are resolving the alarm server via the current cluster context. The argument is enclosed in quotation marks "".

Return Value

The alarm threshold.

Related Functions

AlarmGetThreshold, AlarmSetThreshold, AlarmSetThresholdRec, MsgRPC

See Also

Alarm Functions