question

superanto00 avatar image
0 Likes"
superanto00 asked Andrew O commented

Problem with Time caclulation

I´m trying to calculate the time each processor is actually working and to do so i have created a code in an on entry and on exit trigger that writes down the time when a product enters and exits each processor. This has worked for processors 1, 2 and 3 but when I added a new one (processor 47) the times seem to not be registering correctly as it can be seen in the Global Table "Times". I don´t know how to fix this as I have used the same code for all processors. By the way, the table is created in the on exit trigger of the queue next to the sink. TG3 - 2.0_Mejora.fsm

FlexSim 21.0.10
timetablestime calculationtime managing
tg3-20-mejora.fsm (365.3 KiB)
· 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.

Andrew O avatar image Andrew O commented ·

Hi @superanto00, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

May I suggest you read times rather than you compute them by statistical functions, even if these functions have the same parameters as in process time.

There are Functions you can evaluate like getentrytime(item obj)

Edit: Maybe you should think about different events like processfinish and exit. An item can wait to get transported, but an items process time ends when setup and process are done.

5 |100000

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