Kristoffer,
The model that you are trying to duplicate does work quite differently than one that uses actual flowitems in the racks. I am unsure of your level of understanding of the model so I will start with a general description of how the model works.
The flowitems in the model represent trips and flow through the model (Source -> InQueue -> OutQueue -> Sink) without going through the racks. The reason that the fork lifts travel to the racks is due to the code that resides in the InQueue's TransportResource and OnMessage triggers. All of the actual travel tasks are created in the TransportResource trigger.
In the TransportResource trigger (Code field next to the Use Transport check box) the code creates a tasksequence for the forklift that determines where it travels and how long it delays for loading. The general flow of the code is as follows:
- Travel to the InQueue
- Load the Trip flowitem
- Send Message to InQueue to execute the Load Message Code
- Loop through the Orders associated with the Trip
- Travel to the rack that contains the order
- Travel the offset to the order location in the rack
- Delay for the load time
- Send Message to InQueue to execute the Pick Message Code
- Travel to the OutQueue
- Unload the Trip flowitem
- Send Message to InQueue to execute the Unload Message Code
The Order table contains the number of items in the order and the location row to use for the Locations table. The rack object, bay, level, and delaytime (per part) are all defined by the Locations Table. The delaytime in the Locations table is actually a function that gets executed with the amount value from the Orders table passed in as a parameter. The code to look at for all of this is on lines 21-25 of the TransportResource trigger.
Ultimately the answer to your question can be found on lines 25 and 31 of the TransportResource trigger. Line 25 is where the value of the delay (load time) is calculated. Line 31 is where the delay task (load time) is inserted into the tasksequence for each order.
I hope this answers your question,
Brandon
img src="https://damassets.autodesk.net/content/dam/autodesk/logos/autodesk-logo-primary-rgbblack-small_forum.png" >
Brandon Peterson
Principal Technology Consultant
>