Executing your program, Run (program), Stop (program) – Rockwell Automation 2098-UWCPRG Ultraware Software User Manual User Manual

Page 323: Run (program) stop (program)

Advertising
background image

Rockwell Automation Publication 2098-UM001G-EN-P - February 2011

325

Creating and Running Programs Chapter 6

Executing Your Program

Use the Program menu to insert Run, Stop and Kill commands into a program.

To execute these commands in your program, perform these steps.

1. Create an executable program file (

Refer to Using Executable Program

Files

on page 6-320).

2. Move the executable program file to the Programs branch of an online

Ultra5000 drive, as follows:
a. Click an executable program file in a Project branch in the Workspace

window.

b. Click Copy from the Edit menu.
c. Click in the Workspace window of the Programs branch for an online

Ultra5000 drive.

d. Click Paste in the Edit menu.

3. Click the executable program file you want to run in the Programs branch

of an online drive.

4. click the Program menu.
5. Click the desired command: Run, Stop or Kill.

These commands are described in the paragraphs below.

Run (Program)

This command tells an online drive to start or resume execution of the selected
executable program (.exe) file. While the program is running, the Workspace
window icon for the selected program is animated.

An executable program file can be run, even though the drive is disabled. If the
drive is enabled while the program is running, Ultraware software prevents
sudden large motion by calculating an offset between the motor's actual position
and the drive's command position, then adding this offset to the drive's command
position.

When you run the program with the drive enabled, the motor may immediately
begin to move as the program issues commands.

Stop (Program)

Use this command to tell an online drive to stop executing a selected executable
program (.exe) file. This command provides a controlled stop to program
execution, unlike the Kill command. When the Stop command executes,
animation for the selected program's icon stops.

Advertising