question

Jon Perez avatar image
0 Likes"
Jon Perez asked Jason Lightfoot commented

Production plant sequencing

Good morning, I am trying to develop a production plant based on a model that the user Jason Lightfoot created. On the model Jason created, the references are created on a source randomly and then, when the parts needed to make a combination are available, the combiner creates a reference.

However, what I would like to simulate on my model is something different. I have 13 different raw material that combining them, 10 different references can be created. For that, I have created 13 sources (I do not know if the trigger is well defined, as it is the same time I am using the strascii parameter) with their respective amounts to differenciate the different kinds of raw material and, then, I would like the combiner to create all the references.

The problem is that when I run the simulation, the combiner does not start assemblying the raw materials and I do not know what I have done wrong.

It would be very helpful if someone could check the model to give me a solution.

"opportunisticcombiner" is the model created by Jason and "ProductionPlant" is the model I am trying to develop.

Thank you so much.

opportunisticcombiner.fsm

ProductionPlant.fsm

FlexSim 23.2.1
task sequencing in process flow
· 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.

Jon Perez avatar image Jon Perez commented ·
I have already set the strascii numbers starting from 65 instead of from 1
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @Jon Perez, was Felix Möhlmann'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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

"strascii(65)" and the subsequent numbers return the capital letters in the order of the alphabet.

You use the values 'V' through 'AH'. Since each source only creates one type, it would be easiest to simply use the respective string directly when assigning the label.

And since FlexSim does not have a way to generate colors associated with string values, you would have to create a color palette yourself if the items should be colored by the "PartNum" label.

capture1.png

capture2.png


capture1.png (12.0 KiB)
capture2.png (10.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.