태그 멤버

 

스크립트에서 사용할 수 있는 태그의 멤버는 다음과 같다.

 

모든태그에서 동일하게 사용되는 공통 태그 멤버 (태그 이름이 TAG 일 때)

Member 종류 설명 메모리종류 비고 읽기/쓰기
$TAG.active 태그 유효/무효 상태 Int   R/W
$TAG.tag 태그의 이름 (그룹 태그에 속해 있을 경우는 그룹명을 표함한 전체 태그명을 얻어온다.) string Autobase9 R
$TAG.name 태그의 이름 (그룹 태그에 속해 있을 경우는 그룹명을 제외한 이름만을 얻어온다.) string Autobase9 R
$TAG.DeviceQuallity OPC 태그의 통신 품질 Int 0 = Bad
1 = Uncertain
3 = Good
R
$TAG.DeviceSubStatus OPC 태그의 품질에 따른 상세 메시지 Int R
$TAG.DeviceLimit OPC 태그의 Limit int 0 = Not limited
1 = Low Limited
2 = High Limited
3 = Contant
R

 

아날로그 입력 태그 멤버 (태그 이름이 AI 일 때)

Member 종류 설명 메모리종류 비고 읽기/쓰기
$AI 현재값 Float   R/W
$AI.value 현재값 Float   R/W
$AI.des 설명 String   R/W

 

$AI.port 통신 메모리 포트값 WORD

 

R/W

 

$AI.address 통신 메모리 번지값 WORD   R/W
$AI.hihi HiHi값 Float   R/W
$AI.high High값 Float   R/W
$AI.low Low 값 Float   R/W
$AI.lolo LoLo값 Float   R/W
$AI.full Full 값 Float   R/W

 

$AI.base Base 값 Float   R/W

 

$AI.plcfull$AI.plcbase 계측기의 변환비 최대값계측기의 변환비 최대값 FloatFloat   R/WR/W
$AI.viewfull View_Full 값 Float   R/W
$AI.viewbase View_Base 값 Float   R/W
$AI.unit 단위(Unit) 문자열 값 String   R/W
$AI.assign 간접태그로 사용할 때 여기에 일반태그를 복사해 두면 복사한 태그가 assign 된다. String   R/W
$AI.ProtectScan Scan 금지 중 여부 Int   R/W
$AI.ProtectControl Control 금지 중 여부 Int   R/W
$AI.ProtectAlarmEvent Alarm Event 금지 중 여부 Int   R/W
$AI.ProtectAlarmData Alarm 데이터 저장 금지 중 여부 Int   R/W
$AI.NeedAlarmConfirm Alarm 진행 중이면 ON,  사용자 확인이나 경보가 꺼졌으면 OFF Int   R
$AI.SumTotal 전체 적산치 double   R/W
$AI.SumPart 부분 적산치 double   R/W
$AI.AlarmLevelStatus 현재 경보의 상태 Int 0 = 정상
1 = LoLo
2 = Low
3 = High
4 = HiHi
R
$AI.Format 디스프레이 format 값 float   R/W
$AI.alarm 경보 여부 int   R/W
$AI.FileSave 파일 저장 여부 int 10.2부터
지원
R/W

 

아날로그 출력 태그 멤버 (태그 이름이 AO 일 때)

Member 종류 설명 메모리 종류 비고
$AO 현재값 Float  
$AO.value 현재값 Float  
$AO.des 설명 String  
$AO.port 통신 포트(port) 번호 값 Int  
$AO.station 스테이션(station) 값 Int  
$AO.address 메모리 번지(address) 값 Int  
$AO.extra1 extra1값 String  
$AO.extra2 extra2 값 Int  
$AO.full Full 값 Float 9.2.0 부터 지원
$AO.base Base 값 Float 9.2.0 부터 지원
$AO.plcfull PLC의 full값 Float 9.2.0 부터 지원
$AO.plcbase PLC의 base값 Float 9.2.0 부터 지원
$AO.assign 간접태그로 사용할 때 여기에 일반태그를 복사해 두면 복사한 태그가 assign 된다. String  

 

디지털 입력 태그 멤버 (태그 이름이 DI 일 때)

Member 종류 설명 메모리 종류
$DI 현재값 Int
$DI.value 현재값 Int
$DI.address 통신 메모리 번지값 DWORD
$DI.des 설명 String
$DI.desON ON 설명 문자열 String
$DI.desOFF OFF 설명 문자열 String
$DI.port 통신 포트(port) 번호 값 Int
$DI.station 스테이션(station) 값 Int
$DI.address 메모리 번지 (address) 값 Int
$DI.assign 간접태그로 사용할 때 여기에 일반태그를 복사해 두면 복사한 태그가 assign 된다. String
$DI.ProtectScan Scan 금지 중 여부 Int
$DI.ProtectControl Control 금지 중 여부 Int
$DI.ProtectAlarmEvent Alarm Event 금지 중 여부 Int
$DI.ProtectAlarmData Alarm 데이터 저장 금지 중 여부 Int
$DI.NeedAlarmConfirm Alarm 진행 중이면 ON,  사용자 확인이나 경보가 꺼졌으면 OFF Int
$DI.alarm 경보 여부 Int
$DI.FileSave 저장 여부 Int

 

디지털 출력 태그 멤버 (태그 이름이 DO 일 때)

Member 종류 설명 메모리 종류
$DO 현재값 Int
$DO.value 현재값 Int
$DO.des 설명 String
$DO.desON ON 설명 문자열 String
$DO.desOFF OFF 설명 문자열 String
$DO.port 통신 포트(port) 번호 값 Int
$DO.station 스테이션(station) 값 Int
$DO.address 메모리 번지 (address) 값 Int
$DO.extra1 Extra1문자열 String
$DO.extra2 Extra2 문자열 Int
$DO.assign 간접태그로 사용할 때 여기에 복사한 태그가 assign 된다. Int

 

문자열 태그 멤버 (태그 이름이 ST 일 때)

Member 종류 설명 메모리 종류
$ST 현재값 String
$ST.value 현재값 String
$ST.address 통신 메모리 번지값 WORD
$ST.des 설명 String

 

출력상자용 내부 태그 멤버

Member 종류 설명 비고
$__ControlBox_Tag 출력상자의 값을 현재 모듈요소에 전송할 값 출력상자가 있는 모듈요소

 

 관련항목)

$__ControlBox_Tag

스크립트의 종류

스크립트 편집기 사용법

스크립트 연산자

스크립트의 문장

스크립트 함수

스크립트 주 도움말