|
Dreamine.PLC.Mitsubishi.MxComponent 1.0.1
Dreamine.PLC.Mitsubishi.MxComponent 산업 자동화 및 I/O 기능을 제공합니다.
|


Public 멤버 함수 | |
| MitsubishiMxComponentPlcClient (MitsubishiMxComponentOptions options) | |
| MitsubishiMxComponentPlcClient (MitsubishiMxComponentOptions options, IComObjectFactory factory) | |
| override async ValueTask | DisposeAsync () |
Protected 멤버 함수 | |
| override Task< PlcResult > | ConnectCoreAsync (CancellationToken cancellationToken) |
| override Task< PlcResult > | DisconnectCoreAsync (CancellationToken cancellationToken) |
| override Task< PlcResult< bool[]> > | ReadBitsCoreAsync (PlcAddress address, int count, CancellationToken cancellationToken) |
| override Task< PlcResult< short[]> > | ReadWordsCoreAsync (PlcAddress address, int count, CancellationToken cancellationToken) |
| override Task< PlcResult > | WriteBitsCoreAsync (PlcAddress address, IReadOnlyList< bool > values, CancellationToken cancellationToken) |
| override Task< PlcResult > | WriteWordsCoreAsync (PlcAddress address, IReadOnlyList< short > values, CancellationToken cancellationToken) |
속성 | |
| MitsubishiMxComponentOptions | Options [get] |
Private 멤버 함수 | |
| Task< PlcResult< short[]> > | ReadWordsOneByOne (object component, PlcAddress address, int count, CancellationToken cancellationToken) |
| Task< PlcResult< bool[]> > | ReadBitsOneByOne (object component, PlcAddress address, int count, CancellationToken cancellationToken) |
| object | RequireComponent () |
| void | ReleaseComponent () |
정적 Private 멤버 함수 | |
| static PlcResult | ToResult (int resultCode, string message) |
| static bool | TryExtractShortArray (object? source, int count, out short[] values) |
| static bool | TryExtractBoolArray (object? source, int count, out bool[] values) |
Private 속성 | |
| readonly MitsubishiMxComponentOptions | _options |
| readonly IComObjectFactory | _factory |
| object? | _component |
Mitsubishi MX Component COM 인터페이스를 사용하는 PLC 클라이언트를 제공합니다.
MitsubishiMxComponentPlcClient.cs 파일의 20 번째 라인에서 정의되었습니다.
|
inline |
기본 COM 개체 팩터리를 사용해 MitsubishiMxComponentPlcClient 클래스의 새 인스턴스를 초기화합니다.
| options | MX Component 연결 및 메서드 설정입니다. |
| ArgumentNullException | options 가 null일 때 발생합니다. |
MitsubishiMxComponentPlcClient.cs 파일의 74 번째 라인에서 정의되었습니다.
|
inline |
지정한 COM 개체 팩터리를 사용해 MitsubishiMxComponentPlcClient 클래스의 새 인스턴스를 초기화합니다.
| options | MX Component 연결 및 메서드 설정입니다. |
| factory | 후기 바인딩 COM 개체를 생성할 팩터리입니다. |
| ArgumentNullException | options 또는 factory 가 null일 때 발생합니다. |
MitsubishiMxComponentPlcClient.cs 파일의 111 번째 라인에서 정의되었습니다.
|
inlineprotected |
COM 개체를 생성하고 논리 스테이션을 설정한 뒤 MX Component 연결을 엽니다.
| cancellationToken | 연결 작업을 취소하는 토큰입니다. |
| OperationCanceledException | 취소 토큰이 취소된 경우 발생합니다. |
| PlatformNotSupportedException | 기본 팩터리를 Windows가 아닌 플랫폼에서 사용할 때 발생합니다. |
| InvalidOperationException | COM 개체 생성이나 속성·메서드 호출이 실패할 때 발생할 수 있습니다. |
MitsubishiMxComponentPlcClient.cs 파일의 175 번째 라인에서 정의되었습니다.
다음을 참조함 : _component, _factory, _options, ToResult().

|
inlineprotected |
MX Component 연결을 닫고 보유한 COM 개체를 해제합니다.
| cancellationToken | 연결 해제 작업을 취소하는 토큰입니다. |
| OperationCanceledException | 취소 토큰이 취소된 경우 발생합니다. |
| InvalidOperationException | COM 닫기 메서드 호출이 실패할 때 발생할 수 있습니다. |
MitsubishiMxComponentPlcClient.cs 파일의 226 번째 라인에서 정의되었습니다.
다음을 참조함 : _component, _options, ReleaseComponent(), ToResult().

