01-26-2018 04:56 AM
Hello,
I am currently working on a transport simulation, where the transporter are created once and after that running in a loop. Unfortunatly, they turn 90° after they pass one buffer the first time. I solved this with the code ?.cont.conveyingdirection:=1;
But this code works only for the first time they pass the buffer. If a transporter passes the buffer a second time, it will not change its conveying direction again (see the attached screenshot).
Does anybody have a suggestion how to solve this problem? I really appreciate every hint!
Thanks in advance,
NiRoe
Solved! Go to Solution.
01-26-2018 10:34 AM
I'm not sure where your buffer is located, but you could try setting the conveying direction back to 0 when the transporter completes the loop.
01-27-2018 02:05 AM - edited 01-27-2018 02:06 AM
Hello Robert,
thanks for your reply! I already tried setting the conveying direction back to 0. But after the second run, Plant Simulation tells me that the conveying direction cannot be changed again (see the attached screenshot)
Is there a different way solving this issue? Maybe I can somehow prevent that the transport turns 90° in the first run?!
BR,
NIROE
01-29-2018 07:46 AM
NIROE:
I get this error often when changing conveyingDirection.
A work-around I use is to move the MU into a Buffer before changing conveyingDirection. I'll move it to the Buffer, change conveyingDirection, and then move it back to the Line or Track. That may work here.
If it's possible to share your model, I could take a look.
01-29-2018 12:00 PM
01-29-2018 12:30 PM
You're welcome...Good to learn that it worked.