#ifndef MODBUSADDRESS_H #define MODBUSADDRESS_H #include struct ModbusAddressMap { int clearAlarmCommand = 3; 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 = 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