micro economix 1500 rslogix 500 lab#1

30
1 Starting & Stopping Motors MicroEconomi x 1500 RSLogix 500 LAB#1

Upload: hedya

Post on 05-Jan-2016

52 views

Category:

Documents


3 download

DESCRIPTION

Micro Economix 1500 RSLogix 500 LAB#1. Starting & Stopping Motors. What we are going to do:. We are going to program a series of three basic ladder logic rungs. These basic rungs are the most common rungs found in every ladder program. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Micro Economix 1500 RSLogix 500 LAB#1

1

Starting & Stopping Motors

MicroEconomix1500

RSLogix 500 LAB#1

Page 2: Micro Economix 1500 RSLogix 500 LAB#1

2

• We are going to program a series of three basic ladder

logic rungs. These basic rungs are the most common

rungs found in every ladder program.

• Each of these rungs will help you to “Frame” how a PLC is

programmed, and how they operate.

What we are going to do:What we are going to do:

Page 3: Micro Economix 1500 RSLogix 500 LAB#1

3

Steps for Today’s AssignmentsSteps for Today’s Assignments

1. Open RSLogix500 programming software

2. Create a new project

3.Enter 3 rungs of ladder logic

4.Save your program to the hard drive

5.Transfer your program to the MicroLogix 1500

6.Monitor and test your program

Page 4: Micro Economix 1500 RSLogix 500 LAB#1

4

Getting StartedGetting Started

1.On your computer desktop locate the menu item Start>Programs>Rockwell Software>RSLogix 500 English>RSLogix 500 English

2.Click to open the program

A. Rockwell Software MenuContains all files created during

installation

B. RSLogix500 MenuLaunches Logix 500 Session

C.Release NotesContains product information

Release NotesCorrectionsEtc.

C

B

A

Page 5: Micro Economix 1500 RSLogix 500 LAB#1

5

Creating a “PROJECT”Creating a “PROJECT”

A. Maximize RSLogix 500 Shell

Windows 95/NT/98/2000Drag/Drop, Double Click, Right

Mouse Button all work just like any Windows based software package

4.Click “File” MenuSelect “NEW” To Create a File

5.Select Controller– Enter Processor Name “M-LAB1”– Using the down arrow, move to the

center of the list– Click on BUL.1764 MicroLogix 1500

LSP Series C or ask the instructor if unsure of the hardware being used

– (Either double click, or select and then click OK)

A

5

4

Page 6: Micro Economix 1500 RSLogix 500 LAB#1

6

Save ProjectSave Project

6.Click “File” Menu– Select “Save As” – Type “MicroEconomix LAB1” in

the “File name” box– Click “Save”– The file may already exist from a

previous lab so you will need to overwrite the preexisting file.

– Select “Yes” to replace existing

6

Page 7: Micro Economix 1500 RSLogix 500 LAB#1

7

RSLogix “Components”RSLogix “Components”A. Project Viewer

– Displays Controller Resources– Controller information/setup– Program Files– Data Files– Force Files– Custom Data Monitors– Database Files

B. Program Viewer– Where Programs reside– Where ladder logic is entered

C. Program “TABS”– When a program file is open

a “TAB” is created– Allows easy/quick access to

program file contents

D. Instruction Buttons– Drag&Drop, or Double Click– Must have “Program Viewer”

Active

E. Tabbed Toolbar– Instructions grouped by function.– Floating Toolbar Support

C

B

A

D E

Page 8: Micro Economix 1500 RSLogix 500 LAB#1

8

Configure expansion I/O ModulesConfigure expansion I/O Modules

7. Read I/O configuration– You may skip these steps if there are

no expansion modules attached and go to page 10 to continue or ask the instructor if you are unsure

– a) Double click on the I/O configuration in the Controller section to open the configuration window

– b) Click on the “Read I/O Config” button

– c) Make sure the AB-DF1 driver at node 1 is selected and then click on the “Read I/O Config” button

The Compact I/O modules attached to the MicroLogix 1500 appear now in the I/O Configuration window on assigned locations.

7a

7c

7b

Page 9: Micro Economix 1500 RSLogix 500 LAB#1

9

I/O Auto configureI/O Auto configure

8.Verify IO Configuration– Compare I/O in description window

to I/O attached to MicroLogix 1500 if any.

– Close “I/O Configuration” window

Page 10: Micro Economix 1500 RSLogix 500 LAB#1

10

Creating the 1st Rung of Ladder LogicCreating the 1st Rung of Ladder Logic

Program this 1st rung:

9.To Create a New Rung– Make sure the Program Window is

active (the right window title bar is colored or highlighted).

– Click on the “User” tab. These are the basic instructions used to create your first rungs of logic.

