question

Rykou avatar image
0 Likes"
Rykou asked Jeanette F commented

Pull item by label on specific time

I'm confused about how to make Queue2 pull the items by label(item.ID) on specific runtime from Rack. I have stored the require runtime and require item in globaltable("Require").

The attachments are as follows.Thanks.

output-trigger-byglobaltable.fsm

FlexSim 24.0.1
queuerackpull strategy
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Rykou, was Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

Field "Pull Strategy" is not time based, it is port based. You return there from which input port this rack pulls items. Because you are using a descrete event simulation tool you must create events happening at your time values in your table. You can do this by messages. a message has a delay parameter. You can build messages on reset event of your model and send messages delayed by values of you table rows or you compute from current run time an actual delay to next event from row to row.

To iniatie a pull item action, you should have closed the input of your queue after a previous item has entered the queue. Then you update a label at your queue, which Type of item you want to pull. And finally you open the input on message event again in your queue.

· 6
5 |100000

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

Rykou avatar image Rykou commented ·

Hi, @Joerg Vogel. Thanks for your reply.

I have referenced this article (https://answers.flexsim.com/questions/38111/process-item-on-specific-time.html?childToView=38134#answer-38134) which is similar to your description.

I used the method, but I found the transport schedule is not I supposed. In the current simulation, the transport order from Rack to Queue2 is 4>5>2>3>1, I supposed that the transport order from Rack to Queue2 is 5>4>2>3>1. And I found that the first loop isn't work of the Rack's "on massage" trigger. Can you help me to fix the error?Thanks alot.

output-trigger-byglobaltable.fsm

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Rykou commented ·

@Rykou, this model works a bit differently. Items are released by a custom code in On Message trigger. And a new delayed sendmessage command activates itself again some time later. There is not a timed mechanism in a simple pull strategy function. As long as you do not implement a mechanism of releasing items timed from your rack, you won't see any progress. You can give each item a minimum dwell time, you can releasitems by command or you move items upon an timed event.

0 Likes 0 ·
Rykou avatar image Rykou Joerg Vogel commented ·

I don't understand the meaning of the top paragraph.Can you give an example about it ?Thanks in advance.

0 Likes 0 ·
Show more comments