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
|
|||
|
|||
simulation stops before completing the operation
Hi everybody,
I have got two processors which produce boxes some of which need two transportes to transport and some which need only one. Using coordinated task sequences I manage to plan the transports but simulation stops at some point in time and does not proceed further. I have attached the model here. the major codes are under useTransporters of the processors and the sources produce input based on a table. I am wondering what could be the reason for such problem. Any comment is appreciated. best regards, |
#2
|
||||
|
||||
Hello,
I haven't found anything so far. But there exists in flexscript some very short commands eg i, a or c. It is not recommended to use these command names as variablenames eg in loops "for (int i = ..." Jörg |
The Following User Says Thank You to Jörg Vogel For This Useful Post: | ||
Shahin Gelareh (02-16-2012) |
#3
|
||||
|
||||
maybe check the eventlist (treeview -> main/events ) to find out at which event flexsim hangs. That would give you an idea where to look for a solution
|
#4
|
||||
|
||||
Hello Shahin,
build a much more simplier model to test the coordinated tasksequence. Insert an frunload-task. Unload to a queue and not to a BasicFR. Test each step in a simple model. Only if one step is running perfectly, than put this solution in a next complex model. in contrast to that do not build maxium advanced models with various not solved problems. Jörg |
The Following User Says Thank You to Jörg Vogel For This Useful Post: | ||
Shahin Gelareh (02-16-2012) |
#5
|
|||
|
|||
Hi Joerg,
Thanks for the comment. In fact, that is what surprises me. I usually follow the same process as you said. Every thing is fine just before this integrated model. |
#7
|
|||
|
|||
Hello Shahin,
I was curious about how you synchronize all your ressources (your other thread) so I take a look at your model and I found this:
Regards, Normand |
The Following User Says Thank You to Normand Côté For This Useful Post: | ||
Shahin Gelareh (02-16-2012) |
#8
|
|||
|
|||
Hi Normand
Thank you for your suggestions and modifications. Well two things 1) what did you change that it ask to compile before running? 2) I still see that simulation terminates before completion of the work. I am I wrong? I see still boxes at processor and transporters being idle close to the cranes and one of which was totally unused. 3) I don't know why I cannot find the redundant deallocate command. how did you learn that the cranes do not have travel ? I cannot find it in documentation. is that by experience or I am missing something here? best regards, Last edited by Shahin Gelareh; 02-16-2012 at 03:39 AM. |
#10
|
|||
|
|||
Shahin, see comments below
1) what did you change that it ask to compile before running? I have inserted a c++ node in your model. I removed it. 2) I still see that simulation terminates before completion of the work. I am I wrong? I see still boxes at processor and transporters being idle close to the cranes and one of which was totally unused. You're right. This is another problem with your model. Your processors' output ports are connected to some stacks but in your custom box transport logic you choose to send to different stacks. After a certain number of box deliveries, the internal handshaking between processors and stacks connected to their outpout ports just block and the useTransporter trigger do not fire. I disconnected all output ports of the processors and moved the useTransporter logic in the processfinish trigger and everything works fine. If you prefer to work with the output port then you have to send the box to the selected output port. 3) I don't know why I cannot find the redundant deallocate command. When itemtype of a box is 1, you allocate only one transporter but you deallocate two I too have a question: why do you use BasicFR objects as stacking areas ? Have you consider Rack objects (setup as floor storage) ? Good luck, Normand |
The Following User Says Thank You to Normand Côté For This Useful Post: | ||
Shahin Gelareh (02-16-2012) |
#11
|
|||
|
|||
Normand,
I very much appreciate your comment. It was very very helpful and I learned new things. Well, I actually used one of examples in flexsim and tried to modifiy it towards my logic which apparently was not successful. But, what you did was very nice and clean. Well, I used BasicFr because I was not sure how to work with Racks having Crane as transporter as the transporter this area must be a crane and not a top loader. thanks again. best regards Shahin |
Thread | Thread Starter | Forum | Replies | Last Post |
Debuging stops at unmarked Breakpoint | Sung Kim | Q&A | 7 | 08-29-2011 09:50 AM |
How to use Yard Operation? | David Chan | Container Terminal (CT) Library | 1 | 11-29-2010 12:25 PM |
Mining Operation | David Chan | Pre-sales Questions | 3 | 04-29-2010 08:07 AM |
BasicConveyor stops too late? | Steven Hamoen | Q&A | 3 | 04-20-2010 09:51 AM |
reservoir stops releasing | Alistair Smitheman | Q&A | 7 | 08-14-2009 05:54 AM |