|
SampleSmart 1.0.0.0
SampleSmart 사용 방법을 보여 주는 예제 프로젝트입니다.
|
Public 멤버 함수 | |
| PlcSampleRuntime () | |
| void | UseInMemoryClient () |
| void | UseSimulatorTcpClient (string host, int port) |
| void | UseMitsubishiMcClient (string host, int port, string transportText, int retryCount) |
| void | UseOmronFinsClient (string host, int port, string transportText, int retryCount) |
| void | UseMitsubishiMxComponentClient (string progId, int logicalStationNumber) |
| void | UseOmronCxComponentClient (string progId, string peerAddress) |
| async Task | StartProtocolServerAsync (string modeText, string host, int port) |
| async Task | StopProtocolServerAsync () |
| Task | StartSimulatorServerAsync (string host, int port) |
| Task | StopSimulatorServerAsync () |
| async Task | RunHandshakeTestAsync (short startValue, int iterations, int delayMs, CancellationToken cancellationToken=default) |
속성 | |
| PlcMonitorViewModel | Monitor [get] |
| string | ServerStatus = "Server stopped." [get, private set] |
Private 멤버 함수 | |
| bool | IsAnyServerRunning () |
| void | OnSimulatorServerStatusChanged (object? sender, string e) |
정적 Private 멤버 함수 | |
| static MitsubishiMcSimulatorServerOptions | CreateMcSimulatorOptions (string host, int port) |
| static OmronFinsSimulatorServerOptions | CreateFinsSimulatorOptions (string host, int port) |
| static string | NormalizeMode (string? modeText) |
Private 속성 | |
| readonly InMemoryPlcClient | _inMemoryClient = new() |
| readonly DefaultPlcAddressParser | _addressParser = new() |
| IPlcClient | _activeClient |
| PlcSimulatorServer? | _simulatorServer |
| MitsubishiMcTcpSimulatorServer? | _mcTcpSimulatorServer |
| MitsubishiMcUdpSimulatorServer? | _mcUdpSimulatorServer |
| OmronFinsTcpSimulatorServer? | _finsTcpSimulatorServer |
| OmronFinsUdpSimulatorServer? | _finsUdpSimulatorServer |
| PlcSimulatorTcpClient? | _simulatorClient |
| MitsubishiMcPlcClient? | _mitsubishiMcClient |
| MitsubishiMxComponentPlcClient? | _mitsubishiMxComponentClient |
| OmronFinsPlcClient? | _omronFinsClient |
| OmronCxComponentPlcClient? | _omronCxComponentClient |
| string | _activeServerMode = string.Empty |
PLC 샘플 전체에서 공유되는 Runtime 컨텍스트입니다.
PlcSampleRuntime.cs 파일의 28 번째 라인에서 정의되었습니다.
|
inline |
PlcSampleRuntime 클래스의 새 인스턴스를 초기화합니다.
PlcSampleRuntime.cs 파일의 165 번째 라인에서 정의되었습니다.
다음을 참조함 : _activeClient, _inMemoryClient, Monitor.
|
inlinestaticprivate |
Fins Simulator Options 값을 생성합니다.
| host | host에 사용할 string 값입니다. |
| port | port에 사용할 int 값입니다. |
OmronFinsSimulatorServerOptions 결과입니다.PlcSampleRuntime.cs 파일의 871 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : StartProtocolServerAsync().

|
inlinestaticprivate |
Mc Simulator Options 값을 생성합니다.
| host | host에 사용할 string 값입니다. |
| port | port에 사용할 int 값입니다. |
MitsubishiMcSimulatorServerOptions 결과입니다.PlcSampleRuntime.cs 파일의 824 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : StartProtocolServerAsync().

|
inlineprivate |
Is Any Server Running 조건을 확인합니다.
true이고, 그렇지 않으면 false입니다.PlcSampleRuntime.cs 파일의 900 번째 라인에서 정의되었습니다.
다음을 참조함 : _finsTcpSimulatorServer, _finsUdpSimulatorServer, _mcTcpSimulatorServer, _mcUdpSimulatorServer, _simulatorServer.
다음에 의해서 참조됨 : StartProtocolServerAsync(), StopProtocolServerAsync().

|
inlinestaticprivate |
Normalize Mode 작업을 수행합니다.
| modeText | mode Text에 사용할 string? 값입니다. |
string 결과입니다.PlcSampleRuntime.cs 파일의 933 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : StartProtocolServerAsync().

