How can I send items to the combiner with the most items while collecting?

How can I send items to the combiner with the most items while collecting?

luis_gallardo
Not applicable
53 Views
10 Replies
Message 1 of 11

How can I send items to the combiner with the most items while collecting?

luis_gallardo
Not applicable

[ FlexSim 16.0.9 ]

I would like to send items to the combiner with the most quantity of items in it, I have the First Available oprtion at the moment but since I'm using MTBFMTTR and TimeTables, some times the combiners are left mid way.

p1.fsm

0 Likes
Accepted solutions (1)
54 Views
10 Replies
Replies (10)
Message 2 of 11

sam_stubbsYXX86
Community Manager
Community Manager

It seems to be doing exactly as it should. They will stop midway because that's what the MTBFMTTR and Time Tables do. They say when a resource will go down. If the the combiner goes down with items still in it. Then it will be left until it is up again. I'm not sure I understand what the issue is.

0 Likes
Message 3 of 11

luis_gallardo
Not applicable

All the combiners are set to gather 24 items at all times, but when the operators stop and come back they start filling the combiners with the priority at which they where connected with the "A" key (Connect objects), and I would like them to fill the combiner that have more than 1 item out of 24, not start filling a new one with no items in it.

I hope this is a bit more clear, thanks for the help

0 Likes
Message 4 of 11

jeff_nordgren
Not applicable
Accepted solution

@Luis Gallardo,

Attached is your model with the changes that I made.

In QueueSubEns24, I changed the Send To Port option to be "Longest Queue if Available". This option will look at how many flowitems are in the combiners, which is always 1, being the tote. So I modified that code so that it would look inside the tote for the correct number.

Look at the model and see if it is now doing what you are wanting it to do.

p1-jn1.fsm

Message 5 of 11

jeff_nordgren
Not applicable
@Luis Gallardo

Is this what you were looking to accomplish?

0 Likes
Message 6 of 11

luis_gallardo
Not applicable

Thats a great idea thanks in the model it appear to be a problem with the code since "Object" is an unknown variable. Do you know why is that? Thanks alot by the way.

0 Likes
Message 7 of 11

jeff_nordgren
Not applicable

@Luis Gallardo,

You're going to have to be a little more specific, I can't find what you are referring to. Is it an error message? If so, where/when does it appear. If not, what exactly are you seeing? I don't get any kind of errors and I didn't add any "Object" to my code so I'm not sure where that is coming from.

0 Likes
Message 8 of 11

luis_gallardo
Not applicable

Sorry, in Queue SubEns24 where the "Longest Queue if Available-MODIFIED" its giving me this error message.

Line 1: unknown variable "Object" Line 1: syntax error, unexpected identifier, expecting end of code

Could not finish parsing because of previous errors.

0 Likes
Message 9 of 11

jeff_nordgren
Not applicable

@Luis Gallardo,

That is strange because the code on Line 1 is standard, default code that is placed in that code area. Nothing that I added or changed. I'm thinking maybe the model you downloaded got corrupted somehow? Here is a slightly modified version of the model. Try downloading and running this one and see if you get the same error.

p1-jn2.fsm

Message 10 of 11

jeff_nordgren
Not applicable

@Luis Gallardo,

Did this new model work for you?

0 Likes
Message 11 of 11

luis_gallardo
Not applicable

@Jeff Nordgren It is still giving me the same message it could be that I'm using FlexSim 6 and not a more recent version.

0 Likes