An alarm is generated. Specifically, S5F1 Alarm Report Send(ARS) is sent to the Host. This is not sent if ALID is not registered or is disabled.
No matter what number is specified in sALCD, the first 7 bits will be disregarded. As ALCD is in binary format, it only has 8 bits. Therefore, only the 8th bit is actually used in ALCD. If this bit is 1, it means an alarm was generated; if 0, it means an alarm was cleared.
To send "alarm clear", there must previously have been an "alarm generation". When "alarm generation" is sent, within bop an "uncleared flag" will be set versus that ALID. If this "uncleared flag" has not been set, it is not possible to send "alarm clear". When "alarm clear" is send, the "uncleared flag" is reset.
As the "uncleared flag" only records on/off as data, even if an "alarm generation" is sent twice in succession, one "alarm clear" sent will reset the "uncleared flag".
The setting information for "uncleared flags" is recorded in a file so that it can be recovered even if an application has been closed.
Syntax
|
Function InvokeAlarm(lALID As Long, sALCD As Integer) As Boolean
|
|
BOOL InvokeAlarm(long lALID, short sALCD);
|
lALID | ALID. ALID must be registered beforehand. |
sALCD | ALCD. Only the 8th bit is actually used. |
Return Value
BOOL | Returns true if an alarm was sent and false if not sent. |
Example
Remarks
See Also
|