1
HuBingJie
2025-12-05 28110912ca4803e5793f181517d7bf2d7a5ea2ad
代码管理/WCS/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/SpeStackerCraneJob/GetDeviceAddress.cs
@@ -389,11 +389,12 @@
        public static bool ReadAqmDecicStice(int aqmtype)
        {
            IDevice? device = Storage.Devices.FirstOrDefault(x => x.DeviceCode == "HCJ2000");
            if (device == null) return false;
            CommonConveyorLine commonConveyorLine = (CommonConveyorLine)device;
            if (aqmtype == 1)
            {
                DeviceProDTO? deviceProDTO = commonConveyorLine.DeviceProDTOs.FirstOrDefault(x => x.DeviceChildCode == "AQM003" && x.DeviceProParamName == "IndicatorStatus" && x.DeviceProParamType == "ReadDeviceCommand");
                short AQMldeng = commonConveyorLine.Communicator.Read<short>(deviceProDTO.DeviceProDataBlock);
                short AQMldeng = commonConveyorLine.Communicator.Read<short>(deviceProDTO.DeviceProAddress);
                if (AQMldeng == 2) return false;
            }
            else
@@ -401,7 +402,7 @@
                foreach (string aqmname in AQMListdata)
                {
                    DeviceProDTO? deviceProDTO = commonConveyorLine.DeviceProDTOs.FirstOrDefault(x => x.DeviceChildCode == aqmname && x.DeviceProParamName == "IndicatorStatus" && x.DeviceProParamType == "ReadDeviceCommand");
                    short AQMldeng = commonConveyorLine.Communicator.Read<short>(deviceProDTO.DeviceProDataBlock);
                    short AQMldeng = commonConveyorLine.Communicator.Read<short>(deviceProDTO.DeviceProAddress);
                    if (AQMldeng == 2) return false;
                }
            }