diff --git a/tw_zh/scripts/ZH_CL2.ts b/tw_zh/scripts/ZH_CL2.ts index 88678cc..da4000a 100644 --- a/tw_zh/scripts/ZH_CL2.ts +++ b/tw_zh/scripts/ZH_CL2.ts @@ -1,11 +1,11 @@ const gstore = '504_501' const agvId = '1' const demoLocList = ['rack1/0/1/0', 'rack1/1/1/0', 'rack1/2/1/0', 'rack1/3/1/0'] -const demoLocList2 = [ ...demoLocList ].reverse() while (true) { const [carInv] = (await LCC.queryInv({ rack: agvId, bay: 0, level: 0, cell: 0 })).data const [dd] = (await LCC.queryInv({ rack: gstore })).data + demoLocList.reverse() if (dd) { // 地堆上有托盘, 找一个空货位放过去 @@ -65,7 +65,7 @@ async function findFreeLoc(){ } async function findRackInvLoc(){ - for (const loc of demoLocList2) { + for (const loc of demoLocList) { const [rack, bay, level, cell] = loc.split('/') const [palletLoc] = (await LCC.queryInv({ rack, bay: parseInt(bay), level: parseInt(level) })).data if (palletLoc) {