question

Gerardo MN avatar image
0 Likes"
Gerardo MN asked Joerg Vogel edited

Dispatcher and Operator Rules

Hello,

I have a scenario where I have 5 processors which are only setup by 1 operator. This operator needs to follow a specific sequence (1-2-3-4-5). I have tried using the dispatcher and sorting by task priority, but the operator keeps going to the processor that finished first.

How would I go about this?

Thanks in advance.

FlexSim 19.1.0
dispatchertask sequence done by an operatoroperator task sequencedispatching rules
· 7
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
1 Like"
Joerg Vogel answered Joerg Vogel edited

My approach consists of using a global tasksequence list. I push the tasksequences in a dispatcher to the list when the dispatcher receives a tasksequence. The list contains a field telling me the number of the order in which the tasksequences should be dispatched. I get this value from the index of an array of the processor treenodes. The processor reference is in the utilize tasksequence the 4th task 2nd involved parameter.

A process flow starts by the event when a resource gets available (operator).

I copy a label value to the token to identify the next number of the order. I evaluate a counter by a modulus operator to get the number sequence 1,2,3,4,5,1,2,..

Then I pull from the list the matching number of the sequence.

A custom code activity move the tasksequence to the operator and dispatch the tasksequence. An assign activity extract from the fourth task the 2nd involved parameter to identify the processor, which the operator assists for setup. I need this data to wait for the event to finish setup and free the operator from his utilize task. Before this action I update the counter label at the operator.

order-ts-to-flow-rank.fsm

This approach is based on the following abstract model, which sorts tokens. The process waits until the right token is available on the list.

order-tokens-incomplete-list.fsm

PS.: This answer contains a complete model now


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