Originally Posted by: Jack_Peters 
Guess I'll be patient and see if Rick Sinclair or Curtis Jeung will cover this in a Digital Newsletter soon.
I will in the mean time give it a go on my existing layout. If I have any success, then I will update ASAP.
Okay, here is what you do:
To set up a test of the brake macro you need the following:
1. A signal with a decoder (or at least a virtual one, meaning: if you don't have a signal, create one as if you had, it does not matter, the CS only uses the status internally).
2. At least two feedback contacts, S88
3. A control contact (create one from the article list)
4. Your CS3 must be in advanced mode (from the system menu turn on advanced events)
The brake macro:
- Lok container = Drag the loco here
- V min container = The crawl speed that the loco will reduce its speed to when hitting the contact in container B.
- Pause-Flag container = The override button that allows to stop all trains at their brake positions with the push of one button
- Signal container = Drag the signal in question here
- Brems S88 container = The first S88 contact that the train reaches goes here. When this is active, the train will start braking
- Halt S88 container = When the train reaches the contact in this container, it will stop
- D-Weg S88 container = If the train reaches this contact, something prevented the train from stopping and the event in the...
- Notaktion container = ...will be executed.
Consider a set up like this:
Direction of travel -->
====S88 Contact A === (brake section) ==== S88 Contact B === (stop section) ==== [Signal] === S88 Contact C (emergency section) ===
To use the brake macro:
1. Create an event, call it "Brake test" (or what ever).
2. Drag a locomotive to the event, set the locomotive speed.
3. Now add a brake macro by editing your event and click the plus sign in the event window (next to the name). In the menu scroll down to brake macro.
4. A brake macro is created. Find it in the event list and edit it.
5. Drag the same locomotive to the locomotive container. The locomotive container and the one next to it is filled. Set the speed to the speed (V container) you want the locomotive to crawl with towards its stop.
6. In the next container (the pause container) drag the control contact. This will ensure that the train will brake disregarding the status of the signal, giving you a chance to stop all trains by the click of one button. Just a feature.
7. Drag the signal to the signal container (next to the control contact)
8. Drag the first S88 contact that the train will reach to the B-container.
9. Drag the second S88 contact that the train will reach to the H-container.
10. If you want you can drag a contact after the signal to the D-Weg container, but it is not mandatory.
11. The Notaktion container is the task that is performed if the train skips the signal. Again, not mandatory. If you want, you can create a new event, throw an emergency stop in there, and drag the event into the Notaktion container.
Now put your loco on a path towards the signal, an start the "brake test" event.
The loco should run towards the signal and stop when it gets there, assuming the signal is red of course. When you turn the signal back to green the loco will continue.
Now, if the control contact is on (or off, I can't actually remember) the loco will ignore the state of the signal and stop anyway. You can experiment with that.
The brake macro is very basic and it cannot (at the time being) replace the original brake module if you ask me. Of course, you can do a lot of fiddling with events and create something that might be able to replace the brake module, but you will never achieve the same kind of flexibility with the features currently available. I am sure it will get there in time though, there are a lot of new features in the 1.4 updates that gives us a hint on what the future might hold.
I hope this gives you a better idea on how to use the brake macro. There is not more to it than the above.
Edited by user 20 March 2019 18:35:07(UTC)
| Reason: Not specified