question

Willie Chung avatar image
0 Likes"
Willie Chung asked Felix Möhlmann commented

Preempt token and get token's information

@Felix Möhlmann

Hello Felix, I sincerely apologize for bothering you. Your assistance with my previous question was immensely helpful.

Currently, I'm trying to preempt the Breakdown token when the specific process starts. I have used the previous method to accomplish it, but Preempt Breakdown tokens can't get token values and preempt the Breakdown tokens.

I hope you can help. Thank you.

1706414493841.png

Link for previous question:https://reurl.cc/qrnzQp

File:Question.fsm

FlexSim 23.0.0
process flow preemptionpreempt token
1706414493841.png (126.2 KiB)
question.fsm (94.1 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

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

As the error message says, the label "Processor" does not exist on the token that is created by the Event-Triggered Source.

The label does exist on the token that triggers the source (by proxy - on its parent token). So you can get a reference to the processor that way.

1706431281078.png

1706431298410.png


1706431281078.png (7.6 KiB)
1706431298410.png (5.7 KiB)
· 11
5 |100000

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

Willie Chung avatar image Willie Chung commented ·

@Felix Möhlmann I followed your suggestion,but it still has error, and didn't preempt the Breakdown Token1706436306417.png

File:Question.fsm

0 Likes 0 ·
1706436306417.png (356.5 KiB)
question.fsm (94.3 KiB)
Felix Möhlmann avatar image Felix Möhlmann Willie Chung commented ·

Sorry, seems it was still too early in the morning...

It needs to be the triggering token that is assigned to the label.

1706441739288.png

0 Likes 0 ·
1706441739288.png (5.9 KiB)
Willie Chung avatar image Willie Chung Felix Möhlmann commented ·


@Felix Möhlmann Thank you so much for taking the time to help me. It can work what I need approximately.But I still have two issues

  1. After triggering a specific event, it will preempt Breakdown tokens for all machines. However, I want it preempt and release only the breakdown tokens for each individual machine after they complete their respective specific activities, rather than releasing tokens for all machines.
  2. I want to preempt the breakdown token after processor finishes until the Processor token is used again. In the "Wait for Event", I'm not sure which method can do this.1706499348165.png

1706444890379.png

File:question.fsm


0 Likes 0 ·
1706499348165.png (325.5 KiB)
question.fsm (95.8 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.