Hi,
new to forums was hoping for some insightful feedback.
I need to develop a macro for pickup points on a retrofit cell i'm working on. Infeed system is basically a pallet with parts in a grid or offset grid pattern ie: 5x5 (25 parts) or offset rows 5, 4, 5, 4, 5 (23 parts)
I've done similar grid before and just used counter to populate location of each part but in this case the cell is a flexible cell and the grid pattern may change every week based on part size.
SET I0001 0 // RESET COUNT
(MAIN MOTION)
INC I0001
CALL JOB:GRID SUB
(GRID SUB)
JUMP *POS1 IF I0001=1
JUMP *POS2 IF I0001=2
JUMP *POS3 IF I0001=3
*POS1
MOVL
INC I0001
RET
*POS2
MOVL
INC I0001
RET
Is there a more elegant way to do this? The main issue I see is today there might be 25 parts tomorrow 50, so my idea would have to accommodate upto max parts, and it would have to be a new sub with edited points for each pallet configuration.
TYIA
Ray