zhangqian
2023-09-16 ef7d02ce56e98e8cbc5ed6ec746ea39bf0b8c9e2
model/device_plc.go
@@ -26,13 +26,18 @@
      Detail     string `gorm:"type:varchar(2048);comment:数据详情" json:"-"`
      Details []*DevicePlcAddress `gorm:"-" json:"details"`
      MaxTryTimes     int   `gorm:"-" json:"-"` //最大写入重试次数
      CurrentTryTimes int   `gorm:"-" json:"-"` //当前写入重试次数
      CurrentErr      error `gorm:"-" json:"-"` //当前报错
   }
   DevicePlcAddress struct {
      StartAddress int    `json:"startAddress"` // 数据起始地址
      Length       int    `json:"length"`       // 数据长度
      Type         string `json:"type"`         // 数据类型
      FieldName    int    `json:"fieldName"`    // 对应系统字段
      Position     int                               `json:"position"`     // 数据起始地址
      StartAddress int                               `json:"startAddress"` // 数据起始地址
      Length       int                               `json:"length"`       // 数据长度
      Type         constvar.PlcStartAddressValueType `json:"type"`         // 数据类型
      FieldName    constvar.PlcStartAddressType      `json:"fieldName"`    // 对应系统字段
   }
   DevicePlcSearch struct {