question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Ryosuke S commented

Releasing unmatched token at wait for event

I've learned from past answers in the community that in order to release unmatched token at wait for event activity is to use the Zone. But how exactly do you set the zone? Can you set to the sample layout? I want to set to the BlockEvent. Thank you in advance.

agv_blockedTime.fsm

FlexSim 20.1.3
processflowflexsim 20.1.3wait for event
capture011.jpg (57.2 KiB)
agv-blockedtime.fsm (57.5 KiB)
· 2
5 |100000

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

Jeff Nordgren avatar image Jeff Nordgren commented ·

@ryosuke.s,

I guess I don't understand what is supposed to happen in the model. It appears that you are waiting for events in your PF blocks for events that are never going to happen. But I don't know what to suggest because I don't know what the model is supposed to do. If it's just waiting for those events, then maybe the events need to change what they are checking for? Or you could check the box "Use Max Wait Timer" to release the token after a certain amount of time has passed.

Any additional information that you can give us would certainly help.

Thanks.


0 Likes 0 ·
Ryosuke S avatar image Ryosuke S Jeff Nordgren commented ·

Hello @jeff.nordgren, Thank you for your reply. I'm sorry I didn't explain in detail. As you can see, there is one Travel activity, and I want to calculate the time of travel and also time blocked by other agv, if it ever happens. So, Block (wait for event) is there in order to calculate the blocked time. However, agv doesn't necessarily blocked by other agv. If it is NOT blocked, the token will remain at the wait for event, so I figured I need to release the tokens, otherwise many tokens will be accumulated here. This is the reason why I wanted to know how to release the token at the wait for event.

Thank you in advance.

0 Likes 0 ·

1 Answer

·
Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Ryosuke S commented

@ryosuke.s,

In the Wait for Event process flow block, at the very bottom of the window, is a field called "Use Max Wait Timer". If you check that box, you will be able to enter a Time to wait. Then in the OnWaitTimerFired field, you select the option to release the token (see attached model).

Is this what you are needing to do? From your description, I believe that is all you need to do. Take a look at the model and see if this solution would work for you.

Thanks.

agv-blockedtime-JN1.fsm


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

Ryosuke S avatar image Ryosuke S commented ·

@jeff.nordgren,

Thank you for your reply and sample file. I'm a little puzzled. Why did you have to change the Object in the BlockEvent from token.car to ControlPoint3?

Also, in this case, since you set the Use Max Wait Timer on BlockEvent, you don't need Zone2, do you? Is it used to restrict the number of token entering the BlockEvent activity? Thank you in advance.

0 Likes 0 ·
capture013.jpg (29.3 KiB)
Jeff Nordgren avatar image Jeff Nordgren Ryosuke S commented ·

@ryosuke.s,

#1. I can't think of a situation where a Transporter can go into a Blocked state, on its own. So, in the model that uses this as the BlockEvent, won't work because that block will never fire that event. Where a DP can be in a blocked state. So I changed it from the transporter to the DP.

#2. You're right, I only changed things in the model that HAD to be changed. I didn't go through it all and make it "pretty". Attached in the model that has been "cleaned" up a bit.

If you have any questions or problems, please let us know. If this answers your initial question, please accept the answer.

Thanks.

agv-blockedtime-JN2.fsm

0 Likes 0 ·
Ryosuke S avatar image Ryosuke S Jeff Nordgren commented ·

@jeff.nordgren, thank you for your kind support. I understand clear now. The transporter in this layout won't go into Block state on its own. You are correct. But in the actual customer layout, there will be lot's of transporter running at the same time, and there is a good chance that it will be blocked by one another. But of course it is not easy to reproduce that situation with this sample layout.

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.