Download 940 Position Servo (V1) Programming manual

Transcript
1.3
Programming Flowchart Overview
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 S801 illustrates the flow of the program
preparation process.
Prepare User Program
COMPILER
Fix program errors
Any Error?
YES
NO
Load compiled program
to PositionServo drive
Start Execution in
debugger environment
or at next power up
S801
PM94P01B