BUG #2094
已結束DN 81082783, 需要呼叫 4板子母棧板, 卻只呼叫三板
0%
概述
DN 81082783, 應該呼叫 A0020/A0054/A0052/A0015, 卻未呼叫 A0015
2024-09-19 10:34:51.295 [http-nio2-8080-exec-2] DEBUG c.g.i.s.l.StationMgmtService.getWcsStorageStatus [588] - url:http://127.0.0.1:19090/db/data/StallDevices?page=null&size=null&direction=ASC&properties=lx
2024-09-19 10:34:51.330 [http-nio2-8080-exec-2] DEBUG c.g.i.s.o.OutboundService.modDocStatusBatchStart [461] - 母棧板變動號碼:A0020 , 當下母棧板編號:
2024-09-19 10:34:51.395 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.ShuttleDeviceService.wcsGoCmd [212] - responseCmdId:71eca655-fd23-4672-9706-3c74a3306b68
2024-09-19 10:34:51.424 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.WmsCmdLogService.dtoToEntity [357] - carrierId:A0020
2024-09-19 10:34:51.434 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.WmsCmdLogService.dtoToEntity [358] - SourceLocation:102030302
2024-09-19 10:34:51.442 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.WmsCmdLogService.dtoToEntity [378] - SourceLocation:102030302
2024-09-19 10:34:52.854 [pool-6-thread-1484] INFO c.g.i.s.w.EventBusDataCollection.onCarrierLocationChangeEventHandle [219] - WCSCarrierWebService onCarrierLocationChangeEventHandle carrierId:kitty/A0015/L2400957 cmdId:ba4888f2-9f9d-49d1-8d9c-a20379779e76 cmdType:MoveCmd location:x:3,y:5,z:5,s:101020502
2024-09-19 10:34:52.860 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.getLocationMap [610] - cmdId:ba4888f2-9f9d-49d1-8d9c-a20379779e76, wcs location:x:3,y:5,z:5,s:101020502
2024-09-19 10:34:52.863 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [372] - parsePosition
2024-09-19 10:34:52.865 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [373] - jsonMap:
{"subCarrierId":"L2400957","cmdId":"ba4888f2-9f9d-49d1-8d9c-a20379779e76","fullLocation":"x:3,y:5,z:5,s:101020502","cmdType":"MoveCmd","location":null,"sourceLocation":"101020502","eventType":"CarrierLocationChangeEvent","tag":null,"tagMap":null,"carrierId":"A0015"}
2024-09-19 10:34:52.871 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [384] - cmdId:ba4888f2-9f9d-49d1-8d9c-a20379779e76
2024-09-19 10:34:52.873 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [385] - eventType:CarrierLocationChangeEvent
2024-09-19 10:34:52.875 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [386] - carrier:A0015
2024-09-19 10:34:52.877 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [387] - subCarrierId:L2400957
2024-09-19 10:34:52.879 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [388] - location:null
2024-09-19 10:34:52.881 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [389] - sourceLocation:101020502
2024-09-19 10:34:52.883 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [390] - fullLocation:x:3,y:5,z:5,s:101020502
2024-09-19 10:34:52.885 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [391] - opMode:null
2024-09-19 10:34:53.359 [pool-6-thread-1484] INFO c.g.i.s.w.EventBusDataCollection.onCarrierLocationChangeEventHandle [219] - WCSCarrierWebService onCarrierLocationChangeEventHandle carrierId:kitty// cmdId:ba4888f2-9f9d-49d1-8d9c-a20379779e76 cmdType:MoveCmd location:x:3,y:5,z:5,s:null
2024-09-19 10:34:53.363 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.getLocationMap [610] - cmdId:ba4888f2-9f9d-49d1-8d9c-a20379779e76, wcs location:x:3,y:5,z:5,s:null
2024-09-19 10:34:53.366 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [372] - parsePosition
2024-09-19 10:34:53.369 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [373] - jsonMap:
{"subCarrierId":null,"cmdId":"ba4888f2-9f9d-49d1-8d9c-a20379779e76","fullLocation":"x:3,y:5,z:5,s:null","cmdType":"MoveCmd","location":null,"sourceLocation":null,"eventType":"CarrierLocationChangeEvent","tag":null,"tagMap":null,"carrierId":null}
2024-09-19 10:34:53.374 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [384] - cmdId:ba4888f2-9f9d-49d1-8d9c-a20379779e76
2024-09-19 10:34:53.376 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [385] - eventType:CarrierLocationChangeEvent
2024-09-19 10:34:53.378 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [386] - carrier:null
2024-09-19 10:34:53.380 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [387] - subCarrierId:null
2024-09-19 10:34:53.382 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [388] - location:null
2024-09-19 10:34:53.384 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [389] - sourceLocation:null
2024-09-19 10:34:53.385 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [390] - fullLocation:x:3,y:5,z:5,s:null
2024-09-19 10:34:53.388 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [391] - opMode:null
2024-09-19 10:34:53.454 [http-nio2-8080-exec-2] DEBUG c.g.i.s.o.OutboundService.modDocStatusBatchStart [534] - 母棧板沒有變動:A0020 , 當下母棧板編號:A0020
2024-09-19 10:34:53.465 [http-nio2-8080-exec-2] DEBUG c.g.i.s.o.OutboundService.modDocStatusBatchStart [534] - 母棧板沒有變動:A0020 , 當下母棧板編號:A0020
2024-09-19 10:34:53.476 [http-nio2-8080-exec-2] DEBUG c.g.i.s.o.OutboundService.modDocStatusBatchStart [461] - 母棧板變動號碼:A0054 , 當下母棧板編號:A0020
2024-09-19 10:34:53.538 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.ShuttleDeviceService.wcsGoCmd [212] - responseCmdId:8c2aa093-0d20-4c8f-b599-08241e37b788
2024-09-19 10:34:53.556 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.WmsCmdLogService.dtoToEntity [357] - carrierId:A0054
2024-09-19 10:34:53.563 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.WmsCmdLogService.dtoToEntity [358] - SourceLocation:102030502
2024-09-19 10:34:53.572 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.WmsCmdLogService.dtoToEntity [378] - SourceLocation:102030502
2024-09-19 10:34:54.856 [pool-6-thread-1484] INFO c.g.i.s.w.EventBusDataCollection.onCarrierLocationChangeEventHandle [219] - WCSCarrierWebService onCarrierLocationChangeEventHandle carrierId:tiddy/A0038/ cmdId:4db15d1a-27c3-4c35-a27b-79b448ed1554 cmdType:PullCmd location:x:3,y:2,z:1,s:S-ASRS-01.21
2024-09-19 10:34:54.860 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.getLocationMap [610] - cmdId:4db15d1a-27c3-4c35-a27b-79b448ed1554, wcs location:x:3,y:2,z:1,s:S-ASRS-01.21
2024-09-19 10:34:54.864 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [372] - parsePosition
2024-09-19 10:34:54.865 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [373] - jsonMap:
{"subCarrierId":null,"cmdId":"4db15d1a-27c3-4c35-a27b-79b448ed1554","fullLocation":"x:3,y:2,z:1,s:S-ASRS-01.21","cmdType":"PullCmd","location":null,"sourceLocation":"S-ASRS-01.21","eventType":"CarrierLocationChangeEvent","tag":null,"tagMap":null,"carrierId":"A0038"}
2024-09-19 10:34:54.871 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [384] - cmdId:4db15d1a-27c3-4c35-a27b-79b448ed1554
2024-09-19 10:34:54.873 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [385] - eventType:CarrierLocationChangeEvent
2024-09-19 10:34:54.875 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [386] - carrier:A0038
2024-09-19 10:34:54.877 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [387] - subCarrierId:null
2024-09-19 10:34:54.879 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [388] - location:null
2024-09-19 10:34:54.881 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [389] - sourceLocation:S-ASRS-01.21
2024-09-19 10:34:54.883 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [390] - fullLocation:x:3,y:2,z:1,s:S-ASRS-01.21
2024-09-19 10:34:54.885 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.parsePosition [391] - opMode:null
2024-09-19 10:34:54.887 [pool-6-thread-1484] DEBUG c.g.i.s.w.EventBusDataCollection.onPullChangeLocation [350] - onPullChangeLocation
2024-09-19 10:34:55.586 [http-nio2-8080-exec-2] DEBUG c.g.i.s.o.OutboundService.modDocStatusBatchStart [534] - 母棧板沒有變動:A0054 , 當下母棧板編號:A0054
2024-09-19 10:34:55.599 [http-nio2-8080-exec-2] DEBUG c.g.i.s.o.OutboundService.modDocStatusBatchStart [534] - 母棧板沒有變動:A0054 , 當下母棧板編號:A0054
2024-09-19 10:34:55.608 [http-nio2-8080-exec-2] DEBUG c.g.i.s.o.OutboundService.modDocStatusBatchStart [534] - 母棧板沒有變動:A0054 , 當下母棧板編號:A0054
2024-09-19 10:34:55.619 [http-nio2-8080-exec-2] DEBUG c.g.i.s.o.OutboundService.modDocStatusBatchStart [461] - 母棧板變動號碼:A0052 , 當下母棧板編號:A0054
2024-09-19 10:34:55.678 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.ShuttleDeviceService.wcsGoCmd [212] - responseCmdId:95a34fc6-e8b7-4c52-8b3e-657e34e68e58
2024-09-19 10:34:55.695 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.WmsCmdLogService.dtoToEntity [357] - carrierId:A0052
2024-09-19 10:34:55.702 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.WmsCmdLogService.dtoToEntity [358] - SourceLocation:101020303
2024-09-19 10:34:55.710 [http-nio2-8080-exec-2] DEBUG c.g.i.s.w.WmsCmdLogService.dtoToEntity [378] - SourceLocation:101020303
2024-09-19 10:34:57.722 [http-nio2-8080-exec-2] DEBUG c.g.i.s.o.OutboundService.modDocStatusBatchStart [534] - 母棧板沒有變動:A0052 , 當下母棧板編號:A0052
2024-09-19 10:34:57.734 [http-nio2-8080-exec-2] DEBUG c.g.i.s.o.OutboundService.modDocStatusBatchStart [534] - 母棧板沒有變動:A0052 , 當下母棧板編號:A0052
2024-09-19 10:34:57.745 [http-nio2-8080-exec-2] DEBUG c.g.i.s.o.OutboundService.modDocStatusBatchStart [534] - 母棧板沒有變動:A0052 , 當下母棧板編號:A0052
2024-09-19 10:34:59.759 [pool-3-thread-616] DEBUG c.g.i.s.core.MqttService.publish [187] - publish topic:iwms/globalwafers/prod/command
2024-09-19 10:34:59.761 [pool-3-thread-616] DEBUG c.g.i.s.core.MqttService.publish [188] - publish message:{"subCarrierId":null,"createTime":"Sep 19, 2024, 10:34:55 AM","docType":"OU","sourceLocation":null,"carrierId":"A0052","docNo":"IA20240919596206","targetLocation":"S-ASRS-01.21","uuid":"95a34fc6-e8b7-4c52-8b3e-657e34e68e58","desc":"WmsCmdLog 新增/更新"}
檔案
是由 冠榮 林 於 7 個月 前更新
· 已被編輯
#1589 需求中, 提到:
"先呼叫一次 WCS API 取得當下儲位帳 http://xxx:19090/db/data/CarrierObjs, 記在變數中"
但檢查程式碼, 發現呼叫 WCS API 取得當下儲位帳, 卻是呼叫
http://127.0.0.1:19090/db/data/StallDevices?page=null&size=null&direction=ASC&properties=lx
目前懷疑當時 A0015 正在移倉, 故未出現在 StallDevices 這支 API 回傳中, 導致沒有呼叫出庫
先確認呼叫 CarrierObjs, 是否回傳所有母棧(包含移倉中), 若有, 直接把該母棧順序放最後出庫 (因為當下無法取得其儲位)
是由 冠榮 林 於 7 個月 前更新
- 檔案 clipboard-202410041848-7obdj.png clipboard-202410041848-7obdj.png 已新增
- 被分派者 從 冠榮 林 變更為 鼎 秦
由於呼叫 StallDevices, 若某些梭車移動中, 會有漏呼叫的問題, 不該呼叫此 API
故還是回到原 #1589 留言10 的作法, 重新整理如下:
- 呼叫一次 WCS API 取得當下儲位帳 http://xxx:19090/db/data/CarrierObjs, 得到如上圖的結果
- 將上述結果存在變數中, id即為母棧編號, attachId即為所在位置
- 以前端DN對應到出庫單明細的母棧編號(即將要出庫的母棧)當 key(即上述變數的id), 取出對應的attachId
3.1 if attachId.length()==9, 取出attachId末碼, 即為深度 (表示母棧在儲位上)
3.2 else 深度設極大值, 例如9 (表示母棧在移動中, 那就給它最深) - 根據上述3的深度, 由小到大重新排序要呼叫的母棧編號, 並每隔 N秒下一 go 指令給 WCS
舉例: 共有4棧板 A,B,C,D 要出庫, 其位置分別為 "101010504", "102030502", "101010203", "kitty"
重新排序後, go 的順序應為 B,C,A,D
後續不變, 所有go 下完後:
4.1 若都成功, 則 response 呼叫成功, http code 200, wording: "一鍵出庫呼叫成功,棧板出庫中!"
4.2 若中途有部分母棧板呼叫失敗, 則記錄下該母棧編號, 一併輸出錯誤訊息, http code 400, wording: "一鍵出庫部份成功,棧板 XXX、YYY、(依此類推) 呼叫失敗,請與幹部確認原因!"
4.3 若都失敗, 則 response 呼叫成功, http code 400, wording: "一鍵出庫全數失敗,請與幹部確認原因!"
是由 鼎 秦 於 7 個月 前更新
- 檔案 clipboard-202410071045-5evas.png clipboard-202410071045-5evas.png 已新增
- 被分派者 從 鼎 秦 變更為 冠榮 林