question

Łukasz E avatar image
0 Likes"
Łukasz E asked Tomasz MG answered

Setup Time GlobalTable lookup

How to use a GlobalTable lookup in setup time to search it like:

Row: Last item.Type

Column: Current item.Type

Example: Last item type = 1; current item type = 3;

setup time: row1;col3 -> 50s

setup globaltable.fsm

FlexSim 20.1.3
flexsim 20.1.3globaltablesetupcurrentitemtypelastitemtype
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

·
Tomasz MG avatar image
0 Likes"
Tomasz MG answered

Hi

Write last item Type on machine label in trigger On Exit

1628832960433.png

Then write simple code in setupe time which will check is it first item. If it is it return time that You want.

If not first then it find time in global table based ona labels.

if(current.stats.input.value == 1){
return 0;
}else{
return Table("GlobalTable1")[current.las_type][item.Type];
}


Powodzenia


1628832960433.png (12.6 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.