FB_LibVersion

FB_LibVersion 1:

Defines the structure of the version number of a library.

Syntax:

FUNCTION_BLOCK FB_LibVersion

FB_LibVersion 2: Properties

Name

Type

Access

Initial value

Description

Version

STRING

Get

'v0.0.0.0'

Version number as a textual string.

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_LibVersion 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_LibVersion 4: Interfaces

Type

Description

I_LibVersion

Standard interface on FB_LibVersion.

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)