– Click, hold the left mouse button and drag the “New Rung” button over to rung “0000” until you see a green box appear. When you see this green box, release the left mouse button. You have now created your first rung.

] [ ( )I:0/0 O:0/0

9

Page 11: Micro Economix 1500 RSLogix 500 LAB#1

11

Creating the 1st Rung of Ladder LogicCreating the 1st Rung of Ladder Logic

Program this 1st rung cont:

10.Add Input Instruction– Click, hold the left mouse button

and drag the XIC(examine if closed) button onto the left side of the rung you just created. When you see a green box, release the mouse button.

– With the instruction highlighted Type I:0/0 [Enter]. This is the address of the XIC(examine if closed) instruction

] [ ( )I:0/0 O:0/0

10

Page 12: Micro Economix 1500 RSLogix 500 LAB#1

12

Creating the 1st Rung of Ladder LogicCreating the 1st Rung of Ladder Logic

11.Add Output Instruction– Click, hold the left mouse button

and drag the OTE (output energized) button onto the right side of the rung you just created. When you see a green box, release the mouse button

– With the instruction highlighted Type O:0/0 [Enter]. This is the address of the OTE instruction

Your first rung should now look like this:

] [ ( )I:0/0 O:0/0

11

Page 13: Micro Economix 1500 RSLogix 500 LAB#1

13

Creating the 2nd Rung of LogicCreating the 2nd Rung of Logic

Program this 2nd rung:

12.To Create a New Rung– Click, hold the left mouse button

and drag the “New Rung” button over rung “0001”. When you see a green box, release the mouse button.

13.To Add the 1st Input Instruction

– Click, hold the left mouse button and drag the XIO (examine if open) button onto the left side of the rung you just created. When you see a green box, release the mouse button.

– With the instruction highlighted Type I:0/1 [Enter]. This is the address of the XIO instruction .

1312] [

O:0/1

]/[ ] [ ( )I:0/2I:0/1 O:0/1

Page 14: Micro Economix 1500 RSLogix 500 LAB#1

14

Creating the 2nd Rung of LogicCreating the 2nd Rung of Logic

Program this 2nd rung:

14.To Add 2nd Input Instruction

– Click, hold the left mouse button and Drag the XIC(examine if closed) button to the right of the XIO (examine if open) you just created. When you see a green box, release the mouse button.

– With the instruction highlighted Type I:0/2 [Enter]. This is the address of the XIC instruction .

14

] [O:0/1

]/[ ] [ ( )I:0/2I:0/1 O:0/1

Page 15: Micro Economix 1500 RSLogix 500 LAB#1

15

Creating the 2nd Rung of LogicCreating the 2nd Rung of Logic

15.Add Output Instruction– Click, hold the left mouse button and

Drag the OTE (output energized) button onto the right side of the rung. When you see a green box, release the mouse button.

– With the instruction highlighted Type O:0/1 [Enter]. This is the address of the OTE instruction .

15

Page 16: Micro Economix 1500 RSLogix 500 LAB#1

16

Creating the 2nd Rung of LogicCreating the 2nd Rung of Logic

16.Add an empty branch– Click, hold the left mouse button and

Drag the RUNG BRANCH button in between the first XIO and the XIC instructions. When you see a green box, release the mouse button.

17.Move the Branch– Click, hold the left mouse button and

Drag the red highlighted branch leg to the right side of the XIC instruction. When you see a green box, release the mouse button.

16

17

Page 17: Micro Economix 1500 RSLogix 500 LAB#1

17

Creating the 2nd Rung of LogicCreating the 2nd Rung of Logic

18.Add Input Instruction to the branch

– Click, hold the left mouse button and Drag the XIC (examine if closed) button onto the branch you just created. When you see a green box on the branch, release the mouse button.

– With the instruction highlighted Type O:0/1 [Enter]. This is the address of the XIC instruction .

Notice this Input instruction has the same address of the output instruction on the same rung. This is the electronic equivalent to the auxiliary contacts on a motor starter. This will allow the motor to stay on when the start button is released. This is also known as a OR statement.

1618

Page 18: Micro Economix 1500 RSLogix 500 LAB#1

18

Creating the 3rd Rung of LogicCreating the 3rd Rung of Logic

19

20

Program this 3rd rung:

19.Create a New Rung– Click, hold the left mouse button and

Drag the “New Rung” button over “0002” until you see a green box. When you see the green box, release the mouse button

20.Add Input Instructions– Click, hold the left mouse button and

drag the XIC (examine if closed) instruction to the left side of the rung until you see a green box. When you see the green box, release the mouse button. With the instruction highlighted Type O:0/0. This is the address of the XIC instruction.

– Click, hold the left mouse button and drag XIC (examine if closed) instruction to the right side of the XIC until you see a green box. When you see the green box, release the mouse button. With the instruction highlighted Type O:0/1. This is the address of the XIC instruction.

] [ ] [ ( )O:0/1O:0/0 O:0/2

Page 19: Micro Economix 1500 RSLogix 500 LAB#1

19

Creating the 3rd Rung of LogicCreating the 3rd Rung of Logic

21

Program this 3rd rung:

21.Add Output Instruction– Click, hold the left mouse button and

drag the OTE (output energized) instruction onto the right side of the rung until you see a green box. When you see the green box, release the mouse button. With the instruction highlighted Type O:0/2. This is the address of the OTE instruction.

] [ ] [ ( )O:0/1O:0/0 O:0/2

Page 20: Micro Economix 1500 RSLogix 500 LAB#1

20

Verify your workVerify your work

22.To verify your work– There are two types of verify. The first

one verifies the file you are in and only that file. The second verifies all the files created or the total project created. Because this program only resides in one file we will use the first one.

– Click on the “Verify file” button– When the verify is completed and no

errors are found all program edit markers will disappear and no errors found is displayed at the bottom.

22

Page 21: Micro Economix 1500 RSLogix 500 LAB#1

21

Verify your workVerify your work

23.Program has errors– Go to next page if no errors are found– When the verify completed and errors

are found the edit markers will appear on all rungs the have errors

– To find the errors in the program click on the error message in the “Verify results window” the error is then highlighted in the ladder window.

– Fix the error and run “Verify file” again.

– When all the errors are fixed you can then save and download the program.

23

Page 22: Micro Economix 1500 RSLogix 500 LAB#1

22

Documenting your ProgramDocumenting your Program

24.Documenting your work– Click on the Input I:0/0 to highlight– Right mouse on I:0/0 and select “Edit

Description- I:0/0”– Select “Address”– Type “Input Switch 0” in the Edit

window– Select “OK”

Page 23: Micro Economix 1500 RSLogix 500 LAB#1

23

Documenting your ProgramDocumenting your Program

25.Documenting your work– Click on the Output O:0/0 to highlight– Right mouse on O:0/0 and select “Edit

Description- O:0/0”– Select “Address”– Type “Output 0” in the Edit window– Select “OK”

Page 24: Micro Economix 1500 RSLogix 500 LAB#1

24

Documenting your ProgramDocumenting your Program

26.Documenting your work– Click on the Input I:0/1 to highlight– Right mouse on I:0/1 and select “Edit

Description- I:0/1”– Select “Address”– Type “Stop Button” in the Edit window– Select “OK”– Complete the rest of the instruction

descriptions

Start Button = I:0/2

Output 1 =O:0/1

Output 2 =O:0/2

Notice that some of the instructions have the same descriptions. This is because the descriptions are link to the address of each instruction.

Page 25: Micro Economix 1500 RSLogix 500 LAB#1

25

Save your workSave your work

27.Save your work– Click on the “Save” button– Click “Ok” for Revision note box. The

revision note box is used to keep track of changes made to the existing program. You can create many revisions of the same program. This feature can be disabled if desired.

27

Page 26: Micro Economix 1500 RSLogix 500 LAB#1

26

Transfer the Program to the MicroTransfer the Program to the Micro

28.Download the Program– Select the menu item

“Comms>System Comms”– Three primary selections

– “Online” Establish the “path”– “Upload” Receive from the controller– “Download” Send to the controller

– Highlight the device at Node 01. – Select “Download”

28

Page 27: Micro Economix 1500 RSLogix 500 LAB#1

27

Transfer the Program to the MicroTransfer the Program to the Micro

29.Download the Program– Select “OK” in the Revision note

window again. The revision note box is used to keep track of changes made to the existing program. You can create many revisions of the same program. This feature can be disabled if desired.

– Select “Yes” to download your program over the existing program that resides in the processor. This window will appear when ever a program is being downloaded to the processor.

– If processor is in run mode prior to the download the software will prompt to change to program mode

– Select “Yes” to change mode– Download verification window will

appear when the download takes place– If/When a “Apply channel

configuration to online processor” window appears

– Select “Don’t Apply”– Select “No” when asked to change

back to run mode

Page 28: Micro Economix 1500 RSLogix 500 LAB#1

28

Transfer the Program to the MicroTransfer the Program to the Micro

30.Go online– Select “Yes” to go online. This will

allow you to monitor the program that now resides in the processor.

31.Put the Micro into RUN– Click on the down arrow next to the

word REMOTE PROG– Three Run selections

– “Run” Controller “scans” the program– “Test Continues”

– Outputs are disabled– “Test Single Scan”

– One scan cycle with outputs disabled

– Select “Run”– Select “Yes” for “Are you sure window

32.Test your program using the switches and lights. Does it work the way you expect it to?

Page 29: Micro Economix 1500 RSLogix 500 LAB#1

29

Monitor the ControllerMonitor the Controller

With the controller in “Remote Run”, you can monitor or edit data within the controller. This allows:

– Program debugging– Change data variables while

in run

When “Green” bars are shown on either side of logic elements, this indicates “Logical Continuity”, this helps to determine how the application is operating.

This design is to help in debugging an applications logic.

Page 30: Micro Economix 1500 RSLogix 500 LAB#1

30

Monitor the ProgramMonitor the Program

PROGRAM OPERATION

RUNG 0- Enable input switch #0, output #0 will turn ON disable the switch and output #0 will turn OFF. This output is dependent on the input condition.

RUNG 1-Toggle (on then off) input switch #2 (start button), output #1 will latch ON. Toggle (on then off) input switch #1 (stop button) will turn OFF output #1. This is a simple motor control circuit. This circuit utilizes both AND and OR placement of instructions.

RUNG 2- The two inputs on rung 2 are conditions of rungs 0 and 1. The output (output #2) is a condition of the two inputs. So each outputs of rungs 0 and 1 must be true to turn on output #2. This circuit utilizes AND placement of instructions.