question

Szymon M2 avatar image
0 Likes"
Szymon M2 asked Braydn T edited

Pull strategy for processor

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

FlexSim 19.0.0
processorpull strategy
przechwytywanie.png (55.7 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

Braydn T avatar image
0 Likes"
Braydn T answered Braydn T edited

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!!


alternating.fsm (27.9 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.

Szymon M2 avatar image Szymon M2 commented ·

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 0 ·
Braydn T avatar image Braydn T Szymon M2 commented ·

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

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 0 ·