Joined: 02/03/2019(UTC) Posts: 87 Location: Hordaland, Bergen
|
Hi,I'm trying to make a shuttle train event.see picture.The event start with switch/Circuit Track ,S1.The train change direction and drive towards turnout T1,T1 change to left position.When train passes S2,it stops.turnout T1 ,turn straightforward and train starts moving to S3.S3 change the train direction and drive towards turnout T1.When train passes S2,it stops.And here is where the problem is.Now the train should have driven towards S1 and set the turnout T1,to left. In my event 2 ,S2 says that the turnout should turn straightforward.I cant have two different directions on the turnout,in the same event.I only have 3 events on this shuttle event.I'm not shure if ppl understand what I meant.The plan was to make a train climing up a hill by zig zag,due to no place to make a tunnel.Is there any logical functions that can be used in the event program ,like if ... 
|
 1 user liked this useful post by geir
|
|
|
Joined: 10/02/2021(UTC) Posts: 3,881 Location: Michigan, Troy
|
I'm no expert, but how many contact tracks/S-88 feedbacks so others can assist? You can nest events into one.
|
|
|
|
Joined: 05/09/2014(UTC) Posts: 676 Location: NEW HAMPSHIRE, Somersworth
|
I am assuming that you are referring to the "Shuttle Event" that is in the CS3. From what I can guess, that was created to simplify having a railcar run continuously between two linear station with little effort as many of the commands such as engine reverse are contained within the "Event". So you are trying to use it for something it was not designed to do. Given that it might actually be possible to do what you want but would be much easier using a different "Event". What is not evident is that you can insert commands inside the "Event" but they do not show up. So it is difficult to see exactly what they are doing. It would probably be much easier to accomplish what you want by creating an "Event" from scratch and not trying to fit the "Shuttle Event" to your needs.
|
|
|
|
Joined: 02/03/2019(UTC) Posts: 87 Location: Hordaland, Bergen
|
I got other shuttle events,just running from A to B and back again,works fine.On this route ,I have 3 feedback contacts' and 1 turnout.I can't figure out how to make a working event that do the job.Runinng from S1 to S2 ,from S2 to S3 and back again.
|
|
|
|
Joined: 05/09/2014(UTC) Posts: 676 Location: NEW HAMPSHIRE, Somersworth
|
Create two events, one going from s1 to s2 and on to s3. The second going from s3 to s2 and back to s1. You then need to add the two together but I don't remember the exact sequence. You will have to experiment. The easier way is to use the "Loop" macro. However there are problems with stopping that macro. Once again you need to experiment with it.
|
|
|
|
Joined: 02/03/2019(UTC) Posts: 87 Location: Hordaland, Bergen
|
Here is a youtube clip of zig zag move
|
|
|
|
Joined: 04/02/2011(UTC) Posts: 3,555 Location: Paris, France
|
Hi Geir To manage 2 trains in a Y-shaped shuttle can be done using a CS2 or CS3, using the switch position as a criteria to decide which loco to start. If you can understand German, here is a video about your problem with 2 locos on a Y-shaped layout It is in German but english subtitles can be generated The CS3 must be in developped event mode. I hope this helps Jean |
|
|
|
|
Joined: 22/06/2019(UTC) Posts: 27 Location: TIANJIN
|
Originally Posted by: geir  Hi,I'm trying to make a shuttle train event.see picture.The event start with switch/Circuit Track ,S1.The train change direction and drive towards turnout T1,T1 change to left position.When train passes S2,it stops.turnout T1 ,turn straightforward and train starts moving to S3.S3 change the train direction and drive towards turnout T1.When train passes S2,it stops.And here is where the problem is.Now the train should have driven towards S1 and set the turnout T1,to left. In my event 2 ,S2 says that the turnout should turn straightforward.I cant have two different directions on the turnout,in the same event.I only have 3 events on this shuttle event.I'm not shure if ppl understand what I meant.The plan was to make a train climing up a hill by zig zag,due to no place to make a tunnel.Is there any logical functions that can be used in the event program ,like if ...       HI geir, Maybe not necessary to use switch/Circuit Track, just use common Contact Track at S1, S2 & S3, then could achieve your purpose. Location of S1, S2 & S3 may just near T1. Assume train move direction is forward to S1 & S3, backward to S2, and one specific Loco (here is BR81) to shuttle between S1 - S2 - S3, then S3 - S2 - S1. Create Event "change direction" to change Loco's move direction; Create Macro "If 1" to change direction of turnout T1; Create Event "S1" when train pass S1, condition is Loco moves forward; Create Event "S2" when train pass S2, condition is Loco moves backward; Create Event "S3" when train pass S3, condition is Loco moves forward.
|
 1 user liked this useful post by LSQ
|
|
|
Joined: 02/03/2019(UTC) Posts: 87 Location: Hordaland, Bergen
|
tnx alot.I will try setup,never used macro's.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.