Вы находитесь на странице: 1из 6

MET 382 Laboratory Assignment #1 Fall 09 Working with Local I/O

Objectives: In this assignment you will learn how to:


Create a new PLC program using Rockwell Softwares RSLogix 5000 PLC programming software Configure local I/O for a discrete AC input module and a discrete AC output module Create alias tags for the local I/O that will be used in future lab assignments Download a PLC program Manually test your alias tags using RSLogix5000s tag database Enter a simple PLC program

Preparation: It is assumed that your Instructor has discussed and demonstrated the key points outlined in the presentation entitled Working with Local I/O. Refer to the power point presentation Working with Local I/O while performing this lab assignment. Phase 1: Background: In this phase you will create a new PLC program and then configure the local I/O for the ControlLogix PLCs located at each dropline of the MFET conveyor system. Proceed as follows: 1) If you have not already done so, create a shortcut to RSLogix 5000 and place the shortcut on your computers desktop. 2) Start RSLogix 5000 by double clicking on the shortcut created in step 1. 3) Save your new PLC program into your lab group folder located on the G drive. Name the program lab1.ACD.

MET 382, Lab #1

page 1 of 6

4) As demonstrated by your Instructor and outlined in the presentation entitled Working with Local I/O, configure local I/O for the AC input module (1756-IA16) which is located in slot 6 of each dropline PLC. During the configuration process, configure the AC input module as follows:

Name the module AC_IN Enter the following description: AC inputs wired to dropline panel Use the Input Data Comm format Set Electronic keying to Compatible Module Set the requested packet interval (RPI) rate to 500 ms Enable each input to also produce data on change of state (COS) Use the default Input Filter Times

5) As demonstrated by your Instructor and outlined in the presentation entitled Working with Local I/O, configure local I/O for the AC output module (1756-OA16) which is located in slot 7 of each dropline PLC. During the configuration process, configure the AC output module as follows:

Name the module AC_OUT Enter the following description: AC outputs wired to dropline panel Use the CST Timestamped Fuse Data Output Data Comm format Set Electronic keying to Compatible Module Set the requested packet interval (RPI) rate to 5 ms Configure all of the outputs to turn OFF when the PLC is switched into the program mode or if there is a fault

6) Save the PLC program. Phase 2: Background: In this phase you will learn how to change a modules configuration after the module has been added to the I/O Configuration Folder. You will also create alias tags for the local I/O configured in phase 1. Proceed as follows: 1) After a module has been placed in the I/O configuration folder and configured, the original configuration can generally be modified as desired. Make the following configuration changes outlined below: a) In phase 1, the AC output module was given the following name (see configuration details above):

AC_OUT

Change this name to AC_Outputs

MET 382, Lab #1

page 2 of 6

b) In phase 1, the AC input module was given the following name:

AC_IN

Change this name to AC_Inputs 2) Create alias tags for the field devices (pushbutton 0, pushbutton 1, etc.) shown in Table 1. While creating each alias tag, also enter the descriptions shown in Table 1. Table 1 Proposed Alias Names Field Device
Pushbutton 0 Pushbutton 1 Pushbutton 2 Pushbutton 2 Selector Switch 0 Selector Switch 0 Red Pilot light Amber Pilot light Blue Pilot light

Base Address
Local:6:I.Data.0 Local:6:I.Data.1 Local:6:I.Data.2 Local:6:I.Data.3 Local:6:I.Data.4 Local:6:I.Data.5 Local:7:O.Data.0 Local:7:O.Data.1 Local:7:O.Data.2

Alias Name
I_PB0 I_PB1 I_PB2_no I_PB2_nc I_SS0_Pos_A I_SS0_Pos_B O_Red_PL O_Amber_PL O_Blue_PL

Description
Pushbutton 0 Pushbutton 1 Pushbutton 2 (N.O.) Pushbutton 2 (N.C.) Selector Switch 0 (POS A) Selector Switch 0 (POS B) Red pilot light Amber pilot light Blue pilot light

