question

Mario D3 avatar image
0 Likes"
Mario D3 asked Joerg Vogel answered

how to count the number of flow items of certain item type in a model?

Hi, I am creating a model for a pharmacy in which I have two sources, one for the prescriptions, the other for the baskets - boxes in which the person introduces the prescription. The pharmacy only has 60 baskets, so I'd like to count the number of flow items (baskets) in the model in order to close the on exit port of the baskets source when the amount of this type of flow item is 60 and re open the port when the amount is less than 60. Im having trouble doing this, and i would really appreciate if someone could help me

Thank you in advance

FlexSim 20.0.0
labelstriggersitemscount flow item
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

There are two scenarios you might think about.

  1. you create 60 basket items at start of model run. These items never leave the model. There type is Tote or Pallet. You use combiners to put boxes into them and separators to unpack the boxes.
  2. OnExit trigger of this source you increment a label at the object. And if it’s value rises to 60 you close the output. At the sink of your model you decrement the label value in OnEntry trigger and you open the output of the source. You find at the object triggers suitable picklist templates at the triggers.

There are some basic 3D model tutorials in the manual. PLEASE do them. And please come back, if you have questions about the tutorials. Your task is basic to be solved by triggers, labels, close and open input. And to get the references of source and sink you can use the sampler tool (eye dropper icon) in the templates. Or it is packing and unpacking in the objects combiners vs. separators. Do some research, test features, and learn.

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.