Datentyp: VERSION
Der Datentyp VERSION
enthält eine Struktur mit verschiedenen Versionsinformationen zum Projekt oder zur Bibliothek. Wenn in den Projektinformationen die Option Automatisch Projektinformationen-POUs erzeugen und/oder Automatisch Bibliotheksinformationen-POUs erzeugen aktiviert ist, wird in der Ansicht POUs die Funktion GetVersion
mit dem Datentyp VERSION
automatisch erzeugt. Auf die einzelnen Strukturelemente kann programmatisch zugegriffen werden.
Typdeklaration:
TYPE VERSION: STRUCT /// The major version number. This is typically incremented for significant releases that may include major new features or changes. uiMajor : UINT; /// The minor version number. This is incremented for releases that add smaller features or improvements and may include significant fixes. uiMinor : UINT; /// The service pack number. This is used to indicate updates that usually include bug fixes, performance improvements, and minor feature enhancements. uiServicePack : UINT; /// The patch number. This is incremented for very small changes or bug fixes that do not significantly alter the functionality. uiPatch : UINT; END_STRUCT END_TYPE
Für weitere Informationen siehe: Optionen zur Bausteinerzeugung für den Zugriff auf Projektinformationen