zhangqian
2023-09-23 14fc2f577e2c0b7b146c1a430e9438f317ad5b0c
model/common/common.go
@@ -51,6 +51,7 @@
      OutputMaterials   []*ProcedureMaterial `json:"outputMaterials"`   // 输出物料列表
      Workers           []*ProcedureWorker   `json:"workers"`           // 人员列表
      AllProcedureNames []string             `json:"allProcedureNames"` // 所属工单工序列表
      Channel           int32                `json:"channel"`           //通道序号
   }
   DeliverScheduleTask struct {
@@ -68,8 +69,8 @@
      KeyData        []byte
      AddressData    []byte
      DeviceId       string
      PlcAddressList []*PlcAddress
      PlcConfig      PlcConfig
      PlcAddressList []*PlcAddress //plc 完成量,总量, 读写地址
      PlcConfig      PlcConfig     //用网口还是端口以及网口ip port
   }
   PlcConfig struct {
@@ -86,7 +87,7 @@
   PlcAddress struct {
      DeviceID     string                       `json:"deviceID"`     // 设备id
      Position     int                          `json:"position"`     // 生产位置,一个机器可能有多个机位,需要分别配置plc地址
      Channel      int                          `json:"channel"`      // 生产通道on,一个机器可能有多个机位,需要分别配置plc地址
      StartAddress int                          `json:"startAddress"` // 数据起始地址
      Length       int                          `json:"length"`       // 数据长度
      Type         string                       `json:"type"`         // 数据类型