question

Sean P avatar image
0 Likes"
Sean P asked Sean P commented

Acquire Resource Blocking Tokens when resource not in use

2020-11-2 Hellam laser-brake-weld Simulation.fsmHey all, I am having a small problem with an acquire resource that is not allowing tokens to pass through it.

Right now i have 4 different part numbers trying to access the same resource, and the 4 part numbers are split into 8 tokens. The Acquire works great with the first 4 tokens. then the second 4 just sit there requesting the resource, when it is not showing that it is in use.


Special thanks to @Regan Blackett in teaching me how to scale this job shop model during my training!

FlexSim 20.2.2
flexsim 20.2.2acquire resource
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

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Sean P commented

When you run the Laser Process, the token is being run with access only on the parent token. That's a fine option, but when you acquire the laser, that reference is being stored on the "resource" label, just like the operator reference. You need to rename one (or maybe both) of the labels used by the Acquire activities, so you can have a separate label for the operator and the laser.

Also, I noticed you are using getstat() in the Release Laser activity. I think you just want the "Last Acquired" option. Since you only acquire one laser per token, you can use that option to release that token.

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

Sean P avatar image Sean P commented ·

This has fixed my issue. I renamed the resource label for the operator to token.operator instead of token.resource. Thank you!

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.