53 lines
1.2 KiB
C
53 lines
1.2 KiB
C
#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;
|
|
|
|
int rackPickCommand = 300;
|
|
int frontLoadCommand = 301;
|
|
int inspectionCommand = 302;
|
|
int frontUnloadCommand = 303;
|
|
int flipCommand = 304;
|
|
int backLoadCommand = 305;
|
|
int backUnloadCommand = 306;
|
|
int rackPlaceCommand = 307;
|
|
|
|
int rackPickFeedback = 310;
|
|
int frontLoadFeedback = 311;
|
|
int inspectionFeedback = 312;
|
|
int frontUnloadFeedback = 313;
|
|
int flipFeedback = 314;
|
|
int backLoadFeedback = 315;
|
|
int backUnloadFeedback = 316;
|
|
int rackPlaceFeedback = 317;
|
|
|
|
int inspectionMode = 320;
|
|
int trayNumber = 400;
|
|
int slotNumber = 401;
|
|
|
|
bool isValid(QString *error = nullptr) const;
|
|
};
|
|
|
|
#endif // MODBUSADDRESS_H
|