question

cyc avatar image
0 Likes"
cyc asked Felix Möhlmann commented

How to create a special event or alternative to trigger this?

Hello experts,

I hope you're doing well.

I’m trying to track the utilized time of an operator because they occasionally need to perform other tasks. Specifically, I’d like to create an event that triggers when the utilized time for Operator1 reaches 10 seconds. And here's my question model: 0119_model.fsm

For example, I was considering using a condition like this:
getstat(Model.find("Operator1"), "State", STAT_TIME_AT_VALUE, 0, STATE_UTILIZE) == 10.

However, I’m not sure if it’s possible to achieve this using a FlexSim function. I’ve read the manual about "User Events," but those seem to be time-based triggers, which doesn’t align with the logic I’m aiming for.

Is there a way to accomplish this in FlexSim? Or is there another approach you’d recommend for tracking and triggering events based on an operator’s utilized time?

Thank you in advance for your guidance!

FlexSim 24.2.2
triggerevent
0119-model.fsm (32.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

Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Felix Möhlmann commented

You can do this in process flow. Event triggered source that creates a token when a utilize state starts, a delay activity for a waiting time and a decide activity to check, if there happened a second utilization during your waiting time. If a second event to utilize your object begins you find a token waiting in delay activity.

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