Cancel
Showing results for 
Search instead for 
Did you mean: 

Unhook wagons in a train - (transporter)

Hello,

I need build a method to unhook the wagons of a train, after it unloads the products in a single process.

The idea is that wagons are moved to a garage - which has capacity 8 wagons; when the garage reaches the maximum capacity, the train back to engage the wagons

 


Look the iniciate structure of case.

What can I use in this case?

- Method Routing

- Methdo User-define Attribute

 

 

11 REPLIES

Re: Unhook wagons in a train - (transporter)

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Could you please elaborate a bit more on what your model should do?

 

For example:

Initial state

  • Where will the first wagons going to be?
  • This wagons will be empty or loaded?
  • Will they be in the same garage you plan to use after unloaded?

Functionality

  • Tractor will pick wagons one by one?
  • Tractor will leave wagons one by one?
  • The garage will by a spur or a bay?
  • What will the tractor do after picking all 8 wagons?

In my humble opininon the ammount and type of methods required to model something like this is strictly related to how do you visualize your model to behave.

 

 

cortega@interlatin.com.mx
+52 (81) 10801310
InterLatin S de RL de CV

Re: Unhook wagons in a train - (transporter)

Genius
Genius

Like InterLatin already said there is a lot more behaviour information needed.

 

Here is another topic with a similar model: tugger_train

Maybe this will give u an idea.

 

kind regards

Re: Unhook wagons in a train - (transporter)

Dear experts,

 

Thanks a lot for help me, I'm preparing a specific description about this simulation, I searched for more details of process, because of this the solution to the problem was to the background.

 

In the next post, I'll attach the example with others information.

 

 

Re: Unhook wagons in a train - (transporter)

Dear Experts,

I'm working in a case similar to the example below:

http://www.bangsow.de/detail_en.php?id=631

but I need that wagons are unloaded together of MUs, while the single process removes MU by MU of wagons, the empty wagons are allocated in a garage.


The train goes to the beginning the track and hitching other wagons. In the total there are 4 wagons in the track, when all wagons are empties the train hitch again e the process init again.

The idea is the train carry only one wagon per time.

Re: Unhook wagons in a train - (transporter)

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

just for understanding: you want to drag one waggon to the single process, there you want to unhitch the waggon, the single process takes the MUs from the waggon one by one, then the waggon is send back to garage (without the tractor) ?

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Unhook wagons in a train - (transporter)

Yes, exactly... the event more important to me is the wagon unhitch of train and after hitch....

Re: Unhook wagons in a train - (transporter)

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you unhitch the wagon with unhitchRear.

 

See my little example.

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Unhook wagons in a train - (transporter)

I'm trying reproduce your example in my case...

 

but in the method "unloadwaggon" there is a problem in one of line.

 

 

is
do
    --load one part from wagon
    if track4.occupied then
        track4.cont.cont.move(?);
        if track4.cont.empty then
            --remove empty wagon
            track4.cont.speed:=1;
            track4.cont.stopped:=false;
        end;
    end;
end;

 

 

because of that my waggon doesn't return to the start of the track 2.

 

Can you help me?

Re: Unhook wagons in a train - (transporter)

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Your unload method in the model has another content. I included also a check, if the wagon is loaded (tack4.cont.occupied) before moving a part.

 

 

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net