| | |
| | | Details []*PLCAddress `gorm:"-" json:"Details"` |
| | | } |
| | | |
| | | type PLCAddress struct { |
| | | StartAddress int `json:"startAddress"` // 数据起始地址 |
| | | Length int `json:"length"` // 数据长度 |
| | | Type string `json:"type"` // 数据类型 |
| | | FieldName string `json:"fieldName"` // 对应系统字段 |
| | | } |
| | | |
| | | type PLCResponse struct { |
| | | DeviceID string `json:"deviceId"` |
| | | DeviceName string `json:"deviceName"` |
| | |
| | | PLCData []PLCData `json:"plcData"` |
| | | } |
| | | |
| | | type PLCAddress struct { |
| | | StartAddress int `json:"startAddress"` // 数据起始地址 |
| | | Length int `json:"length"` // 数据长度 |
| | | Type string `json:"type"` // 数据类型 |
| | | FieldName string `json:"fieldName"` // 对应系统字段 |
| | | } |
| | | |
| | | type PLCData struct { |
| | | StartAddress int `json:"startAddress"` // 数据起始地址 |
| | | Length int `json:"length"` // 数据长度 |
| | | Type string `json:"type"` // 数据类型 |
| | | FieldName string `json:"fieldName"` // 对应系统字段 |
| | | Data []byte // 从plc读取的原始数据 |
| | | RawData []byte `json:"rawData"` // 从plc读取的原始数据 |
| | | } |
| | | |
| | | type ApsDeviceApiResponse struct { |