Introduction – Lenze PM94P01C User Manual

Page 13

Advertising
background image

PM94P01C

11

Introduction

Basic Motion Program
Select

[Indexer program] from the Node Tree. The Parameter View window will display the current User Program stored in the

drive. Note that if there is no valid program in the drive’s memory the program area will be empty.

WARNING!
This program will cause motion. The motor should be disconnected from the application (free to rotate)
or if a motor is connected, the shaft must be free to spin 10 revs forward and reverse from the location of
the shaft at power up. Also, the machine must be capable of 10 RPS and an accel / decel of 5 RPSS.

In the program area, clear any existing program and replace it with the following program:

UNITS=1
ACCEL = 5
DECEL = 5
MAXV = 10
ENABLE
MOVED 10
MOVEDISTANCE -10
END

After the text has been entered into the program
area, select the [Compile] icon from the toolbar. After
compilation is done, a “Compilation Error” message
should appear:

Click [OK] to dismiss the “Compliation error” dialog box. The cause of the compilation error will be displayed in the
Message window, located at the bottom of the MotionView OnBoard window. MotionView will also highlight the program
line where the error occurred.
UNITS=1
ACCEL = 5
DECEL = 5
MAXV = 10 ;
ENABLE
MOVED 10

;

MOVEDISTANCE -10
END
The problem in this example is that “

MOVEDISTANCE” is not a valid command. Change the text “MOVEDISTANCE

to “

MOVED”.

UNITS=1
ACCEL = 5
DECEL = 5
ENABLE
MOVED 10
MOVED -10
END

After editing the program, select the [Compile]
icon from the program toolbar. After compilation
is done, the “Compilation Complete” message box
should appear.

Advertising