question

yoni A avatar image
0 Likes"
yoni A asked tannerp converted comment to answer

setup time from to table

I have a processor that have to process several item types, then I use a from to table to indicate when to change and how long the setup takes.

when the item is process by itself the from to table setup works with this code

double returnvalue = table[string.fromNum(lastitemtype)][string.fromNum(currentitemtype)];

but when the item is combined with a holder(container) and then go to a second processor and the setup (from to table) does not work.

what do I have to change in the above code? so the processor can read the item and not the container when an item type changes

FlexSim 18.2.2
setup time
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

·
tannerp avatar image
0 Likes"
tannerp answered

You will need to access the first subnode of the container, which is the item. Then, you'll access the label value on that item. I'm not sure exactly what to give you as an example, however, because I don't know the details of your model.

The code might look like this:

myContainer.subnodes[1].itemType
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.