question

TalHzf avatar image
0 Likes"
TalHzf asked TalHzf commented

Order of Items on a machine with different item type

Hi all,

I am doing a simulation for a machine with different Item types and want to visualize the results as a Gantt-Diagramm to see in which order the items came to the machine.

My objectif is to know how many fixture are needed.

Thank you all.

FlexSim 22.2.0
order itemssequence items
· 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.

Andrew O avatar image Andrew O commented ·

Hi @TalHzf, 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 unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

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

Add a second state profile to the machine in which the different types are represented as states, as described in the post linked below.

https://answers.flexsim.com/questions/26312/add-custom-state-to-a-state-gantt-chart.html

You can then set the new state whenever an item enters the processor (OnEntry trigger) with "object.setState(stateNr, profileNr)". The default profile is number 0. The custom one you add would be number 1.

· 4
5 |100000

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

TalHzf avatar image TalHzf commented ·
Thank you @Felix Möhlmann ,

But the feature is not unavailable in my version.

Thanks

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ TalHzf commented ·

If your version is 22.2.0 as you stated, and you intended to say "it's not available" then you are probably incorrect - what makes you think it's not available?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Jason Lightfoot ♦♦ commented ·

If they are using the Express Version that would prevent them from accessing the tree and/or copying nodes via FlexScript.

If that is the case @TalHzf please mention this next time you ask a question, so we can take that into account.

Instead of using a state profile, you can also manually set up a Statistics Collector to gather the necessary data (Object, StartTime, EndTime, Label Value).

TypeGantt_fm.fsm

0 Likes 0 ·
typegantt-fm.fsm (641.5 KiB)
Show more comments