Object 'SVN_VERSION_INFO'Permalink

Symbol: _svn_icon_version_info

The object contains the SVN metadata of the project as global constants or variables in a variable list. It is located in the “POUs” view. You can specifically retrieve the data of the global constants or variables by the application. By calling specific data, you can also reduce the memory usage on the controller.

The SVN metadata is provided for this purpose, subdivided over multiple global variable lists (GVLs):

  • “SVN_VERSION_INFO”

  • “SVN_Info_Summary”

  • “SVN_Info_SummaryW”

  • “SVN_Info_URI”

  • “SVN_Info_Revisions”

  • “SVN_Info_Flags”

  • “SVN_info_LastChange”

The SVN_VERSION_INFO object is created automatically when a project is versioned by importing it into a SVN repository. To do this, the “Create SVN_VERSION_INFO” option has to be selected in the “Import project to SVN” dialog.

Furthermore you can create the object or remove it from the project with the option “Generate SVN_VERSION_INFO constants for IEC Access” (Dialog “Project  Project Settings”, category “SVN Settings”).

Table 971: Global Constants

Name

Data type

Description

‎MINREVISION‎

‎LINT‎

Lowest revision number of the working copy

‎MAXREVISION‎

‎LINT‎

Highest revision number of the working copy

‎PARTIAL‎

‎BOOL‎

‎TRUE‎: The working copy is incomplete.

Example: Cancellation during the last update due to a network error or a checkout.

‎MODIFIED‎

‎BOOL‎

‎TRUE‎: Local changes were made.

‎SWITCHED‎

‎BOOL‎

‎TRUE‎: Parts of the project were branched (with the “Switch” command).

‎VERSION‎

‎STRING‎

Version identification, similar to Apache™ Subversion® (‎subversion.exe‎)

Example: ‎12:34M‎, means ‎MINREVISION = 12‎, ‎MAXREVISION = 34‎, ‎MODIFIED = TRUE‎

For more information, refer to the documentation for Apache™ Subversion®.

‎CLEAN‎

‎BOOL‎

‎TRUE‎: The version is clean.

This is the case when ‎MINREVISION‎ is equal to ‎MAXREVISION‎, the working copy is complete, and non-versioned, and is was not switched.

‎URL‎

‎WSTRING‎

SVN-URL of the project

Example: ‎https://svnserver/repository/trunk/ControlABC.project‎

If a controller does not support the data type ‎WSTRING‎, then a compiler error is issued when accessing the object ‎SVN_VERSION_INFO‎.