question

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

how to setup a fixed time interval for the airplane transportation

2222.fsmi would like to stimulate the airplane carrying cargo in real life, so the airplane should be fly in a fixed time schedule, but the airplane in my program is transporting according to the cargo's loading or entering. Thus, i want to know how to set the plane leave in a regular time interval.

FlexSim 21.2.4
transportation model
2222.fsm (662.9 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.

1 Answer

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

The attached model shows an example of how this could be done. Two tokens (one for each plane) loop in a Process Flow. A delay activity stops them until the next trip is due (every 1800s currently). The planes then load as many items as they can up to their capacity and move them to the sinks.

References are solely done through port connections. Note that the queues are set to not release items in their Send to Port field.

2222_fm.fsm


2222-fm.fsm (169.2 KiB)
· 2
5 |100000

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

jacks avatar image jacks commented ·

thanks for reply, but i'd like to know how to change the delay at the beginning, seems like there is a quite long waiting time at the beginning of the 1st trip.

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann jacks commented ·

You can either change the initial value of the "NextTripTime" label to be smaller.

capture1.png

Or you can change the Process Flow and create a new token for each trip in a schedule or date-time source.

capture2.png

capture3.png

1 Like 1 ·
capture1.png (3.5 KiB)
capture2.png (16.4 KiB)
capture3.png (6.9 KiB)