question

jacks avatar image
0 Likes"
jacks asked Felix Möhlmann answered

how to make airplane switch to next task when there is no cargo to carry

1234_autosave.fsm

Dear guys, I would like to fix 2 problems for my program

1, the output of the airplane is just 1 unit, which can not be controlled by "capacity" button

2, how to build the program, when there is no cargo to carry for airplane, and let the plane switch to next task


FlexSim 21.2.4
transportation
1234-autosave.fsm (5.0 MiB)
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

1. The plane is controlled entirely by Process Flow. For it to load multiple items, you have to tell it to do so. This could be done by...

2. ...using a list. The queues push items to a global list (in the Send to Port trigger, use a partition to separate the items of the two queues). This global list is connected to a list activity in the Process Flow. The tokens can then pull multiple values at a time from this list. With the Use Max Wait Timer option, the token can be released to a different connections if it can't pull the required number of items within the given time.

capture1.png

When pulling multiple values, they will be assigned as an array to the specified label. To load them, you would iterate through the array in a subflow.

capture2.png

You can check out the Task Logic Tutorial 1.3 to see an example.


capture1.png (26.1 KiB)
capture2.png (20.2 KiB)
5 |100000

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