Joined: 04/02/2021(UTC) Posts: 480 Location: USA
|
Before a turnout, train A stops and (standing) train B moves onto shared track. Train B goes round and then stops before turnout, and train A moves onto shared track. And so forth. This works fine for me using contact segments. This is one round each for trains A and B. Is there a way to CS3 program two or more rounds for train A (and B) before the other train moves? Say, Train A rounds three times before train B moves. Then, train B rounds two times before train A moves. I am a beginner at automation, so ideas welcome. |
|
 1 user liked this useful post by BenP
|
|
|
Joined: 10/02/2021(UTC) Posts: 3,882 Location: Michigan, Troy
|
Hi Ben, I can only refer you to the marklin digital youtube webinar on advanced event programming. I am a novice myself. It looks like you want three events, two with long delays. You may need more than one contact or block area. Advanced events can include an "if, or a "then" condition in order for the event's and sequences to run correctly.
|
 2 users liked this useful post by marklinist5999
|
|
|
Joined: 01/12/2018(UTC) Posts: 54 Location: Louisville, Kentucky
|
|
|
|
|
Joined: 05/09/2014(UTC) Posts: 676 Location: NEW HAMPSHIRE, Somersworth
|
Assuming you have a circuit track on the shared track and contact tracks on both unshared tracks this is how I would do it. Loco A is sitting on one unsshared track, when loco B hits the circuit track it triggers an If event activating the switches so that the empty shared track is open. When it hits the contact track an event is triggered either sending it around again or stopping it, activating the switches for the other track and then sending the other loco around. Repeat as desired.
|
|
|
|
Joined: 05/09/2014(UTC) Posts: 676 Location: NEW HAMPSHIRE, Somersworth
|
Assuming your track looks something like this: ------======------
|
|
|
|
Joined: 10/02/2021(UTC) Posts: 3,882 Location: Michigan, Troy
|
Also Ben, a condition is usually followed by an "action" first in an advanced event.
|
 1 user liked this useful post by marklinist5999
|
|
|
Joined: 04/02/2021(UTC) Posts: 480 Location: USA
|
Originally Posted by: rhfil  Assuming you have a circuit track on the shared track and contact tracks on both unshared tracks this is how I would do it. Loco A is sitting on one unsshared track, when loco B hits the circuit track it triggers an If event activating the switches so that the empty shared track is open. When it hits the contact track an event is triggered either sending it around again or stopping it, activating the switches for the other track and then sending the other loco around. Repeat as desired. Got this with working with 3 contact tracks, but can I do 2 or 3 rounds of train a before train b gets activated for 2 or 3 rounds? |
|
|
|
|
Joined: 05/09/2014(UTC) Posts: 676 Location: NEW HAMPSHIRE, Somersworth
|
Unfortunately the event is triggered each time the loco makes contact. You might try a ridiculously long delay but not sure if it will work.
|
 1 user liked this useful post by rhfil
|
|
|
Joined: 05/09/2014(UTC) Posts: 676 Location: NEW HAMPSHIRE, Somersworth
|
Another possibility is the "record an event" feature. It takes some patience and practice but it might do what you are trying to achieve. One caveat - changing the recording is pretty much impossible. It is easier to just delete it and start over. Make sure you have the entire event in your head before you start. My most successful one had a loco pull out of a siding(station), go around a loop and stop in a shared track(station), go around the loop and back in to its starting siding(station). I had no sensors and the recording included operating switches, and blowing whistles. So it can be done.
|
 1 user liked this useful post by rhfil
|
|
|
Joined: 28/09/2019(UTC) Posts: 119 Location: Rogaland, Haugesund
|
Assuming your two trains after passing onto the shared track continue on a loop and returns to their starting points in front of discussed turnout: Define in CS3 a virtual contact as if for contact track connected to s88 device, however you dont need the s88, adress or contact track. The virtual contact will be as a block name for the shared track. In your events you can define this as occupied(yellow) or free(grey) only way to change status is in event(or if you drag its symbol into your track plan and press on it) Now. Event for first train: drag the virtual contact into the command line, set it to free(grey) and delay until virtual contact is grey(free) this will halt this event until contact is set to grey. Commands to follow in this event is to set train moving etc. then you set the feedbac contact the said train into the event and set it delay/wait until triggered. Next command of course to stop train. Then you insert the virtual contact again, and this time set it to occupied(yellow) alternatively you can send the train on anorher tour around the loop prior to the virtual contact is set yellow. Then; event for the other train: more or less the same but to wait until virtual contact is yellow before set on route and when triggering contact prior to turnout either set for anorher round or stop train and set virtual contact to grey. When starting the two events manually the train waiting for the color that is already in the virtual contact will start. The other wait. Hope this was understandable. It is also possible to make an event and drag the event for train a several times into this event. Similar for train b. Startin these events will make the sequence repeat. Regards Thor Inge
|
 1 user liked this useful post by Tie
|
|
|
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.