first commit

This commit is contained in:
lidg
2026-08-18 09:40:43 +08:00
commit 0c4fd6844c
70 changed files with 8721 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
#ifndef MODBUSADDRESS_H
#define MODBUSADDRESS_H
#include <QString>
struct ModbusAddressMap
{
int startCommand = 0;
int pauseCommand = 1;
int resetCommand = 2;
int clearAlarmCommand = 3;
int startFeedback = 10;
int pauseFeedback = 11;
int resetFeedback = 12;
int clearAlarmFeedback = 13;
int plcReady = 100;
int robotReady = 101;
int safetyDoorClosed = 102;
int emergencyStop = 103;
int currentStep = 200;
int checkResult = 201;
int errorCode = 202;
bool isValid(QString *error = nullptr) const;
};
#endif // MODBUSADDRESS_H