Files
ssp/modbus/modbusaddress.h
T

69 lines
1.7 KiB
C

#ifndef MODBUSADDRESS_H
#define MODBUSADDRESS_H
#include <QString>
struct ModbusAddressMap
{
int clearAlarmCommand = 3;
int plcRunning = 817;
int trayPresent1 = 820;
int trayPresent2 = 821;
int trayPresent3 = 822;
int trayPresent4 = 823;
int trayPresent5 = 824;
int trayPresent6 = 825;
int safetyDoorClosed = 826;
int safetyDoor1Closed = 837;
int safetyDoor2Closed = 838;
int safetyDoor3Closed = 839;
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