StringDateTimePoint 생성자
소스 보기StringDateTimePoint(byte, bool, ushort, string, DateTimeKind, Encoding, bool, ModbusEndian, ushort?, ushort?, bool?, IEnumerable<InterfaceHandler>)
생성자
선언
public StringDateTimePoint(byte slaveAddress = 0, bool writable = true, ushort address = 0, string format = null, DateTimeKind dateTimeKind = DateTimeKind.Utc, Encoding encoding = null, bool skipFirstByte = false, ModbusEndian endian = ModbusEndian.AllBig, ushort? requestAddress = null, ushort? requestLength = null, bool? useMultiWriteFunction = null, IEnumerable<InterfaceHandler> handlers = null)
매개 변수
| 형식 | 이름 | 설명 |
|---|---|---|
| byte | slaveAddress | 슬레이브 주소 |
| bool | writable | 쓰기 가능 여부, true일 경우는 Holding Register, false일 경우는 Input Register |
| ushort | address | 데이터 주소 |
| string | format | 서식 문자열 |
| DateTimeKind | dateTimeKind | 현지 시간 또는 UTC(지역 표준시)를 나타내는지 아니면 현지 시간 또는 UTC로 지정되지 않는지 여부 |
| Encoding | encoding | 인코딩, null이면 기본값으로 utf-8을 사용함 |
| bool | skipFirstByte | 첫 번째 Byte 생략 여부 |
| ModbusEndian | endian | Modbus 엔디안 |
| ushort? | requestAddress | 요청 시작 주소 |
| ushort? | requestLength | 요청 길이 |
| bool? | useMultiWriteFunction | 쓰기 요청 시 다중 쓰기 Function(0x10) 사용 여부, Holding Register일 경우만 적용되고 Input Register일 경우는 무시함 |
| IEnumerable<InterfaceHandler> | handlers | 인터페이스 처리기 열거 |