| | |
| | | } |
| | | |
| | | PlcAddress struct { |
| | | DeviceID string `json:"deviceID"` // 设备id |
| | | Channel int `json:"channel"` // 生产通道on,一个机器可能有多个机位,需要分别配置plc地址 |
| | | StartAddress int `json:"startAddress"` // 数据起始地址 |
| | | Length int `json:"length"` // 数据长度 |
| | | Type string `json:"type"` // 数据类型 |
| | | FieldName constvar.PlcStartAddressType `json:"fieldName"` // 对应系统字段,完成量或总量 |
| | | DeviceID string `json:"deviceID"` // 设备id |
| | | Channel int `json:"channel"` // 生产通道on,一个机器可能有多个机位,需要分别配置plc地址 |
| | | StartAddress int `json:"startAddress"` // 数据起始地址 |
| | | Length int `json:"length"` // 数据长度 |
| | | Type string `json:"type"` // 数据类型 |
| | | FieldName constvar.PlcStartAddressType `json:"fieldName"` // 对应系统字段,完成量或总量 |
| | | Endian constvar.EndianType `json:"endian" gorm:"type:varchar(255)"` // 字节存储顺序,big(ABCD)/little(CDBA)/mix(CDAB) |
| | | } |
| | | ) |
| | | |