Hi!
I'm trying to build a Vertical Lift Module (VLM). The machine is supposed to collect a tray (all items in a given level) and display them at a bay (a queue). Then the operator can either replenish or pick items from the given tray (items at the queue). In order to fetch the correct tray (all items in the given level) I need to know which items are in the given level, and their position.
I tried to make a code, but it do not work. Any suggestions on how I can do this?
A rack consists of 20 levels, 6 bays and 2 slots per bay. token.item.Rack returns the current rack of the item and token.level returns the level/tray I'm looking for.