63 lines
1.6 KiB
C
63 lines
1.6 KiB
C
#ifndef MODBUSADDRESS_H
|
|
#define MODBUSADDRESS_H
|
|
|
|
#include <QString>
|
|
|
|
struct ModbusAddressMap
|
|
{
|
|
int clearAlarmCommand = 3;
|
|
|
|
int plcRunning = 817;
|
|
int safetyDoorClosed = 826;
|
|
int safetyDoor1Closed = 827;
|
|
int safetyDoor2Closed = 828;
|
|
int safetyDoor3Closed = 829;
|
|
int emergencyStop = 830;
|
|
int robotIdle = 832;
|
|
int robotRunning = 833;
|
|
int robotAlarm = 834;
|
|
int plcReady = 835;
|
|
|
|
// 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 activeAlarm = 507;
|
|
|
|
int currentStep = 200;
|
|
int checkResult = 201;
|
|
int errorCode = 202;
|
|
|
|
int rackPickCommand = 800;
|
|
int frontLoadCommand = 803;
|
|
int inspectionCommand = 302;
|
|
int frontUnloadCommand = 802;
|
|
int flipCommand = 804;
|
|
int flipCommand2 = 841;
|
|
int backLoadCommand = 806;
|
|
int backUnloadCommand = 805;
|
|
int rackPlaceCommand = 801;
|
|
|
|
int rackPickFeedback = 807;
|
|
int frontLoadFeedback = 810;
|
|
int inspectionFeedback = 312;
|
|
int frontUnloadFeedback = 809;
|
|
int flipFeedback = 811;
|
|
int flipFeedback2 = 843;
|
|
int backLoadFeedback = 813;
|
|
int backUnloadFeedback = 812;
|
|
int rackPlaceFeedback = 808;
|
|
|
|
int inspectionMode = 814;
|
|
int trayNumber = 801;
|
|
int slotNumber = 800;
|
|
int slotRowNumber = 802;
|
|
int slotColumNumber = 803;
|
|
|
|
bool isValid(QString *error = nullptr) const;
|
|
};
|
|
|
|
#endif // MODBUSADDRESS_H
|