question

AdvitSphinX avatar image
0 Likes"
AdvitSphinX asked AdvitSphinX commented

How to make the operators to take only one type of material from the storage?

There is a source and the source has to produce 2 types of items. It by default shows red and green color items and then one operator picks items from source to the storage then there are 2 more operators, and 2 machines and in that 1 operator would take the red items from the storage and send to machine 1 and the 2nd operator would green items and take and send to the machine 2, so tell me how to make the 1st operator only take red items and 2nd operator to take only green operator in Flexsim.

FlexSim 24.0.1
sourceoperatorsasigning
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered AdvitSphinX commented

Let me assume you have tasksequences which are executed by operators. A dispatcher object can transfer tasksequences outgoing to connected operators at his output ports by output rank number. You need to get information of involved item in such tasksequences. Typically in a transport Tasksequence you find a reference to a transported item in a property called involved1 in 2nd and 5th task of those tasksequences. If you have a reference of involved item, you can get properties about them, for example label values, color by name or color values by component value of red, green and blue. By this data you can dispatch tasksequences to connected operators in a template called port by case.

you need FlexScript Class API properties of TaskSequence, TaskSequence.Task and Object to gather needed data.

https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/FlexScriptClassReference.html

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

AdvitSphinX avatar image AdvitSphinX commented ·
Thanks!
0 Likes 0 ·

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.