ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 09-15-2013
Manoj Kumar Manoj Kumar is offline
Flexsim User
 
Join Date: Jan 2012
Location: India
Posts: 77
Downloads: 71
Uploads: 0
Thanks: 35
Thanked 0 Times in 0 Posts
Rep Power: 106
Manoj Kumar is on a distinguished road
Post Title-Fluid Mixer is updating but not Processing

We are using aFluidMixer which updates its Recipe table by fetching values from a Globaltable (named “Major_RM_Table”). The fetching of values is programmed to happenaccording to a specific sequence, which is fetched from another Global table(named “ProductionMixSeq1”). The number of times the table is to be updatedwith certain set of values is calculated from values in a third Global Table(named “ProductionPlan”).

Our objective is todynamically update the mixing proportions of a FluidMixer (having 6 inputs)according to a specific plan. Given below is the sequence of events.

1. Mixer refers a global table named“ProductionMixSeq1” and fetches the Number_ID of product to be mixed.“ProductionMixSeq1” has rows representing Shifts (each lasting 12 hours) andcolumns just containing Number_IDs of products being mixed in that shift.

2. The Mixer next refers global table named“ProductionPlan” which contains the target quantity of production. This globaltable has rows representing shifts and columns representing the Number_ID ofproduct to be mixed.

3. The target is fetched from the table and thevalue is divided by 1500 to get the number of times the recipe table of mixeris to be updated.

4. The Mixer then refers global table named“Major_RM_Table” which contains the values to be updated in the recipe table ofMixer. The values are copied from the table and pasted on the recipe table.

5. The mixer recipe table is to be updated every15 mins. (Processing time of Mixer: 15 mins)

6. The Mixer is updated only the number of timescalculated and after that the mixer stops getting any input for the rest ofthat Shift. It starts updating only after the next shift starts.

Our problem is thatthe recipe table is being updated and the mixer is processing properly for 5shifts, after which the table is getting updated and but the mixer is notprocessing the pulled input. There is no output coming from the Mixer.

Please help us out.
Attached Files
File Type: fsm Logic Forum.fsm (36.5 KB, 76 views)
  #2  
Old 09-18-2013
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

I have taken a short look at your model and what I see at 2880 that through inputport 4 only 50.22 comes in while 56.58 should come in (see variable node: currentsteptable).

But I have no idea why it does that. maybe you did something wrong or there is an order problem. You could try setting the table a bit earlier or something. Other wise logon to your account on the website and ask Flexsim support.

One other thing, in your onmessage trigger you have this code:
int mss=msgparam(1); // for batch wise
int mst=msgparam(1);

So both integers get the same value and I don't know if that is correct?
The Following User Says Thank You to Steven Hamoen For This Useful Post:
Jörg Vogel (09-18-2013)
  #3  
Old 09-22-2013
Jörg Vogel's Avatar
Jörg Vogel Jörg Vogel is offline
Flexsim User
 
Join Date: Sep 2007
Location: Hannover, Germany
Posts: 643
Downloads: 35
Uploads: 0
Thanks: 802
Thanked 665 Times in 410 Posts
Rep Power: 642
Jörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond reputeJörg Vogel has a reputation beyond repute
Default

Hi,

you can update the recipetable before a new cycle through the steps starts. Therefore you use the Empty Trigger. It is a last event of the previous cycle. If you update the table while a cycle is working, you mix the system events calculated at the beginning of all steps and events that are created at the single steps. That might work, possibly your model won't run as expected.

Jörg
The Following 3 Users Say Thank You to Jörg Vogel For This Useful Post:
Phil BoBo (09-23-2013)


Thread Thread Starter Forum Replies Last Post
How can I control fluid library objects with the fluid component names? brett forbes Q&A 3 07-25-2013 03:39 PM
How to add a processing time to a Fluid Object? Abdul Mirza Q&A 2 04-23-2013 03:34 PM
Best way to have fluid processing time? JMEngelhart Q&A 1 10-25-2011 08:58 AM
Updating Labels Alexandre Ouellet Q&A 2 04-02-2008 06:55 AM
Updating Labels Naresh Yamani Q&A 7 03-28-2008 11:28 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.