FEnetClient 클래스
LS ELECTRIC(구 LS산전) FEnet 프로토콜 기반 클라이언트입니다.
XGT 시리즈 제품의 FEnet I/F 모듈과 통신 가능합니다.
어셈블리: VagabondK.Protocols.LSElectric.dll
구문
public class FEnetClient : IDisposable
생성자
속성
이름 |
설명 |
Channel
|
통신 채널
|
CompanyID
|
메시지 헤더의 CompanyID. 기본값은 LSIS-XGT. 단종된 모델에서는 LGIS-GLOFA를 사용할 수도 있음.
|
ThrowsExceptionFromNAK
|
NAK에 대한 예외 발생 여부
|
Timeout
|
응답 제한시간(밀리초)
|
UseChecksum
|
기본적으로 체크섬을 사용할 것인지 여부, 기본값은 true
|
UseHexBitIndex
|
비트 변수의 인덱스를 16진수로 통신할지 여부를 결정합니다.
P, M, L, K, F 이면서 Bit일 경우 워드 단위 인덱스와 함께 비트 자리수를 16진수로 전송합니다.
그 외에는 인덱스가 .으로 나누어져있고 Bit일 경우 마지막 자리만 16진수로 전송합니다.
XGB PLC에서 비트를 읽거나 쓸 때 엉뚱한 비트가 읽히거나 쓰인다면 true로 설정해서 테스트 해보시기 바랍니다.
'라이스'님의 제보로 추가되었으며, '박일두'님의 제보로 추가 개선된 옵션입니다. 감사합니다.
|
메서드
이름 |
설명 |
Dispose()
|
리소스 해제
|
Read(IEnumerable<DeviceVariable>)
|
개별 디바이스 변수 읽기
|
Read(int, IEnumerable<DeviceVariable>)
|
개별 디바이스 변수 읽기
|
Read(int, DeviceType, uint, int)
|
연속 바이트 디바이스 변수 읽기
|
Read(int, DeviceVariable, int)
|
연속 디바이스 변수 읽기
|
Read(int, DeviceVariable, params DeviceVariable[])
|
개별 디바이스 변수 읽기
|
Read(DeviceType, uint, int)
|
연속 바이트 디바이스 변수 읽기
|
Read(DeviceVariable, int)
|
연속 디바이스 변수 읽기
|
Read(DeviceVariable, params DeviceVariable[])
|
개별 디바이스 변수 읽기
|
Request(int, FEnetRequest)
|
FEnet 요청하기
|
Request(FEnetRequest)
|
FEnet 요청하기
|
Write(IEnumerable<KeyValuePair<DeviceVariable, DeviceValue>>)
|
개별 디바이스 변수 쓰기
|
Write(int, IEnumerable<KeyValuePair<DeviceVariable, DeviceValue>>)
|
개별 디바이스 변수 쓰기
|
Write(int, (DeviceVariable, DeviceValue), params (DeviceVariable, DeviceValue)[])
|
개별 디바이스 변수 쓰기
|
Write(int, DeviceType, uint, byte, params byte[])
|
연속 디바이스 변수 쓰기
|
Write(int, DeviceType, uint, IEnumerable<byte>)
|
연속 디바이스 변수 쓰기
|
Write(int, DeviceVariable, DeviceValue)
|
개별 디바이스 변수 쓰기
|
Write((DeviceVariable, DeviceValue), params (DeviceVariable, DeviceValue)[])
|
개별 디바이스 변수 쓰기
|
Write(DeviceType, uint, byte, params byte[])
|
연속 디바이스 변수 쓰기
|
Write(DeviceType, uint, IEnumerable<byte>)
|
연속 디바이스 변수 쓰기
|
Write(DeviceVariable, DeviceValue)
|
개별 디바이스 변수 쓰기
|
확장 메서드