|
inline |
기본 PLC 클라이언트 자원을 비동기로 정리하고 MX Component COM 개체를 해제합니다.
MitsubishiMxComponentPlcClient.cs 파일의 650 번째 라인에서 정의되었습니다.
다음을 참조함 : ReleaseComponent().

|
inlineprotected |
연속된 PLC 비트 값을 읽으며 블록 호출이 호환되지 않으면 단건 호출로 전환합니다.
| address | 읽기를 시작할 PLC 주소입니다. |
| count | 읽을 비트 수입니다. |
| cancellationToken | 읽기 작업을 취소하는 토큰입니다. |
| InvalidOperationException | 클라이언트가 연결되지 않았거나 폴백 COM 호출이 실패할 때 발생합니다. |
| OperationCanceledException | 취소 토큰이 취소된 경우 발생합니다. |
| NotSupportedException | PLC 장치 형식을 지원하지 않을 때 발생합니다. |
MitsubishiMxComponentPlcClient.cs 파일의 304 번째 라인에서 정의되었습니다.
다음을 참조함 : _options, Dreamine.PLC.Mitsubishi.MxComponent.Devices.MitsubishiMxDeviceNameFormatter.Format(), ReadBitsOneByOne(), RequireComponent(), TryExtractBoolArray().

|
inlineprivate |
지정 범위의 PLC 비트를 단건 COM 호출로 읽습니다.
| component | 연결된 MX Component COM 개체입니다. |
| address | 시작 PLC 주소입니다. |
| count | 읽을 비트 수입니다. |
| cancellationToken | 반복 읽기를 취소하는 토큰입니다. |
| OperationCanceledException | 취소 토큰이 취소된 경우 발생합니다. |
| FormatException | COM 값이 정수로 변환될 수 없을 때 발생할 수 있습니다. |
MitsubishiMxComponentPlcClient.cs 파일의 814 번째 라인에서 정의되었습니다.
다음을 참조함 : _options, Dreamine.PLC.Mitsubishi.MxComponent.Devices.MitsubishiMxDeviceNameFormatter.FormatOffset().
다음에 의해서 참조됨 : ReadBitsCoreAsync().


|
inlineprotected |
연속된 PLC 워드 값을 읽으며 블록 호출이 호환되지 않으면 단건 호출로 전환합니다.
| address | 읽기를 시작할 PLC 주소입니다. |
| count | 읽을 워드 수입니다. |
| cancellationToken | 읽기 작업을 취소하는 토큰입니다. |
| InvalidOperationException | 클라이언트가 연결되지 않았거나 폴백 COM 호출이 실패할 때 발생합니다. |
| OperationCanceledException | 취소 토큰이 취소된 경우 발생합니다. |
| OverflowException | COM 값이 short 범위를 벗어날 때 발생할 수 있습니다. |
MitsubishiMxComponentPlcClient.cs 파일의 404 번째 라인에서 정의되었습니다.
다음을 참조함 : _options, Dreamine.PLC.Mitsubishi.MxComponent.Devices.MitsubishiMxDeviceNameFormatter.Format(), ReadWordsOneByOne(), RequireComponent(), TryExtractShortArray().

|
inlineprivate |
지정 범위의 PLC 워드를 단건 COM 호출로 읽습니다.
| component | 연결된 MX Component COM 개체입니다. |
| address | 시작 PLC 주소입니다. |
| count | 읽을 워드 수입니다. |
| cancellationToken | 반복 읽기를 취소하는 토큰입니다. |
| OperationCanceledException | 취소 토큰이 취소된 경우 발생합니다. |
| OverflowException | COM 값이 short 범위를 벗어날 때 발생할 수 있습니다. |
MitsubishiMxComponentPlcClient.cs 파일의 720 번째 라인에서 정의되었습니다.
다음을 참조함 : _options, Dreamine.PLC.Mitsubishi.MxComponent.Devices.MitsubishiMxDeviceNameFormatter.FormatOffset().
다음에 의해서 참조됨 : ReadWordsCoreAsync().


|
inlineprivate |
보유한 MX Component COM 개체의 참조를 최종 해제하고 연결 상태를 초기화합니다.
MitsubishiMxComponentPlcClient.cs 파일의 881 번째 라인에서 정의되었습니다.
다음을 참조함 : _component.
다음에 의해서 참조됨 : DisconnectCoreAsync(), DisposeAsync().

|
inlineprivate |
현재 연결된 MX Component COM 개체를 반환합니다.
| InvalidOperationException | 클라이언트가 연결되지 않았을 때 발생합니다. |
MitsubishiMxComponentPlcClient.cs 파일의 868 번째 라인에서 정의되었습니다.
다음을 참조함 : _component.
다음에 의해서 참조됨 : ReadBitsCoreAsync(), ReadWordsCoreAsync(), WriteBitsCoreAsync(), WriteWordsCoreAsync().

