question

Kevin S7 avatar image
0 Likes"
Kevin S7 asked Felix Möhlmann commented

Improve a flow process

Buenos días me pueden ayudar a corregir un modelo que tengo, por favor, lo que pasa es que quiero que los operadores después de cargar los productos en la cola 5, esos dos operadores llevan el combinador y por lo tanto lo mismo de esos dos operadores tienen que empacar el combinador. . los productos ya con el tiempo que hay una vez finalizada esta tarea, puedes volver a recoger los productos y así sucesivamente


LOAD PRUE.fsm

FlexSim 21.2.4
processflowcombineroperator
load-prue.fsm (118.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 Felix Möhlmann commented

Normally I'd advise against mixing process flow and 3D logic, in this case it is relatively easy to handle though.

If you create a task sequence for the travel/load/unload activities in the process flow, they won't be interrupted by other task sequences that might come from the 3D model.

The same is true the other way around. If the operators are currently buys with a task from the 3D model, the new task sequence from the process flow will be added to their task queue and start when the previous task is finished.

To treat the process flow activities as a task sequence, use the "Create TS" and "Finish TS" activities to at the start and end of the flow.

https://docs.flexsim.com/en/21.2/Reference/ProcessFlowObjects/TaskSequences/CreateTaskSequence/

https://docs.flexsim.com/en/21.2/Reference/ProcessFlowObjects/TaskSequences/FinishTaskSequence/

This way the transport logic to the combiners can be done using dispatchers. Due to the batching in the queues, all transport tasks will be created adn dispatched at once, meaning the process flow won't interrupt the transport, since any new task sequence would be added to the end of the task queue (except when using priority/preemption).

load-prue_tasksequence.fsm


· 3
5 |100000

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

Kevin S7 avatar image Kevin S7 commented ·

Good morning friend, the model works well but those operated after having finished transporting from the queue 5,6,7 to its combiner must remain there during the process time, add that option but it does not comply once that option is finished, you can operators return to carry more products


PRUEBA DE OPERARIOS.fsm

0 Likes 0 ·
Kevin S7 avatar image Kevin S7 commented ·

@Felix Möhlmann

I share this example model, this is how I would like the operator to behave relative to the previous model using dispatcher

LOAD 1.fsm


0 Likes 0 ·
load-1.fsm (33.5 KiB)
Felix Möhlmann avatar image Felix Möhlmann commented ·

The ´combiners are working in "Join" mode, so you only have one output object. As such, the trucks should have a max content of 1. Also, the truck-dispatcher is connected as the second centerport connection. The "Send to Port" option has to be configured accordingly.

To gather the data you have store the information somewhere. In the attached model I first write the creation time of the order token to a label on that token. This is later copied to each item in the assign labels activity of the load subflow in the "PICKING" flow. Lastly, since the items are deleted in the combiner, I copy the information to an array label on the container object (truck) in the entry trigger of each combiner. There I also assign a batch Id, based on a global variable that starts at 1 is incremented after the current value is assigned as Id to a truck.

In the On Entry trigger of the sinks I create a new row for entry in the array that holds the order arrival times and add the type and batch Id in two more columns. The type information is also copied to the array label on the truck in the combiners entry trigger.

The difference between the current time when arriving at the sink and the order creation time is converted into a string to display as hours and minutes.

You can add seconds if you continue the logic in the same way.

model-lis_1.fsm

0 Likes 0 ·
model-lis-1.fsm (1.3 MiB)