question

Javier C13 avatar image
0 Likes"
Javier C13 asked Jason Lightfoot commented

Two operators in one separator

I need your help again, I have two separators and three operators unpacked in a different queue. The problem is that the third operator doesn't help either of them.

I attach the project.

Help.fsm

I found two pieces of code but neither worked

FlexSim 19.0.0
flexsim 19.0.0operatorsseparatorunpack
help.fsm (66.7 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.

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Two things to note:

1) You use the global keyword 'port' in your code and have not declared it locally. Are you sure you know what it's value is at this point?


2) You can issue your job always to port 1 (the usual operator) and then have that operator dispatch the job to the center operator by connecting to them via an output - since the task executer is also a dispatcher. Do that from both left and right operators and the center one will take jobs from both.



1614434791369.png (6.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.

Julio R avatar image
0 Likes"
Julio R answered Julio R commented

Hello Javier,

The promblem here is that your separators are asking for the center port 1 (the first "S"Connection you made, and that is the operator, not the dispatcher.

If you break that connexion by pressing "W" and connecting operator and separator, the first connection will be the dispatcher and it will work like I think you want it.

· 2
5 |100000

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