question

tall_pauhl avatar image
0 Likes"
tall_pauhl asked tall_pauhl commented

Moving Objects from Queue/ Frloor Space to Sink at specific time

Hello everybody,

My problem is quite simple as I´d like to clear a Queue/ Floor Space by moving all objects at a specific time of day, What I want to accomplish is to have the Model basically reset for the next day.

I also want to count the items (which were labeled at the beginning) moved, which I want to accomplish by using a tracked variable. This I can solve myslef, but if theres a clean way to implemented it, feel free to let me know.

Back to the topic. The Simulation starts at 07:00:00 with a process that finishes at 14:00:00. Objects are supposed to be moved at around 15:00:00. Therefore I added a processflow under "Leeren Theke Vegenarisch" which is supposed to send a token at 15:00:00 to start a subflow where all items in Floor Space "Theke Vegenarisch" are moved to Sink "Abfall Theke".

Somehow this doesn`t work the way it is supposed to, but I cannot find the mistake. Also If theres a way where I can accomplish emptying out multiple Queues/ Floor Spaces all with one Process Flow please let me know.

Help would be much appreciated.

All the best,


tall_pauhl


Model: 20240115_SPP_Simulation_V1_tne.fsm

FlexSim 23.2.2
moveitem
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 tall_pauhl commented

In the Move Object activity you use the label "Type1Items" which does not exist on that token.

You do not have to run the Move Object per item. It is one of the few activities that can process an array of values at once. So instead of running the Sub Flow over the items inside one object, you can run it over all objects inside a group (everything you want to empty) and move all items from each object at once.

capture1.png

You should also deal with the other compiler errors.

- In the Run Sub Flow activities for the individual foods you have to remove the second dot between the "Type1Items" and "[creationRank] in the expression "token.Type1Items.[creationRank]". The index follows directly after the array reference

- There is a faulty expression field in List1. (Second "age" field).

- You typed "Log10" in the idle time field of a Pull from List activity without providing the parameter (the number of which the logarithm should be calculated).

capture2.png


capture1.png (55.0 KiB)
capture2.png (50.9 KiB)
· 1
5 |100000

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

tall_pauhl avatar image tall_pauhl commented ·
Thank you very much for your help, it works really well and grouping different ressources is very efficient.



0 Likes 0 ·

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.