You are on page 1of 12

Lesson 3

Interpreting RSLogix 5000 Project TM

Organization and Execution


In this Lesson, you will learn how to interpret a Task,
Interpret a Program, and Interpret a Routine

Why this Lesson is Important


This is an important Lesson because Interpreting when a task,
program, or routine is executing will help you understand
why or when certain events will occur in the system

RSLogix 5000 Software Tasks


Discussion:
In a default program, the project tree contains a folder named
“Tasks”. There are three types of tasks that can be
configured

 Continuous
 Periodic
 Event

Continuous Task
A Continuous task is constantly scanned to the end of the
program and then restarts. It can be interrupted by a Periodic
or Event Task

Periodic Task

A task executed at a fixed interval, ranging from .1 msec to


2,000,000 msec, in increments of 1 msec. These tasks will
interrupt any task that has a lower priority rate. All tasks can
be assigned a priority from 1 to 15

Event Task

A task that is only scanned when triggered by so me type of


Important note: event, such as a discrete input. It will scan one time to
completion. It may be interrupted by a Periodic task that has
a higher priority

The Siemens FT125 System only uses Periodic Tasks


Lesson 5 – Interpreting Project Organization and Execution 40

The above illustration is from an FT125 Project

 TimeClass1 task is set for 25ms and Priority 1


 TimeClass2 task is set for 75ms and Priority 2
 TimeClass3 task is set for 500ms and Priority 3

Essential activities are programmed in TimeClass1. These


items are critical to the safe and efficient operation of the
system. TimeClass1 in this example takes precedence over
all other Tasks.

Periodic Tasks are configured under the properties dialog box


41
Lesson 5 – Interpreting Project Organization and Execution

Tasks are configured under the properties dialog box such as


Parameters, Type, Priorities, Period, and Watchdog Timers.

Watchdog Timers
42
Lesson 5 – Interpreting Project Organization and Execution

The next level (or folder) in the Project tree are Programs.
Programs have the following attributes:

 Up to 32 Programs per Task


 The programs within a task execute from first to last
 Program Scoped Tag Database
 Main Routine
 Optional Fault Routine
 Additional routines within a program are subs
 As many sub routines the controller memory will hold
 Subroutines must be executed via a JSR instruction
 Subroutines are listed in Alphabetical order

Routines may be one of four different types

 Ladder
 Function Block
 Sequential Function Chart
 Structured Text

Rolls-Royce programs currently only utilize Ladder Routines


and Structured Text.
Exercise: Lesson 5 – Interpreting Project Organization and Execution 43

Exercise: Lesson 5 - Interpreting


RSLogixTM5000 Project Organization
and Execution
Exercise A Creating a New RSLogx Project

Objective: In this exercise, you will create a new Logix5000 project

1. Launch the RSLogix5000 Software on your PC

2. From the Windows Toolbar Select File, New or click


on the New Project icon

3. Select either 1756-L63 or L55 (according to your Lab


Demo Unit), Revision 16, name the project
FT125_Training, choose 7 slot chassis, Slot 0, and
the default Projects directory.
44
Exercise: Lesson 5 – Interpreting Project Organization and Execution

4. Click OK,

After a short delay, a new empty project will appear.

5. What type of Task is in a Default Project?

6. Expand the Main Program. List what is under the


Main Program folder.

Deleting the Continuous Task

7. Right Click on the Main Program Folder and select


Properties.

8. The program properties dialog box opens.


45
Exercise: Lesson 5 – Interpreting Project 9.
Organization and Execution

9. In the Properties Dialog box click on the


Configuration Tab.

10. In the Main: drop down selector, select <none>.

11. Click OK

12. Now, the Main Program designation has been


removed, delete the

13.

14. Go to the Main Task folder, right click, and select


Properties.
46
Exercise: Lesson 5 – Interpreting Project Organization and Execution

15. Select the Program / Phase Schedule tab.

15. Click the Remove button to move the MainProgram


to the Unscheduled window.

16. Click on OK.

17. Click on the MainProgram under in the Unscheduled


Programs folder and press delete.

18. Click on the Main Task and press delete.

This completes this exercise. Continue to the next exercise to


add Periodic Tasks to your project.
47
Exercise: Lesson 5 – Interpreting Project Organization and Execution

Exercise B Periodic Task

Objective: In this exercise, you will create (3) Periodic Tasks

1. On the Tasks Folder, right mouse click and select


New Task

2. Name the Task: UPC_TimeClass1

3. In the Type field select Periodic

4. In the Period text box, enter 25

5. Select 1 as the priority

6. In the Watchdog field inter 140

7. Click OK

8. Right click on the Periodic UPC_TimeClass1

9. Select New Program

10. Enter the name UCP_TC1_Folder and click OK


Exercise: Lesson 5 – Interpreting Project Organization and Execution 48

11. Expand that program folder. Is there a main routine


available?

12. Right mouse click the UCP_TC1_Folder and select


New Routine

13. Type in UPC_TC1_Main

14. In the Type pull down window, select Ladder, then


click OK

15. Right mouse click on the UPC_TC1_Folder and


select Properties

16. In the Properties dialog box, select the Configuration


tab

17. Use the pull down to select UPC_TC1_Main as the


Main Routine.

18. Select OK

The UPC_TC1_Main icon should now have a “1” on it to


designate it as the Main Routine

19. Move back up to the Tasks Folder, right click, and


add a new task named UPC_TimeClass2

20. Select Periodic as the type, 75 as the period, 2 as the


priority and 200 as the watchdog
Exercise: Lesson 5 – Interpreting Project Organization and Execution 49

21. Click on OK

22. Move back up to the Tasks Folder, right click, and


add a new task named UPC_TimeClass3

23. Select Periodic as the type, 500 as the period, 3 as the


priority and 600 as the watchdog

24. Your folder should now look like the one below:

This Ends this Exercise.


Exercise: Lesson 5 – Interpreting Project Organization and Execution 50

Lesson 5 - Answers
Exercise A
4. Continuous
5. Program Tags, MainRoutine

RTWoods.Rev004 May 2012

You might also like