question

Sunny avatar image
0 Likes"
Sunny asked Sunny commented

Is there a way to update global table of production scheduling dynamiclly ?

Hello,Everyone ! I am trying to modeling the Production Scheduling.

The model runs as the follows.

production-scheduling.fsm

Different steps ,different machines and different items.The items enters into different machine according to the Global Table- "Steps ".The numbers in table represent which machine items would enter.

Besides,another ''Global Table -"Process time" maches the time of each step .

And in order to realize this,I used the item list to control the steps and the number of machine .

As we all know,new order mighIn arrive and the ''Global Table" should be changed .So how to update the Global Table dynamiclly to control the machine and time at some point when new orders arrive?

Is it possible that Users Events help?

Thank you very much for your attention!

FlexSim 19.0.0
global tableproduction schedule
oozsx.png (3.7 KiB)
llmx3.png (3.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.

Joerg Vogel avatar image Joerg Vogel commented ·

@Sunny, welcome to this Answers site here. May I recommend to you, that you ask questions accordingly the best practice for using this Answers site. Jörg

0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Sunny commented

You can clone a new table to an old table. When you do this, depends on the time, production conditions, or events. If you want to change it dynamically, you can use a user event or Process Flow. For production conditions I would collect event tokens in Process Flow, batch them and update the table.

Table oldPlan = Table(“yourPlan”);
Table newPlan = Table(“newPlan”);
newPlan.cloneTo(oldPlane);
· 3
5 |100000

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

Sunny avatar image Sunny commented ·

@Jörg Vogel

Thank you very much for your advice.

I have tried to reedit the question as you said and post the small model .Besides I put your idea into my model ,the"New plan" global table really replace "Old plan" and update dynamiclly as what I need. However,there is another question occured.The "New plan" was cloned to"Old plan" but I don't know how to restore the "Old plan"when I reset the model.

Thank you again for your answer!

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Sunny commented ·

There are OnReset triggers in every 3D-objects, and there are Model triggers in the toolbox. You can write the code above in opposite action into an OnReset trigger. Process Flow needs a running model, an OnReset trigger needs only the OnReset button in the control dashboard to be activated.

0 Likes 0 ·
Sunny avatar image Sunny Joerg Vogel commented ·

@Jörg VogelWow,your idea is helpful.Thank you very much !

0 Likes 0 ·