Symbol:
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”).
Name |
Data type |
Description |
---|---|---|
|
|
Lowest revision number of the working copy |
|
|
Highest revision number of the working copy |
|
|
Example: Cancellation during the last update due to a network error or a checkout. |
|
|
|
|
|
|
|
|
Version identification, similar to Apache™ Subversion® ( Example: For more information, refer to the documentation for Apache™ Subversion®. |
|
|
This is the case when |
|
|
SVN-URL of the project Example: |
If a controller does not support the data type WSTRING
, then a compiler error is issued when accessing the object SVN_VERSION_INFO
.