question

anon-user avatar image
0 Likes"
anon-user asked Ben Wilson commented

number of items staying in Floor

I want to display the number of items staying on Conveyor 1, Second_Floor, Conveyor 2 in Global Table.

I do not know how to display the number of items staying in Second_Floor in Global Table.
Is there a simple and easy way to make it?


FlexSim 19.0.9
global tableflexsim 19.0.9item
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi anonymous user, was benjamin.w2's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

0 Likes 0 ·

1 Answer

·
Benjamin W2 avatar image
0 Likes"
Benjamin W2 answered

Hi anonymous user,

One easy way to accomplish this is using process flow. I added the following 5 activities:

The Source creates a token every time an item enters Queue1, and assigns the item to a label called "Item":

Next, the Custom code increments the global table:

Next, the "Wait for Event" waits for that Item to exit Queue4:

The last "Custom Code" decrements the table label.

Make sure to clear the Global table data on rest:

I also added triggers to your 1st conveyor, Processor4, and Queue4 to increment the table as items enter and exit them. See the attached model for more details.

GTStats.fsm


1598297229935.png (11.0 KiB)
1598297272422.png (18.2 KiB)
1598297301039.png (10.0 KiB)
1598297330484.png (18.9 KiB)
1598297382744.png (48.4 KiB)
gtstats.fsm (76.7 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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