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 03-13-2009
mariogib mariogib is offline
Flexsim User
 
Join Date: Jan 2009
Posts: 18
Downloads: 4
Uploads: 0
Thanks: 7
Thanked 0 Times in 0 Posts
Rep Power: 139
mariogib is on a distinguished road
Default I would like the pick up from the rack in function of a variable demand rate...

hi
I’ ve got a problem. I would like the pick up from the rack in function of a variable demand rate. I thought to add a userevent :
closeinput(Sink5);
int k=duniform(1,400);
if (k<50)
{//msg("UserEvent","Order");
pr();pf(time());pt("order");
openinput (Queue7);
treenode rel_queue = node("/Rack2",model());
int count_content = content(rel_queue);
//for (int item_count = 1; item_count <= count_content;
/

But I’m not able to reach what i need.
I wuold like the trasporter to take out the items from the rack object and join
them the queue 7 object until it reaches a certain level .
The trasporter stops then.
The queue is emptying out in function of the demand and when it gets a certain level an order is started.
At this moment the trasporter starts to pick up from the rack to inform the queue in queue7 object.
What can I do? Have you got any alternative ideas?
I enclose the model

thank you
Mario
Attached Files
File Type: zip 12.3.090.zip (55.8 KB, 224 views)
  #2  
Old 03-13-2009
Tom David's Avatar
Tom David Tom David is offline
Flexsim User
 
Join Date: Aug 2007
Location: Schwaebisch Gmuend, Germany
Posts: 430
Downloads: 157
Uploads: 47
Thanks: 486
Thanked 450 Times in 233 Posts
Rep Power: 520
Tom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant futureTom David has a brilliant future
Default

Mario,

To be honest, I have problems to understand what are you going to do and what are you trying to model.
I sugesst that you first describe in general what is the assignment or how the system works you like to model. It might be a good idea to describe the layout. Secondly describe how you are going to model it and what you are already tried. Thirdly attach asmall model that shows your problem and maybe what you already tried.

Maybe in your eyes you did the above, but like said, I have problems to understand what is the general issue. You posted some code and a little description, but sometimes this already lead to a wrong direction. Maybe a totally different modeling concept should be used to solve the assignment.
And it would be helpful to give your objects speakable names.

What I understand is that you want a “batch” of products flow through the system. This batch of products arrives in a rack. A transporter collects the batch of products and transports them to a queue. If all products are in the queue the whole batch is given to the downstream object.

My general idea would be to use a “virtual” rack (only the batch items are in the rack and released), so the transporter only collect these items. I would store the information how many items are in the batch in a label. This label I would use to control the queue (input /output of the queue in OnEntry, OnMessage and OnExit).
Another way could be to use a standard rack, where no items are released. Generate a tasksequence for the transporter to pick the batch items and bring them to the Queue.
The advantage of the first way is that you can use standard tasksequences. To understand how a virtual rack is working are two examples in the download section.

I hope I was able to give you some hints and help even if I am not sure if I understood what you are going to do.
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."


Thread Thread Starter Forum Replies Last Post
Pick window on conveyor. Neil Brandon Q&A 9 02-04-2013 03:12 AM
Global variable as experiment variable Matthias Hofmann Q&A 3 09-08-2009 09:42 AM
Flexsim beginners are sometimes just amazing (Rack - Pick Operator) Tom David Q&A 1 12-05-2008 10:35 AM
Flexsim Please Help - 99 Variable Limit Joe Allen Q&A 13 11-19-2008 12:03 PM
Assign an array to a variable AlanZhang Q&A 6 04-24-2008 01:59 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.