question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked martin.j edited

Wait for Event Based on Partition Content?

Hi Team,

I am working in object process flow to have separate buffer for both the objects. I want to check individual buffer for object and exchange the pallet.

I am using partition id to achieve it. But it is not working fine.

1661499223700.png

Can you help me to resolve this issue?

Thank you!

FlexSim 21.1.5
triggercontentcheckpartition id
1661499223700.png (202.5 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.

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Not really sure why this isn't working. I also tried it with a global list in a general process flow and it still didn't work. Might be a bug.

As a workaround you can listen to the general "OnContentChange" event and then check if the partition content has reached the target value in a Decide activity. Make sure that the connections coming from the Decide activity have the correct ranks.

1661507207144.png


1661507207144.png (56.9 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.

martin.j avatar image
0 Likes"
martin.j answered martin.j edited

I just happend to be in a similar pickle as @Ankur A3 and I found another solution. With a wait for event you can listen for On Partition Content Change and set it to Decrease or Increase to specific values or just 0. However listen for event on partition only works if you use a Global list and only if you go to the General tab of that list and check "Track Number Fields Total".

I realize that is answer is close to a year too late, but I find it to be a bit neater than the proposed workarounds.WaitForListEmpty.fsm


5 |100000

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

Ankur A3 avatar image
0 Likes"
Ankur A3 answered Ankur A3 commented

Hi @Felix Möhlmann,

In my model, run sub flow will release 1 token once all token will be pulled. While check for wait for event if condition is not matching, token will be sent to sink and there is not other token available for exchange process.

I think we have to have event triggered source to make it happen.

Thank you!

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

Felix Möhlmann avatar image Felix Möhlmann commented ·
Is there a reason why the token has to sent to a sink if the condition is not fulfilled? Couldn't it just wait until it is?
0 Likes 0 ·
Ankur A3 avatar image Ankur A3 Felix Möhlmann commented ·

Ok @Felix Möhlmann. Got it!

Here, I have created partition based on object and availability to make sure that finished item is not pulled for processing.

I don't know why things are not working as per condition. Ideally, it it should trigger exchange process once partition content is reached 5. But it is going to wait for event.

1661758573087.png

1661758772003.png


Thank you!

0 Likes 0 ·
1661758573087.png (162.2 KiB)
1661758772003.png (113.3 KiB)
Felix Möhlmann avatar image Felix Möhlmann Ankur A3 commented ·

The command "getstat" is missing a 0 parameter between "STAT_CURRENT" and the partition array.

1661759988496.png

This is not added when using the sampling tool because it is not necessary in a general process flow. However in an instanced flow that parameter tells the command that it should look at the global instance of the list activity.

0 Likes 0 ·
1661759988496.png (3.7 KiB)
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.