Installation guide

50 Motion Controller Programming Interface
6.2.1 – Multi-Tasking timing
The Tasks are switched by the interrupt routine every 256
micro-seconds. The number of tasks being switched is
dependent on the number of tasks that are loaded for the
user project and on project execution. If program execution
is not taking place only Task 0, Host command execution
is taking place. If program execution is taking place the
active user project tasks and Task 0 will be switched by
the interrupt every 256 micro-seconds. The diagrams on
the right illustrate the timing for no program execution,
single task program execution and a seven-task project
being executed. If a task is stopped during program execu-
tion, that task will no longer be serviced.
When it is required to poll I/O through out program execu-
tion, either dedicate a task to accomplish this or poll the
I/O in a program loop.
6.3 - Motion Controller Program-
ming Interface (MCPI)
6.3.1 - Software Installation
The Motion Controller Programming Interface (MCPI)
provides the means by which an application can be fully
developed and the controller can be operated using a per-
sonal computer (PC). The application can be written, com-
piled and downloaded to the controller, using the Motion
Controller Programming Interface. In addition, a
ΑTerminal Mode is provided for operating the controller
from your computer.
Installation Instructions
1) If Windows
®
is not already running, type WIN at the
DOS prompt, and press ENTER.
2) Insert the MCPI Program Disk into drive A: (or B:).
3) For Windows 3.1 Click on the FILE menu in the Pro-
gram Manager.
For Windows 95/98 Click on the Start button on the
desk top.
4) Select RUN... to display the Run Dialog box.
5) Type A:setup (or B:setup) and click OK.
6) The installation program will display the MCPI File
Manager Setup screen. Follow the prompts on the
screen to complete the installation.
7) After the program files have been installed, the in-
stallation will create a new Windows group.
8) Remove the installation disk. This concludes the in-
stallation.
6.3.2 - Starting the MCPI
Environment
1) If Windows is not already running, type WIN at the
DOS prompt, and press ENTER.
2) Double click on the MCPI Icon.
3) The opening screen will appear.
6.3.2.1 – The MCPI opening screen
Open existing project opens up an existing project.
Create new project creates a new project.
Continue enters the MCPI with no selection.
6.3.3 - Setting Communication
Parameters
The MCPI uses the computer serial port to communicate
with the Controller. The MCPI supports the use of four
serial ports, (Com 1, Com 2, Com 3 or Com 4). To commu-
nicate, an XON - XOFF protocol is used. This protocol
needs only three wires to establish a communication link
between the computer and the controller. These wires
should be connected to transmit (TX), receive (RX) and
common (V0) as follows:
Computer Controller
TX -------------------------------- RX
RX -------------------------------- TX
V0 --------------------------------- V0
Note 1: The 9-conductor cable supplied in the Controller
accessory kit (shipped with your unit) should allow easy
connection to your PC’s serial port. A 25-to-9 pin
adapter is required (user supplied) if the PC port is a 25-
pin style.
Note 2: Consult your computer manual for the correct pin
out of it’s serial port.
The MCPI supports four-baud rates: 4800, 9600, 19200 and
38400. To set up the serial port, baud rate and Terminal
Emulation Mode used for communications, select the Con-
figure Com Port item under the System menu. The serial
word length, parity, and number of stop bits are fixed
at 8, none, 1 respectively. The baud rate for the
Controller can be set via switches on the front panel.
Both the Controller and the MCPI are set to default
to a baud rate of 9600 when shipped. The MCPI
will also default to Com 1.
Motion Controller Programming
Interface
Warner Electric
Version 4.00
Motion Controller
Programming Interface
WARNER ELECTRIC
MOTORS AND CONTROLS DIVISION
DANA CORPORATION
TEL: (860) 585-4500 FAX: (860) 589-2136
Bristol Ct. 06010
383 Middle Street
copyright 1997 DANA
Continue
Open existing project
Create new project