image1.pngHi, I wanted to know the similar Code Snippet command "ts.first.destroy ()" (destroy the first activity for the Transporter) running for Flexsim 2016 version 16.0.1. Thank you!
Answer by Logan Gold · Dec 07, 2018 at 07:59 PM
To answer your original question, you can do something like this (which will do the same thing that Karuppasamy Pitchai's code does):
destroyobject(first(ts));
However, it sounds like you are wanting to change how the Transporter is handling its offset travel as part of the unload task. If you would like more help on how to make these changes, please post a new question.
Answer by Karuppasamy Pitchai · Dec 06, 2018 at 11:18 AM
Hi Vincenzo,
Try this "destroyobject(rank(ts,1))".
Regards
Karuppasamy
the code does not work for what I have to do. I would need to eliminate the first task of a tasksequences. That is traveling to the load station. In this case it is a queue.
Thank you.
Answer by Jörg Vogel · Dec 06, 2018 at 02:27 PM
You can change the tasktype of a Tasksequence instead of deleting the task. The tasktype tag hasn't got any influence on the taskexecuter.
changetask(ts,1,TASKTYPE_TAG);
I entered the code but the Transporter1 continues to make superfluous movements before placing the pallet in queue_pallet_bat. (moves to the center of the queue and then comes back before placing the pallet).. I attach the model in question. Is it possible to solve this problem?
thank you!
You asked to destroy the first task of the tasksequence. This task sends the transport to the object to load items from. If you want to disable the travel task to the unload station you have to disable the unload task type by a tag type in the 4th task.
changetask(ts,1,TASKTYPE_TAG);
changetask(ts,4,TASKTYPE_TAG);
Answer by VINCENZO DM · Dec 12, 2018 at 10:59 AM
ok. Thanks for your answers. @Jörg Vogel @Logan Gold @Karuppasamy Pitchai
© 1993- FlexSim Software Products, Inc. All Rights Reserved.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.