question

anon-user avatar image
0 Likes"
anon-user asked Joerg Vogel commented

number of times transported

How to record the number of times TaskExecuter is transported


There are two things I want to do.


Write the number of items transported by TaskExecuter to the global table.

Write the number of round trips for transportation by TaskExecuter to the global table.


The number of shipped items could be created by writing to the global table with the On UnLoad trigger.

But which trigger should I use for the number of transports?


Or is it not possible to count the number of transports with a trigger?



FlexSim 20.1.3
flexsim 20.1.3triggerstransporttaskexecutor
· 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.

1 Answer

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

If you know, the transporter gets empty at every unload station, you can check his content by current.subnodes.length as a condition to be empty.

Or you send a delayed message to himself. OnMessage you check his current state. If he is traveling again, then the past unload counts as a trip.

· 4
5 |100000

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