question

Paula P7 avatar image
0 Likes"
Paula P7 asked Paula P7 commented

Simple model - how to create right flow?

model123.fsm

Hi everyone!

I have a short question. How to create flow like this:

zrodlo->paleta1->"fake" operator->maszyna->"fake" operator->paleta2->wyroby gotowe ?

What's more, priority is to keep 'maszyna' (proccesor) full, to work as much as it can.

FlexSim 20.2.3
operatorflowsimple
model123.fsm (44.4 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.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Paula P7 commented

When you have more than one output you need some condition/rule to decide where the item is send. This is set in the 'Send to Port' option. A good way to differentiate between items from the queue and items from the processor is to have a label that changes depending on where the item comes from.

This label could be set in a trigger on the processor, so it is different after the process. In this case you can also store the information through which port the item entered the "operator" in the 'On Entry' trigger and send it out through the corresponding output connection.

1658998025209.png With all this said, this logic alone would lead to a deadlock in your model. If both the processor and the "operator" are full, they can't move items into each other and the flow becomes stuck. To prevent this, you would have to control the output of the queue, so it can't send an item to the "operator" if the processor is currently full.

Again you can do this via trigger functions. For example, in the 'On Exit' trigger of the first queue check if the capacity of the processor is reached. If so, close the output. In can be opened again in the 'On Entry' trigger of the second queue.

An easier solution might be to just use a "real" operator. If you place a single network node at its position and connect the operator, queues and processor and then set the operator to 'Do not travel offsets for load/unload tasks', the operator will stay in place. The transport time is then entirely controlled by the load and unload times.

1658998313138.png

The attached model demonstrates both approaches.

model123-fm.fsm


1658998025209.png (16.7 KiB)
1658998313138.png (130.1 KiB)
model123-fm.fsm (48.6 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.

Paula P7 avatar image Paula P7 commented ·

Thank you! :)

0 Likes 0 ·