question

Aksel avatar image
0 Likes"
Aksel asked Jason Lightfoot edited

Loading multiple items on truck

Hi,

I want the truck to load 5 items at once, and then unload 5 items afterwards. However, the truck loads 1, then unloads 1, then loads 1, then unloads 1, and so forth. I also want the truck to do this multiple times, but the created tokens stop Create TS.

Here is the file: Load multiple items, truck.fsm

I am unable to find a solution, any help would be greatly appreciated.

FlexSim 24.0.1
process flowtruckmultiple flow items
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

You need to create an array of items to load in your label, or load the first item in the queue as part of your load activity. At the moment you're not changing the reference to item so your 5 subflow calls load the same one 5 times.

Once you have an array (called eg. 'items') you can unload each element by setting 'item' to the an element of the array found by creationRank when calling your unload subflow.

There are many examples of this here on the site and also in the tutorials.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.