Comparing two projects or programs can also be done by using the command line.

This is done by utilizing the "K5DiffTest.exe", which is located in the installation folder.

"K5DiffTest.exe" offers the following command line parameters:

Parameter

Description

/?

Shows the available command line parameters.

/PRJ1

Absolute path to a project folder located on the hard disk.

/IP1

Connectivity options to a Runtime Service where the project can be loaded from.

Example:127.0.0.1:1100

Hint: Only possible, if the project files have been stored on the target. Open the download procedure settings in the menu bar entry Project, Settings..., Debugging. Double-click on Edit... opens the dialog Download where you can activate the checkbox Send source code for later project upload.

/ZIP1

Absolute path to a project export in *.ZIP format.

/XML1

Absolute path to a project export in *.XML format.

/PRG1

Absolute path to a program file, including *.SRC file extension.

/PRJ2

Absolute path to a project folder located on the hard disk.

/IP2

Connectivity options to a Runtime Service where the project can be loaded from.

Example:127.0.0.1:1100

Hint: Only possible, if the project files have been stored on the target. Open the download procedure settings in the menu bar entry Project, Settings..., Debugging. Double-click on Edit... opens the dialog Download where you can activate the checkbox Send source code for later project upload.

/ZIP2

Absolute path to a project export in *.ZIP format.

/XML2

Absolute path to a project export in *.XML format.

/PRG2

Absolute path to a program file, including *.SRC file extension.

/L

Library mode.

Only for internal usage.

/SC

Source control mode.

Only for internal usage.

Examples

  • The following example shows comparing a local project with a project upload from a Runtime Service.
    K5DiffTest.exe /PRJ1=”C:\temp\project1” /IP2="127.0.0.1:1100"
  • The following example shows comparing a local project with a XML export.
    K5DiffTest.exe /PRJ1=”C:\temp\project1” /XML2=”C:\temp\project2.xml”
  • The following example shows comparing two program files.
    K5DiffTest.exe /PRG1=”C:\temp\project1\main.src” /PRG2=”C:\temp\project2\main.src”

Project or program comparison via command line

IEC 61131-3 Automation platform > IEC 61131-3 Programming Environment > Tools > Comparing 61131-3 projects > Project or program comparison via command line

Previous chapterNext chapter


Created with the Personal Edition of HelpNDoc: Streamline your documentation process with HelpNDoc's WinHelp HLP to CHM conversion feature