Jazz Soft お問い合わせ   JazzSoft@live.com     日本語   英語  日本語  中国語(繁体字)  中国語(簡体字)
工場自動化と歩留り管理ソリューション 
Skip Navigation Linksホーム > 製品一覧 > Savoy > Savoy GEM リファレンス > プロパティ > ALCD

Savoy GEM リファレンス   

プロパティ
ALCD
ALIDCount
ALTX
Appearance
BorderStyle
CEIDCount
CEIDDescription
CommunicationState
ControlState
ControlStateSwitch
DataBakCount
DataFileName
DeviceID
DiscardDuplicatedBlock
Function
Host
IniFileName
IPAddress
Log
LogBakCount
LogCommunication
LogFileName
LogicalConnection
LogSize
Msg
MyPortNumber
Node
NodeCount
NodeType
NodeValue
NodeValueHex
OfflineRequest
OnlineRequest
Reply
PhysicalConnection
PortNumber
PType
Server
SessionID
SML
Stream
SType
SystemBytes
T1
T2
T3
T4
T5
T6
T7
T8
Verification
VIDCount
VIDDefault
VIDDescription
VIDMax
VIDMin
VIDNodeType
VIDRawValue
VIDType
VIDUnit
VIDValue
ViewStyle
Wbit
WorkSpace

メソッド
AboutBox
DefProc
InvokeAlarm
InvokeEvent
IsValidVID
LoadData
LoadIniFile
RegisterALID
RegisterVID
SaveData
Send
Setup
ToALID
ToCEID
ToVID
UnregisterALID
UnregisterVID
WriteLogFile

イベント
CommunicationStateChanged
Connected
ConnectionStateChanged
ControlStateChanged
Disconnected
Problem
Received
Sent
VIDChanged

ALCD Property

Gets or sets the alarm code for specified alarm ID.

ALIDDescription
0Not used
1Personal safety
2Equipment safety
3Parameter control warning
4Parameter control error
5Irrecoverable error
6Equipment status warning
7Attention flag
8Data integrity
>8Other categories
9-63Reserved

構文

Visual Basic

Property ALCD(lALID As Long) As Integer


Visual C++

short GetAlcd(long lALID)
void SetAlcd(long lALID, short nNewValue)


ArgumentDescription
lALIDAlarm ID

戻り値

使用例

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.

Visual Basic

Dim lCount As Long
lCount = .ALIDCount


Visual C++

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.

Visual Basic

Dim lALID As Long
lALID = .ToALID(0)


Visual C++

long lALID = m_ctrl.ToALID(0);


Once ALID were determined, it is possible to access ALCD property and ALTX property.

Visual Basic

Dim nALCD As Integer
nALCD = .ALCD(lALID)


Visual C++

int nALCD = m_ctrl.GetAlcd(lALID);


Enumerate all the ALIDs using “for” loop. Following is the entire source code.

Visual Basic

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


Visual C++

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).

参照

お問い合わせ   JazzSoft@live.com
  Copyright © 1997 - 2018 Jazz Soft, Inc.