Function Description

The PRJ_VERS function allows you to obtain information about the current project open in Control Expert.

To access this information in Control Expert:

Step

Action

1

On the Tools menu, click PLCScreen.

Results: The PLCScreen opens.

2

Click on the Information tab.

3

On the left side of the PLCScreen, click SYSTEM INFORMATION → APPLICATION → INFORMATION.

Results: Information about the application is displayed on the right side of the PLCScreen.

FBD Representation

The representation in FBD of the PRJ_VERS function (with example data) is as follows:

NOTE: For an explanation of these parameters, refer to Parameter Descriptions.

Ladder Representation

The representation in LD of the PRJ_VERS function is (with example data) as follows:

IL Representation

The representation in IL of the PRJ_VERS function is as follows:

CAL FBI_PRJ_VERS (

OS_VERSION :=> OS_VERSION,

UNITY_VERSION := > UNITY_VERSION,

LIB_VERSION := > LIB_VERSION,

PRJ_NAME := > PRJ_NAME,

PRJ_VERSION := > PRJ_VERSION,

MAJOR_VERSION :=> MAJOR_VERSION,

MINOR_VERSION :=> MINOR_VERSION,

BUILD_VERSION :=> BUILD_VERSION,

SIGNATURE :=> SIGNATURE,

LAST_MODIFIED :=> LAST_MODIFIED,

SECOND :=> SECOND,

MINUTE :=> MINUTE,

HOUR :=> HOUR,

DAY :=> DAY,

MONTH :=> MONTH,

YEAR :=> YEAR

)

ST Representation

The representation in ST of the PRJ_VERS function is as follows:

FBI_PRJ_VERS(OS_VERSION, UNITY_VERSION, LIB_VERSION, PRJ_NAME, PRJ_VERSION, MAJOR_VERSION, MINOR_VERSION, BUILD_VERSION, SIGNATURE, LAST_MODIFIED, SECOND, MINUTE, HOUR, DAY, MONTH, YEAR);

Parameter Descriptions

The following table describes the PRJ_VERS output parameters:

Parameter

Type

Comment

OS_VERSION

INT*100

Processor version

UNITY_VERSION

INT*100

Control Expert version

LIB_VERSION

INT*100

LibSet Version

PRJ_NAME

String[68]

Project name

PRJ_VERSION

UDINT

Project version

MAJOR_VERSION

INT

Project version (major)

MINOR_VERSION

INT

Project version (minor)

BUILD_VERSION

INT

Build version

SIGNATURE

UDINT

Build signature

LAST_MODIFIED

DT

Build last

SECOND

INT

Build version modified (secod)

MINUTE

INT

Build version modified (minute)

HOUR

INT

Build version modified (hour)

DAY

INT

Build version modified (day)

MONTH

INT

Build version modified (month)

YEAR

INT

Build version modified (year)