first commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user