question

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

Filling conveyors from the last to the nearest

Hi, how can I fill the conveyors (from the farthest to the closest) considering that each output conveyor is filled with 12 boxes?Llenado conveyors.fsm

FlexSim 24.1.0
conveyors
llenado-conveyors.fsm (101.3 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

Keep track of how many items have been send to each conveyor somewhere. For example a global variable array. Each time an item arrives check which conveyor is the farthes that still has space. Increment the respective value and send the item there.

When an item exits one of the conveyors the variable is decremented to allow another to be send to that conveyor.

llenado-conveyors_1.fsm


5 |100000

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