question

mary avatar image
0 Likes"
mary asked Kavika F commented

global table item creation

Hello I have a model where in source 1 I am creating two variant type parts. when part 1 that is var1 enters the processor. In both Queue2 and Queue3 part should be created following global table var1. and when var2 part enters in processor var2 global table should be followed to create item.

The item created in Queue should be pallet on part. for particular variant part particular item should be created.

variant.fsm


@Felix Möhlmann

FlexSim 20.0.10
global tabletable
variant.fsm (30.7 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.

Kavika F avatar image Kavika F ♦ commented ·

Hi @mary, was Felix Möhlmann'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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jason Lightfoot commented

As the item names and table names are equal, you can use the name to directly reference the table from which the data should be taken.

'Table(token.item.name)[row][col]'

I'm not sure what exactly you by 'particular item' that should be created, so in the attached model I just set the names of the created objects to the text in the tables.

If you want to actually create different flow item types, I would suggest to type in the rank of the respective item in the flow item bin into the table. This can then be read by the 'Create Objects' activity.

1658403089631.png

variant_fm.fsm


1658403089631.png (16.2 KiB)
variant-fm.fsm (32.2 KiB)
· 6
5 |100000

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

mary avatar image mary commented ·

Hi @Felix Möhlmann

If I have 20 Queue in my Model and 20 items(same process as above). Each buffer should be assigned to one particular item(Ex: P1_var1/P1_var2 should be assigned to Queue2 same as P2_var1/P2_var2 to Queue3 and so on). How can I do it

variant-fm.fsm

0 Likes 0 ·
variant-fm.fsm (34.1 KiB)
Felix Möhlmann avatar image Felix Möhlmann mary commented ·

I'd add an extra column to the tables, storing the information which queue the items should be moved to.

1658473896291.png

In addition, you can use the process flow block that creates the items as a subflow. This subflow can then run as many times as there are rows in the table, automatically scaling with the table size.

1658473869822.png

variant-fm2.fsm

0 Likes 0 ·
1658473869822.png (31.4 KiB)
1658473896291.png (6.3 KiB)
variant-fm2.fsm (34.0 KiB)
mary avatar image mary Felix Möhlmann commented ·
@Felix Möhlmann is the table name related to code?
0 Likes 0 ·
Show more comments

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.