feat: 重构视觉取料流程及生产故障恢复

- 删除订单启动、暂停、复位相关 PLC 握手及无效反馈配置
- 清除报警改为仅写 clearAlarmCommand,不等待反馈
- 将拍照位移动、视觉处理和 RackPick 拆分为三个独立动作
- 增加 M850/M851 拍照位动作及 R60/M852 视觉结果流程
- 暂停改为等待当前机器人动作完成,视觉结果不确定时转人工确认
- 删除复位按钮,合并为恢复/重试按钮
- 普通 PAUSED 订单通过启动按钮继续
- 恢复前检查 PLC、安全状态、订单及动作命令反馈
- 支持在途动作接管、已完成动作收尾、安全重试和人工确认
- 故障状态保持订单 RUNNING,并持久化实际恢复阶段
- 恢复成功后仅清除本次软件故障对应的报警
- 更新小轴 PLC 地址、Modbus 配置和视觉集成文档
This commit is contained in:
lidg
2026-10-29 17:20:14 +08:00
parent 31454722a0
commit 407af2892d
17 changed files with 839 additions and 929 deletions
+35 -32
View File
@@ -17,14 +17,9 @@ pollIntervalMs=1000
feedbackTimeoutMs=2000
reconnectDelayMs=200
reconnectAttempts=2
startCommand=0
pauseCommand=1
resetCommand=2
; Coils
clearAlarmCommand=3
startFeedback=10
pauseFeedback=11
resetFeedback=12
clearAlarmFeedback=13
plcReady=100
robotReady=101
safetyDoorClosed=102
@@ -40,25 +35,40 @@ activeAlarm=507
currentStep=200
checkResult=201
errorCode=202
rackPickCommand=300
rackPickFeedback=310
frontLoadCommand=301
frontLoadFeedback=311
;robot signals
rackPickCommand=800
rackPickFeedback=807
frontLoadCommand=803
frontLoadFeedback=810
inspectionCommand=302
inspectionFeedback=312
frontUnloadCommand=303
frontUnloadFeedback=313
flipCommand=304
flipFeedback=314
backLoadCommand=305
backLoadFeedback=315
backUnloadCommand=306
backUnloadFeedback=316
rackPlaceCommand=307
rackPlaceFeedback=317
inspectionMode=320
trayNumber=400
slotNumber=401
frontUnloadCommand=802
frontUnloadFeedback=809
flipCommand=804
flipFeedback=811
backLoadCommand=806
backLoadFeedback=813
backUnloadCommand=805
backUnloadFeedback=812
rackPlaceCommand=801
rackPlaceFeedback=808
inspectionMode=814
photoMoveCoil=850
photoMoveCoilFeedback=851
comparisonPickCoil=852
;holdregister
slotNumber=800
trayNumber=801
slotRowNumber=802
slotColumNumber=803
; R indices, not raw Modbus addresses (R40=12328, R60=12348).
photoPoseR=40
graspPoseR=60
lowWordFirst=true
[production]
loadStep=1
@@ -82,7 +92,7 @@ productionEnabled=true
[vision]
; Recognition switch only; the M850/M851 photo-position stage always precedes RackPick.
enabled=false
enabled=true
contractConfirmed=true
photoPoseReadyConfirmed=true
executablePath=E:/QTCode/VisionGuide/VisionGuide_Qt/source/build-ssp-integration/bin/VisionGuide.exe
@@ -90,13 +100,6 @@ ipcName=ssp_visionguide_v1
startupTimeoutMs=15000
initializeTimeoutMs=60000
requestTimeoutMs=15000
photoPoseR=40
graspPoseR=60
lowWordFirst=true
photoMoveCoil=850
photoArrivedCoil=851
comparisonPickCoil=852
; ssp clears M850/M851 after arrival; M852 is overwritten before each RackPick and retained.
[visionTrayMap]
; All six physical trays use VisionGuide configuration 1.