User guide

Chapter 1. Programming Fundamentals
11
4. Run the program.
Other methods of
executing programs are
listed in
Executing
Programs
(page 14).
WARNING: Executing this program will cause motion. If you coupled the motor(s)
to the load, make sure it is safe to move the load without damaging equipment or injuring
personnel.
To run the program from the terminal emulator, type
the name of the program (in this case it is EXAMPL)
and press the carriage return or enter key.
If you are using a stepper, the default resolution will
most likely be set to 25,000 steps per rev; therefore,
running the EXAMPL program should move the motor
about 1/3 rev.
If you are using a servo, the default resolution will
most likely be set to 4,000 counts per rev; therefore,
running the EXAMPL program should move the motor
about 2 revs.
5. Edit the program. To demonstrate the iterative nature of programming, let’s change distance of the move in the
EXAMPL program, redownload the EXAMPL.PRG file, and run the EXAMPL program.
Enter the name of the program (EXAMPL) to run
the program and execute motion.
If you are using a stepper with default resolution
settings, the motor should move about 2/3 rev.
If you are using a servo with default resolution
settings, the motor should move about 4 revs.
Message indicates successful
download, overwriting the previous
version of the EXAMPL program that
exists in the controller's memory.
Double the distance (D) command
value from 8000 units to 16000 units
(change the comment as well).
Click this toolbar button to save the
EXAMPL.PRG file before
downloading it to the controller.
Send (download) the EXAMPL.PRG
program file to the controller.