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

더 자세히 ...

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

Public 멤버 함수

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

Private 속성

readonly FastechEthernetIoController _controller

상세한 설명

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

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

멤버 함수 문서화

◆ ReadAsync() [1/2]

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

장치의 16점 출력 상태를 읽어 요청 채널의 상태를 반환합니다.

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

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

90 {
91 var modulePoints = Enumerable
92 .Range(0, 16)
93 .Select(channel => new IoPoint(point.Module, channel, $"DO{channel:00}"))
94 .ToArray();
95
96 var result = await ReadAsync(modulePoints, cancellationToken).ConfigureAwait(false);
97
98 if (!result.IsSuccess || result.Value is null)
99 {
100 return IoResult<bool>.Failure(result.Message ?? "Failed to read the digital output.", result.ErrorCode);
101 }
102
103 return point.Channel >= 0 && point.Channel < result.Value.Length
104 ? IoResult<bool>.Success(result.Value[point.Channel])
105 : IoResult<bool>.Failure("The digital output response did not contain the requested channel.");
106 }

다음을 참조함 : ReadAsync().

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

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

◆ ReadAsync() [2/2]

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

여러 디지털 출력의 현재 상태를 읽습니다.

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

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

141 {
142 return _controller.ReadDigitalOutputsAsync(points, cancellationToken);
143 }

다음을 참조함 : _controller.

◆ WriteAsync() [1/2]

Task< IoResult > Dreamine.IO.Fastech.Ethernet.Channels.FastechDigitalOutputChannel.WriteAsync ( IoPoint point,
bool value,
CancellationToken cancellationToken = default )
inline

단일 디지털 출력 상태를 씁니다.

매개변수
point쓸 지점입니다.
value출력 상태입니다.
cancellationToken쓰기 취소 토큰입니다.
반환값
쓰기 결과입니다.

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

186 {
187 return WriteAsync(new Dictionary<IoPoint, bool> { [point] = value }, cancellationToken);
188 }

다음을 참조함 : WriteAsync().

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

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

◆ WriteAsync() [2/2]

Task< IoResult > Dreamine.IO.Fastech.Ethernet.Channels.FastechDigitalOutputChannel.WriteAsync ( IReadOnlyDictionary< IoPoint, bool > values,
CancellationToken cancellationToken = default )
inline

여러 디지털 출력 상태를 씁니다.

매개변수
values지점별 출력 상태입니다.
cancellationToken쓰기 취소 토큰입니다.
반환값
일괄 쓰기 결과입니다.

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

223 {
224 return _controller.WriteDigitalOutputsAsync(values, cancellationToken);
225 }

다음을 참조함 : _controller.

멤버 데이터 문서화

◆ _controller

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

controller 값을 보관합니다.

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

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


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