Rockwell Automation 5720 DriveLogix System User Manual

Page 39

Advertising
background image

Publication 20D-UM002C-EN-P - November 2003

What Is DriveLogix? 2-5

Defining programs

Each program contains program tags, a main executable routine, other
routines, and an optional fault routine. Each task can schedule as many as 32
programs.

The scheduled programs within a task execute to completion from first to last.
Programs that aren’t attached to any task show up as unscheduled programs.
You must specify (schedule) a program within a task before the controller can
scan the program.

Defining routines

A routine is a set of logic instructions in a single programming language, such
as ladder logic. Routines provide the executable code for the project in a
controller. A routine is similar to a program file or subroutine in a PLC or
SLC processor.

Each program has a main routine. This is the first routine to execute when the
controller triggers the associated task and calls the associated program. Use
logic, such as the JSR instruction, to call other routines.

You can also specify an optional program fault routine. The controller
executes this routine if it encounters an instruction-execution fault within any
of the routines in the associated program.

Advertising
This manual is related to the following products: