ATTENTIONThis 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 |
#1
|
|||
|
|||
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? |
#3
|
||||
|
||||
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
|
|||
|
|||
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. |
#6
|
||||
|
||||
From the command list:
Quote:
Quote:
Don't use closeip unless you know what you are doing because Flexsim might override your functionality! |
#7
|
|||
|
|||
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
|
||||
|
||||
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
|
|||
|
|||
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.
|
#11
|
|||
|
|||
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).
|
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 |