|
inlineprivate |
Simulator Server Status Changed 이벤트 또는 상태 변경을 처리합니다.
| sender | 이벤트를 발생시킨 객체입니다. |
| e | 이벤트와 관련된 데이터를 포함합니다. |
PlcSampleRuntime.cs 파일의 964 번째 라인에서 정의되었습니다.
다음을 참조함 : ServerStatus.
다음에 의해서 참조됨 : StartProtocolServerAsync(), StopProtocolServerAsync().

|
inline |
Run Handshake Test Async 작업을 수행합니다.
| startValue | start Value에 사용할 short 값입니다. |
| iterations | iterations에 사용할 int 값입니다. |
| delayMs | delay Ms에 사용할 int 값입니다. |
| cancellationToken | 취소 요청을 감시하는 토큰입니다. |
Task 결과입니다.PlcSampleRuntime.cs 파일의 724 번째 라인에서 정의되었습니다.
다음을 참조함 : _activeClient, _addressParser, Monitor.
|
inline |
선택된 모드에 맞는 PLC Protocol Simulator Server를 시작합니다.
| modeText | 서버 모드입니다. SimulatorTcp, McTcp, McUdp를 사용합니다. |
| host | Bind Host입니다. |
| port | Bind Port입니다. |
Task 결과입니다.PlcSampleRuntime.cs 파일의 488 번째 라인에서 정의되었습니다.
다음을 참조함 : _activeServerMode, _finsTcpSimulatorServer, _finsUdpSimulatorServer, _mcTcpSimulatorServer, _mcUdpSimulatorServer, _simulatorServer, CreateFinsSimulatorOptions(), CreateMcSimulatorOptions(), IsAnyServerRunning(), NormalizeMode(), OnSimulatorServerStatusChanged(), ServerStatus.
다음에 의해서 참조됨 : StartSimulatorServerAsync().


|
inline |
이전 호환성을 위해 SimulatorTcp 서버를 시작합니다.
| host | Bind Host입니다. |
| port | Bind Port입니다. |
Task 결과입니다.PlcSampleRuntime.cs 파일의 650 번째 라인에서 정의되었습니다.
다음을 참조함 : StartProtocolServerAsync().

|
inline |
실행 중인 PLC Protocol Simulator Server를 중지합니다.
Task 결과입니다.PlcSampleRuntime.cs 파일의 569 번째 라인에서 정의되었습니다.
다음을 참조함 : _activeServerMode, _finsTcpSimulatorServer, _finsUdpSimulatorServer, _mcTcpSimulatorServer, _mcUdpSimulatorServer, _simulatorServer, IsAnyServerRunning(), OnSimulatorServerStatusChanged(), ServerStatus.
다음에 의해서 참조됨 : StopSimulatorServerAsync().


|
inline |
이전 호환성을 위해 실행 중인 서버를 중지합니다.
Task 결과입니다.PlcSampleRuntime.cs 파일의 671 번째 라인에서 정의되었습니다.
다음을 참조함 : StopProtocolServerAsync().

