Hello experts, I'm sorry that my last explanation was not complete, so I will restate my question.
This is my model: Problem_Model.fsm
My model is illustrated based on the image below:
First, I created a Time Table1, which set the rest time of the Operator. Then (please ignore Combiner1, Separator1, and Separator2), I collected the EntryTime, ExitTime, ScheduledDownTime, and Staytime of the three processors through Statistics Collector, where Staytime = ExitTime -EntryTime - ScheduledDownTime. The reason for this is that Staytime should not include the rest time according to the Operator in Time Table1, so I must record ScheduledDownTime.
The problem I want to solve is explained according to the following figure:
ScheduledDownTime cannot be collected correctly, so I followed the method suggested by Joerg Vogel below: use the Downfunction's Duration.
The difficulty I have is that I don't know how to set the Label in DownFunction and read the value of this Label in ScheduledDownTime of Statistics Collector.
In Time Table1, I set 7 scheduled downs, so I went to query Time Table1 in Tree. These 7 scheduled downs should all be recorded in Time Table1 (the numbers 1~7 I marked in the picture).
How should I set the Label of Duration so that the Event Value in ScheduledDownTime of Statistics Collector can read the value of Duration?
Thank you all very much for your help.