Introduction

There are two ways to duplicate a Program Unit:

  • Copy of the Program Unit without copy of the effective parameters.

  • Copy of the Program Unit with copy of the effective parameters.

You can use the menu command, shortcut menu or drag-and-drop to duplicate a Program Unit.

Moving a Program Unit

The execution order of programs elements can be changed exclusively in the structural view.

Process the following steps to move a Program Unit:

Step

Action

1

Click on the desired Program Unit with the left mouse button and hold the mouse button down.

2

Move the Program Unit to the required position within the current task or into another task.

NOTE: A Program Unit containing an SFC section can not be moved form the MAST task to another task.

Duplication Without Effective Parameters

Process the following steps to duplicate a Program Unit without copying the effective parameters:

Step

Action

1

Select the desired Program Unit.

2

Copy the Program Unit by:

  • Click Copy from the shortcut menu

    or

  • The Ctrl+C key combination

3

Select the location for the new Program Unit. It can be a Program Unit.

4

Paste the new Program Unit by:

  • Click Paste After from the shortcut menu

    or

  • The Ctrl+V key combination

Result: The new Program Unit is created just after the selected lProgram Unit.

If using the drag-and-drop function to duplicate a Program Unit without copy of the effective parameters:

  • Press the key combination Ctrl + left-click on the Program Unit to be duplicated (holding down the mouse button),

  • drop the Program Unit at the desired location.

NOTE: A Program Unit containing an SFC section can be only duplicated in the MAST task.

Duplication With Effective Parameters

Process the following steps to duplicate a Program Unit with copying the effective parameter:

Step

Action

1

Select the desired Program Unit.

2

Copy the Program Unit by:

  • Click Copy from the shortcut menu

    or

  • The Ctrl+C key combination

3

Select the location for the new Program Unit. It can be a Program Unit.

4

Paste the new Program Unit by clicking Paste Special After... from the shortcut menu.

Result: A message box opens asking if you want to copy the effective parameters.

5

Click Yes to confirm the duplication with effective parameters.

NOTE: If you click No , the duplication is done without effective parameters.

6

Result: The new Program Unit is created just after the selected Program Unit.

If using the drag-and-drop function to duplicate a Program Unit with copy of the effective parameters:

  • Press the key combination Ctrl + Shift + left-click on the Program Unit to be duplicated (holding down the mouse button),

  • drop the Program Unit at the desired location.

NOTE: A Program Unit containing an SFC section can be only duplicated in the MAST task.

Analyze

Process the following steps to analyze a Program Unit:

Step

Action

1

Select the desired Program Unit.

2

Analyze the Program Unit by clicking Analyze from the shortcut menu.

3

Check the result of the analysis in the Display Window on the lower part of the window.

NOTE: Double-click on an error row in the display window to go to the source of the error.