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


Public 멤버 함수 | |
| MitsubishiMcUdpSimulatorServer (MitsubishiMcSimulatorServerOptions options) | |
| MitsubishiMcUdpSimulatorServer (MitsubishiMcSimulatorServerOptions options, InMemoryPlcMemory memory) | |
| Task | StartAsync (CancellationToken cancellationToken=default) |
| async Task | StopAsync () |
| async ValueTask | DisposeAsync () |
속성 | |
| bool | IsRunning [get] |
이벤트 | |
| EventHandler< string >? | StatusChanged |
Private 멤버 함수 | |
| async Task | ReceiveLoopAsync (CancellationToken cancellationToken) |
| void | OnProtocolStatusChanged (object? sender, string e) |
정적 Private 멤버 함수 | |
| static IPAddress | ParseAddress (string host) |
Private 속성 | |
| readonly MitsubishiMcSimulatorServerOptions | _options |
| readonly MitsubishiMcBinary3ESimulatorProtocol | _protocol |
| CancellationTokenSource? | _cts |
| UdpClient? | _udpClient |
| Task? | _receiveTask |
로컬 및 PC 간 테스트용 최소 Mitsubishi MC Binary 3E UDP 서버를 제공합니다.
MitsubishiMcUdpSimulatorServer.cs 파일의 15 번째 라인에서 정의되었습니다.
|
inline |
새 메모리와 옵션으로 UDP 서버를 초기화합니다.
| options | 옵션입니다. |
| ArgumentNullException | 옵션이 null인 경우 발생합니다. |
MitsubishiMcUdpSimulatorServer.cs 파일의 86 번째 라인에서 정의되었습니다.
|
inline |
공유 메모리와 옵션으로 UDP 서버를 초기화합니다.
| options | 옵션입니다. |
| memory | 공유 메모리입니다. |
| ArgumentNullException | 옵션 또는 메모리가 null인 경우 발생합니다. |
MitsubishiMcUdpSimulatorServer.cs 파일의 121 번째 라인에서 정의되었습니다.
다음을 참조함 : _options, _protocol, OnProtocolStatusChanged().

|
inline |
프로토콜 이벤트 구독을 해제하고 서버를 중지합니다.
MitsubishiMcUdpSimulatorServer.cs 파일의 251 번째 라인에서 정의되었습니다.
다음을 참조함 : OnProtocolStatusChanged(), StopAsync().

|
inlineprivate |
프로토콜 상태 메시지를 서버 이벤트로 전달합니다.
| sender | 이벤트 원본입니다. |
| e | 상태 메시지입니다. |
MitsubishiMcUdpSimulatorServer.cs 파일의 360 번째 라인에서 정의되었습니다.
다음을 참조함 : StatusChanged.
다음에 의해서 참조됨 : DisposeAsync(), MitsubishiMcUdpSimulatorServer().

|
inlinestaticprivate |
바인딩 호스트를 IP 주소로 변환하며 잘못되면 Any를 사용합니다.
| host | 호스트입니다. |
MitsubishiMcUdpSimulatorServer.cs 파일의 328 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : StartAsync().

|
inlineprivate |
UDP 요청 데이터그램을 받아 실행하고 원격 끝점에 응답합니다.
| cancellationToken | 취소 토큰입니다. |
MitsubishiMcUdpSimulatorServer.cs 파일의 279 번째 라인에서 정의되었습니다.
다음을 참조함 : _protocol, _udpClient.
다음에 의해서 참조됨 : StartAsync().

|
inline |
UDP 수신기와 수신 루프를 시작합니다.
| cancellationToken | 서버 수명 토큰입니다. |
MitsubishiMcUdpSimulatorServer.cs 파일의 171 번째 라인에서 정의되었습니다.
다음을 참조함 : _cts, _options, _receiveTask, _udpClient, ParseAddress(), ReceiveLoopAsync(), StatusChanged.

|
inline |
UDP 수신기를 중지하고 수신 작업 종료를 기다립니다.
MitsubishiMcUdpSimulatorServer.cs 파일의 202 번째 라인에서 정의되었습니다.
다음을 참조함 : _cts, _receiveTask, _udpClient, StatusChanged.
다음에 의해서 참조됨 : DisposeAsync().

|
private |
cts 값을 보관합니다.
MitsubishiMcUdpSimulatorServer.cs 파일의 43 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : StartAsync(), StopAsync().
|
private |
options 값을 보관합니다.
MitsubishiMcUdpSimulatorServer.cs 파일의 25 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : MitsubishiMcUdpSimulatorServer(), StartAsync().
|
private |
protocol 값을 보관합니다.
MitsubishiMcUdpSimulatorServer.cs 파일의 34 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : MitsubishiMcUdpSimulatorServer(), ReceiveLoopAsync().
|
private |
receive Task 값을 보관합니다.
MitsubishiMcUdpSimulatorServer.cs 파일의 61 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : StartAsync(), StopAsync().
|
private |
udp Client 값을 보관합니다.
MitsubishiMcUdpSimulatorServer.cs 파일의 52 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ReceiveLoopAsync(), StartAsync(), StopAsync().
|
get |
서버 실행 여부를 가져옵니다.
MitsubishiMcUdpSimulatorServer.cs 파일의 146 번째 라인에서 정의되었습니다.
| EventHandler<string>? Dreamine.PLC.Mitsubishi.MC.Simulation.MitsubishiMcUdpSimulatorServer.StatusChanged |
서버 상태 메시지가 변경될 때 발생합니다.
MitsubishiMcUdpSimulatorServer.cs 파일의 136 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : OnProtocolStatusChanged(), StartAsync(), StopAsync().