FB_LibVersion

Defines the structure of the version number of a library.
Syntax:
FUNCTION_BLOCK FB_LibVersion
Properties
Name | Type | Access | Initial value | Description |
---|---|---|---|---|
Version | STRING | Get, Set | 'v0.0.0.0' | Version number as a textual string. |
FB_LibVersion | ||||
Build | UDINT | Get | 0 | Third digit of the version number. |
DevBuild | BOOL | Get | FALSE | The version number corresponds to " |
Major | UDINT | Get | 0 | First digit of the version number. |
Minor | UDINT | Get | 0 | Second digit of the version number. |
PreRelease | BOOL | Get | FALSE | The Minor version is an odd number and is interpreted as a preliminary version. |
Released | BOOL | Get | FALSE | Version is marked as 'Released'. |
Revision | UDINT | Get | 0 | Fourth digit of the version number. |
Version3 | STRING | Get | 'v0.0.0' |
|
Methods
Name | Description |
---|---|
Copy( | Adopts another version in this class. |
FB_LibVersion | |
Increase( | Increases the version, depending on the transferred position. |
IsEqualTo( | Compares if another version matches. |
IsNewerThan( | Checks if this version is newer than the passed comparison version. |
IsOlderThan( | Checks if this version is older than the passed comparison version. |
SetVersion(…) | Sets the version number. |
SetVersionStruct( | Sets the version number based on a version of type ST_LibVersion. |
Interfaces
Type | Description |
---|---|
I_LibVersion | Standard interface on FB_LibVersion. |
Requirements
Development Environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT 4026 >= v3.1.4026.16 | PC or CX (x64, x86) | Tc3_PlasticBaseApplication (>= v12.12.0.0) |