- 在普通 RackPick 前写托盘号、格位并置 M850,收到 M851 后清除两位 - 使用 vision/enabled 控制识别,关闭时仍执行拍照到位流程 - 识别成功且 R60 写入确认后写 M852=1,视觉关闭或失败时写 M852=0 - 确认 M852 写入后启动 RackPick,动作结束保留 M852 - 移除旧 850–854 五信号握手,更新配置和协议文档 - 允许未就绪的视觉服务接收测量,扩展超时以覆盖初始化重试 - 保留 PLC 写入失败阻断、暂停发送门控及迟到结果拒绝 - 持久化未完成事务,支持 PLC 暂停后的视觉维护与人工恢复 验证:MinGW 32/64 位编译通过;生产流程47、IPC14、PLC11项测试通过
109 lines
2.0 KiB
INI
109 lines
2.0 KiB
INI
[database]
|
|
driver=QPSQL
|
|
host=127.0.0.1
|
|
port=5432
|
|
name=ssp
|
|
user=postgres
|
|
password=hardman
|
|
connection=ssp_postgres
|
|
|
|
[modbus]
|
|
host=127.0.0.1
|
|
port=502
|
|
serverAddress=1
|
|
timeoutMs=1000
|
|
retryCount=1
|
|
pollIntervalMs=1000
|
|
feedbackTimeoutMs=2000
|
|
reconnectDelayMs=200
|
|
reconnectAttempts=2
|
|
startCommand=0
|
|
pauseCommand=1
|
|
resetCommand=2
|
|
clearAlarmCommand=3
|
|
startFeedback=10
|
|
pauseFeedback=11
|
|
resetFeedback=12
|
|
clearAlarmFeedback=13
|
|
plcReady=100
|
|
robotReady=101
|
|
safetyDoorClosed=102
|
|
emergencyStop=103
|
|
inspectionMachineReady=500
|
|
visionReady=501
|
|
robotControlCabinetReady=502
|
|
mainControlCabinetReady=503
|
|
safetyDoor1Closed=504
|
|
safetyDoor2Closed=505
|
|
safetyDoor3Closed=506
|
|
activeAlarm=507
|
|
currentStep=200
|
|
checkResult=201
|
|
errorCode=202
|
|
rackPickCommand=300
|
|
rackPickFeedback=310
|
|
frontLoadCommand=301
|
|
frontLoadFeedback=311
|
|
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
|
|
|
|
[production]
|
|
loadStep=1
|
|
frontCheckStep=2
|
|
backCheckStep=3
|
|
unloadStep=4
|
|
cycleCompleteStep=5
|
|
okResult=1
|
|
ngResult=2
|
|
errorResult=3
|
|
simulationResult=1
|
|
timeoutWarningMs=8000
|
|
stateTimeoutMs=10000
|
|
maxRecoveryRetries=1
|
|
simulationStepMs=500
|
|
usePlcErrorCode=false
|
|
|
|
[system]
|
|
simulation=false
|
|
productionEnabled=true
|
|
|
|
[vision]
|
|
; Recognition switch only; the M850/M851 photo-position stage always precedes RackPick.
|
|
enabled=false
|
|
contractConfirmed=true
|
|
photoPoseReadyConfirmed=true
|
|
executablePath=E:/QTCode/VisionGuide/VisionGuide_Qt/source/build-ssp-integration/bin/VisionGuide.exe
|
|
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.
|
|
1=1
|
|
2=1
|
|
3=1
|
|
4=1
|
|
5=1
|
|
6=1
|