question

Leo L6 avatar image
0 Likes"
Leo L6 asked Jeanette F commented

Conditional Conveyor Slug Building Possible?

Hi,

I'm wondering if it is possible to build slugs on conveyor only when the merging conveyor is not available for allocation. So when things are moving slowly, items move one at a time and slugs are not built. But when things are running quickly more items are waiting on the merging conveyor so it makes sense to build a slug.

Hopefully that makes sense and thanks in advance for any help!

FlexSim 22.2.2
conveyorsconveyorsystemslug buildingslug conveyorsslug
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Leo L6, was Jonah K's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 ·

1 Answer

·
Jonah K avatar image
0 Likes"
Jonah K answered

ConditionalSlugBuilder.fsm

You can use turn a conveyor into a slug-building conveyor with this code:

treenode conveyor = Model.find("StraightConveyor2");
setvarnum(conveyor, "isSlugBuilder", 1);

I created a process flow in a simple model that turns StraightConveyor2 into a slug builder when it is triggered (at time = 18000).

Unfortunately, it leaves the conveyor as a slug builder when you reset the model. But you can use this code to turn it back into a non-slug-building:

setvarnum(conveyor, "isSlugBuilder", 0);

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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