Skip to main content

数据类型:VERSION

VERSION 数据类型包含一个结构,其中包含有关项目或库的各种版本信息。如果 自动生成“项目信息” POU 选择权和/或 自动生成“库信息” POU 选项在项目信息中被激活,那么 GetVersionVERSION 数据类型自动生成 点检装置 视图。可以通过编程方式访问各个结构元素。

类型声明:

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

有关详细信息,请参阅:For more information, see: 创建用于访问项目信息的块的选项