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

Opening and Closing Programs

You can open DPL programs either from the DPL editor or from the Hardware Architecture and Link Architecture views within the Configuration Editor.

To open a node DPL program from the Configuration Editor

1. Select the required node in the Hardware Architecture or Link Architecture view.

2. Either double-click the node or from the Edit menu, choose Edit Contents.

The DPL Editor or SYPTLite is launched. No program editor will be launched if a Beckhoff Remote IO node is selected.

Note:

By default, user programming is disabled for the Unidrive SP Onboard target. If user programming has been disabled for a node in the node properties (see Nodes for more information) the following dialog will be displayed if the Configuration Editor is offline.

The dialog is a warning that although you can continue to edit the program for the node (using SYPTLite or the DPL editor), if a Rebuild All or Download is performed within the Configuration Editor the program will not be built or downloaded.

If the Configuration Editor is online, it is not possible to open SYPTLite or the DPL Editor to view a program for which user programming is disabled.

To open the node DPL program from the DPL editor

1. From the File menu, choose Open.

2. Select the file to open.

The selected file is opened for viewing or editing.

To close a node DPL program

1. In the DPL editor, select the program to close.

2. From the File menu, choose Close.

See Also

  • DPL Programs

  • Selecting Nodes

  • Hardware Architecture View

  • Link Architecture View

  • Configuration Editor

________________________________________________________________________________

Saving Programs

From the DPL Editor, you can save changes made to programs.

Note:

In on-line mode, all documents are read-only therefore cannot be saved.

To save the current program

  • From the File menu, choose Save.

To save all programs open in the DPL editor

  • From the File menu, choose Save All.

See Also

  • DPL Programs

________________________________________________________________________________

Editing Programs

You can only edit node DPL programs while in off-line mode. You edit programs in the DPL Editor. Within open programs, you can jump to specific lines of code using the Go To Line option from the Edit menu.

When editing programs, you can perform the following tasks:

  • Specifying the Floating-Point Model

  • Inserting Sections

  • Inserting Diagrams

  • Inserting Variables, Parameters or Numbers

  • Inserting Files

  • Inserting the Date and Time

  • Selecting Items in Programs

  • Deleting Items in Programs

  • Cutting, Copying, and Pasting Items

  • Finding and Replacing Text

  • Editing Diagrams

  • Expanding and Minimizing Sections and Diagrams

  • Indenting Program Lines

  • Bookmarking Sections and Lines

  • Defining the Font

  • Defining the Colors of Program Elements

  • Defining Tab Stops

________________________________________________________________________________

Specifying the Floating-Point Model

For the SM-Applications and SM-Applications Lite targets it is possible to specify the model used for floating-point arithmetic as single-precision or double-precision using the $FLT directive.

To build a program for single-precision

  • At the top of the DPL view, enter $FLT SINGLE.

To build a program for double-precision

  • At the top of the DPL view, enter $FLT DOUBLE.

The following shows an example of specifying single-precision floating-point mathematics.

Note:

For targets other than SM-Applications and SM-Applications Lite AND if no $FLT directive is specified, the floating-point model defaults to double-precision.

See Also

  • DPL Programs

________________________________________________________________________________