Danaher Motion
06/2005
Project
3.
PROJECT
A project is all the software written for an application. The projects in MC-
BASIC are multi-tasking. They consist of many tasks running concurrently
with, and independently of, each other. The project is stored in multiple files,
one file for each task. Tasks are routines that run simultaneously with many
other tasks. Projects also include other files such as cam tables and record
files. Projects are controlled from the BASIC Moves (BMDS) software. BMDS
automatically sets up a separate directory for each project. For detailed
information on any commands listed within this section, refer to the
SERVOSTAR
®
MC Reference Manual.
For clarity, a project is managed by BMDS and conveniently handles a group
of logically coupled files (programs, CAM tables, etc.), while the MC deals
with separate files (PRG, CAM, etc.). The Motion controller does not keep
project files in the Flash and it is not aware of logical coupling of files and
programs.
3. 1
P
ROJECT
S
TRUCTURE
Project files include tasks and cam tables. Each project can contain three
types of tasks:
General-purpose task
An
optional configuration task
(Config.Prg) to declare groups,
programmable limit switches (PLS), cams, global variables and load of
global libraries.
An
optional autoexec task
(Autoexec.Prg) to automatically start the
application on power-up.
3. 2
T
ASKS
The three types of tasks are general-purpose tasks, configuration tasks, and
autoexec tasks. Each type of task is outlined below.
3.2.1.
General Purpose Tasks
General-purpose tasks are the work horse of the MC language. They
implement the basic logic of your application. The great majority of your
programming is implemented with general-purpose tasks. Each general-
purpose task is divided into three sections: a task-variable section, a main
program, and subroutines. The main program is further divided into three
sections: a Start-up section, an OnError section, and an OnEvent section.
M-SS-005-03 Rev
E
49