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

Building and Downloading the Program

This is stage 4 of the quick start example for SYPT.

In this stage the example program is built into a user image, SYPT is taken online and the user image is downloaded to the target.

To begin this stage, the example program created in stage 3 should be open in the DPL Editor. If the example program has been closed, reopen the example program.

To build and download the program, perform the following steps:

Step 1 - Build the program

With the program open in the DPL editor, type Ctrl+B to build the program. The program will be built and the result of the build will be displayed in the Output Window at the bottom of the DPL editor. If the program was built successfully, the Output Window will show a Build OK status as shown in the following picture.

Note:

If the Output Window does not show a Build OK status, retrace the steps to correct the errors in the example program.

Step 2 - Connect the PC to the Drive

Connect the RS232 to RS485 cable between a COM port on the PC and the RJ45 on the front of the drive. Make a note of the PC COM port in which the cable is connected because you will need this in Step 3 below.

Step 3 - Verify Communications Settings

Verify the communications settings in SYPT match those of the Unidrive SP to which the ladder diagram/ user program will be downloaded.

On the Unidrive SP (using the drive keypad), ensure that:

  • parameter #00.35 has the value rtu.

  • parameter #00.36 has the value 19200.

  • parameter #00.37 has the value 1.

If you need help on changing the values of these parameters, consult the Unidrive SP User Guide.

Note:

If the drive is in a default state or has had defaults loaded, the value of parameters #00.35, #00.36 and #00.37 will already be set to the required values.

In the SYPT Configuration Editor, double-click on the PC node to display the PC Communication Settings dialog.

Ensure the Lower Node and Upper Node fields are both set to 1. When SYPT goes online using the CT-RTU protocol it will search for nodes with addresses 1 to 255 by default. To speed up the process of going online and detecting nodes, we restrict SYPT to search only for a node with address 1.

Press Settings to display the Communication Settings dialog.

Verify that the COM port setting in the Hardware field matches the PC COM port in which the RS232 to RS485 serial cable was placed in step 2 above. Verify the baud rate is 19.2Kb/s. Press OK to store the communications settings. Press OK again to dismiss the previous PC Communications dialog.

Step 4 - Go online and connect to the Unidrive SP

In this step SYPT is taken online. SYPT will search for the Unidrive SP and SM-Applications option in the project. The Configuration Editor will report errors if it cannot communicate with the Unidrive SP.

To go online in the Configuration Editor, press F9. SYPT will then display a Node detection dialog and search for physical nodes/ drives. When the nodes have been successfully found, the Configuration Editor will look like:

Note the online status in the status bar.

Note:

If the Unidrive SP or the SM-Applications option are displayed in red it means that SYPT could not find a match for the nodes in the project. Ensure the Unidrive SP has defaults loaded and repeat the above steps to verify cabling and communications settings. If there are extra nodes with yellow backgrounds displayed it means that SYPT has found more nodes than were originally in the project - nodes with yellow backgrounds can be ignored for this example.

Step 5 - Download the Program

If the steps in the Quick Start section are being performed in sequence, the DPL Editor should already be open. If the editor is not open for the SM-Applications node, open the editor by double-clicking on the SM-Applications node in the Configuration Editor.

When the Configuration Editor was switched online, the DPL Editor was also switched online. The DPL Editor should now be showing a dialog indicating that the program for the SM-Applications in the project is different to the one actually on the target.

Press Yes and the program will be downloaded to the target. A download progress dialog will be displayed while the program is downloading. When the dialog disappears, the download is complete and the DPL Editor is ready to begin monitoring operation of the user program.

This is the end of stage 4 of the Quick Start example.

The next Quick Start stage is:

  • Monitoring Operation of the Program

The previous Quick Start stage was:

  • Editing the Program

For more information on the editing actions performed in this section, see:

  • Going Online - Communicating with Targets

  • Building and Downloading Applications

________________________________________________________________________________