|
Dreamine.PLC.Core 1.0.1
Dreamine.PLC.Core 산업 자동화 및 I/O 기능을 제공합니다.
|
정적 Public 멤버 함수 | |
| static string | Ok (string? payload=null) |
| static string | Error (string message) |
| static string | FormatBits (IEnumerable< bool > values) |
| static string | FormatWords (IEnumerable< short > values) |
| static bool[] | ParseBits (string payload) |
| static short[] | ParseWords (string payload) |
| static string | ReadOkPayload (string line) |
정적 Public 속성 | |
| const string | ReadBits = "READ_BITS" |
| const string | ReadWords = "READ_WORDS" |
| const string | WriteBits = "WRITE_BITS" |
| const string | WriteWords = "WRITE_WORDS" |
정적 Private 멤버 함수 | |
| static string[] | SplitValues (string payload) |
| static bool | ParseBit (string text) |
Dreamine PLC 시뮬레이터 라인 프로토콜 도우미를 제공합니다.
PlcSimulatorProtocol.cs 파일의 13 번째 라인에서 정의되었습니다.
|
inlinestatic |
개행이 제거된 실패 응답 라인을 만듭니다.
| message | 실패 메시지입니다. |
PlcSimulatorProtocol.cs 파일의 108 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteLine(), Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteReadBits(), Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteReadWords(), Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteWriteBits(), Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteWriteWords().

|
inlinestatic |
비트 값을 프로토콜 페이로드로 변환합니다.
| values | 비트 값입니다. |
PlcSimulatorProtocol.cs 파일의 137 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteReadBits(), Dreamine.PLC.Core.Simulation.PlcSimulatorTcpClient.WriteBitsCoreAsync().

|
inlinestatic |
워드 값을 프로토콜 페이로드로 변환합니다.
| values | 워드 값입니다. |
PlcSimulatorProtocol.cs 파일의 166 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteReadWords(), Dreamine.PLC.Core.Simulation.PlcSimulatorTcpClient.WriteWordsCoreAsync().

|
inlinestatic |
성공 응답 라인을 만듭니다.
| payload | 선택적 응답 페이로드입니다. |
PlcSimulatorProtocol.cs 파일의 79 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteReadBits(), Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteReadWords(), Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteWriteBits(), Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteWriteWords().

|
inlinestaticprivate |
0, 1 또는 논리 문자열을 비트 값으로 구문 분석합니다.
| text | 구문 분석할 텍스트입니다. |
| FormatException | 텍스트가 비트 값이 아닌 경우 발생합니다. |
PlcSimulatorProtocol.cs 파일의 366 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ParseBits().

|
inlinestatic |
프로토콜 페이로드에서 비트 값을 구문 분석합니다.
| payload | 페이로드 텍스트입니다. |
| FormatException | 유효하지 않은 비트 값이 포함된 경우 발생합니다. |
PlcSimulatorProtocol.cs 파일의 203 번째 라인에서 정의되었습니다.
다음을 참조함 : ParseBit(), SplitValues().
다음에 의해서 참조됨 : Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteWriteBits(), Dreamine.PLC.Core.Simulation.PlcSimulatorTcpClient.ReadBitsCoreAsync().


|
inlinestatic |
프로토콜 페이로드에서 워드 값을 구문 분석합니다.
| payload | 페이로드 텍스트입니다. |
| FormatException | 유효하지 않은 워드 값이 포함된 경우 발생합니다. |
| OverflowException | 값이 short 범위를 벗어난 경우 발생합니다. |
PlcSimulatorProtocol.cs 파일의 250 번째 라인에서 정의되었습니다.
다음을 참조함 : SplitValues().
다음에 의해서 참조됨 : Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteWriteWords(), Dreamine.PLC.Core.Simulation.PlcSimulatorTcpClient.ReadWordsCoreAsync().


|
inlinestatic |
응답 라인에서 성공 페이로드를 추출합니다.
| line | 응답 라인입니다. |
| InvalidOperationException | 오류 또는 잘못된 응답인 경우 발생합니다. |
PlcSimulatorProtocol.cs 파일의 289 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Dreamine.PLC.Core.Simulation.PlcSimulatorTcpClient.SendCommandAsync().

|
inlinestaticprivate |
쉼표로 구분된 페이로드를 공백이 제거된 값으로 나눕니다.
| payload | 분할할 페이로드입니다. |
PlcSimulatorProtocol.cs 파일의 329 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : ParseBits(), ParseWords().

|
static |
비트 읽기 명령 이름입니다.
PlcSimulatorProtocol.cs 파일의 23 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteLine().
|
static |
워드 읽기 명령 이름입니다.
PlcSimulatorProtocol.cs 파일의 33 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteLine().
|
static |
비트 쓰기 명령 이름입니다.
PlcSimulatorProtocol.cs 파일의 43 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteLine().
|
static |
워드 쓰기 명령 이름입니다.
PlcSimulatorProtocol.cs 파일의 53 번째 라인에서 정의되었습니다.
다음에 의해서 참조됨 : Dreamine.PLC.Core.Simulation.PlcSimulatorServer.ExecuteLine().