- 删除订单启动、暂停、复位相关 PLC 握手及无效反馈配置 - 清除报警改为仅写 clearAlarmCommand,不等待反馈 - 将拍照位移动、视觉处理和 RackPick 拆分为三个独立动作 - 增加 M850/M851 拍照位动作及 R60/M852 视觉结果流程 - 暂停改为等待当前机器人动作完成,视觉结果不确定时转人工确认 - 删除复位按钮,合并为恢复/重试按钮 - 普通 PAUSED 订单通过启动按钮继续 - 恢复前检查 PLC、安全状态、订单及动作命令反馈 - 支持在途动作接管、已完成动作收尾、安全重试和人工确认 - 故障状态保持订单 RUNNING,并持久化实际恢复阶段 - 恢复成功后仅清除本次软件故障对应的报警 - 更新小轴 PLC 地址、Modbus 配置和视觉集成文档
56 lines
1.4 KiB
C
56 lines
1.4 KiB
C
#ifndef MODBUSADDRESS_H
|
|
#define MODBUSADDRESS_H
|
|
|
|
#include <QString>
|
|
|
|
struct ModbusAddressMap
|
|
{
|
|
int clearAlarmCommand = 3;
|
|
|
|
int plcReady = 100;
|
|
int robotReady = 101;
|
|
int safetyDoorClosed = 102;
|
|
int emergencyStop = 103;
|
|
|
|
// Additional device status coils. Replace these placeholders with the
|
|
// approved PLC point table before commissioning.
|
|
int inspectionMachineReady = 500;
|
|
int visionReady = 501;
|
|
int robotControlCabinetReady = 502;
|
|
int mainControlCabinetReady = 503;
|
|
int safetyDoor1Closed = 504;
|
|
int safetyDoor2Closed = 505;
|
|
int safetyDoor3Closed = 506;
|
|
int activeAlarm = 507;
|
|
|
|
int currentStep = 200;
|
|
int checkResult = 201;
|
|
int errorCode = 202;
|
|
|
|
int rackPickCommand = 800;
|
|
int frontLoadCommand = 803;
|
|
int inspectionCommand = 302;
|
|
int frontUnloadCommand = 802;
|
|
int flipCommand = 804;
|
|
int backLoadCommand = 806;
|
|
int backUnloadCommand = 805;
|
|
int rackPlaceCommand = 801;
|
|
|
|
int rackPickFeedback = 807;
|
|
int frontLoadFeedback = 810;
|
|
int inspectionFeedback = 312;
|
|
int frontUnloadFeedback = 809;
|
|
int flipFeedback = 811;
|
|
int backLoadFeedback = 813;
|
|
int backUnloadFeedback = 812;
|
|
int rackPlaceFeedback = 808;
|
|
|
|
int inspectionMode = 814;
|
|
int trayNumber = 802;
|
|
int slotNumber = 800;
|
|
|
|
bool isValid(QString *error = nullptr) const;
|
|
};
|
|
|
|
#endif // MODBUSADDRESS_H
|