3) After you create the 9 alias tags shown in Table 1, save your program. Phase 3: Background: In this phase you will download your program to a dropline PLC. As discussed in the presentation entitled Working with Local I/O, PLC programs will be downloaded over Ethernet. Each dropline computer has an Ethernet adaptor (NIC network interfaced card) and a ControlLogix Ethernet module (1756-ENBT) has been installed in slot #4 of each dropline PLC. For your reference, the PLCs in the MFET lab have the following TCP/IP addresses:

PLC: DL1 DL2 DL3 DL4 DL5 DL6 TrunkLine


MET 382, Lab #1

Address: 192.168.1.15 192.168.1.25 192.168.1.35 192.168.1.45 192.168.1.55 192.168.1.65 192.168.1.75


page 3 of 6

You will also use the tag database to test each of the alias tags which were created in phase 2. You will NOT write a PLC program in this phase, you will simply examine and manipulate the tag database as outlined in the presentation Working with Local I/O. Testing your alias tags will ensure the following:

That you have assigned the correct address to each field device (pushbutton, pilot light, etc.) The AC input and AC output modules are operating correctly The wiring between the I/O modules and the field devices is OK

Before you can download a PLC program to a dropline PLC, you must go to the conveyor and log into the dropline computer at the dropline you wish to download to. For example, if you want to download a PLC program to the PLC located at dropline 3, you must perform the download using the computer located at dropline 3. Proceed as follows: Using RSLogix5000, download your PLC program to the PLC at your dropline (tip: Select Who Active from the Communications menu). During the download process you will: a) Go online with the PLC at your dropline. b) Place the PLC in the Remote RUN mode.

CAUTION: Make sure you download to the correct PLC!


Always download to the PLC at your dropline. For example, if you are working at dropline 5 you should only download to the PLC located at dropline 5. Note: The keyswitch located on the Logix5555 controller (residing in slot #5) must be in the REM (Remote) position!
At this point it is assumed that you have downloaded your program to the PLC and you are now online with the PLC at your dropline. In addition, the Logix5555 controller should be in the remote RUN mode. Now you will use the tag database to test each of the alias tags which were created in phase 2. You will NOT write a PLC program in this phase, you will simply examine and manipulate the tag database as outlined in the presentation Working with Local I/O. Proceed as follows: 1) Test all 6 of your input alias tags by activating the pushbutton (or selector switch) and then monitor the tag in the tag database. Each input alias tag represents a bit. When the input is ON (i.e., there is electrical continuity) the corresponding alias tag will be set to a 1. When the input is OFF (i.e., there is NO electrical continuity) the corresponding alias tag will be reset to a 0. MET 382, Lab #1 page 4 of 6

2) Test all 3 of your output alias tags. Each output alias tag represents the output device (pilot light in this example) that is wired to the corresponding output of the AC output module. Each output alias tag represents a bit. You can turn an output ON by manually setting the alias tag (bit) to a 1. Resetting the alias tag to a 0 will turn OFF the corresponding output. Tip: Use the Control + T feature to toggle output bits on and off 3) After you have tested all of your alias tags, the Instructor will ask you to demonstrate how to test your input and output alias tags. Phase 4: Background: In this phase you will learn how to use RSLogix5000 to enter a simple three rung PLC program. In this lab assignment you will enter the program while working offline. After entering the program, you will redownload the program in order to test your program. Proceed as follows: 1) Using RSLogix5000, return to the OFFLINE mode. 2) While working in the offline mode, enter the following 3-rung PLC program:

3) Verify your program in order to ensure there are no errors. 4) After you verify the program and it has no errors, download the program to your dropline PLC.

MET 382, Lab #1

page 5 of 6

5) Using RSLogix5000, place the PLC in the remote RUN mode. 6) Test your program. o The amber pilot light should turn on when you press (and hold in) pushbutton PB0. o The blue pilot light should turn on when you press (and hold in) pushbutton PB2. o The red pilot light should turn on when you switch selector switch 0 to position A (clockwise) 7) After you have tested your program, demonstrate your working program to your Instructor. 8) After your Instructor checks your work: Place the PLC back into the remote PROGRAM mode. Go offline. Close your program and exit RSLogix5000. Log off of your dropline computer.

You have completed lab #1.

MET 382, Lab #1

page 6 of 6

Вам также может понравиться