Gets or sets the alarm code for specified alarm ID.
0 | Not used |
1 | Personal safety |
2 | Equipment safety |
3 | Parameter control warning |
4 | Parameter control error |
5 | Irrecoverable error |
6 | Equipment status warning |
7 | Attention flag |
8 | Data integrity |
>8 | Other categories |
9-63 | Reserved |
構文
|
Property ALCD(lALID As Long) As Integer
|
|
short GetAlcd(long lALID)
void SetAlcd(long lALID, short nNewValue)
|
戻り値
使用例
If ALID was not registered, user cannot set value. If user wants to get the list of registered ALID, take following steps.
First, read ALIDCount property value.
|
Dim lCount As Long
lCount = .ALIDCount
|
|
long lCount = m_ctrl.GetALIDCount();
|
Since ALIDCount property returns the number of registered ALID, the index should be between 0 and (ALIDCount - 1). Convert index into ALID using ToALID method.
|
Dim lALID As Long
lALID = .ToALID(0)
|
|
long lALID = m_ctrl.ToALID(0);
|
Once ALID were determined, it is possible to access ALCD property and ALTX property.
|
Dim nALCD As Integer
nALCD = .ALCD(lALID)
|
|
int nALCD = m_ctrl.GetAlcd(lALID);
|
Enumerate all the ALIDs using “for” loop. Following is the entire source code.
|
Dim lCount As Long
lCount = .ALIDCount
Dim lCnt As Long
For lCnt = 0 to lCount – 1
Dim lALID As Long
lALID = .ToALID(lCnt)
Dim nALCD As Integer
nALCD = .ALCD(lALID)
Dim strALTX As String
strALTX = .ALTX(lALID)
Next lCnt
|
|
long lCount = m_ctrl.GetALIDCount();
for(long lCnt=0;lCnt<lCount;lCnt++)
{
long lALID = m_ctrl.ToALID(0);
int nALCD = m_ctrl.GetAlcd(lALID);
String strALTX = m_ctrl.GetAltx(lALID);
}
|
特記事項
When value was set in ALCD property, only lower 7-bit would be recorded.
The highest bit of ALCD is used for "alarm set" or "alarm cleared".
This bit can be changed by InvokeAlarm method (use argument).
参照
|