Cancel
Showing results for 
Search instead for 
Did you mean: 

Transporter move

Pioneer
Pioneer

as below picture,there  are two Transporter  A and B, A and B move or backwards ,   I have a problem ,for example the A will move to its destination,so I need to  confirm whether the B is on the way to A destination. if  it is true the A can not through, in this case ,i need can do two ways,one is I move B per the method,or waituntil B finish its task and move  forward, so how can realize this   ,thank you 微信截图_20180530233247.png

3 REPLIES

Re: Transporter move

Legend
Legend

njlly:

 

In a method, you can wait until B has stopped moving, then check its rear postion on the track.  If its rear position will block A, then B needs to move again.

 

Something like this:

 

waituntil B.stopped prio 1

if B.RearPos <= A._DestinationPos

     B.stopped := false

end

 

Here, _DestinationPos is an user-defined attribute of A which defines A's front position at its destination.

Re: Transporter move

Pioneer
Pioneer
there is not code "_DestinationPos"

Re: Transporter move

Legend
Legend

"_DestinationPos" would be a user-defined attribute.  You would need to define it for your Transporter and set its value when the Transporter starts its move.