Code/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineNewJob/ConveyorLineTargetAddressSelector.cs
@@ -68,8 +68,11 @@ var cvState = conveyorLine.GetValue<ConveyorLineDBNameNew, byte>(ConveyorLineDBNameNew.CV_State, nextAddress); bool isAvailable = cvState == 2; WriteDebug(conveyorLine, "出库下一地址状态", childDeviceCode, $"CV_State={cvState},可用={isAvailable}"); if (isAvailable) { WriteDebug(conveyorLine, "出库下一地址可用,写入目标地址", childDeviceCode, nextAddress); Thread.Sleep(300); // 短暂等待,确保设备状态稳定后再写入目标地址 return conveyorLine.SetValue(ConveyorLineDBNameNew.Target, Convert.ToInt16(nextAddress), childDeviceCode); } return false;