F_GetTcVersion

F_GetTcVersion 1:

This function returns an interface of type I_LibVersionRead. The TwinCAT version that is active on the executing system can be queried via the interface.

F_GetTcVersion 2:

Query process is asynchronous

The query process of the TwinCAT version is asynchronous. Therefore, the function does not return a valid version the first time it is called after system startup.

  • The F_CheckTcVersion() function can be used to query whether the version has already been successfully retrieved.

Syntax:

FUNCTION F_GetTcVersion : I_LibVersionRead

F_GetTcVersion 3: Outputs

Name

Type

Description

F_GetTcVersion

I_LibVersionRead

Interface to an object of type FB_LibVersion.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT 4026 >= v3.1.4026.16
TwinCAT 4024 >= v3.1.4024.66

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v12.12.3.0)