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 Jason Lightfoot ♦♦ commented ·

Hi @Javier C13, was jason.lightfoot's or Julio R's answer helpful? If so, please click the red "Accept" button at the bottom of one of their answers. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

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

Javier C13 avatar image Javier C13 commented ·

How about Julio, that is not the problem, what I am looking for is that the operator that is in the central part helps the other two, we already configure the separator in the section of the pick operator in a different way where the central point changes but does not do the action

0 Likes 0 ·
Julio R avatar image Julio R Javier C13 commented ·

Your custom code is under the use operetaor for process, so this operator will only help to opereate the separator for 10 seconds if the other operators are not avaliable, not unloading it.

If you want this same logic for unloading operations you need to put it in the flow section. You can copy and paste your code in there and it should work.

0 Likes 0 ·
1614363925606.png (28.4 KiB)
1614363962370.png (35.3 KiB)