From 14fc2f577e2c0b7b146c1a430e9438f317ad5b0c Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 23 九月 2023 14:14:27 +0800 Subject: [PATCH] 任务接收增加channel字段,postion字段改为channel --- model/common/common.go | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/model/common/common.go b/model/common/common.go index 5eafc0d..f169626 100644 --- a/model/common/common.go +++ b/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 //鐢ㄧ綉鍙h繕鏄鍙d互鍙婄綉鍙p port } PlcConfig struct { @@ -86,7 +87,7 @@ PlcAddress struct { DeviceID string `json:"deviceID"` // 璁惧id - Position int `json:"position"` // 鐢熶骇浣嶇疆锛屼竴涓満鍣ㄥ彲鑳芥湁澶氫釜鏈轰綅锛岄渶瑕佸垎鍒厤缃畃lc鍦板潃 + Channel int `json:"channel"` // 鐢熶骇閫氶亾on锛屼竴涓満鍣ㄥ彲鑳芥湁澶氫釜鏈轰綅锛岄渶瑕佸垎鍒厤缃畃lc鍦板潃 StartAddress int `json:"startAddress"` // 鏁版嵁璧峰鍦板潃 Length int `json:"length"` // 鏁版嵁闀垮害 Type string `json:"type"` // 鏁版嵁绫诲瀷 -- Gitblit v1.8.0