Dreamine.IO.Fastech.Ethernet 1.0.1
Dreamine.IO.Fastech.Ethernet 산업 자동화 및 I/O 기능을 제공합니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.IO.Fastech.Ethernet.Channels.FastechDigitalInputChannel 클래스 참조sealed

더 자세히 ...

Dreamine.IO.Fastech.Ethernet.Channels.FastechDigitalInputChannel에 대한 상속 다이어그램 :
Dreamine.IO.Fastech.Ethernet.Channels.FastechDigitalInputChannel에 대한 협력 다이어그램:

Public 멤버 함수

async Task< IoResult< bool > > ReadAsync (IoPoint point, CancellationToken cancellationToken=default)
Task< IoResult< bool[]> > ReadAsync (IReadOnlyList< IoPoint > points, CancellationToken cancellationToken=default)

Private 속성

readonly FastechEthernetIoController _controller

상세한 설명

Fastech Ethernet 컨트롤러의 디지털 입력 채널 작업을 제공합니다.

FastechDigitalInputChannel.cs 파일의 16 번째 라인에서 정의되었습니다.

멤버 함수 문서화

◆ ReadAsync() [1/2]

async Task< IoResult< bool > > Dreamine.IO.Fastech.Ethernet.Channels.FastechDigitalInputChannel.ReadAsync ( IoPoint point,
CancellationToken cancellationToken = default )
inline

단일 디지털 입력을 읽고 응답 값 수를 검증합니다.

매개변수
point읽을 지점입니다.
cancellationToken읽기 취소 토큰입니다.
반환값
단일 입력 상태를 포함하는 결과입니다.

FastechDigitalInputChannel.cs 파일의 89 번째 라인에서 정의되었습니다.

90 {
91 var result = await ReadAsync([point], cancellationToken).ConfigureAwait(false);
92
93 if (!result.IsSuccess || result.Value is null)
94 {
95 return IoResult<bool>.Failure(result.Message ?? "Failed to read the digital input.", result.ErrorCode);
96 }
97
98 return result.Value.Length == 1
99 ? IoResult<bool>.Success(result.Value[0])
100 : IoResult<bool>.Failure("The digital input response did not contain exactly one value.");
101 }

다음을 참조함 : ReadAsync().

다음에 의해서 참조됨 : ReadAsync().

이 함수 내부에서 호출하는 함수들에 대한 그래프입니다.:
이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ ReadAsync() [2/2]

Task< IoResult< bool[]> > Dreamine.IO.Fastech.Ethernet.Channels.FastechDigitalInputChannel.ReadAsync ( IReadOnlyList< IoPoint > points,
CancellationToken cancellationToken = default )
inline

컨트롤러를 통해 여러 디지털 입력을 읽습니다.

매개변수
points읽을 지점 목록입니다.
cancellationToken읽기 취소 토큰입니다.
반환값
입력 상태 배열을 포함하는 결과입니다.

FastechDigitalInputChannel.cs 파일의 135 번째 라인에서 정의되었습니다.

136 {
137 return _controller.ReadDigitalInputsAsync(points, cancellationToken);
138 }

다음을 참조함 : _controller.

멤버 데이터 문서화

◆ _controller

readonly FastechEthernetIoController Dreamine.IO.Fastech.Ethernet.Channels.FastechDigitalInputChannel._controller
private

controller 값을 보관합니다.

FastechDigitalInputChannel.cs 파일의 26 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : ReadAsync().


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: