| | |
| | | type PlcStartAddressType int |
| | | |
| | | const ( |
| | | PlcStartAddressTypeFinishNumber PlcStartAddressType = 1 |
| | | PlcStartAddressTypeTotalNumber PlcStartAddressType = 2 |
| | | PlcStartAddressTypeFinishNumber PlcStartAddressType = 1 |
| | | PlcStartAddressTypeTotalNumber PlcStartAddressType = 2 |
| | | PlcStartAddressTypeTotalNumberWrite PlcStartAddressType = 3 |
| | | ) |
| | | |
| | | type EndianType string |
| | | |
| | | const ( |
| | | EndianTypeBig EndianType = "big" |
| | | EndianTypeLittle EndianType = "little" |
| | | EndianTypeMix EndianType = "mix" |
| | | ) |
| | | |
| | | func (t EndianType) Valid() bool { |
| | | return t == EndianTypeBig || t == EndianTypeLittle || t == EndianTypeMix |
| | | } |
| | | |
| | | type PlcStartAddressValueType string |
| | | |
| | |
| | | ReportTypeSystemDeviceID ReportType = 1 |
| | | ReportTypeReportWork ReportType = 2 |
| | | ) |
| | | |
| | | type SyncStatus int //同步状态 |
| | | |
| | | const ( |
| | | SyncStatusWait SyncStatus = 1 //待同步 |
| | | SyncStatusOk SyncStatus = 2 //已完成 |
| | | ) |