Skip to main content

Tipo di dati: VERSION

IL VERSION il tipo di dati contiene una struttura con varie informazioni sulla versione del progetto o della libreria. Se il Genera automaticamente POU "Informazioni sul progetto" opzione e/o Genera automaticamente POU "Informazioni sulla biblioteca" l'opzione è attivata nelle informazioni del progetto, quindi l' GetVersion funzione con il VERSION il tipo di dati viene generato automaticamente in POU vista. È possibile accedere ai singoli elementi strutturali tramite programmazione.

Dichiarazione di tipo:

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

Per ulteriori informazioni, vedere: Opzioni per la creazione di blocchi per l'accesso alle informazioni sul progetto