feat: AGV状态实时推送与受控异常处置 + rcs-dps状态接口独立配置与日志落盘修复
This commit is contained in:
@@ -61,8 +61,8 @@ type PlcConf struct {
|
||||
Enable bool `json:",default=false"`
|
||||
Host string `json:",default=127.0.0.1"`
|
||||
Port int `json:",default=102"`
|
||||
Rack int `json:",default=0"` // S7 机架号(1200=0,300=0)
|
||||
Slot int `json:",default=1"` // S7 槽号(1200=1,300=2)
|
||||
Rack int `json:",default=0"` // S7 机架号(1200=0,300=0)
|
||||
Slot int `json:",default=1"` // S7 槽号(1200=1,300=2)
|
||||
// DoneByte/DoneBit 工艺完成信号位(PLC 完成上一条下发后置位,MES 读此位决定是否下发下一条)。
|
||||
// 待现场 PLC 点位表确认;未配置时 QueryDone 安全返回 false(不下发下一条,不误进)。
|
||||
DoneByte int `json:",default=-1"`
|
||||
@@ -72,11 +72,12 @@ type PlcConf struct {
|
||||
// AgvConf 海康 AGV(RCS-Lite V1.5) 调度系统对接(2026-10-17 由 RCS-2000 改为 RCS-Lite 1.5)。
|
||||
// RCS-Lite 无签名鉴权;未配置 BaseURL 或 EnableMock=true 时,使用 mock 客户端(模拟下发成功/到位),便于离线联调。
|
||||
type AgvConf struct {
|
||||
EnableMock bool `json:",default=true"` // 是否模拟(未接真实 RCS-Lite 前保持 true)
|
||||
BaseURL string `json:",default=http://127.0.0.1:8182/rCMS/services/rest/hikRpcService"` // RCS-Lite 服务地址(含 /rCMS/services/rest/hikRpcService,默认端口 8182)
|
||||
CarrierCode string `json:",default=DEFAULT"` // 默认载具/托盘编号(选填,下发时作为 podCode)
|
||||
MapCode string `json:",default="` // 地图编号(选填,RCS-Lite 多地图场景使用)
|
||||
Priority string `json:",default=1"` // 任务优先级(字符串 1-127,默认 1)
|
||||
EnableMock bool `json:",default=true"` // 是否模拟(未接真实 RCS-Lite 前保持 true)
|
||||
BaseURL string `json:",default=http://127.0.0.1:8182/rcms/services/rest/hikRpcService"` // RCS-Lite 任务接口地址(含 /rcms/services/rest/hikRpcService,小写 rcms,客户 postman 实测大写会 404)
|
||||
AgvStatusURL string `json:",optional"` // 车辆状态接口地址(rcs-dps 独立服务,如 http://IP:8182/rcms-dps/rest;留空则由 BaseURL 推导)
|
||||
CarrierCode string `json:",default=DEFAULT"` // 默认载具/托盘编号(选填,下发时作为 podCode)
|
||||
MapCode string `json:",default="` // 地图编号(选填,RCS-Lite 多地图场景使用)
|
||||
Priority string `json:",default=1"` // 任务优先级(字符串 1-127,默认 1)
|
||||
// 任务类型编号 = RCS-Lite 任务模板载体(接口文档 2.1.1 taskTyp:与 RCS 端配置的主任务类型编号一致,
|
||||
// 模板绑定在该编号上,错误码 1005/1044 即模板读取/配置失败)。
|
||||
// 2026-11-13 拍板:现场模板 B01=举升(目标点为 JBT21 或工位接驳台)、B02=移动(A1-A4/XW/XT/KF1/GW1Z 等无接驳台点位)。
|
||||
|
||||
Reference in New Issue
Block a user