Makro Operationsende Erkennung und Folgeabläufe steuern/en: Unterschied zwischen den Versionen

Aus RailRoad&Co.-Wiki
Zur Navigation springenZur Suche springen
Die Seite wurde neu angelegt: „=== Recognize the end ===“
Die Seite wurde neu angelegt: „*Instructions: TC-Macro_OperationsEnd_Detection-WiKi.pdf
 
(8 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 28: Zeile 28:
=== Recognize the end ===
=== Recognize the end ===


<div lang="de" dir="ltr" class="mw-content-ltr">
This document describes the use of macros in the TC program in general and presents various ways in which the '''end of a macro''' - "program flow" can be recognized and how further processes (operations) in TC objects can follow from it.
Dieses Dokument beschreibt den Einsatz von Makros im TC Programm ganz allgemein und stellt verschiedene Wege vor wie das '''Ende eines Makro''' - "Programmablaufs" erkannt werden kann und wie sich daran weitere Abläufe (Operationen) in TC Objekten anschließen lassen.
</div>


:[[Datei:OperationZ.png|400px]]
:[[Datei:OperationZ.png|400px]]
:<div lang="de" dir="ltr" class="mw-content-ltr">
:''Fig: Operation Z at macro end''
''Abb: Operation Z am Makroende''
</div>


<div lang="de" dir="ltr" class="mw-content-ltr">
No waiting time is deliberately used so that the processes flow seamlessly into one another – without the known problems associated with waiting times.
Es wird bewußt KEINE Wartezeit verwendet, damit sich die Abläufe "nahtlos" aneinanderreihen --- ohne die mit der Wartezeit verbundenen zeitlich bekannten Problematiken.
</div>


<div lang="de" dir="ltr" class="mw-content-ltr">
It should be noted now that the reader will not find their specific case addressed directly. They must derive the solution to their case from the "general principles" outlined.
Es sei jetzt schon darauf hingewiesen, daß der Leser nicht seinen spezifischen Fall behandelt sieht. Er muß sich aus dem "Grundsätzlichen“ die Lösung zu seinem Fall ableiten.
</div>


<div lang="de" dir="ltr" class="mw-content-ltr">
<span id="Dokument_herunterladen"></span>
=== Dokument herunterladen ===
=== Download document ===
</div>


<div lang="de" dir="ltr" class="mw-content-ltr">
The following document shows ways to detect a macro - running and how to create behavior that is similar to the behavior in "normal programming languages" and initiates processes in other TC objects.
Das folgende Dokument zeigt Möglichkeiten auf, wie sich ein Makro - Ablaufende erkennen läßt und wie man ein Verhalten erstellen kann, was an das Verhalten in "normalen Programmiersprachen" anknüpft sowie Abläufe in anderen TC Objekten initiert.
</div>


<div lang="de" dir="ltr" class="mw-content-ltr">
The document was provided by Jens Mohr and can be accessed as a PDF under the title: "[[Medium:TC-Makro_Operationsende_Erkennung-WiKi.pdf|TC-Makro_Operationsende_Erkennung-WiKi.pdf]]".
Das Dokument wurde von Jens Mohr zur Verfügung gestellt und kann unter dem Titel als PDF: "[[Medium:TC-Makro_Operationsende_Erkennung-WiKi.pdf|TC-Makro_Operationsende_Erkennung-WiKi.pdf]]" aufgerufen werden.
</div>


<div lang="de" dir="ltr" class="mw-content-ltr">
== Weblinks ==
== Weblinks ==
</div>


<div lang="de" dir="ltr" class="mw-content-ltr">
*Instructions: [[Medium:TC-Makro_Operationsende_Erkennung-WiKi.pdf|TC-Macro_OperationsEnd_Detection-WiKi.pdf]]
*Anleitung: [[Medium:TC-Makro_Operationsende_Erkennung-WiKi.pdf|TC-Makro_Operationsende_Erkennung-WiKi.pdf]]
</div>





Aktuelle Version vom 28. Dezember 2025, 10:27 Uhr

Verwendung
thumbs


Macro in TrainController

What is a macro?

A macro is a sequence of operation instructions that can be called from different other operations and therefore only needs to be created once.

End of Macro

In TC posts, the desire was repeatedly expressed that the user would like to know when a macro finishes processing its operations, in order to then be able to start further actions.

Unlike a macro in normal programming languages:

  • After a macro in TrainController finishes, the action AFTER the macro call does NOT continue from its end,
  • BUT the macro ends WITHOUT "returning" to the calling point!
MakroOperationsfolge.png
Fig.: Macro Operation sequence

If further operations follow the macro call in TrainController, these are continued DIRECTLY after the call, i.e., they are processed "in parallel".

Recognize the end

This document describes the use of macros in the TC program in general and presents various ways in which the end of a macro - "program flow" can be recognized and how further processes (operations) in TC objects can follow from it.

Fig: Operation Z at macro end

No waiting time is deliberately used so that the processes flow seamlessly into one another – without the known problems associated with waiting times.

It should be noted now that the reader will not find their specific case addressed directly. They must derive the solution to their case from the "general principles" outlined.

Download document

The following document shows ways to detect a macro - running and how to create behavior that is similar to the behavior in "normal programming languages" and initiates processes in other TC objects.

The document was provided by Jens Mohr and can be accessed as a PDF under the title: "TC-Makro_Operationsende_Erkennung-WiKi.pdf".


-- Jens Mohr 16:24, 28. Sep. 2016‎ († 2023)
bearbeitet: Uslex 09:08, 18. Feb. 2022 (CET), Uslex 13:23, 31. Jul. 2023 (UTC), Uslex 10:22, 24. Aug. 2024 (CEST)