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 06-07-2012
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
Default How to open/close a single port in objects

Hi Friends,
The closeinput()/closeoutput() command closes all the input/output objects associated with the ports. Is there any command or way to open/close the required ports in the input and output of object.
Flexsim documentation states closeip() cant be used for discrete objects.
Eg. If port1 and port2 are connected to input ports of object1. only port1 has to be in open state and port 2 in closed state. How to achieve this?
  #2  
Old 06-07-2012
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

Hello,

a workaround is to place a queue in front of every input port and close the input of the queue.

Jörg
  #3  
Old 06-07-2012
syseo's Avatar
syseo syseo is offline
Flexsim User
 
Join Date: Aug 2007
Location: Korea
Posts: 290
Downloads: 439
Uploads: 0
Thanks: 249
Thanked 63 Times in 41 Posts
Rep Power: 211
syseo has a spectacular aura aboutsyseo has a spectacular aura about
Default

Hi.

You can designate the port number of close/open port like closeip(current, port1).
port1 is the number of port.

You can find the reference in help file.
  #4  
Old 06-07-2012
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
Default

Hi Jorg,
I have tried placing separate queue and closing its port, its working fine.
But i need the way to close and open port as mentioned in example from the origin object.
  #5  
Old 06-07-2012
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
Default

Hi syseo,
I have tried this command closeop(current,2) in the origin object but still it does not stop flowitems from reaching port2.
  #6  
Old 06-07-2012
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

From the command list:
Quote:
closeip(obj object, num inputportnum)
Close just inputportnum of object. Closing an input port of an object will block entry to the object through that port. Modelers should only use this command when working with fluid objects because the internal behavior of discrete objects controls the opening and closing of their ports, and therefore this command may be overridden. For discrete objects the modeler is referred to closeinput() and stopinput().
you stated:
Quote:
Flexsim documentation states closeip() cant be used for discrete objects.
I think that your interpretation is a bit off ;-)
Don't use closeip unless you know what you are doing because Flexsim might override your functionality!
  #7  
Old 06-07-2012
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
Default

Hi Hamoen,
I have even used closeip(current, portnum) command but its not stopping the flowitem from entering into object. Is there any other option to close the required portnum alone instead of closing the whole port using closeinput().
  #8  
Old 06-07-2012
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

Have you though about using a pull rull on the receiving object? Then you can define through which port you want to pull something. Or use the sendtoport logic to determine if something can go through a port.

Maybe explain more what you want to do, then we can determine better how to help you.
  #9  
Old 04-12-2013
Joseph Mueller Joseph Mueller is offline
Flexsim User
 
Join Date: Feb 2013
Posts: 7
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Joseph Mueller is on a distinguished road
Default

I am having the same problem. I am trying to build a carousel loader. I am using a queue with the maximum content and then i have to send my finished part back to the queue, but i change their itemtype number and send them to a different port via operator. I need to close the input port 1 for new items because i need a spot for the finished part to be stored in the queue.... if i let one in through that port i block the machine from sending it back to the queue.
  #10  
Old 04-12-2013
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

So why don´t you close the output of the object connected to inputport 1 of your Queue?
__________________
Hemmi
  #11  
Old 04-15-2013
Joseph Mueller Joseph Mueller is offline
Flexsim User
 
Join Date: Feb 2013
Posts: 7
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Joseph Mueller is on a distinguished road
Default

Well I tried that... and for some reason I couldn't get it to work. I am trying some different... what trigger event would i want to put it under? The items that leave the processor enter the same queue that they left from... i think that is why i am having issues.... one queue needs to send and catch the parts to and from the processor so capacity is always a max of (x) (your carousel size).
  #12  
Old 04-16-2013
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

Please post your model and a small explanation of what doesn´t work.
__________________
Hemmi
  #13  
Old 04-23-2013
Joseph Mueller Joseph Mueller is offline
Flexsim User
 
Join Date: Feb 2013
Posts: 7
Downloads: 0
Uploads: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Joseph Mueller is on a distinguished road
Default

Actually I went back and changed some things with my coding and everything is working now. Thanks everyone for the help!


Thread Thread Starter Forum Replies Last Post
Two camera on Single screen together shashanktrivedi Q&A 7 02-05-2013 01:34 PM
State of port (open / closed) Jens Mühlheimer Q&A 3 03-14-2012 09:57 AM
Close port juan alberto Q&A 14 07-16-2009 05:00 AM
How to open/close processor when there is a long queue Lilian_wulp Q&A 5 12-03-2008 08:51 AM
Close A Specific Port Joe Allen Q&A 2 09-11-2008 06:30 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.