Data type: VERSION
The VERSION
data type contains a structure with various version information about the project or library. If the Automatically generate 'Project Information' POUs option and/or Automatically generate 'Library Information' POUs option is activated in the project information, then the GetVersion
function with the VERSION
data type is automatically generated in the POUs view. The individual structural elements can be accessed programmatically.
Type declaration:
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: Options for creating blocks for accessing project information