| | |
| | | { |
| | | public partial class InboundAreaDispatch |
| | | { |
| | | public static string[] InboundStationNo = new string[] { "50301", "50302", "50303", "50304", "50305", "50306", "50307", "50308" }; |
| | | public static string[] InboundStationNo = new string[] { "50301", "50302", "50303", "50304", "50305", "50306", "50307"}; |
| | | |
| | | private static string CLOutStationNo = "30302"; |
| | | |
| | | public static void InboundStationAction(IDt_TaskWCSinfoRepository taskWCSinfoRepository, IDt_TaskRGVinfoRepository taskRGVinfoRepository, PLCClient client) |
| | | { |
| | | foreach (var item in InboundStationNo) |
| | |
| | | int taskNumber = int.Parse(client.ReadValue(CLineInfoDBName.R_Line_TaskNumber.ToString(), station).ToString()); |
| | | string barcode = client.ReadValue(CLineInfoDBName.R_Line_Barcode.ToString(), station).ToString(); |
| | | bool flag = bool.Parse(client.ReadValue(CLineInfoDBName.R_Line_LoadSleep.ToString(), station).ToString()); |
| | | bool SB = bool.Parse(client.ReadValue(CLineInfoDBName.R_Line_DeviceNormal.ToString(), station).ToString()); |
| | | if (!SB) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | if (!flag) |
| | | return; |
| | | Dt_TaskWCSinfo wcsInfo = taskWCSinfoRepository.FindFirst(x => x.wcstask_taskNumber == taskNumber && x.wcstask_barcode == barcode); |
| | |
| | | string toLayer = wcsInfo.wcstask_endLocation.Substring(0, 2); |
| | | string stationLayer = station.Substring(3, 2); |
| | | |
| | | if (toLayer == stationLayer) |
| | | if (toLayer == stationLayer) |
| | | { |
| | | string state = string.Empty; |
| | | //空æå宿çå
¥åº |
| | |
| | | return; |
| | | } |
| | | |
| | | |
| | | bool flag = bool.Parse(client.ReadValue(CLineInfoDBName.R_Line_LoadSleep.ToString(), CLOutStationNo).ToString()); |
| | | bool noflag = bool.Parse(client.ReadValue(CLineInfoDBName.R_Line_NoLoadSleep.ToString(), CLOutStationNo).ToString()); |
| | | if (flag || !noflag) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | |
| | | //string lineCode = "Measure_O"; |
| | | int taskNumber = taskWCSinfo.wcstask_taskNumber; |
| | | //æ¥ç线ä½ç¶æï¼åå¤ç»çº¿ä½ä¸åä»»å¡ä¿¡æ¯ 读åé»è¾æ§å¶å¼ |