question

Trex-2 avatar image
0 Likes"
Trex-2 asked Jeanette F commented

Wait for Event Match With Item and Token Not Working

I am creating a model where i need to release the token only when that part type is produced from the station. I have 5 types of part produced from source and 5 tokens from process flow. I want that which every part type exits the station only that token is released from wait for event by matching the lable type of item and token. But the match value or match both is not working. how can it be done ??


Please find the model :
Wait for event match.fsm

FlexSim 24.1.0
wait for event
· 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.

1 Answer

Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered Steven Hamoen commented

@Trex-2 The problem is that in the wait for event you are comparing the value of label Type with the exiting item. So 1 is an integer and the other is a pointer. They are never equal so that is why it is not working. So you can solve it in different ways:

1. only listen to the on exit in then use a decision which of the 5 tokens can continue and which ones can be send back. (be careful if the the flowitem moves in the sink it is gone so getting info from the 3d Object can be more complex)

2. if there can only be 1 object at a time in the processor put all the information on your token when it leaves so make the token independent from the flow item

Giving more info about the actual problem you are trying to solve might give more solutions.

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