feat(vision): 新增拍照到位前置流程并支持视觉失败降级取料
- 在普通 RackPick 前写托盘号、格位并置 M850,收到 M851 后清除两位 - 使用 vision/enabled 控制识别,关闭时仍执行拍照到位流程 - 识别成功且 R60 写入确认后写 M852=1,视觉关闭或失败时写 M852=0 - 确认 M852 写入后启动 RackPick,动作结束保留 M852 - 移除旧 850–854 五信号握手,更新配置和协议文档 - 允许未就绪的视觉服务接收测量,扩展超时以覆盖初始化重试 - 保留 PLC 写入失败阻断、暂停发送门控及迟到结果拒绝 - 持久化未完成事务,支持 PLC 暂停后的视觉维护与人工恢复 验证:MinGW 32/64 位编译通过;生产流程47、IPC14、PLC11项测试通过
This commit is contained in:
@@ -22,6 +22,7 @@ public:
|
||||
static QJsonObject standardConvention();
|
||||
bool isReady() const;
|
||||
bool isBusy() const;
|
||||
bool canInitialize() const;
|
||||
QString sessionId() const;
|
||||
|
||||
public slots:
|
||||
@@ -32,7 +33,7 @@ public slots:
|
||||
void measure(const QJsonObject &request);
|
||||
void diagnose(const QJsonObject &request);
|
||||
void cancel(const QString &requestId);
|
||||
void setProductionActive(bool active);
|
||||
void setProductionActive(bool active, bool maintenanceAllowed = false);
|
||||
void showWindow();
|
||||
void shutdown();
|
||||
|
||||
@@ -77,7 +78,9 @@ private:
|
||||
QJsonObject m_request;
|
||||
bool m_ready;
|
||||
bool m_busy;
|
||||
bool m_backendInitializing = false;
|
||||
bool m_productionActive;
|
||||
bool m_maintenanceAllowed = false;
|
||||
bool m_diagnostic;
|
||||
bool m_connecting;
|
||||
bool m_shuttingDown;
|
||||
|
||||
Reference in New Issue
Block a user