question

gilbert jerald avatar image
0 Likes"
gilbert jerald asked gilbert jerald commented

How to set Product ID based on production schedule data?

Hello Everyone,

In my model i have four different type of product, I want to set product ID for each type based on production schedule(Time units). I have used getmodelunit(CURRENT_TIME) to get the current simulation time. If current simulation time matches with production schedule, i want Fluid generator to generate different product ID at that particular time. I have tried getmodelunit command in Fluid Generator but its not working, Is there anyway to set product ID based on production schedule and current simulation time.

I have attach my model for your reference

Thank you

sample-v1-3.fsm

FlexSim 17.0.1
production schedule
sample-v1-3.fsm (20.5 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.

1 Answer

David Seo avatar image
1 Like"
David Seo answered gilbert jerald commented

OnMessage trigger can have the senddelayedmessage call the next product change time.

And then after the delayed time of 'next product time - previous provious time', the delayedmessage will trigger.

And then after looping again, the next senddelayedmessage call from current to current.

· 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.

gilbert jerald avatar image gilbert jerald commented ·
@david.seo

Thanks for your valuable answer , its working.

0 Likes 0 ·