FB_LibVersionBeta

FB_LibVersionBeta 1:

Defines the structure of the version number of a library, plus a tag. The property FB_LibVersionBeta.Version thus presents itself as 'v5.3.32.9-beta554', for example.

Implicit version tags

With the implicit version tags (can be set via .ImplyVersionTags), the version number is always interpreted as three digits. The Revision is interpreted as a beta revision and displayed using the beta tag. In addition, PreRelease versions are displayed with the tag '-pre' and DevBuild versions with the tag '-dev'.

Syntax:

FUNCTION_BLOCK FB_LibVersionBeta EXTENDS FB_LibVersion

FB_LibVersionBeta 2: Properties

Name

Type

Access

Initial value

Description

Version

STRING

Get

'v0.0.0.0'

Version number as a textual string.

BetaIteration

UDINT

Get, Set

0

Determines the beta iteration of the version.

For ImplyVersionTags = TRUE the revision is returned here.

ImplyVersionTags

BOOL

Get, Set

FALSE

Extended version semantics. The coding is added as a tag to the version number.

Build

UDINT

Get

0

Third digit of the version number.

DevBuild

BOOL

Get

FALSE

The version number corresponds to „v0.0.0“ and is interpreted as a development build.

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'

Version without the first digit of the version number.

FB_LibVersionBeta 3: Methods

Name

Description

Copy(iVersion)

Adopts another version in this class.

Increase(nPlace)

Increases the version, depending on the transferred position.

IsEqualTo(iCompare)

Compares if another version matches.

IsNewerThan(iCompare)

Checks if this version is newer than the passed comparison version.

IsOlderThan(iCompare)

Checks if this version is older than the passed comparison version.

SetVersion(…)

Sets the version number.

SetVersionStruct(stVersion)

Sets the version number based on a version of type ST_LibVersion.

FB_LibVersionBeta 4: Interfaces

Type

Description

I_LibVersion

Standard interface on FB_LibVersion.

I_LibVersionBeta

Standard interface on FB_LibVersionBeta.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT >= v3.1.4024.54 (recommended)
TwinCAT >= v3.1.4024.42 (required)

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v12.8.1.0)