fix(Tray): 托盘传感器显示修改

This commit is contained in:
lidg
2026-11-09 18:16:54 +08:00
parent a8b2b31ce7
commit c248954b87
14 changed files with 170 additions and 51 deletions
+6
View File
@@ -18,6 +18,12 @@ bool ModbusAddressMap::isValid(QString *error) const
const QList<QPair<QString, int> > coilAddresses = QList<QPair<QString, int> >()
<< qMakePair(QString("clearAlarmCommand"), clearAlarmCommand)
<< qMakePair(QString("plcRunning"), plcRunning)
<< qMakePair(QString("trayPresent1"), trayPresent1)
<< qMakePair(QString("trayPresent2"), trayPresent2)
<< qMakePair(QString("trayPresent3"), trayPresent3)
<< qMakePair(QString("trayPresent4"), trayPresent4)
<< qMakePair(QString("trayPresent5"), trayPresent5)
<< qMakePair(QString("trayPresent6"), trayPresent6)
<< qMakePair(QString("plcReady"), plcReady)
<< qMakePair(QString("robotIdle"), robotIdle)
<< qMakePair(QString("robotRunning"), robotRunning)
+6
View File
@@ -8,6 +8,12 @@ struct ModbusAddressMap
int clearAlarmCommand = 3;
int plcRunning = 817;
int trayPresent1 = 820;
int trayPresent2 = 821;
int trayPresent3 = 822;
int trayPresent4 = 823;
int trayPresent5 = 824;
int trayPresent6 = 825;
int safetyDoorClosed = 826;
int safetyDoor1Closed = 827;
int safetyDoor2Closed = 828;