Cancel
Showing results for 
Search instead for 
Did you mean: 

How to turn back the transporter in the Way

Pioneer
Pioneer

Hallo everyone,

 

i am a new player for PLM. I need build a simulation for material flow. A transport (now standing in the TwoLaneTrack1 A) should pick a object from buffer place ,turn around directly and drives to the first place of B. As following picture shows, i am trying to do this as Plan B, which has a long way with a sensor. When the transporter comes at the position of sensor. It should turn around and drive direct to the first place of B. But i dont know how to turn around the transporter directly. I dont want to do it like Plan A, because in this way, i will have too manay Tracks. 

 

Does somebody have any idea how to solve this problem? I will be pleasure with your help!Cat Happy

(The buffer and transferstation  dont work in this model, i puted them here just to make it easier to let you unterstand the problem)

Transport turns back before end of the way.png 

6 REPLIES

Re: How to turn back the transporter in the Way

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you could use a sensorcontrol in Lane A

 

with 

@.move(?.B, 8.5)

 

you can move the transporter directly to the other lane; your sensor control on lane A could look like this:

 

param SensorID: integer, Front: boolean
--stop transporter
@.stopped:=true
--move one part to the transporter
buffer.cont.move(@)
--move to the other lane
@.stopped:=false
@.move(?.B,8.5)
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: How to turn back the transporter in the Way

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello Lisa92,

 

You could add the following code to the sensor control:

 

 

param SensorID: integer, Front: boolean

if @.onLaneA
	@.insert(?.B,?.A.Length-@.frontpos)
end

This will check if the transporter is on lane A. If so, it will reinsert the transporter at the inverse location on the other side of the track.

 

I'm not sure if there's a simpler way of doing this, so if anyone else has an idea, please let us know Smiley Happy

 

 

Nick Peeters
Simulation Consultant
www.cardsplmsolutions.com

Re: How to turn back the transporter in the Way

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello,

 

attached is your model with a method included at sensor A. This method consists of the following code

 

@.ConveyingDirection := 0
@.transfer(?.B, ?.A.Length - @.FrontPos)

This code transfers your transporter to lane B and changes its conveying direction so that it drives back towards the Source.

Kind regards,

Igor
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution


Re: How to turn back the transporter in the Way

Pioneer
Pioneer

Hallo IgorKunjavski,

 

your code helps me a lot. But there is another problem. In reality, if a transporter turns around, becasue of its size, there is a place which should be blocked. It means during the prozess of "turning around", the place where the transporter used, should be blocked, so that other transporters cant drive into this area.

 

I am thinking that i can build another sensor (sensor2) which lies at right of the first sensor.  If a transporter come to sensor1, it must wait until that there is no transport in the place between the Sensor1 and Sensor2. Can you give me a code  to check if there is a transporter between this two sensors? And if my method is not the best way, can you give me a suggest? Thank you!

Transport turns back before end of the way.png

Re: How to turn back the transporter in the Way

Pioneer
Pioneer
Thx Steffen, your code helped me.

Re: How to turn back the transporter in the Way

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Lisa,

 

there are many ways to implement such a behavior. Attached is your model with some rudimental adjustments to get the behavior you described. A global variable is introduced through which you control your transporter on lane A. This variable is set to true or false by the transporters on the other lane. There are also a couple of wait statements in between to synchronize the sequence of actions, although there might of course be other ways to get this done.

Kind regards,

Igor
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution