question

Sinisa avatar image
1 Like"
Sinisa asked Sebastian Hemmann commented

Processor should stop at the maximum (98.21)?

Hey guys :)

My problem it that i have a processor , this one writes (OnProcessFinish) the values in [1][1] cell to a global table. (it adds up +1 on every process finish)

So my question is how can i set the processor up , so that he stop working at the number given in cell [2][1] ? (Like a message pops up :" Maximum 98.21 reached")

Thanks in advance guys :)

trennschleifmaschine.fsm

FlexSim 17.1.2
global tablemessage triggerstop object
stop.png (226.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.

1 Answer

·
Steven Hamoen avatar image
2 Likes"
Steven Hamoen answered Sebastian Hemmann commented

@Elisabeth Sestili On the same OnProcessFinish add a 2nd piece of code (press the green plus sign) From control select "End the model Run" and in your condition write something like:

Table("Schleif/Trennschiebe")[1][1] >= Table("Schleif/Trennschiebe")[2][1]
· 5
5 |100000

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

Sinisa avatar image Sinisa commented ·

Thank you very much :)

Do you know how i can set up a message that pops up when the process finishes ?

Greets :)

0 Likes 0 ·
Steven Hamoen avatar image Steven Hamoen Sinisa commented ·

@Elisabeth Sestili Use the option code snippet and write:

if(Table("Schleif/Trennschiebe")[1][1] >= Table("Schleif/Trennschiebe")[2][1])
{
  msg("titel", "message");
}
2 Likes 2 ·
Sinisa avatar image Sinisa Steven Hamoen commented ·

Thank you again :) but the message doesnt pop up?

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