|
inlinestaticprivate |
MX Component 반환 코드를 표준 PLC 결과로 변환합니다.
| resultCode | 0이 성공인 MX Component 반환 코드입니다. |
| message | 실패 결과에 포함할 작업 메시지입니다. |
MitsubishiMxComponentPlcClient.cs 파일의 928 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ConnectCoreAsync(), DisconnectCoreAsync(), WriteBitsCoreAsync(), WriteWordsCoreAsync().

|
inlinestaticprivate |
COM 배열 값을 지정한 길이의 부울 배열로 추출합니다.
| source | COM 호출이 반환한 배열 값입니다. |
| count | 추출할 요소 수입니다. |
| values | 변환 성공 시 추출된 비트 배열을 받습니다. |
true, 아니면 false입니다.| FormatException | 배열 요소를 정수로 변환할 수 없을 때 발생할 수 있습니다. |
| OverflowException | 배열 요소가 int 범위를 벗어날 때 발생할 수 있습니다. |
MitsubishiMxComponentPlcClient.cs 파일의 1067 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ReadBitsCoreAsync().

|
inlinestaticprivate |
COM 배열 값을 지정한 길이의 short 배열로 추출합니다.
| source | COM 호출이 반환한 배열 값입니다. |
| count | 추출할 요소 수입니다. |
| values | 변환 성공 시 추출된 워드 배열을 받습니다. |
true, 아니면 false입니다.| OverflowException | 배열 요소가 short 범위를 벗어날 때 발생할 수 있습니다. |
MitsubishiMxComponentPlcClient.cs 파일의 983 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ReadWordsCoreAsync().

|
inlineprotected |
연속된 PLC 비트 값을 단건 MX Component 호출로 씁니다.
| address | 쓰기를 시작할 PLC 주소입니다. |
| values | 쓸 비트 값입니다. |
| cancellationToken | 쓰기 작업을 취소하는 토큰입니다. |
| InvalidOperationException | 클라이언트가 연결되지 않았거나 COM 호출이 실패할 때 발생합니다. |
| OperationCanceledException | 취소 토큰이 취소된 경우 발생합니다. |
MitsubishiMxComponentPlcClient.cs 파일의 496 번째 라인에서 정의되었습니다.
다음을 참조함 : _options, Dreamine.PLC.Mitsubishi.MxComponent.Devices.MitsubishiMxDeviceNameFormatter.FormatOffset(), RequireComponent(), ToResult().

|
inlineprotected |
연속된 PLC 워드 값을 쓰며 블록 호출이 호환되지 않으면 단건 호출로 전환합니다.
| address | 쓰기를 시작할 PLC 주소입니다. |
| values | 쓸 워드 값입니다. |
| cancellationToken | 쓰기 작업을 취소하는 토큰입니다. |
| InvalidOperationException | 클라이언트가 연결되지 않았거나 폴백 COM 호출이 실패할 때 발생합니다. |
| OperationCanceledException | 취소 토큰이 취소된 경우 발생합니다. |
MitsubishiMxComponentPlcClient.cs 파일의 578 번째 라인에서 정의되었습니다.
다음을 참조함 : _options, Dreamine.PLC.Mitsubishi.MxComponent.Devices.MitsubishiMxDeviceNameFormatter.Format(), Dreamine.PLC.Mitsubishi.MxComponent.Devices.MitsubishiMxDeviceNameFormatter.FormatOffset(), RequireComponent(), ToResult().

|
private |
component 값을 보관합니다.
MitsubishiMxComponentPlcClient.cs 파일의 48 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ConnectCoreAsync(), DisconnectCoreAsync(), ReleaseComponent(), RequireComponent().
|
private |
factory 값을 보관합니다.
MitsubishiMxComponentPlcClient.cs 파일의 39 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ConnectCoreAsync(), MitsubishiMxComponentPlcClient().
|
private |
options 값을 보관합니다.
MitsubishiMxComponentPlcClient.cs 파일의 30 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ConnectCoreAsync(), DisconnectCoreAsync(), MitsubishiMxComponentPlcClient(), ReadBitsCoreAsync(), ReadBitsOneByOne(), ReadWordsCoreAsync(), ReadWordsOneByOne(), WriteBitsCoreAsync(), WriteWordsCoreAsync().
|
get |
이 클라이언트가 사용하는 MX Component 옵션을 가져옵니다.
MitsubishiMxComponentPlcClient.cs 파일의 125 번째 라인에서 정의되었습니다.