Code
Skyfire yes the code above already does the indexing inside the array but imagine that i have two pallets and deposited a box before taking the other one and i have another box and another conveyor if i get out of the loop i lose the count so i said a logic with loop does not work for a line with a one robot and two conveyor ....
FOR XCount = 1 TO 3
FOR YCount = 1 TO 3
FOR ZCount = 1 TO 4
;assuming that "StartPos" is programmed to the first position in the pallet pattern
NextPos[XCount, YCount, ZCount].X = StartPos.X + ((XCount - 1) * 100) ; set X value, shifted by pallet count
NextPos[XCount, YCount, ZCount].Y = StartPos.Y + ((YCount - 1) * ...........
Display More