고객센터 AVEVA Wonderware and More

[ InTouch / 인터치 ] Alarm/알람 모두 혹은 그룹별 조회방법
  • 작성일2019/01/09 14:24
  • 조회 319

------------------------------------
알람 자동시작
StartApp "WWAlmLogger.exe";
------------------------------------
ArchestrA IDE에서
알람 ack
AlarmClient1.Ack.Selected("");
------------------------------------
all ack
AlarmClient1.Ack.All("");

------------------------------------
모든 알람 조회방법
 AlarmClient1.AlarmQuery = "intouch!$SYSTEM";

CURRENT_PAGE_NAME = "CURRENT ALARM";

== CURRENT_ALARM은 예로 그룹명입니다.

------------------------------------

특정 그룹의 알람만 조회
AlarmClient1.AlarmQuery = "intouch!COM_ALARM";  { COM_ALARM : Group Name }
CURRENT_PAGE_NAME = "CURRENT ALARM (COMMON)";

------------------------------------
전체, ACK, UNACK 알람 조회 방법
Query Filter 추가
   - Default
   - ack1 : state = "All ACK records"
   - unack1 : state = "All UNACK records"

[조회] 버튼에 아래와 같이 추가
dim QueryName1 as string;
QueryName1 = "Intouch!" + Group1;   {Group1 : ListBox의 선택된 그룹명 string}
AlarmClient1.AlarmQuery = "intouch!" + Group1 ; 
AlarmClient1.Favorite = QueryType1;  {전체, ACK, UNACK}
-----------------------------------------

ALL_SELECTED = 0;
CB_TRIP_SELECTED = 0;
COMMON_SELECTED = 1;
SHUTDOWN_SELECTED = 0;
SYSTEM_SELECTED = 0;

aaAlarmClientControl.pdf 파일 내에 위치
알람 조회 기간 설정 (ArchestrA IDE 의 AlarmClient 사용시)
TimeSelector.TimeDuration Property
Value De_script_ion
0 Custom
1 The last minute.
2 The last five minutes.
3 The last ten minutes.
4 The last 15 minutes.
5 The last 30 minutes.
6 The last hour.
7 The last two hours.
8 The last four hours.
9 The last eight hours.
10 The last 12 hours.
11 The last 24 hours.
12 The last two days.
13 The last week.
14 The last two weeks.
15 The last month.
16 The last three months.
17 One minute.
18 Five minutes.
19 Ten minutes.
20 15 minutes.
Alarm Control Properties?????125
ArchestrA Alarm Control Guide
The default value is 6 (Last Hour).
Syntax
result = AlarmClient.TimeSelector.TimeDuration;
AlarmClient.TimeSelector.TimeDuration = Value;
Example
AlarmClient1.TimeSelector.TimeDuration = 5;
// The Alarm Control now retrieves alarms from the last 30
minutes.
21 30 minutes.
22 One hour.
23 Two hours.
24 Four hours.
25 Eight hours.
26 12 hours.
27 24 hours.
28 Two days.
29 One week.
30 Two weeks.
31 One month.
32 Three months.
33 Yesterday: 0:00:00 of the previous