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

Importing sm-Applications Lite syptLite Programs

To use a SYPTLite SM-Applications Lite program in SYPT, the SYPTLite program must be inserted into an SM-Applications Lite program open in the DPL Editor. To do this a project should be created containing a Unidrive SP with an SM-Applications Lite option in the correct option slot. For instructions on doing this see:

  • Creating Projects

As an example, take the following SYPTLite program.

The program contains a simple rung with a contact and a coil and a single alias (SWITCH) defined for #20.23.01. To import this program into an SM-Applications Lite module in a project in SYPT do the following.

Create a New Project Containing an SM-Applications Lite

Start SYPT and either from the Startup dialog or by selecting New from the File menu in the Configuration Editor, create a new project. For the purposes of this example select a CT-RTU network type when the New Project dialog is displayed. SYPT should now look something like:

Double-click on the blank area to the right of the PC to insert a new node. Select a Unidrive SP drive type from the Node Properties dialog.

Select the Option 3 pane in the dialog and change the SM-Applications option into an SM-Applications Lite option.

Press OK.

SYPT should now look like:

Open the DPL Editor for the SM-Applications Lite module by double-clicking the option (the box containing the text LITE1). The DPL editor should open the default program created for the SM-Applications Lite module and look like:

The program contains a Background task which simply executes a continuous loop. Using the mouse select the Background node in the tree in the Workspace on the left. Right-click and from the popup menu choose Delete to delete the Background task. The DPL editor should now look like:

The next step is to insert the SYPTLite program into the (empty) SM-Applications Lite program inthe DPL Editor.

In the DPL Editor Insert menu, choose File. Browse to the appropriate folder and select the SM-Applications Lite program developed in SYPTLite.

Press OK.

The SYPTLite program is inserted into the DPL editor. The example at the start of the section looks like the following when inserted into the DPL Editor.

The ladder diagram from SYPTLite has been turned in a QLD (Quick Ladder) diagram inside a Background task. The alias that was defined in SYPTLite has been turned into an alias definition ($define) at the top of the DPL file. If this file is built by typing Ctrl+B and downloaded to the SM-Applications Lite module, its operation will be the same as when the program was created and downloaded by SYPTLite.

See Also

  • Upgrading from SYPTLite

  • Upgrading from SYPT V1.X

  • Quick Start

  • Introduction

Upgrading from the dpl Toolkit

Users upgrading from the DPL Toolkit will need to import their DPL Toolkit files into SYPT Pro.

The format of DPL Toolkit (.DPL) files is very different to that expected by SYPT Pro. If a DPL Toolkit file is opened in the DPL Editor using the File/ Open menu option, the file will be loaded but any tasks and subroutines in the file will not be properly recognised. When the user compiles and downloads the file to a target node, the online features of the DPL Editor such as breakpoints and parameter and variable value watching will not work properly.

There are two ways of importing a DPL Toolkit file into SYPT Pro:

  • Loading a DPL File from disk

  • Uploading a DPL File from a Target Node