|
inline |
InMemory PLC Client를 모니터에 연결합니다.
PlcSampleRuntime.cs 파일의 199 번째 라인에서 정의되었습니다.
다음을 참조함 : _activeClient, _inMemoryClient, Monitor.
|
inline |
Mitsubishi MC Client를 모니터에 연결합니다.
| host | PLC Host입니다. |
| port | PLC Port입니다. |
| transportText | Transport 문자열입니다. Tcp 또는 Udp를 사용합니다. |
| retryCount | 송수신 재시도 횟수입니다. |
PlcSampleRuntime.cs 파일의 284 번째 라인에서 정의되었습니다.
다음을 참조함 : _activeClient, _mitsubishiMcClient, Monitor.
|
inline |
Mitsubishi MX Component Client를 모니터에 연결합니다.
| progId | MX Component ProgID입니다. |
| logicalStationNumber | MX Component logical station number입니다. |
PlcSampleRuntime.cs 파일의 398 번째 라인에서 정의되었습니다.
다음을 참조함 : _activeClient, _mitsubishiMxComponentClient, Monitor.
|
inline |
Omron CX-Compolet Client를 모니터에 연결합니다.
| progId | CX-Compolet ProgID입니다. |
| peerAddress | PLC peer address입니다. |
PlcSampleRuntime.cs 파일의 435 번째 라인에서 정의되었습니다.
다음을 참조함 : _activeClient, _omronCxComponentClient, Monitor.
|
inline |
Omron FINS Client를 모니터에 연결합니다.
| host | PLC Host입니다. |
| port | PLC Port입니다. |
| transportText | Transport 문자열입니다. Tcp 또는 Udp를 사용합니다. |
| retryCount | 송수신 재시도 횟수입니다. |
PlcSampleRuntime.cs 파일의 349 번째 라인에서 정의되었습니다.
다음을 참조함 : _activeClient, _omronFinsClient, Monitor.
|
inline |
TCP Simulator Client를 모니터에 연결합니다.
| host | 서버 Host입니다. |
| port | 서버 Port입니다. |
PlcSampleRuntime.cs 파일의 230 번째 라인에서 정의되었습니다.
다음을 참조함 : _activeClient, _simulatorClient, Monitor.
|
private |
active Client 값을 보관합니다.
PlcSampleRuntime.cs 파일의 56 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : PlcSampleRuntime(), RunHandshakeTestAsync(), UseInMemoryClient(), UseMitsubishiMcClient(), UseMitsubishiMxComponentClient(), UseOmronCxComponentClient(), UseOmronFinsClient(), UseSimulatorTcpClient().
|
private |
active Server Mode 값을 보관합니다.
PlcSampleRuntime.cs 파일의 155 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : StartProtocolServerAsync(), StopProtocolServerAsync().
|
private |
address Parser 값을 보관합니다.
PlcSampleRuntime.cs 파일의 47 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : RunHandshakeTestAsync().
|
private |
fins Tcp Simulator Server 값을 보관합니다.
PlcSampleRuntime.cs 파일의 92 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : IsAnyServerRunning(), StartProtocolServerAsync(), StopProtocolServerAsync().
|
private |
fins Udp Simulator Server 값을 보관합니다.
PlcSampleRuntime.cs 파일의 101 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : IsAnyServerRunning(), StartProtocolServerAsync(), StopProtocolServerAsync().
|
private |
in Memory Client 값을 보관합니다.
PlcSampleRuntime.cs 파일의 38 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : PlcSampleRuntime(), UseInMemoryClient().
|
private |
mc Tcp Simulator Server 값을 보관합니다.
PlcSampleRuntime.cs 파일의 74 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : IsAnyServerRunning(), StartProtocolServerAsync(), StopProtocolServerAsync().
|
private |
mc Udp Simulator Server 값을 보관합니다.
PlcSampleRuntime.cs 파일의 83 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : IsAnyServerRunning(), StartProtocolServerAsync(), StopProtocolServerAsync().
|
private |
mitsubishi Mc Client 값을 보관합니다.
PlcSampleRuntime.cs 파일의 119 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : UseMitsubishiMcClient().
|
private |
mitsubishi Mx Component Client 값을 보관합니다.
PlcSampleRuntime.cs 파일의 128 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : UseMitsubishiMxComponentClient().
|
private |
omron Cx Component Client 값을 보관합니다.
PlcSampleRuntime.cs 파일의 146 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : UseOmronCxComponentClient().
|
private |
omron Fins Client 값을 보관합니다.
PlcSampleRuntime.cs 파일의 137 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : UseOmronFinsClient().
|
private |
simulator Client 값을 보관합니다.
PlcSampleRuntime.cs 파일의 110 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : UseSimulatorTcpClient().
|
private |
simulator Server 값을 보관합니다.
PlcSampleRuntime.cs 파일의 65 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : IsAnyServerRunning(), StartProtocolServerAsync(), StopProtocolServerAsync().
|
get |
PLC Monitor ViewModel입니다.
PlcSampleRuntime.cs 파일의 179 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : PlcSampleRuntime(), RunHandshakeTestAsync(), UseInMemoryClient(), UseMitsubishiMcClient(), UseMitsubishiMxComponentClient(), UseOmronCxComponentClient(), UseOmronFinsClient(), UseSimulatorTcpClient().
|
getprivate set |
PLC Simulator 서버 상태 메시지입니다.
PlcSampleRuntime.cs 파일의 189 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : OnSimulatorServerStatusChanged(), StartProtocolServerAsync(), StopProtocolServerAsync().