question

Hai L2 avatar image
0 Likes"
Hai L2 asked Hai L2 commented

Pull from lobal list is not working correctly in my model

I'm trying to figure out why my pull from a global list is not working correctly.

I have a source that creat 3 lot tokens (representing a process lot) at t=0 each token is assigned a priory using the token id. The tokens are push to a list (Lots) and wait until it is pulled.

Each time a lot token is pushed to the list or when an operator/tool is release, an event source is used to create a puller token. The puller token is processed in the Select Lot code to determine if any lot token is ready to be processed and set a canStart label to 1. The Pull from List will pull lot token where canStart =1. Currently, the canStart is set to 1 if the priority is 3.

The pull logic is not pulling the expected token (with priority), or any token for that matter. It seems to work if I change the condition toe priority = 3, but in doing so, the Select Lot logic is not applied.

Any ideas?

Thanks,

Hai

TestProcess2-b.fsm

FlexSim 20.1.3
FlexSim 20.2.1
flexsim 20.1.3global list
testprocess2-b.fsm (76.4 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

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Hai L2 commented

Add a zero time delay before pulling from the list and it will work.

· 3
5 |100000

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

Hai L2 avatar image Hai L2 commented ·

Thanks for the reply. Do you mean to add a delay action block, but with zero time?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Hai L2 commented ·

Yes that's correct.

0 Likes 0 ·
Hai L2 avatar image Hai L2 commented ·

Perfect.. it also fixed other issues with stalling token during pull

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.