2 programming flowchart – Lenze PM94P01C User Manual

Page 7

Advertising
background image

PM94P01C

5

Introduction

1.2

Programming Flowchart

MotionView utilizes a BASIC-like programming structure referred to as SimpleMotion Programming Language (SML).
SML is a quick and easy way to create powerful motion applications.

With SML the programmer describes his system’s logistics, motion, I/O processing and user interaction using the SML
structured code. The program structure includes a full set of arithmetic and logical operator programming statements,
that allow the user to command motion, process I/O and control program flow.

Before the PositionServo drive can execute the user’s program, the program must first be compiled (translated) into
binary machine code, and downloaded to the drive. Compiling the program is done by selecting the [Compile] button
from the toolbar. The user can also compile and download the program at the same time by selecting the [Compile
and Load] button from the toolbar. Once downloaded, the compiled program is stored in both the PositionServo’s EPM
memory and the internal flash memory. Figure 1 illustrates the flow of the program preparation process.

Start Execution in

debugger environment

or at next power up

Load compiled program

to PositionServo drive

NO

Any Error?

COMPILER

YES

Prepare User Program

Fix program errors

Figure 1: Program Preparation

Advertising