@Don C2
In 19.2 there are some better ways to do what you are looking for, but for
your version we can take an approach where a List is used to control the
availability of cells in your racks.
The attached model includes a Fixed Resource process flow that is attached
to a rack like your CMA Flow objects. It uses tokens to represent each Bay/Level
combination for the rack and pushes them to a List to signal their availability.The tokens are a assigned a capacity from a
label on the Rack.This assumes that all
cells will have the same number of items in them.When a cell’s capacity is reached it goes to
a Decide activity that just holds the token until its content is less than its
capacity.
The Incoming Items section of the process flow creates a token for a pallet ready
to be unloaded into the rack, and then creates child tokens for each item in
the pallet.Those child tokens then
search for an available cell preferring the highest level first then the lowest
bay.When a cell for the item is found,
it is recorded by Bay/Level into labels on the item. A task executer is acquired, and it transports
to the box to the Rack.The Rack reads
the Bay/Level labels to know where to place it.
The Outgoing Items section monitors when a flowitem leaves the Rack, updating
cell contents and releasing the cell token back to the list if needed.
Have a look and see if this is what you are looking for and let me know if
you have questions about it.
Edit: Mistake in the uploaded model. Fixed Model here:
listcontrolledrack-2.fsm