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 |
|
Downloads |
Q&A Using Flexsim and building models |
#1
|
|||
|
|||
Network node dynamicly allow acces for 1 specific operator only
Hello,
I have the following problem, On my network (controlled by traffic control) I allow a nr of users on a controlled path. When one specific type of operator enteres the networkpath, the path should be closed for all other operators untill he leaves, I tried using the following code on the onentry trigger of the traffic control /**Custom Code*/ treenode current = ownerobject(c); treenode traveler = parnode(1); //is this one connected to the replenishment trucks if(tonum(inobject(traveler,1)) == tonum(DispatcherSpareReplenishmentRucks)) { //treenode variable = getvarnode("maxactive",current); setvarnum(current,"maxactive",1); } but the traffic control doesn't get reset. Secondly would it be possible to close the path after the operator leaves the path, and then after open it but only for the same operator that just left? It would simulate the following: 1 a repl truck enters an aisl 2 the aisle is now closed for all other operators 3 the truck will leave and enter the aisle multiple times but untill all replenishment is done the aisle should remain closed to all operators 4 after the truck finishes replenishment, it will open the aisle again to the other operators Thanks for any help and or tips |
#2
|
||||
|
||||
Koen,
you can use opennodeedge() and closenodeedge() to open and close single edges between network nodes. I do not know how to easily allow only a specific TE to move forward into the aisle. Have you thought about using a different network for operators and trucks to replenish? in that case you could control nodeedges of one network based on the status of the other one. Good luck Ralf FlexSim |
#3
|
||||
|
||||
Hello Koen,
we had a similar question in the past. Then only a classtype was allowed to enter a controlled path. You find the approach here. Jörg |
The Following User Says Thank You to Jörg Vogel For This Useful Post: | ||
koenslootmans (06-23-2015) |
#4
|
|||
|
|||
Koen,
I felt your case was practical enough to deserve an example model. The TrafficControl in the attached model will allow only one Replen operator in the area, otherwise "Maximum Number in Area" Pickers are allowed. Requests are handled FIFO. I added a label to the TrafficControl object, and modified the OnEntryRequest and OnExit triggers. Forgive the fact that the pickers aren't actually picking. |
The Following 4 Users Say Thank You to Kris Geisberger For This Useful Post: | ||
sagar bolisetti (06-27-2015) |
Tags |
network, on entry, traffic control |
Thread | Thread Starter | Forum | Replies | Last Post |
How to set dynamicaly closing node edge in a network node | Preethi Sivaramakrishnan | Tips and Tricks | 8 | 06-27-2013 01:35 PM |
Network node error | Lucie Lerivrey | Q&A | 1 | 04-08-2013 09:50 AM |
Unloading an item or operator from elevator to specific coordinate | Christian Norregaard | Q&A | 2 | 10-05-2012 12:42 AM |
Call a specific operator | Michael Hartlieb | Q&A | 3 | 06-29-2009 09:04 AM |
Network Node Question | Gavin Douglas | Q&A | 1 | 10-16-2008 02:24 PM |