Programming basics – Rockwell Automation 1398-PDM-xxx IQ Master Version 3.2.4 for IA-2000 and IQ-5000 Positioning Drive Modules, IQ-55 User Manual

Page 136

Advertising
background image

114

A Tutorial Introduction • Programming Basics

Publication 1398-PM601A-EN-P — October 2000

T

U

IT

OR
IA

L

Programming Basics

Until now all moves have been done in what is called immediate mode: the ULTRA Plus or IQ is told to
move and it moves. It is usually more useful to have all the moves a machine will do, along with I/O
statements, etc., in a program. We will now explore how programs are written and used.

Select New from the File menu. A window will be displayed and your screen should look something
like this:

In the FILE1 window, type the following text.

TITLE “firstpgm”

MOVD 10

DELAY 1

MOVE DISTANCE - 10

END

After the text has been entered, select Compile from the Edit menu or press F2. A dialog box showing
that the program is being compiled will be displayed. In a few seconds, your screen should look some-
thing like this.

Advertising