| | |
| | | } |
| | | else |
| | | { |
| | | //if (message.Contains("10001")) |
| | | //{ |
| | | // otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length)); |
| | | // otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width)); |
| | | // otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness)); |
| | | // otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, dischargeStation); |
| | | // otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 999); |
| | | // otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true); |
| | | //} |
| | | //else if (message.Contains("10002")) |
| | | //{ |
| | | // WriteError($"{otherDevice.DeviceCode}-{otherDevice.DeviceName}", message); |
| | | //} |
| | | //else |
| | | { |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, dischargeStation); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 998); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true); |
| | | |
| | | WriteError(nameof(CommonConveyorLineOutJob), message); |
| | | } |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | if (ex.Message.Contains("10001")) |
| | | { |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, dischargeStation); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 999); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true); |
| | | } |
| | | else if (ex.Message.Contains("10002")) |
| | | { |
| | | WriteError($"{otherDevice.DeviceCode}-{otherDevice.DeviceName}", ex.Message, ex); |
| | | } |
| | | else |
| | | { |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness)); |
| | |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 998); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true); |
| | | |
| | | WriteError(nameof(CommonConveyorLineOutJob), ex.Message, ex); |
| | | WriteError(nameof(CommonConveyorLineOutJob), message); |
| | | |
| | | WriteError("鏉垮瓙鎺掑嚭閿欒鍘熷洜璁板綍鏃ュ織", message); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, dischargeStation); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 999); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true); |
| | | WriteError("鏀炬澘閫昏緫杩愮畻閿欒璁板綍鏃ュ織", ex.Message, ex); |
| | | } |
| | | } |
| | | else |
| | |
| | | } |
| | | else |
| | | { |
| | | //todo 瓒呭澶勭悊 |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Length)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Width)); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, Convert.ToInt32(orderInfo.Thickness)); |
| | |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTarget, dischargeStation); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationTaskNum, 997); |
| | | otherDevice.SetValue(ConveyorLineStationDBName.WCSStationResponse, true); |
| | | //otherDevice.SetValue(ConveyorLineStationDBName.WCSStationNoBarcode, true); |
| | | } |
| | | } |
| | | |