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 08-05-2010
shafizad shafizad is offline
ProcSim Consulting
 
Join Date: Jul 2010
Location: Switzerland
Posts: 75
Downloads: 18
Uploads: 0
Thanks: 90
Thanked 2 Times in 2 Posts
Rep Power: 126
shafizad is on a distinguished road
Default Help me on Pallete Distribution

Hi,


Explanation of the Model
I have two sources as configured in attachement. they produce 90% red pallets and 10% green ones.

I want the red ones to go to Queue_Wagon1 and Rack_Sortie_1 (Queue_Wagon1 (60 pal.) should be filled first and the rest which cannot go there, be stocked in Rack_Sortie_1).why? there is a condition that Queue_Wagon1 will be emptied to sink_wagon at 13 p.m. everyday.(model time in hours. model starts at 6 p.m. monday).


the green ones go to Rack_Sortie_2 and then go to Queue_Camion1 and then sink_camion.

The timetables have been set about Queue_Wagon1 and Queue_Camion1.

Wanted
to be clear, I am using one transporter (Transporter_EquipeLogistique) to move the red pallets from Rack_Sortie_1 to Queue_Wagon1 (these red pallets couldn't be delivered to wagon (it was filled at the time). this transporter is shared with green pallets.(which go to Queue_Camion1).

I want the three transporters to collaborate to fill the Queue_Wagon1 after it is emptied at 13 p.m.

My Approach
I have used the triggers of Queue_Wagon1 to manage the distribution. the codes look if the Queue_Wagon1 is full, the red pallets (label "Dest"==1) are send to the Rack_Sortie_1. with a messaging system, the 24 hour cycle of emptying the the Queue_Wagon1 is done.


Problem
my model works alright the first day, but there is something that doesn't allow the three available transporters to work together at the second day and ....

I mean the Transporter_PC and Transporter_GC are stopped when the Transporter_EquipeLogistique is transporting red pallets from Rack_Sortie_1 to Queue_Wagon1.

I don't understand why????

IF U DON'T GET MY QUESTION, pls ask me to reformulate.
Attached Files
File Type: zip model.zip (82.0 KB, 196 views)
  #2  
Old 08-06-2010
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

I haven't taken the time to try and fully understand your model sorry. Also, I didn't see the first day working like you describe. However I think you should use a dispatcher on centerport1 of Rack_Sortie_1 and connect all three transporters to the dispatcher. Then set a priority for the Job on Rack_Sortie_1 if you want it to have priority over other jobs.

Another quick point - if you're going to add msg() dialogs to the run, it's a good idea to put a stop() command after them so that the model doesn't continue/catch up when you hit ok/cancel. Otherwise you can end up not being able to interrupt it easily.
The Following User Says Thank You to Jason Lightfoot For This Useful Post:
Phil BoBo (08-06-2010)
  #3  
Old 08-07-2010
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 advanced msg()

@Jason regarding the msg()
I normally use the following code if I like to have a screen message. The message gives me some information (you can add more information in the concat statement) and depending on OK or CANCEL the model stops or runs further. I find this very handy. The repaintall() I included, to be sure, that a screen refresh is done.


Code:
stop(); repaintall(); if(msg(getname(current),concat("Time: ",numtostring(time(),0,4) )) == 1) {go();} else {stop();}

For the code specialist: Yes, I know that the else statement is not necessary, but I find the code is more understandable if it is there.
__________________
tom the (A)tom: "We have solved our problems ... now we have to fight the solutions."
The Following 2 Users Say Thank You to Tom David For This Useful Post:
shafizad (08-09-2010)

Tags
queue, simple distribution, trigger


Thread Thread Starter Forum Replies Last Post
Exponential Distribution Guillermo Arce Q&A 15 12-21-2010 12:36 PM
About Gate Arrival pattern(distribution). zhang xin Container Terminal (CT) Library 2 11-26-2009 03:53 PM
statistical distribution operator bsantens Q&A 4 04-02-2009 09:37 AM


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.