Program comparison

Application

Use the Program comparison function to determine differences between two NC programs. You can transfer the differences to the active NC program. If there are unsaved changes in the active NC program, you can compare the NC program with the last saved version.

Requirements

  • Max. 30,000 lines per NC program
  • The control takes into account the actual lines, not the number of NC blocks. Some NC blocks, particularly those consisting of cycles, can contain several lines within one block number.

  • Contents of an NC program

Description of function

Program comparison of two NC programs

You can use the program comparison in the Editor operating mode in the Program workspace only.

The control shows the active NC program on the right and the comparison program on the left.

The control marks differences with the following colors:

Color

Syntax element

Gray

Missing NC block or missing line for NC functions of different length

Orange

NC block with difference in comparison program

Blue

NC block with difference in the active NC program

During the program comparison, you can edit the active NC program, but not the comparison program.

If NC blocks differ, you can use an arrow symbol to transfer the NC blocks of the comparison program to the active NC program.

Applying differences to the active NC program

To transfer differences to the active NC program:

    1. Select the Editor operating mode

    1. Open an NC program

    1. Select Program comparison
    2. The control opens a pop-up window for file selection.

    1. Select comparison program

    1. Select Select
    2. The control shows both NC programs in the comparison view and marks all differing NC blocks.

    1. Select the arrow symbol for the desired NC block
    2. The control transfers the NC block to the active NC program.

    1. Select Program comparison
    2. The control closes the comparison view and transfers the differences to the active NC program.

    Notes

    • If the compared NC programs contain more than 1000 differences, the control cancels the comparison.
    • If an NC program contains unsaved changes, the control displays an asterisk in front of the name of the NC program in the tab of the application bar.
    • If you mark multiple NC blocks in the comparison program, you can apply those NC blocks simultaneously. If you mark multiple NC blocks in the active NC program, you can overwrite those NC blocks simultaneously.
    • Context menu