Pull strategy for processor

Pull strategy for processor

szymon_m2
Not applicable
207 Views
3 Replies
Message 1 of 4

Pull strategy for processor

szymon_m2
Not applicable

[ FlexSim 19.0.0 ]

Hello!

I'm new to FlexSim. I'm having problems with pull strategy. In this example source is creating 2 types of boxes (red and green) by random. Processor is pulling item that was longest time in queue so if source created 3 red boxes in a row the processor will process them first. I need processor to pull red then green then red again etc. Is this possible to set this up without using process flow?

Thanks in advance for help.

przechwytywanie.png

0 Likes
Accepted solutions (1)
208 Views
3 Replies
Replies (3)
Message 2 of 4

braydn_t
Not applicable
Accepted solution

Hey @Szymon M2

There is not an easy way to do this in the 3D model without a large amount of custom code and tweaking. But there is an easy way to do this in Process Flow which I will attach here. Notify me with @Braydn T if you have any questions about it.

It uses a global variable that changes from 2 to 1 in the code object in process flow. Queue1 pushes the items to a list, and it pulls them in alternating order.

I was unsure what version of FlexSim you were using, so this is in the latest release (19.1.1)

alternating.fsm

Thanks!!

0 Likes
Message 3 of 4

szymon_m2
Not applicable

Hey @Braydn T

Yes I would like to know how to do this. In my real model I have several places in which processor need to do 5 items in particular order. They are from different queues. Unfortunately I'm not familiar with process flow yet and I tried to set this option in processor and queue settings but I didn't succed. I'm not sure about my FlexSim version cause I use it on my university to do master thesis. Will check this tommorow if needed.

Thanks

0 Likes
Message 4 of 4

braydn_t
Not applicable

Here are some tutorials to help you get started in Process Flow. https://docs.flexsim.com/en/19.1/Tutorials/ProcessFlow/Tutorial1UsingSharedAssets/UsingSharedAssetsO...

If you have a basic knowledge of C++, you can change the Custom Code in the Process flow to change the value of the global variable ItemType to whatever order you would like, and that model should work with relatively few modifications.

Here is another question that does what you are doing, but slightly more complicated.

https://answers.flexsim.com/questions/67717/how-to-command-transporter-to-pick-up-specific-ite.html

0 Likes