Introduction – Lenze E94P PositionServo with MVOB User Manual

Page 11

Advertising
background image

PM94H201B_13xxxxxx_EN

L

9

Introduction

1.3.3 MotionView Studio - Indexer Program

The MotionView Studio provides a tool suite used by MotionView OnBoard to enter, compile, load and debug the user
program. To view and develop the user program, select the [Indexer Program] folder in the Parameter (Node) Tree
window. Once selected the program text editor screen and program toolbar are displayed. The program displayed in the
text editor window is uploaded from the drive when the indexer folder is selected, any data not compiled to the drive or
saved to PC file will be lost once this window is exited. Click anywhere in the Parameter View Window to edit the Indexer
program.
Common Programming Actions
Load
User program from the PC to the MotionView Indexer Program folder text editor window.

- Select

[Indexer Program] in the Parameter (Node) Tree.

- Select

[Import] on the program toolbar.

Select the program to import from the PC folder where it is located. This procedure loads the program from the file to
the editor window. It doesn’t load the program to the drive’s memory.

Compile program and Load to the drive

- Select

[Indexer Program] in the Parameter (Node) Tree.

- Select

[Load WO Source] on the program toolbar to compile the program and load the compiled binary code

to the PositionServo drive. A copy of the original source code is not stored to the drive’s memory and therefore
cannot be obtained from the drive subsequently. This feature can be used to protect the program from copy but
the programmer must ensure that a copy of the program is safely stored to his PC.

- Select

[Load W Source] on the program toolbar to compile the program and load the source code and the

compiled binary file to the PositionServo drive. The original source code contained in the drive can be viewed
whenever the drive is accessed through MotionView and the Indexer Program folder is opened.

- Select

[Compile] to check syntax errors without loading the program to the drive. If the compiler finds any

syntax error, further compilation is halted. Errors are reported in the message window at the bottom of the
screen.

Save User program from MotionView to PC.

- Select

[Indexer Program] in the Parameter (Node) Tree.

- Select

[Export] ] on the program toolbar.

Provide a name and folder location for the source file to be stored under. The program will be saved to the Windows
“My Documents” folder by default.

Run User program in drive.

- Select

[Indexer Program] in the Parameter (Node) Tree.

- Select

[Run] on the program toolbar. Note all warnings contained within product manuals prior to running the

user program.

Step Through the User program.

- Select

[Indexer Program] in the Parameter (Node) Tree.

- Select

[Step] on the program toolbar.

If [Step] is selected, the drive will execute the program one step at a time including subroutines. For the Step function to
be used the drive must be in a ‘Indexer program Stopped’ condition. If Indexer program is running then Step functions
are disabled. If the user program displayed in the Indexer program window does not match the program currently residing
within the drive (last compiled and downloaded) then Step functions are also disabled.

Statement execution is tracked by a pointer located in the progression column of the program editor. The pointer indicates
the next line of code to be executed. At each Step the pointer will disappear until the statement has been fully executed
and will then reappear at the next statement.

Advertising