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 05-03-2011
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 Return 0;

Hello,
I have ,say 6 outputs. I want the output for the first three output ports to be "return 0" (first available) for a certain label and the rest exit the port according to other labels(i.e. Each output port has a specific label for the three remaining ports)! how can I manage to do so!

let me rephrase my question: item with label (X) should be sent to the first available on the three first ports (X->1,2,3) and items with other labels (Y,Z,M) should be sent to other ports accordingly (Y->4,Z->5,M->6)!

let's say that I am not interested in the pull option for the moment!
  #2  
Old 05-04-2011
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 Senddelayedmessage

I have used the opavaiable function to check if ouputports are ready for item with label X and if not, I have sent a delayed message to releaseitem later with delay.
The solution works but there is one thing about it that I don't like:
I am giving a delayed time (in sending the message) to recheck the availability of downstream objects that I would like to remove.

any suggestion how to catch the signal of availability at the downstream objects and just right after this signal, I send a message to release the item?
Attached Files
File Type: zip Model.zip (31.6 KB, 112 views)
  #3  
Old 05-04-2011
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,

my solution isn't exactly what you want, but can you add a further queue to your model. So port 1 goes to the new queue with three output ports. The other ports aren't changed.

Jörg
The Following User Says Thank You to Jörg Vogel For This Useful Post:
shafizad (05-05-2011)
  #4  
Old 05-05-2011
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 Pull option

I re-did now my job all with pull option. (So, now all the upstream object returns 0; and it is downstream objects that select the item according to a label on their Pull triggers).
I am going now for PULL VS. PUSH philosophy. I find it more practical always to go for pull!
how about you? Do you prefere working with PUSH or Pull?
  #5  
Old 05-05-2011
Sebastian Hemmann's Avatar
Sebastian Hemmann Sebastian Hemmann is offline
Flexsim User
 
Join Date: Sep 2009
Location: Braunschweig (Germany)
Posts: 439
Downloads: 52
Uploads: 0
Thanks: 472
Thanked 217 Times in 154 Posts
Rep Power: 319
Sebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to beholdSebastian Hemmann is a splendid one to behold
Default

Does this help you?

http://www.flexsim.com/community/for...read.php?t=530
__________________
Hemmi
The Following User Says Thank You to Sebastian Hemmann For This Useful Post:
shafizad (05-09-2011)
  #6  
Old 05-05-2011
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

Does this help for push?
The processor stops input until the last entered flowitem leaves the processor through the ports 2,3 or 4 or through the ports of the following queue. The blocked state is set in the processor as long as the flowitem isn't exiting the queue.
SomeProcessOutputportsFirstAvailable_JV.fsm

Last edited by Jörg Vogel; 12-03-2014 at 03:06 AM.
The Following User Says Thank You to Jörg Vogel For This Useful Post:
shafizad (05-23-2011)

Tags
output port, return 0; label


Thread Thread Starter Forum Replies Last Post
Return 0; shafizad Q&A 9 02-22-2011 04:46 AM
return treenodearray juan alberto Q&A 3 12-22-2010 10:48 AM
Return 0; shafizad Q&A 0 12-13-2010 03:50 AM
5.0 return problem? LINWEIXU Q&A 1 04-22-2010 09:05 AM
return 1 in entry trigger? qin tian Q&A 1 05-07-2008 04:05 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.