question

Wilfredo Salinas avatar image
0 Likes"
Wilfredo Salinas asked Joerg Vogel commented

Is it possible to collect queue lengths from connected conveyors

mt-conveyor.fsm

I am simulating a machine breakdown and need to collect the mean and max queues that form in three connected conveyors . I have an older versions of Flexsim (7.3.6) and do not know how to program flexscript. All my tests have been done using the GUI interface.

Thanks for your help!

FlexSim (other)
FlexSim (other - please specify)
conveyormtbf mttr
mt-conveyor.fsm (17.4 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.

Steven Hamoen avatar image
2 Likes"
Steven Hamoen answered Joerg Vogel commented

@Wilfredo SalinasA simple way would be to use a label for instance "length" and increase it with every product that enters and decrease with every product that leaves. When it breaks down and when it restarts you can write the current values of the 3 conveyors to a table and do the math afterwards in Excel.

Most triggers contain functions that you can use. For instance for increasing a label there is the option Increment Value ( in later versions it can be found under Data -> Increment Value )

Also for writing to a global table there is an option that might or might not be useful.


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

Wilfredo Salinas avatar image Wilfredo Salinas commented ·

How come all the comments were deleted? I read your answers and was planning on testing them this morning, but all the comments disappeared.

0 Likes 0 ·
Kaspar Chabot avatar image
1 Like"
Kaspar Chabot answered Kaspar Chabot commented

An alternative solution would be to add all the conveyors to a group and then use a loop to cycle through all the group members with the content() command. Keep adding the content of every conveyor in the group to an integer and you have the total queue size at any given moment without having to use the OnEntry and OnExit commands for every Entry/Exit of the conveyor system. If you only need to know the content every now and then and the system has lots of exits and entrances, I would use this solution. If you need the queue size very often I would go with @steven.hamoen 's solution though, since it is resource intensive to keep using loops.

· 2
5 |100000

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

Steven Hamoen avatar image Steven Hamoen commented ·

@Kaspar Chabot Hi Kaspar yes this is also a good solution because you limit the code execution to only the time it is actually needed. But the TS stated that he doesn't know how to program Flexscript so then this solution doesn't answer his question.

0 Likes 0 ·
Kaspar Chabot avatar image Kaspar Chabot Steven Hamoen commented ·

Never too late to start learning though...

0 Likes 0 ·