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

Deleting Target User Programs

When online in the Configuration Editor it is possible to delete the user program present on a target node. The program is not deleted from the project on the PC but the copy of any program present on the physical node is deleted.

To delete a user program in a target

Select the node in the Hardware Architecture view and do one of the following.

  • Right-click the mouse and from the popup menu, choose Erase User Program.

  • In the Run menu, choose Erase User Program.

When asked, confirm that the program is to be erased.

The program is then deleted.

See Also

  • Going Online - Communicating with Targets

________________________________________________________________________________

Building and Downloading Applications

In order to download a program and its source file to a target the DPL program must be built into a user image. When the program has been successfully built SYPT can be switched into online mode and the image downloaded to the target.

When building and downloading applications, you can perform the following tasks:

  • Building Applications

  • Showing Build Errors

  • Downloading Node Programs

  • Uploading Node Programs

See Also

  • Developing Applications

  • Going Online - Communicating with Targets

Building Applications

Within the Configuration Editor it is possible to rebuild all user programs in a project or to build individual programs one by one. It is also possible to build individual programs one by one within SYPTLite or the DPL editor.

To rebuild all programs in a project within the Configuration Editor

  • From the Project menu, choose Rebuild All.

To build a single node program within the Configuration Editor

1. In the Hardware Architecture or Link Architecture view, select the node.

2. From the Project menu, choose Build.

To build a single node program open within the DPL editor

Open the program in the DPL editor and do one of the following:

  • From the Project menu, choose Build Code.

  • TypeCtrl+B.

To build a node program then download it from the DPL editor while online

  • From the Project menu, choose Build and Download.

See Also

  • Going Online - Communicating with Targets

  • Showing Build Errors

  • Downloading Node Programs

  • DPL Programs

________________________________________________________________________________

Showing Build Errors

When building programs, the build status and any build errors are displayed in the Output Window of the Configuration Editor, DPL editor or SYPTLite depending on where a build was initiated. The Output window is opened automatically when a build is performed.

At the end of a build, a dialog may be displayed giving the overall build result - success or fail. This dialog can be turned off by deselecting the Display Build Result in a Dialog after a build option in the options settings within the Configuration Editor (accessed in the Tools menu).

The above picture shows the results of building all nodes in a project within the Configuration Editor. The status for building each node is shown. For each node, the success/ fail status is shown together with the percentage of available target code and RAM space which will be used when the program is downloaded to a target. The picture also shows that one node has been skipped because user programming has been disabled for the node.

The following picture shows a failed build in the Output Window.

The line highlighted in blue indicates a build error. The build errors for a node program are displayed after the name of the node being built and before an overall summary of the build. In the above picture, node 2 on network CTNet0 was being built and the build failed with 1 error and no warnings.

The error message has the following syntax:

Line [line_number] ERROR: Error_Message

or, if the build error occurred in a diagram rather than in DPL text, the build error may be in the format:

Line [line_number] Pos [diagram_coordinate] ERROR: Error_Message

The line_number and diagram_coordinate give the location in a DPL program where the error was detected. When the program is open in either the DPL Editor or SYPTLite, the application status bar will show the line number or diagram coordinate as the cursor or mouse is used to select different areas in the program.

The easiest way of viewing the items causing the build error is to double-click the error message in the Output Window. The line or diagram element in error will then be displayed allowing correction. If the build error is displayed in the Output Window of the Configuration Editor, the program will be opened in the appropriate editor (DPL Editor or SYPTLite) and the item or line in error will be displayed. A copy of the build errors for the program will also be displayed in the Output Window of the editor.

Note:

The DPL compilers for SM-Applications and SM-Applications Lite include better handling of errors in diagrams. If there are diagram errors when compiling for these targets, the diagram element in error will be displayed when an error is double-clicked. For older targets, the DPL compiler will highlight that there is an error in or near a diagram but will not select the diagram element in error.

See Also

  • Building Applications

  • Going Online - Communicating with Targets

  • Nodes

  • Specifying Workbench Options

________________________________________________________________________________