question

Daria KS avatar image
0 Likes"
Daria KS asked tannerp commented

processor process pieces from buffers in a specific sequence

Hi,

I have a problem with a simple model where two buffers are connected to one processor. I would like the processor to process pieces from buffers in a specific sequence, e.g. 100 pieces from buffer B2, then 100 pieces from buffer A2, 50 pieces from buffer B2 and then 50 pieces from buffer A2. The numbers are just an example, but I wanted to explain the effect I'm looking for. Can it be entered from the processor level using the Flow ---> Input tab? Maybe some of you have an example of such a problem? I will be grateful for any help.

FlexSim 18.1.2
queueprocessorflexsim 18.1.2
1588078130068.png (46.3 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.

tannerp avatar image tannerp commented ·

Hi @Daria KS, was Jeff Nordgren's answer helpful? If so, please click the red "Accept" button on their answer. If you're still looking for something else, feel free to comment back with mor information about this question and we'd be happy to help. Thanks!

0 Likes 0 ·

1 Answer

·
Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Braydn T commented

@Daria KS,

Attached is a sample model that I believe does what you are describing. The quantity that each queue should release before releasing from the other queue is a label on Processor1.

Take a look at the model and see if something like this would work for you. If you have any questions or problems, please let us know.

Thanks,


Daria-Sample1.fsm


daria-sample1.fsm (18.1 KiB)
· 4
5 |100000

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

Daria KS avatar image Daria KS commented ·

Thank you @Jeff Nordgren for you answe, that's almost what I meant. I was more concerned about the possibility of changing these numbers, below is an example:

100 pieces - buffer A2

200 pieces- buffer B2

after than

200 pieces- buffer A2

150 pieces- buffer B2


The numbers are just an example, but I mean that they can be entered into the table and according to this the processor checked how many parts to download from the given buffer. In the model you inserted, the processor interchangeably downloads 10 pieces.
I hope I described the problem better


0 Likes 0 ·
Braydn T avatar image Braydn T Daria KS commented ·

@Daria KS someone may have a more elegant solution, but I would create 2 global variables that represent the row and column. Your flow tab will have a globaltablelookup command, using the global variables as the parameters. You can increment the global variables in a trigger when you want. When the global variable gets to be bigger then the number of rows and columns, you can reset that number to 0.

0 Likes 0 ·
Daria KS avatar image Daria KS Braydn T commented ·

@Braydn T do you have an example of such solution ? I don't quite understand how to introduce something like this

0 Likes 0 ·
Show more comments

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.