64 lines
1.6 KiB
C
64 lines
1.6 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;
|
|
|
|
// 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 = 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
|