Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
SYPT PRO User Guide / SYPT PRO User Guide.doc
Скачиваний:
244
Добавлен:
03.03.2016
Размер:
17.32 Mб
Скачать

Inserting Function Block Calls

To insert a function block call

1. Place the cursor at the required insertion point.

2. Type the name of the function block and the required actual arguments.

Alternatively,

1. Place the cursor at the required insertion point.

2. Press F7 or from the Insert menu choose Function Block or on the View toolbar, press

The Select Function Block dialog appears.

3. Select the required function block then click OK.

Alternatively,

1. The Select Function Block dialog can also be displayed by right-clicking at the required insertion point and choosing Insert Function Block from the popup menu.

Select Function Block Dialog

This dialog lists all function blocks available for use in a DPL program. When user-defined blocks are created in a program or function block libraries are referenced they will also be included for selection in this dialog. The dialog has the following features.

The Select Function Block dialog can be resized by dragging its border with the mouse. Once it has been resized it will remember its new size when displayed again.

See Also

  • Editing Programs

  • Libraries

Inserting Files

You can insert the code from one DPL program into another.

To insert a file

1. Place the cursor at the required insertion point in the DPL program.

2. From the Insert menu, choose File.

The Open window appears.

3. Select a DPL file among the list.

4. Click Open.

The code from the inserted file appears in the current DPL program code.

See Also

  • Editing Programs

Inserting the Date and Time

You can insert the date and time of edition into your DPL programs. The format of this date and time is: DD/MM/YY HH:MM:SS.

To insert the current date and time

1. Place the cursor at the required insertion point.

2. From the Insert menu, choose Date and Time.

See Also

  • Editing Programs

Selecting Items in Programs

An object must normally be selected before it can be edited.

To select an item in a program

1. Click and hold the left mouse button immediately before (or after) the required selection.

2. Drag the mouse until the required selection is highlighted.

3. Release the mouse button.

The selected item appears in bold in the tree view in the Workspace and the corresponding code is highlighted in the editing view. In the following picture a QLD diagram is shown selected.

To select all items in a program

  • From the Edit menu, choose Select All.

All the items are selected.

See Also

  • Editing Programs

________________________________________________________________________________

Within a program you can delete items such as sections and diagrams.

To delete an item

1. Select the item to delete from the source code area.

The item appears highlighted.

2. Press the Delete key or from the Edit menu, choose Delete.

The item is deleted.

Alternatively

1. Select the item to delete from the source code area.

The item appears highlighted.

2. Right-click and from the popup menu choose Delete.

The item is deleted.

Alternatively

1. Select the item to delete in the tree view.

2. Right-click and from the popup menu choose Delete.

The item is deleted.

See Also

  • Editing Programs

Cutting, Copying, and Pasting Items

You can cut, copy, and paste text and diagrams in programs.

To cut items

1. Select the required items.

The items appears highlighted.

2. Type Ctrl+X or from the Edit menu, choose Cut.

The items are cut and placed on the clipboard.

To copy items

1. Select the required items.

The text appears highlighted.

2. Type Ctrl+C or from the Edit menu, choose Copy.

The items are placed on the clipboard.

To paste items

1. Select the required insertion cursor position.

2. Type Ctrl+V or from the Edit menu, choose Paste.

The required items are pasted.

Cutting, copy and pasting can also be performed using the right-click popup menus.

See Also

  • Editing Programs