Vous êtes sur la page 1sur 83

Introduction to RSLogix5000 And the ControlLogix Platform Lab Manual Modified for Version 15 ctober 1!

" #005

Lab 1$ Creating a %e& Controller 'ile" Configuring (our I)


In this lab, we will introduce you to the Logix product family. In this lab, you will: create a new controller file write ladder logic using symbolic tag names configure your I/O modules alias the module tags to the tags you created in your ladder logic

Follow the steps below to complete Lab 1. Place a chec*mar* in the s+uare next to each ste, as -ou com,lete it. his will help you !eep your place as you wor! through the lab exercises. Launching RSLogix5000 Programming Soft&are In this section of the lab, you will launch the "#Logix$%%% software, which will allow you to program the processor in your demo box.
"#Logix $%%%

1. &ouble clic! on the RSLogix5000 icon he "#Logix$%%% screen appears.

on the &es!top to launch "#Logix$%%% software.

Creating a %e& Controller 'ile In this section of the lab, you will create a controller file. 1. From the File menu, choose New. he 'ew (ontroller dialog appears.

). From the Type pull*down menu, choose the 1756-L63, 1756-L61 or 1756-L1 ControlLogix55xx Controller that you will use for the rest of the +ands*On sessions. ,. From the Revision pull*down menu, choose the 15 for the L-, or L-1, or 13 for the L1 * to match the re.ision of the (ontroller. /. In the Na e field, type 0CL/1010Lab0 for the controller name. $. From the C!assis Type pull*down menu, lea.e the 1756-"10 10-Slot ControlLogix C!assis selected 1or select the 12$-*32, if applicable4, to match the physical chassis in the (ontrolLogix demo unit used for this lab. -. In the Slot N# $er field, choose the slot to match the position of the Logix$$$% controller you are using for this lab. 2. In the Create %n field, use 0(:5"#Logix$%%%56ro7ects0 * you may clic! on the 8rowse button to na.igate to that directory.

9. (lic! on &'. he (ontroller Organi:er appears on the left side of the "#Logix$%%% window, with a folder called (ontroller (L;1%1<Lab. =ou ha.e now created your controller file. 3t this time, there are no I/O modules, or tag database, or any logic associated with the controller file.

'(I he (ontroller Organi:er is a graphical representation of the contents of your offline controller file. his display consists of a tree of folders and files that contain all of the information about the programs and data in the current controller file. he default main folders in this tree are: Controller 'ile %ame > contains (ontroller 1global scope4 tags? the optional (ontroller Fault +andler@s single 6rogram and its "outines, and the optional 6ower*Ap +andler@s single 6rogram and its "outines. 1as*s > possible types of 1as*s include: a single Contin#o#s, and ,1 1or ,) if the (ontinuous tas! is redefined or remo.ed4 (erio)i* or +vent. Bach of the ,) possible tas!s can ha.e up to 100 Programs and/or 2+ui,ment Phase structures. Bach program > can hold a possible 35"545 Routines 1whether La))er, F#n*tion ,lo*-, SFC or Str#*t#re) Text4 and each program has its own set of program* scoped tags 1if assigned4.

Motion 5rou,s > "eCuired when configuring and programming either #er.o 1%*1%Ddc signal4 or #B"(O# 1digital signal4 motion modules and their associated &ri.es and Eotors. 1rends > trends, if created, are found in this folder. 6ata 1-,es * shows .ser-/e0ine) 1application specific4, String for use with 3#(II de.ices, (re)e0ine) which are reCuired by the programming logic structures, and 1o)#le-/e0ine) added as I/O Eodules are configured. I) Configuration * contains I/O module configuration and connecti.ity information. In front of each folder, there is a box containing a F sign or a * sign. he F sign indicates that the folder is closed. (lic! on it to expand the tree display and display the files in the folder. he * sign indicates that the folder is already open and its contents are .isible. (lic!ing on the right mouse button brings up many different context*sensiti.e popup menus. Often, you will find that this is a shortcut to access the property window or to menu options from the menu bar. &ouble clic!ing on files in the (ontroller Organi:er display brings up functional dialogs, from which you can enter parameters to accomplish rele.ant tas!s. 2diting the Main Routine In this section of the lab, you will edit the ladder logic for the main routine in your 1ain(rogra then add an input and an output instruction. 1. From the 2iew menu, choose Tool$ars. he oolbars dialog appears. folder, and

). Derify that the Standard, Close.

nline, Path 7ar and Language 2lement toolbars are chec!ed, and clic! on

,. From the Controller &rgani3er, expand the Eain 6rogram folder and then double clic! on the 1ain Ro#tine icon .

3n empty rung appears in the Ladder Bditor.

/. From the Ladder Instructions toolbar 1as shown below4, clic! on the ,it tab. he Ladder Instruction toolbar refreshes to show you all of the a.ailable 8it instructions.

$. (lic! on the 4%C 5+xa ine &n6 icon

to enter the instruction on the rung.

he ;I( instruction appears on the rung in the Ladder Bditor, as shown below.

-. "ight clic! on the 7#estion 1ar- 586 in the blue highlighted area abo.e the ;I( instruction, and choose New Tag. he 'ew ag dialog appears.

2. In the Na e field, type GS&itch@. Derify that Eain6rogram program*scoped tag. '(I here are two types of tag scopes: program*scoped and controller*scoped. 6rogram* scoped 1local4 tags are accessible only to the routines of a specific program. (ontroller* scoped 1global4 tags are accessible to the routines of all programs in a controller. 9. From the Tag Type selections, choose ,ase. H. From the /ata Type menu, choose ,&&L. 1%. (lic! on &'. =our rung should now loo! the rung below. 'ote that ool ips displays the tag information when you place you mouse pointer directly o.er the tag. appears in the #cope field. #witch is then created as a

11. (lic! and hold the mouse button on the &T+ 5&#tp#t +nergi3e6 icon in the toolbar, and drag it o.er the blue line of rung % until a green dot appears to the right of the ;I( instruction that you 7ust entered. Ihen you release the mouse button, the O B instruction will be placed at the end of rung %. alternate way of entering an instruction on a rung. his is an

1). "ight clic! on the 7#estion 1ar- 586 in the blue area abo.e the &T+ instr#*tion, and choose New Tag.

he 'ew ag dialog appears. 1,. Bnter the parameters as shown below and clic! on &'.

1/. "ight clic! on the rung number 506, and choose 2eri0y R#ng, or simply clic! on the 1Bnd4 rung. If you selected 2eri0y R#ng a message appears in the +rrors tab at the bottom of the "#Logix$%%% Ladder window indicating the results of the Derify "ung option. If you simply clic!ed on the 1Bnd4 %ote$ he message will appear either in the status bar at the bottom of the screen, or in the "esults window if it is .isible * selected under the Diew menu. If there are errors, you must correct them before the rung will .erify. =ou can also .erify the entire routine by choosing 2eri0y 9 Ro#tine from the Logi* menu.

1$. (lic! on the 4 at the upper right corner of the Ladder Bditor to close the editor. 1-. From the Controller &rgani3er, under 1ain(rogra , double clic! on the (rogra the two program scoped tags. he &ata Eonitor appears, with two entries in the ag 'ame (olumn. Tags folder to .iew

12. (lic! on the 4 at the upper right corner of the &ata Eonitor to close the window.

Verif-ing the Pro,erties for the Main 1as* and the Main Program In this section of the lab, you will .erify that the properties of the controller0s main tas! and main program are correctly configured. 1. From the Controller &rgani3er, right clic! on the 1ainTas- icon (roperties. he as! 6roperties dialog appears. and choose

). (lic! on the (rogra #cheduled programs field.

: (!ase S*!e)#le tab and .erify that the Eain6rogram appears in the

If it does not, clic! on the ")) button to schedule the Eain6rogram. If a program folder is not scheduled under a tas!, it will not be executed and it will appear in the Anscheduled 6rograms folder in the (ontroller Organi:er.

,. (lic! on the Con0ig#ration tab and .erify that the Iatchdog is set for $%% ms.

he Iatchdog is a tas! scan time watchdog which, if exceeded, causes a Einor Fault condition, which if not cleared by the time the last as! completes it cause a Ea7or Fault and faults the processor. /. (lic! on &' to close the as! 6roperties dialog. $. From the Controller &rgani3er, right clic! on the 1ain(rogra (roperties. he 6rogram 6roperties dialog appears. icon and choose

-. (lic! on the Con0ig#ration tab and .erify that Eain"outine appears in the Eain field. If it does not, choose Eain"outine from the Eain field pull*down menu.

'(I B.ery program folder must ha.e a main routine assigned. 3ll other routines in a program folder are only executed if they are selected as a fault routine, or if they are called using a J#" instruction from another routine in the same folder.

2. (lic! on &' to close the 6rogram 6roperties dialog. 9. From the File menu, choose Save to sa.e your program.

Configuring (our I) In this section of the lab, you will configure your I/O modules and use the aliasing capabilities of the "#Logix$%%% software to alias 1created a pointer to4 the tags you ha.e already created in your ladder logic to module 1physical I/O points in this case4 tags. Configuring the 6iscrete ut,ut Module

In this section of the lab, you will add the discrete output module in #lot % to the I/O (onfiguration list. 1. From the Controller &rgani3er, collapse all categories except I/O (onfiguration, then right clic! o.er either the %:& Con0ig#ration folder, or the 1756-,a*-plane and choose New 1o)#le. he #elect Eodule ype dialog appears, with a list of a.ailable modules. Bxpand the corresponding category and related to the module you wish to add and locate the module in the list > Or select the Find button 1on this screen4 and type in the module number. 'ote: o add this module to the Fa.orites tab, select the Eodule and clic! the ")) Favorites button.

). &ouble clic! on the 1756-&,16/ module. he Eodule 6roperties dialog appears. ,. Bnter the parameters 1'ame, #lot 'umber and Blectronic Keying4 as shown below, and clic! on &'.

%ote: Ca#tion should be ta!en when using the Blectronic Keying Option of /isa$le 'eying. It does ma!e adding and replacing modules simpler, but also may cause issues when wor!ing with different .ersions of motion and specialty I/O Eodules. he "#Logix$%%% software will complete the module configuration for you, using default .alues for the remaining configuration parameters. "eopen the modules 6roperties and loo! at the remaining configuration information a.ailable.

Vie&ing 1ags In this section of the lab, you will .iew the tags that were created for the 12$-*O81-& module in #lot % when you created the module. 1. From the Controller &rgani3er, double clic! on the Controller Tags icon he &ata Eonitor appears, with , entries in the ag 'ame column: Local:%:( Local:%:I Local:%:O .

hese entries are tag structures, and they contain more tags than are actually displayed in the &ata Eonitor screen. 'ote the F sign next to the tag name? this indicates that you can expand the tag structure to see more tag information 1see note in F=I section that follows the below screen4.

'(I he name Local indicates that these tags are associated with a module that is in the same chassis as the controller. he number between the colons is the slot number of the module? in this case, the module is in slot %. he characters appearing after the last colon 1i.e., the (, the I, and the O4 indicate whether the data is Configuration, Input, or utput data. his particular module has all three types of data. he #cope field abo.e the ag 'ame column displays the scope for the tags that are displayed. he scope defines the range in which tags are recogni:ed within the routines. ags created at the controller scope are accessible to all routines in all program folders? those created at the program scope are accessible only to routines within that single program folder. In this case, the tag scope is (L;1%1<Lab 1controller4, which indicates that the tags are .alid for all routines in all program folders in this controller file. If the scope field contained a program name, then the tags would be .alid only for the routines in the program folder specified. ). oggle the Controller &rgani3er ;in)ow button to display the list of tags only,

then clic! on the 8 sign in front of the Lo*al<0<C set of tags to display the configuration tags that are used to configure the module in slot % ** each time it reconnects to the processor. Ihether the same, or a replacement module. he &ata Eonitor refreshes to show you all of the tags underneath the Local:%:( tag. If you cannot see the entire tag name and .alue, drag the edges of the respecti.e columns to increase their width.

(lic! on the arrow pointing to the right at the bottom of the screen to .iew the other columns of the tag database. he => in the Dalue column indicates that the style 1or radix4 of the .alues is being displayed in binary. 'ote that some of the configuration tags consist of ,) bits. hese bits are numbered from % to ,1 from right to left. he indi.idual bits that are set in these tags are the result of the default configuration that was used when you entered the module in the I/O (onfiguration list. ,. (lic! on the 8 sign in front of the Lo*al<0<% tag to display all of the input tags for this module. he input addresses for this output module 11- 6oint &( with &iagnostics4 ha.e six 1-4 categories, including field de.ice fault information. Other module types may ha.e different categories. /. (lic! on the 8 sign in front of the Lo*al<0<& tag to display all of the output tags for this module. he Lo*al<0<&?/ata set of tags appears under the Local:%:O tag structure. the actual output bits 1li!e the output image data in a #L($%% processor4. ags labeled Local:%:O.&ata are

$. (lic! on the 4 at the upper right corner of the &ata Eonitor to close the window. -. he screen may now appear to blan!, 7ust re*toggle Controller &rgani3er ;in)ow button to again display (ontroller Organi:er window.

Configuring a 6iscrete In,ut Module In this section of the lab, you will add the discrete input module in #lot ) to the I/O (onfiguration list. 1. From the Controller &rgani3er, again select the I/O (onfiguration, by either right clic!ing o.er the %:& Con0ig#ration folder, or the 1756-,a*-plane and choose New 1o)#le. he #elect Eodule ype dialog appears, with a list of a.ailable modules.

). &ouble clic! on the 1756-%,16/ module. he Eodule 6roperties dialog appears. ,. Bnter the parameters as shown below, and clic! on &'.

Verif-ing 1ag Creation In this section of the lab, you will .erify that the tags were created for the 12$-*I81-& module in #lot ). 1. From the Controller &rgani3er, double clic! on the Controller Tags icon he &ata Eonitor appears, with ) new entries in the ag 'ame column: Local:):( Local:):I .

he input module you created has Input and (onfiguration data. ). (lic! on the 8 sign in front of the Lo*al<=<C tag to display all of the configuration tags for this module. "esi:e the ag 'ame column if you need to in order to see the complete tag names. ,. (lic! on the 8 sign in front of the Lo*al<=<% tag to display all of the input tags for this module. he Local:):I.&ata tag contains all of the actual input bits 1li!e the input image data table in a 6L(*$ processor4. Ma,,ing I) Points to 1ags

In this section of the lab, you will assign the tags Light and #witch 1created in pre.ious steps4 to points on the12$-*O81-& and 12$-*I81-& modules. 1. (lic! on the +)it Tags tab at the lower left of the &ata Eonitor window. ). From the S*ope pull*down menu, choose 1ain(rogra ? ,. In the "lias For column, clic! in the box after Light, and clic! on the down arrow that appears on the right hand side of the box. /. From the tag browser that appears, clic! on Controller S*ope) Tags. $. (lic! on the @ sign in front of Lo*al<0<&, and clic! on Lo*al<0<&?/ata. 3gain, a down arrow appears on the right hand side of the box -. (lic! on the arrow. 3 grid of numbers appears, representing the bits in the tag.

2. (lic! on 0 to select the % bit.

9. "epeat steps , through 2 for the tag called #witch. (hoose the Local:).I to access the inputs of the module, and use Local:):I.&ata.% as the alias tag. H. From the File menu, choose Save to sa.e your program.

Lab #$ Configuring and 1esting Analog I)

Modules

In this lab, you will configure an analog input and an analog output module. =ou will write ladder logic that uses these modules, and then download and test your program. ,ening the Controller file and Sa9ing it as a %e& 'ile 1. If you closed the program, then re*open the controller file CL4101ALa$?"C/.

Configuring the Analog

ut,ut Module

In this section of the lab, you will configure the analog output module in slot 2 for this controller. 1. From the Controller &rgani3er, right clic! on the %:& Con0ig#ration folder and choose New 1o)#le. ). &ouble clic! on the 1756-&F62% module. ,. Bnter selections for this module as shown below and clic! on &'.

/. #!ip the on*line Module Info tab.

$. #elect the Configuration tab, enter the data as shown for both C!annel 0 1scaled in %*1%% percent4 and C!annel 1 1scaled in %*12$%"E64. C!annel 0 1scaled in %*1%% percent4

C!annel 1 1scaled in %*12$%"E64

'(I Ase the +elp Files to see what the specific entries are for (hannel (onfiguration

2. (lic! on "pply.

9. #elect the ut,ut State tab, enter the data as shown for both C!annel 0 1scaled in %*1%% percent4 and C!annel 1 1scaled in %*12$% "E64. C!annel 0 1+old Output at 2%L, or 2.dc, while the (ontroller is in 6rogram Eode4

C!annel 1 1+old the Last #tate of the Output, output .dc signal remains the same, while in 6rogram Eode4

'(I Ase the +elp Files to see what the specific entries are for (hannel (onfiguration

1%. #elect the ut,ut State tab, enter the data as shown for both C!annel 0 1scaled in %*1%% percent4 and C!annel 1 1scaled in %*12$% "E64. C!annel 0 1(lamp outputs at %.dc and 1%.dc respecti.ely, set in engineering units4

C!annel 1 1(lamp outputs at %.dc and 1%.dc respecti.ely, set in engineering units4

'otice the LL and BL pointers gi.e you a Cuic! .isual for your (lamp Limits. 11. (lic! on "pply. 1). (lic! on &'.

Verif-ing 1ags In this section of the lab, you will .erify that the tags were created for the 12$-*OF-DI module in slot 2. 1. From the Controller &rgani3er, double clic! on the Controller Tags icon. hree entries should appear under ag 'ame for the 12$-*OF-DI analog output module. ). (lic! on the @ sign in front of the Local:2:C, the Local:2:I, and the Local:2: tags to .iew the Configuration, Input, and utput tags that are a.ailable for this analog output module. ,. Save your program. (onfiguring the 3nalog Input Eodule In this section of the lab, you will configure the analog input module in slot 9 for this controller. 1. 3dd a 1756-%F6% "nalog %np#t 1o)#le to the controller@s I/O (onfiguration.

). Bnter the module parameters as shown below and clic! on "**ept. Con0ig#ration ab for both C!annel 0 and C!annel 1

"lar

Con0ig#ration ab for both C!annel 0 and C!annel 1

,. (lic! on "pply. /. (lic! on &'.

Derifying ags In this section of the lab, you will .erify that the tags were created for the 12$-*IF-I module in slot 9. 1. If the ag Eonitor is not already open, double clic! on Controller Tags in the (ontroller Organi:er. wo entries will appear under ag 'ame for the 12$-*IF-I analog input module. ). (lic! on the @ sign in front of the Local:9:C and the Local:9:I tags to .iew the Configuration and Input tags that are a.ailable for this analog input module. ,. Save your program.

Adding Ladder Logic In this section of the lab, you will add ladder logic to your program that uses the analog modules you 7ust configured. 1. From the Controller &rgani3er, double clic! on 1ainRo#tine to open the main routine. ). (lic! on the icon on the toolbar to add a new rung to the routine.

,. Iith rung 1 highlighted, press the C%nsertD !ey on the !eyboard. /. ype 0mo.0 as shown below and clic! on &'.

$. Derify that rung 1 appears as shown below.

-. "ight clic! on the E#estion New Tag.

ar- 586 in the blue area next to #ource in the EOD instruction and choose

2. Bnter the parameters as shown below. Im,ortant$ (hoose CL4101ALa$5*ontroller6 in the #cope field before you select the 3lias For tag.

9. (lic! on &' to create this new alias tag. "ung 1 should now appear as shown below.

H. "ight clic! on the single 7#estion 1ar- 586 next to /est and choose New Tag.

1%. Bnter the parameters as shown below and clic! on &'.

he rung should appear as shown below.

11. "ight clic! on the rung number 114 and choose 2eri0y R#ng. 3 message appears at the bottom of the "#Logix $%%% window indicating the results of the Derify "ung command. 1'ote: he message will appear either in the status bar at the bottom of the screen, or in the "esults window if it is selected under the Diew menu. If there are errors, you must correct them before the rung will .erify. =ou can also .erify the entire routine by choosing 2eri0y 9 Ro#tine from the Logi* menu. 1). Save your program.

1esting (our Ladder Logic In this section of the lab, you test the logic you 7ust added to use with the analog modules. 1. /ownloa) your program to the controller and put the controller in "un mode. o test your program, turn the 3I% potentiometer. =ou should see the 3O% meter mo.e in the same direction. ). 6ut the controller bac! in (rogra o)e?

he 3O% meter should now display 2 .olts &(. "emember that you configured the output state in 6rogram mode to be a user*defined .alue of 2.% .olts 1refer to page 294. /. Fo o00line and close the (L;1%1<Lab program. Congratulations: (ou ha9e no& com,leted the ste,s for Lab #

Lab 4$ Configuring (our Communications 6ri9er" Verif-ing Communications" 6o&nloading (our Program" Creating a %e& 1as*" Program" and Routine" and Creating an Arra- of Counters
In this lab, we will introduce you to the online operations that you will complete with the "#Logix$%%% software. In this lab, you will: launch "#Linx communications software and configure your communications dri.er .erify communications to the controller download your program to the controller, using the dri.er you configured create a new periodic tas! create a new program create a new routine create an array of counters

Follow the steps below to complete Lab ). Place a chec*mar* in the s+uare next to each ste, as -ou com,lete it. his will help you !eep your place as you wor! through the lab exercises. Launching RSLinx Soft&are In this section of the lab, you will launch the "#Linx software, which will enable you to configure the dri.er you will use to communicate with the Logix$$$% processor.

1. &ouble clic! on the RSLinx icon ). (lic! the "#Iho icon .

on the &es!top to launch "#Linx software.

he "oc!well #oftware "#Linx Mateway * N"#Iho * 1O screen appears.

'(I he "#Iho screen is actually "#Linx0s networ! browser interface, which allows you to .iew all of your acti.e networ! connections. he left pane of this display is the ree (ontrol, which shows networ!s and de.ices in a hierarchical .iew. Ihen a networ! or de.ice is collapsed, as indicated by the F sign, you can clic! on the F sign or double clic! on the networ! or de.ice icon to expand the .iew and begin browsing. Ihen a networ! or de.ice is expanded, as indicated by the * sign, you can clic! on the * sign or double clic! on the networ! or de.ice icon to collapse the .iew. he right pane of the "#Iho display is the List (ontrol, which is a graphical representation of all of the de.ices present on the networ!. 1i, If there is a communication status error with a de.ice 1e.g., when a recogni:ed de.ice is inad.ertently unplugged4, that de.ice appears with a red ;, indicating that "#Iho pre.iously recogni:ed it, but now it can not. =ou can choose to remo.e the de.ice from the "#Iho display, or to correct the communication error.

Adding the RS;#4# 6'1 6ri9er In this section of the lab, you will add the "#*),) dri.er that you can use to communicate with the Logix$$$% processor. 1. From the Co #ni*ations menu, choose Con0ig#re /rivers.

he (onfigure &ri.ers dialog appears.

). From the "vaila$le /river Types pull*down menu, choose RS-=3= /F1 /evi*es and clic! on the ")) New button. he 3dd 'ew "#Linx &ri.er dialog appears. =ou are prompted to enter a name for the dri.er.

,. (lic! on &' to accept the default name 138<&F1*14. he (onfigure 3llen*8radley &F1 (ommunications &e.ice dialog appears.

Im,ortant$ 8efore you proceed, ma!e sure that the serial cable 112/2*(6, or 12$-*(6,4 is connected from the serial port on the front of the Logix processor to the serial port on the bac! of your 6(. his serial cable should already be attached for you, but confirm this connection before you continue with the rest of the lab.

/. (lic! on the "#to-Con0ig#re button. If the serial cable is attached correctly, as you confirmed in the pre.ious step, then "#Linx automatically sets the proper &F1 parameters for you when you clic! on this button. he (onfigure 3llen*8radley &F1 (ommunications &e.ice dialog refreshes, and the parameters appear as follows:

'ote that the Logix$$$% #erial 6ort is identified.

"#Linx displays a message to indicate that the 3uto (onfiguration process was successful.

%ote$

he de.ice field contains PLogix $$$%/(ompactLogixP regardless of the platform you are using.

$. If the parameters on your screen match the dialog as shown abo.e, clic! on &'. he 38<&F1 dri.er should now appear in the list of (onfigured &ri.ers on the (onfigure &ri.ers screen, and it should be listed as P"unningP in the #tatus column.

-. Once you ha.e .erified that the dri.er is configured and running, clic! on the Close button to close the (onfigure &ri.ers dialog. %ote$ he 38<&F1 dri.er appears in the "#Iho display, in both the left and right panes.

Verif-ing Communications to the Processor In this section of the lab, you will use "#Iho to .erify that you can now communicate with the Logix$$$% processor .ia the &F1 dri.er you 7ust added. 1. From the "#Iho window, double clic! on the ",A/F1-1, /F1 dri.er icon.

). &ouble clic! on the controller icon. he controller expands to display the chassis bac!plane and the serial port of the controller. For example, this is what you will see for the Logix$$$% controller.

,. &ouble clic! on the ,a*-plane, icon.

he bac!plane expands to display all the de.ices connected to it.

/. Derify that the "#),) LB& on the controller in slot 1 is flashing green.

$. (lic! on the 4 in the upper right corner of the "#Iho window to stop "#Iho. -. (lic! on the minimi:e icon in the upper right corner of the "#Linx window to minimi:e "#Linx.

6o&nloading the Program <sing the RS;#4# 6'1 6ri9er In this section of the lab, you will download the program you ha.e created to the controller in the demo box, using the &F*1 dri.er you configured earlier. 1. Open your CL4101ALa$?"C/ program in RSLogix5000. From the Co ;!o "*tive. #ni*ations menu, choose

). &ouble clic! on the ",A/F1-1, /F1 icon and clic! on the controller entry to select the controller as your target controller. ,. (lic! on the /ownloa) button. =ou will see the following &ownload. 'ote that the controller must be in 6rogram or "emote 6rogram mode in order to download. If it is not, you are prompted to confirm that it is o!ay for the software to change modes before downloading. &epending on what mode you are in, the prompt you see will .ary? follow the instructions on the prompt and continue with the download.

/. (lic! on the /ownloa) button. =ou will see a series of progress dialogs as your program is downloaded to the controller.

Creating a %e& Periodic 1as* In this section of the lab, you will create a new periodic tas! that we will then use to schedule the execution of a new program. 3t this point, you should be online with your controller. Ea!e sure the controller is in 6rogram mode. 1. From the Controller &rgani3er, right clic! on the Tas-s icon he 'ew as! dialog appears. and choose New Tas-.

). In the Na e field, type 0 as!)0. ,. In the /es*ription field, type 0 his tas! is similar to an # I in a 6L(*$.0 /. In the Type field, be sure that (erio)i* is selected. $. In the ;at*!)og field, lea.e the .alue at the default of 500 ms. -. In the Rate field, enter 01%%%0 milliseconds 11 second4? lea.e the other parameters set to their default .alues. 2. (lic! on &' to create the tas!. as!) now appears in the (ontroller Organi:er. that this is a periodic, or time*based, tas!. he folder icon for as!) includes a small cloc!, indicating

Creating a %e& Program In this section of the lab, you will create a new program under as!), which is the periodic tas!. 1. From the Controller &rgani3er, right clic! on the Tas-= icon he 'ew 6rogram dialog appears. and choose New (rogra .

). In the Na e field, type 06rogram)0. ,. In the S*!e)#le %n field, be sure that Tas-= is selected and clic! on =.

=ou ha.e now created a new program under as!). 3ll of the routines created and called under this program folder will execute once e.ery 1%%% milliseconds 1or once e.ery second4. 3lso notice that under 6rogram) in the (ontroller Organi:er, there is now an item called 6rogram ags. 3ll program*scoped tags are !ept under this entry? any tags stored here are accessible by 6rogram) and all of its routines, but not by other programs in the controller. Creating a %e& Routine In this section of the lab, you will create a new routine under the 6rogram) folder. 1. From the Controller &rgani3er, clic! on the @ sign in front of as!) to expand it, right clic! on (rogra = and choose New Ro#tine. he 'ew "outine dialog appears.

). In the Na e field, type 0"outine)0. ,. In the /es*ription field, type 0 his routine will increment a counter each time the routine is executed.0

/. In the Type field, be sure that La))er /iagra $. In the %n (rogra

is selected. =.

field, be sure that (rogra = is selected and clic! on

he next thing you want to do is assign a routine to be the Eain"outine for 6rogram). -. From the Controller &rgani3er, right clic! on the (rogra = icon and choose (roperties. he 6rogram 6roperties dialog appears, with the Meneral tab selected.

2. (lic! on the (onfiguration tab to display the assigned routines for 6rogram).

9. From the 1ain pull*down menu, choose Ro#tine= and clic! on &'. his ma!es "outine) the main routine for 6rogram).

Creating an Arra- of Counters In this section of the lab, you will create an array of counters that you can then use in the rest of your routines. 1. From the Controller &rgani3er, double clic! on Controller Tags icon Eonitor. to open the &ata

). (lic! on the +)it Tags tab at the bottom of the window to open the ag Bditor. ,. Ander the Tag Na e column, clic! in the row next to the button and type 0($0 for the tag name.

/. 6ress the Ta$ !ey until your cursor appears in the Type column. $. (lic! on the -. In the /i button, choose a data type of C&.NT+R.

0 field, clic! on the up arrow until a .alue of 10 is displayed, and clic! on &'.

2. 6ress the +nter !ey to accept the tag. 9. (lic! on the 8 sign in front of the C5 tag name to display the array of 1% counters that you created. H. (lic! on the 8 sign in front of the C5C0D tag name to display all of the members in the counter structure 1tag4 associated with the ($N%O counter. Congratulations: (ou ha9e no& com,leted the ste,s for Lab 4.

Lab !$ 2diting and 1esting (our Routines" Programs" and 1as*s


In this lab, we will continue with online operations to edit and test what you ha.e done so far. In this lab, you will: edit and test your routine create a trend to monitor the (ounter 3ccum .alue test your program0s continuous tas! test your program0s periodic tas!

Follow the steps below to complete Lab /. Place a chec*mar* in the s+uare next to each ste, as -ou com,lete it. his will help you !eep your place as you wor! through the lab exercises. 2diting and 1esting (our Routine In this section of the lab, you add ladder instructions to your routine, using a different method than you used in the pre.ious lab. 1. From the Controller &rgani3er, double clic! on Ro#tine= icon. he Ladder Bditor appears, with a blan! rung % displayed. ). 6ress the %nsert !ey on your !eyboard. he (hoose Ladder Blement dialog appears.

If the folders do not appear in this dialog, clic! on the #how Language Blements by Mroups chec!box. ,. ype 0( A0 and press +nter.

he instruction is inserted on rung % as shown:

/. &ouble clic! on the $l#e 0iel) next to the word Co#nter in the ( A instruction bloc!. $. (lic! on the )own arrow to display the drop*down list.

-. (lic! on the 8 sign in front of the C5 tag, double clic! on C5C0D, and press +nter to select the tag. If you do not see the tags, ma!e sure you ha.e clic!ed on the P(ontroller #coped agsP button. 2. In the (reset field, type 0/%/%/%/%0 and press +nter. 9. 6ress +nter again to accept % as the 3ccum .alue. he 6reset and 3ccumulator .alues in (ontrolLogix are double integer words. .alues. H. 6ress the %nsert !ey, type 08# 0, and press +nter. "ung % should now loo! li!e this: his allows you to enter ,)*bit

1%. (lic! and hold the mouse button on the .ertical blue bar of the branch on "ung %, and drag it to the left until it is past the ( A instruction and a green dot appears. "elease the mouse button to place the branch around the ( A instruction. "ung % now loo!s li!e this:

11. (lic! on the lower left corner of the branch to mo.e the cursor. 1). 6ress the %nsert !ey, type 0O A0 for the Output Anlatch instruction, and press +nter. 1,. 6ress +nter with your cursor on the 7#estion 1ar- 586, and press the down arrow to .iew the a.ailable tags? select the C5C0D?C. tag for the O A instruction, and press +nter to accept the operand. "ung % now loo!s li!e this:

1/. "ight clic! on the rung number 506 and choose 2eri0y R#ng. 3 message appears at the bottom of the "#Logix$%%% window indicating the results of the Derify "ung command. 1'ote: he message will appear either in the status bar at the bottom of the screen, or in the "esults window if it is selected under the Diew menu. If there are errors, you must correct them before the rung will .erify. If there are no errors, the Pe0sP next to the rung will change to Pi0sP? this indicates the logic still needs to be inserted into your controller image. =ou can also .erify the entire routine by choosing 2eri0y 9 Ro#tine from the Logi* menu. 1$. "ight clic! on the rung number 506 and choose "**ept (en)ing R#ng. his merges the rung edits into your existing code. =ou can also .erify the entire routine by choosing "**ept (en)ing R#ng +)it from the Logi* menu. 1-. From the File menu, choose Save to sa.e your program. 3 dialog appears, prompting you to confirm whether you would li!e to upload the tag .alues.

12. (lic! on No.

19. (lic! on the 4 in the upper right corner of the Ladder Bditor to close the editor.

Creating a 1rend to Monitor the C1< Accum Value In this section of the lab, you will learn about the new trending feature of "#Logix$%%%. 1. From the Controller &rgani3er, right clic! on the Tren)s folder and choose New Tren). he 'ew rend dialog appears.

). In the Na e field, type 0 rend10 and clic! on &'. he rend1 icon appears in the (ontroller Organi:er under the rends folder. ,. &ouble clic! on the Tren)1 icon to open the rend (hart window.

/. "ight clic! on the rend (hart window and choose C!art (roperties. he "# rend; 6roperties dialog appears.

$. (lic! on the (ens tab and clic! on ")):Con0ig#re Tags.

he (onfigure ags dialog appears.

-. (hoose the CL4101ALa$ 5*ontroller6 scope from the pull*down menu.

2. (lic! on the 8 sign to the left of the ($ tag to expand the counter array. 9. (lic! on the 8 sign to the left of ($N%O to expand the counter. H. (lic! on C5C0D?"CC, clic! on the )own arrow, and select $it 0 of the ($N%O.3(( tag. he tag is now copied to the list of ags to rend. 1%. (lic! on &'. =ou are returned to the "# rend; 6roperties screen. 11. (lic! on the Type field in the ($N%O.3((.% row and choose /igital. 1). (lic! on the 4-"xis tab and change the Ti e Span to 5 se*on)s. 1,. (lic! on the Sa pling tab and change the (erio) to 1 se*on). 1/. (lic! on "pply. 1$. (lic! on &' to close the "# rend; 6roperties dialog.

1-. (lic! on the 4 in the upper right corner of the rend (hart to close rend1. 12. #a.e your pro7ect. 1esting (our Program ; Continuous 1as* In this section of the lab, you will test to see that your program does what you intended it to do. 1. If it is not already there, switch your controller to "emote "un mode by turning the processor !ey to "A' and then bac! to "BE. ). 6ress pushbutton /%0 on the (ontrolLogix demo box to turn on indicator /&0 1the one your finger is on4. 'otice that the yellow 0%0 status LB&s on the modules in slot % and slot ) illuminate when you press the pushbutton. #witch &I% is wired to input point % on the 12$-*I81-& module in slot ). Indicator &O% is wired to output point % on the 12$-*O81-& in slot %. If you ha.e the Eain"outine displayed on your screen, you should also see the ;I( and O B intensify in green. ,. From the Controller &rgani3er, under 1ain(rogra , double clic! on the (rogra icon to open the &ata Eonitor to monitor the points online. =ou will see the #witch and Light tags change .alue from % to 1 when you press &I%. tags to which these aliases refer also change. /. Close the &ata Eonitor. Tags

he .alues of the actual

1esting (our Program > Periodic 1as* In this section of the lab, we will continue with the testing of our 6eriodic as! to see that your program does what you intended it to do. Periodic 1as* > "ecall we created as!) as a periodic tas! running e.ery 1 second. he "outine) contained a counter that counts up e.ery scan. Ie then added a rend to capture the % bit of the counter accumulator. 1. &ouble clic! on the Tren)1 icon to open the rend (hart window. ) o run the trend, clic! on the R#n button in the upper left corner of the rend (hart window. his is the rate of

=ou should be able to obser.e a trend of the ($N%O.3((.% changing state once per second. the periodic tas!.

%ote$ he wor!station must be online to the controller, with the chart open, and ha.e at least one tag configured to be able to "un the current trend. Ihen a trend is started, all existing trend data is permanently deleted. 'otice the pen legend in the upper right corner. =ou can see the .alue of bit % of the accumulator changing once e.ery second. '(I 8asic rending in "#Logix$%%% allows you to .iew data sampled o.er a time period in a graphical display for a set of up to eight data elements. &ata is sampled at a periodic rate that is configurable from 1% milliseconds to ,% minutes. "#Logix$%%% will allow you to create a trend, configure the data elements and display attributes, and sa.e it as part of your pro7ect file. 8asic rending has these constraints: you can trend data elements of type 8OOL, #I' , I' , &I' , and "B3L, you are limited to sampling eight uniCue data elements, and you will be limited to acti.ating data collection for one trend at a time. ,. (lic! on the Stop button to stop the trend.

/. (lic! on the 4 in the upper right corner of the rend (hart to close the trend. $. From the Co #ni*ations menu, choose Fo &00line.

-. From the File menu, choose Save to sa.e the controller file. 2. From the File menu, choose Close to close the controller file. Congratulations: (ou ha9e no& com,leted the ste,s for Lab !.

Lab 5$ 'unction 7loc* Programming &ith RSLogix 5000


his lab uses the Function 8loc! &iagramming editor, which is integrated into the "#Logix $%%% software, along with process and dri.es instructions. his editor allows you to easily set up control schemes for process and dri.es control applications. In this lab, you will learn how to: create and edit a Function 8loc! &iagram na.igate the Function 8loc! toolbar and pro7ect window configure and use the predefined 3cti.e ; faceplates

%ote$ his lab is not a continuation of the pre.ious (ontrolLogix Labs. It is optional, and is % 1 reCuired to complete the remaining labs. Follow the steps below to complete Lab 2. Place a chec*mar* in the s+uare next to each ste, as -ou com,lete it. his will help you !eep your place as you wor! through the lab exercises. Lab Re+uirements his lab reCuires you to ha.e the following 1in addition to the reCuirements listed in the front of this wor!boo!4: "#Logix $%%% 3cti.e ; 6rocess Faceplates Eicrosoft Bxcel a familiarity with the "#Logix $%%% organi:ational layout and programming techniCues Launch RSLogix 5000 and Create a %e& Pro?ect In this section of the lab you will launch "#Logix $%%% software and use it to create a new controller file. 1. From the Start menu, choose (rogra s 9 Ro*-well So0tware 9 RSLogix 5000 9 RSLogix 5000. "#Logix $%%% software is launched. ). From the File menu, choose New. he 'ew (ontroller dialog appears.

,. From the Type pull*down menu, choose the (ontrolLogix $$$% controller. If you are unsure of the controller type, as! your instructor for assistance. /. In the Na e field, type 0F8<Bxample0. $. (lic! on &'. Create and Configure a %e& Periodic 1as* In this section of the lab you will create a new periodic tas! and configure it. 1. "ight clic! on the Tas-s folder in the (ontroller Organi:er, and choose New Tas-. he 'ew as! dialog appears. ). Fill in the 'ew as! dialog as shown below.

Bntering this information creates a periodic tas! named 6rocess which executes e.ery 1%% ms. ,. (lic! on &'. Create a %e& Program to Run in (our 1as* 'ow that you ha.e created a periodic tas! to execute e.ery 1%% ms, you must create a program to run inside it. 1. "ight clic! on the (ro*ess tas! in the (ontroller Organi:er, and choose New (rogra . he 'ew 6rogram dialog appears. ). Fill in the 'ew 6rogram dialog as shown below.

,. (lic! on &'. =ou should now see the following in your pro7ect tree in the (ontroller Organi:er:

Create the 'unction 7loc* Routine and Schedule it to Run 1. "ight clic! on 1ain and choose New Ro#tine. he 'ew "outine dialog appears. ). Fill in the 'ew "outine dialog as shown below.

'ote that the ype is a Function 8loc! &iagram. ,. (lic! on &'. he pro7ect tree should now appear as follows:

/.

o schedule the routine, right clic! on 1ain and choose (roperties.

he 6rogram 6roperties dialog appears. $. (lic! on the Con0ig#ration tab and choose the 0#n*tionA$l- routine from the Eain pull*down menu, as shown below.

-. (lic! on the "pply button and then clic! on &'. 2dit the 'unction 7loc* PI6 Regulator- Routine 1. &ouble clic! on 0#n*tionA$l- routine in the (ontroller Organi:er. 3 blan! sheet 1sheet 14 opens in the wor!space.

he first bloc! to add to the diagram is the Bnhanced 6I& 8loc! 16I&B4 to regulate the simulated loop.

). 'ame this sheet 0 I(1%10 in the namespace edit box.

,. On the (ro*ess tab on the toolbar, clic! on the (%/+ function.

he 6I&B bloc! should now appear on the diagram. /. (lic! on the properties button for this bloc! parameters. and ta!e a minute to .iew all of the a.ailable

'ote that the first column tells whether the parameter is an input or an output to the bloc!. 3lso, you can use the chec!box in the second column to expose or hide parameter pins on the bloc! itself. $. (lic! on &' to close the 6I&B properties dialog. -. (hoose the inp#t re0eren*e o$Ge*t from the toolbar.
Input Reference

2. Eo.e the input reference 1by dragging4 to the input 1left4 side of your 6I&B bloc! and connect it to the 6D point by clic!ing once on the input reference output pin and once on the 6I&B 6D input pin. %ote$ If you are o.er a .alid connection point the pin turns green.

9. &ouble clic! on the tag reference 1currently a Cuestion mar!4 in the tag reference bloc! and type 0sim<result0 to create the input tag. 3ccept this by pressing ret#rn.

H. "ight clic! on the tag reference and select 0'ew Psim<resultP 0 to create the input tag. Ea!e this tag a "eal data type of controller scope. 'ote that this tag could ha.e been any tag in the controller database: an analog input, a calculated result, local or global tags, etc.

1%. (hoose the &#tp#t ;ire Conne*tor ob7ect from the toolbar.
Output Wire Connector

11. Eo.e the Output Iire (onnector 1by dragging4 to the output side of your 6I&B bloc! and connect it to your (DBA point by clic!ing once on the 6I&B (DBA pin and once on the Output Iire (onnector input pin.

1). &ouble clic! on the wire connector reference, type 0control<output0, and press +nter to accept.

2dit the 'unction 7loc* Loo, Simulation Routine 1. (lic! on the New S!eet button to create a new sheet for the simulation elements.

=ou should now be on a clean sheet, designated sheet ) of ). ). 'ame the sheet G#imulation@.

his sheet will contain the simulation.

,. From the (ro*ess tab on the toolbar, select and place a Lead*Lag 1L&LM4 bloc! onto sheet ). Open the LeadLag parameters 1by clic!ing on the ellipsis4 and configure a 1% second lag.

/. (lic! on the "pply button, and then clic! on &'.

$. (hoose an %np#t ;ire Conne*tor from the toolbar and connect it to the input of the LeadLag bloc!.
Input Wire Connector

-. &ouble clic! on the wire connector reference 1clic! the arrow for a drop down list of a.ailable connector references4? choose *ontrolAo#tp#t and press return to accept. 2. &rop an &#tp#t Re0eren*e onto the sheet and connect it to the output of the LeadLag bloc!. (reate a controller scoped tag si Ao#tp#t of type R+"L to populate the output reference.
Output Reference

=ou should ha.e a diagram for sheet ) similar to this:

Com,lete the Simulation in Ladder Logic In this section of the lab, you will use a ladder routine to tie the simulation output generated on sheet ) to the simulation result used as an input on sheet 1. =ou could 7ust as easily ha.e simply wired the two .alues together in the Function 8loc! routine, but this way you will be able to use input and output references as you would use in a real application with actual I/O points. 1. &ouble clic! on the 1ainRo#tine of the Eain6rogram in Eain as! to open it.

). (reate a single ladder rung containing: EOD, sim<output, and sim<result, and accept the rung edit.

,. 2eri0y the entire pro7ect to this point by clic!ing on the GDerify (ontroller@ icon.

If no errors are detected, the 6I& loop and simulation are finished. /. /ownloa) your pro7ect to the controller and change the controller to R#n mode. Acti9e / 'ace,lates "#Logix $%%% pro.ides se.en 3cti.e ; faceplates which can be used in "#Diew,) or any 3cti.e ; container. he Faceplates are a.ailable for the following function bloc!s: 3larm, Bnhanced #elect, otali:er, "amp/#oa!, &iscrete ) #tate &e.ice, &iscrete , #tate &e.ice, and Bnhanced 6I&. In this section of the lab, you will create a faceplate in Bxcel for our operator, but first you need to set up an O6( topic in "#Linx which the faceplate can use to communicate with the controller. 1. Mo to "#Linx and choose //+:&(C and then choose Topi* Con0ig#ration. ). (lic! on the New button and create a topic called F,+net. ,. Find the appropriate dri.er and processor as assigned by the lab instructor and select it. /. Mo to the &ata (ollection ab and chec! the box for 6olled &ata. $. (lic! on "pply and then /one when you are finished. 'ow we can start Bxcel and place a 6I&B faceplate on a wor!sheet. -. (hoose Start9(rogra s91i*roso0t +x*el. =ou should ha.e a blan! wor!sheet on your screen. #ince the faceplates are 3cti.e ; controls, we must access the Q(ontrol oolboxR in Bxcel to insert any 3cti.e ; ob7ects on our sheet.

2. From the 2iew menu Tool$ars9Control Tool$ox so that the toolbox is .isible.

9. (lic! on the Eore (ontrols icon

in the bottom of the toolbox.

H. From the scroll list that appears, scroll down to select Logix 5000 (%/+ Fa*eplate Control. =our cursor should now turn to a crosshair. 1%. &raw a box with your cursor on your sheet so you ha.e the following:

'ext we need to lin! this faceplate to the 6I&B instruction in the controller using the "#Linx topic we defined earlier.

11. In Bxcel, right clic! on your 6I&B faceplate and choose Logix 5000 (%/+ Fa*eplate Control &$Ge*t and then (ropertiesH he following screen should appear:

1). (omplete the 6roperties dialog as follows:

S3s an alternati.e to typing in the information, clic! on the ellipsis to browse to the F8B'B topic and subseCuent tags in the processor.

1,. 3pply the change and clic! &'. he tag for our 6I&B is Q6I&B<%1R and this 6I& is scoped to the program called QEainR. which we created in "#Linx to point o.er Bther'et to our processor. he opic is QF8BnetR

1/. Bxit the design mode by selecting the triangular icon in the (ontrol oolbox. he following faceplate should appear:

1$. (lic! the T#neH button on the faceplate to bring up the tune/trend page. Bnter a proportional gain 1Kp4 of 1.% and an integral gain 1Ki4 of $.%. Bnsure that the #tatus at the bottom left of the faceplate reads GO!@. his is an indication that your communication is wor!ing. 1-. 8ac! on the main faceplate, clic! the "#to button to go to automatic mode, and change the setpoint 1#64 to a .alue of $%.% by either entering the .alue in the #6 edit field or by the .ertical #6 slider. Iatch the result on the trend in the tune/trend page. 12. From the Co #ni*ations menu, choose Fo &00line.

19. From the File menu, choose Save to sa.e the controller file. 1H. From the File menu, choose Close to close the controller file. Congratulations: (ou ha9e no& com,leted the ste,s for Lab 5.

Lab 3$ <sing <ser;6efined Structures and Arra-s


In this lab, you will learn how to use user*defined structures and arrays. %ote$ his lab is a continuation of the pre.ious (ontrolLogix Labs. It is optional, and is % 1 reCuired to complete the remaining labs. Follow the steps below to complete Lab -. Place a chec*mar* in the s+uare next to each ste, as -ou com,lete it. his will help you !eep your place as you wor! through the lab exercises. ,ening the Controller 'ile and Creating a <ser 6efined 6ata 1-,e In this section of the lab, you will open the controller file to be used in the lab and create a user*defined data type that you will use to learn about user defined structures and arrays. 1. Open the controller file CL4101ALa$?"C/. ). "ight*clic! on the .ser-/e0ine) folder under the /ata Types folder in the Controller &rgani3er. If the folder is already expanded there will be a I-I to the left of it.

,. (lic! on New /ata Type

=ou will create a data type of QDF&R to represent a typical Dariable FreCuency &ri.e IO. /. Bnter 2F/ into the name field. $. (reate first element of this Aser &efined &ata type by entering the data as shown.

-. 3dd the rest of the data elements as shown below.

2. (lic! on the OK button and .erify that the 2F/ data type exists under the .ser-/e0ine) data folder.

2xamining the V'6 data t-,e and Adding an arra- of 6ri9es. 1. From the Controller &rgani3er, double*clic! on Controller Tags and choose +)it Tags. ). "ight*clic! on the left*most column of the empy tag at the bottom of the tag editor and select +)it Tag (roperties. ,. Bnter the name ConveyorA/rive into the tag name field.

/. (lic! on the ellipse button next to the /ata Type: field. ype 2F/ in the /ata Type field and enter the .alue 5 in the /i $. (lic! on the &' button. his creates a $*element array of the DF& data type. -. (lic! on the &' button of the New Tag window to complete the process. 0 field.

Verif-ing 1ags In this section of the lab, you will .erify that the ConveyorA/rive array was created. 1. From the Controller &rgani3er, double clic! on the Controller Tags icon. #croll through the (ontroller ag window until you locate the ConveyorA/rive tag. ). (lic! on the @ sign in front of the (on.eyor<&ri.e tag and then

,. (lic! on the 4 in the upper right hand corner to close the ag Eonitor. /. 3dd the logic shown below to the Eain "outine of the Eain as!.

$. Save your program. -. /ownloa) your program and test the rungs. 2, 6lace the controller in R#n mode. Derify that the outputs can be energi:ed by utili:ing the right* clic!/toggle bit function on the ConveyorA/riveC0D?Start:Stop bits in the ladder window. Congratulations: (ou ha9e no& com,leted the ste,s for Lab 3.

Lab @ 6emonstrate 6iscrete 6iagnostic I)

Ca,abilities

In this lab, you will explore the diagnostic capabilities of (ontrolLogix discrete I/O. 3s you proceed through the lab, you will loo! at the diagnostic options, download your controller file, and test a routine that exercises these diagnostic capabilities. %ote$ his lab is a continuation of the pre.ious (ontrolLogix Labs. It is optional, and is % 1 reCuired to complete the remaining labs. Follow the steps below to complete Lab 2. Place a chec*mar* in the s+uare next to each ste, as -ou com,lete it. his will help you !eep your place as you wor! through the lab exercises. ,ening the Controller file and Sa9ing it as a %e& 'ile In this section of the lab, you will open the controller file to be used in the lab and sa.e it under a new name. 7efore -ou begin, remo.e the processor in slot , to a.oid any I/O ownership conflicts. 1. Open the controller file CL4101ALa$?"C/. ). From the File menu, choose Save "s? ,. Save the file as 0&iscreteLab<(L;1%1<Lab.3(&0. /. /ownloa) the file to the controller in slot 1. $. 6ut the controller in Re ote (rogra Loo*ing at the Pro,erties of the or (rogra mode.

ut,ut Module

In this section of the lab, you will loo! at the properties of the 12$-*O81-& module in slot %. 1. From the Controller &rgani3er, under the %:& Con0ig#ration folder, right clic! on the )*o#tp#ts module and choose (roperties. he Eodule 6roperties dialog appears with the Meneral tab selected.

(lic! on the +elp button for more information about the parameters on this dialog. If you are opening +elp for the first time, there will be a slight delay before it opens. (lose the +elp window when you are done.

). (lic! on the Conne*tion tab. '(I he data on this tab comes directly from the controller. his tab displays information about the condition of the connection between the module and the controller. Re+uested Pac*et Inter9al * he reCuested rate of pac!et arri.al 1connection update rate4. he connection will be scheduled to mo.e data to or from the module at least this often. he minimum and maximum "6I .alues are shown parenthetically to the right of the box/spin control. hese minimum and maximum .alues are module dependent and will differ depending on the limits of the module. he "6I is determined by the Owner (ontroller1s4 of a module. If a Listen*Only connection is established, the "6I for that connection cannot be faster than the fastest "6I configured for all owner controllers 1for input modules4, or faster than the "6I configured for the one owner controller 1for output modules4. Inhibit Module chec*box * (hec!/Anchec! this box to inhibit/uninhibit your connection to the module. Inhibiting the module causes the connection to the module to be bro!en. Ma?or 'ault on Controller if Connection 'ails chec*box * (hec! this box to configure the controller so that failure of the connection to this module causes a ma7or fault on the controller if the connection for the module fails. Module 'ault * &isplays the fault code returned from the controller 1related to the module you are configuring4 and the text detailing the Eodule Fault that has occurred. ,. (lic! on the 1o)#le %n0o tab '(I he Eodule Info tab contains information about the selected module. =ou can clic! on refresh to display new data from the module. =ou can clic! on "eset Eodule to return the module to its power*up state by emulating the cycling of power. 8y doing this, you also clear all faults.

Configuring Module

ut,ut States and 6iagnostics

In this section of the lab, you will configure the output states and diagnostic information for the 12$-*O81-& module 1. (lic! on the Con0ig#ration tab. he (onfiguration tab appears as follows:

'ote that you can configure many diagnostics and output states on the module, down to the point le.el. ). Ander the &#tp#t State /#ring column, from the (rogra &n. 1o)e pull*down menu for 6oint %, choose

(hoosing On will turn on output point % when the processor is in 6rogram mode. ,. "epeat step ) for output points 1, ), and , as follows: Output 6oint 1 * On Output 6oint ) * +old Output 6oint , * +old

(hoosing +old for outputs ) and , causes them to hold the state they were in before the processor was changed from "un mode to 6rogram mode. /. In the +na$le /iag? Lat*!ing column, unchec! this field for points % through 1, 1lea.e points 1/ and 1$ chec!ed4. Ihen this field is chec!ed &iagnostic Latching is enabled.

$. In the (ommunications Failure box, .erify that the Leave o#tp#ts in (rogra selected. '(I

1o)e state button is

he (ommunications Failure box allows you to choose how the outputs react in the e.ent of a communication failure. he outputs can either be left in the 6rogram mode state 1as shown abo.e4, or the Fault mode state. -. (lic! on "pply to sa.e the new module configuration. he following prompt appears.

2. (lic! on &' to apply the changes to the module configuration. 9. (lic! on the /iagnosti*s tab. he &iagnostics screen that appears is used only in the Online mode to reset the Blectronic Fuse and Latched &iagnostics bits for the 1- output points of this module.

H. (lic! on the (#lse Test tab. he 6ulse est screen that appears is used only in the Online mode to perform a 6ulse test of each output point. his test allows you to chec! for the presence of a load de.ice with the output commanded On. 1%. (lic! on the ,a*-plane tab. he 8ac!plane screen that appears is used only in the Online mode to chec! the (ontrol8us #tatus and Brror (ounters, and to set the (ontrol8us parameters. 11. (lic! on &' to close the Eodule 6roperties dialog. Vie&ing the 1ags Created for the ut,ut Module

In this section of the lab, you .iew the tags you ha.e created for the 12$-*O81-& module in slot %. 1. From the Controller &rgani3er, double clic! on the Controller Tags icon. he &ata Eonitor appears, with , entries for the 12$-*O81-& module in the ag 'ame column: Local:%:( Local:%:I Local:%:O

hese three entries are tag structures, and they contain more tags than are actually displayed in the &ata Eonitor screen. 'ote the F sign next to the tag name? this indicates that you can expand the tag structure to see more tag information.

'(I he name Local indicates that these tags are associated with a module that is in the same chassis as the controller. he number between the colons is the slot number of the module? in this case, the module is in slot %. he characters appearing after the last colon 1i.e., the (, the I, and the O4 indicate whether the data is Configuration, Input, or utput data. his particular module has all three types of data. he #cope field abo.e the ag 'ame column displays the scope for the tags that are displayed. he scope defines the range in which tags are recogni:ed within the routines. ags created at the controller scope are accessible to all routines in all program folders? those created at the program scope are accessible only to routines within that single program folder. In this case, the tag scope is (L;1%1<Lab 1controller4, which indicates that the tags are .alid for all routines in all program folders in this controller file. If the scope field contained a program name, then the tags would be .alid only for the routines in the program folder specified. ). (lic! on the 8 sign in front of the Lo*al<0<C tag to display the configuration tags for this module. he &ata Eonitor refreshes to show you all of the tags underneath the Local:%:( tag. If you cannot see the entire tag name and .alue, drag the edges of the respecti.e columns to increase their width.

(lic! on the arrow pointing to the right at the bottom of the screen to .iew the other columns of the tag database. he )0s in the Dalue column indicate that the style 1or radix4 of the .alues is binary. he T sign ser.es as a delimiter between the style and the rest of the .alue. 'ote that some of the configuration tags consist of ,) bits. hese bits are numbered from % to ,1 from right to left. he indi.idual bits that are set in these tags are the result of the default configuration that was used when you entered the module in the I/O (onfiguration list. ,. (lic! on the 8 sign in front of the Lo*al<0<% tag to display all of the input tags for this module. =ou should see - entries under this tag structure. 1If for some reason you do not, please let the lab instructor !now.4 /. (lic! on the 8 sign in front of the Lo*al<0<& tag to display all of the output tags for this module. he Local:%:O.&ata tag appears under the Local:%:O tag structure. output bits 1li!e the output image data in a 6L(*$ processor4. ags labeled Local:%:O.&ata are the actual

$. (lic! on the 4 in the upper right corner of the (ontroller ags window to close the &ata Eonitor.

Loo*ing at the Pro,erties of the In,ut Module In this section of the lab, you will loo! at the properties of the 12$-*I81-& module in slot ). 1. From the Controller &rgani3er, under the %:& Con0ig#ration folder, right clic! on the )*inp#ts module and choose (roperties. he Eodule 6roperties dialog appears with the Meneral tab selected. ). (lic! on the Con0ig#ration tab. 3s the (onfiguration screen below shows, you can configure many diagnostic and input states on the module, down to the point le.el. =ou can enable/disable (hange of #tate detection, enable/disable &iagnostics for Open Iire, and enable/disable &iagnostic Latching for any point. =ou can also configure the Input Filter imes for Off *U On or On *U Off in*groups of 9 inputs. 3nd finally, you can also enable/disable (hange of #tate for &iagnostic ransitions for any faults that occur.

,. Derify that the Bnable (hange of #tate, Bnable &iagnostics for Open Iire, and the Bnable (hange of #tate for &iagnostic ransitions are as shown abo.e. /. (lic! on the +na$le /iag Lat*!ing box for input points % to 2 to disable the &iagnostic Latching feature for the first eight inputs. If the Bnable &iagnostic Latching box is chec!ed for an input point, the fault bit will remain set and the red LB& will remain on e.en after the fault is corrected. $. (lic! on the /iagnosti*s tab. he &iagnostics screen that appears is used only in an online mode to reset the Latched &iagnostic bits for the sixteen points of this module. -. (lic! on the ,a*-plane tab. he 8ac!plane screen is used only in an online mode to chec! (ontrol8us#tatus, Brror (ounters, and to set (ontrol8us 6arameters. 2. (lic! "pply to sa.e your changes.

9. (lic! &' on the Online Eodule (onfiguration (hange dialog. H. (lic! on &' to close the module properties. Verif-ing the 1@53; 7136 6iagnostics In this section of the lab, you will loo! at the fault diagnostic information for the 12$-*O81-& output module. 'otice that the red Fault LB&s are illuminated for bits - through 1$ on the 12$-*O81-& module in slot %. hese Fault LB&s are an indication that a fault has occurred on output points - through 1$. o determine the exact cause of the fault, we must examine the Input and (onfiguration data for this module. 1. From the Controller &rgani3er, double clic! on the Controller Tags icon &ata Eonitor. ). (lic! on the 8 sign in front of the Lo*al<0<% tag to display all of the O81-& input tags. ,. (lic! on the 8 sign in front of the Lo*al<0<C tag to display all of the O81-& configuration tags. he &ata Eonitor should loo! something li!e the screen below.
Arro&$ 3 8

to open the

he arrows indicate the following information:

Indicates$ 8its - through 1$ of the Local:%:I.Fault input tag. hese bits are set to 1, indicating that a fault condition has occurred. 8its - through 1$ of the GLocal:%:I.'oLoad input tag. hese bits are set to 1, indicating that the fault is a 'o Load fault. his occurred because de.ices are 'O wired to output points through 1$. 8its % through 1$ of the Local:%:(.'oLoadBn configuration tag. hese bits are set to 1, indicating that 'o Load fault detection is enabled for all output points.

7
/. Mo offline and close the &iscreteLab<(L;1%1<Lab.3(& program. $. (hoose Jes to sa.e your changes. -. Reinsert the processor in slot ,.

C A

Lab A B ,tionalC$ <sing the nline Manuals and Del, 'eatures


In this lab, you will learn about Online Eanuals and Online +elp features of the "#Logix $%%% software. %ote$ his lab is not a continuation of the pre.ious (ontrolLogix Labs. It is optional, and is % 1 reCuired to complete the remaining labs. Follow the steps below to complete Lab 1,. Place a chec*mar* in the s+uare next to each ste, as -ou com,lete it. his will help you !eep your place as you wor! through the lab exercises. Accessing the nline Manuals

In this lab you will learn how to access all of the product documentation that is included with your "#Logix $%%% software. 1. From the Belp menu, choose &nline ,oo-s 9RSLogix 5000 Fetting Res#lts F#i)e. he 3dobe 3crobat "eader is launched, and the .pdf file for the "#Logix $%%% Metting "esults Muide opens. ). #ee if you can find the section of the manual entitled Vuic! #tart #teps. ,. List the 9 Vuic! #tart #teps, as outlined in the Metting "esults Muide. 1.<<<<<<<<<<<<<<<<<<<<< ).<<<<<<<<<<<<<<<<<<<<< ,.<<<<<<<<<<<<<<<<<<<<< /.<<<<<<<<<<<<<<<<<<<<< $.<<<<<<<<<<<<<<<<<<<<< -.<<<<<<<<<<<<<<<<<<<<< 2.<<<<<<<<<<<<<<<<<<<<< 9.<<<<<<<<<<<<<<<<<<<<< /. (lose the Metting "esults Muide and choose another manual from the Online 8oo!s menu. Bxplore this manual and the other online manuals to familiari:e yourself with the online documentation that is a.ailable to you. $. Once you ha.e ta!en some time to loo! through the online manuals, you can close the 3dobe 3crobat "eader.

<sing

nline Del,

In this lab you will learn how to use the Online +elp system that is included with your "#Logix $%%% software. 1. From the Belp menu, choose Contents. he "#Logix $%%% +elp window appears.

From this window, you can Cuic!ly find information contained within a number of Pboo!s,P including: Vuic! #tart steps to help you Cuic!ly get up and running with the software

8asic information on what "#Logix $%%% is and helpful tips to help you find your way around the software Eenu and command information that will help you to learn the different menu options a.ailable to you Instruction set reference material Eodule creation and configuration information +elp on the "#Logix $%%% ranslation ool utility 3 Mlossary of terms that are used in (ontrolLogix and with "#Logix $%%% software

). (lic! on the %n)ex tab. From this tab, you can loo! up specific items you want help on, 7ust as you would use the index of a boo!. For instance, see if you can find information on configuring a routine. ,. (lic! on the Fin) tab.

From this tab, you can search to see if a specific word or phrase exists anywhere within the help system. tab is particularly useful when you0re not sure of the exact terminology under which something might be indexed, but you !now some of the related words or phrases. /. For example, type in the word 03larms.0

his

3 list of topics containing the word 3larms appears at the bottom of the Find tab. Loo! through the list to see the types of information a.ailable. $. (lic! on Can*el to close the "#Logix $%%% +elp window. Congratulations: (ou ha9e no& com,leted the ste,s for Lab A.

A,,endix A$ ControlLogix 6emo 7ox S&itch and Indicator 6escri,tions


he (ontrolLogix &emo (ase has combination pushbuttons/indicators and selector switches that allow you to manipulate real inputs and control real outputs. he 1) combination pushbuttons/indicators and / selector switches that are on the lower left corner of the (ontrolLogix demo case are wired to the 12$-*I81-& module in slot ) and the 12$-*O81-& modules in slot % and slot /. here are labels abo.e each discrete de.ice on the demo case to indicate to which input/output point they are wired as shown in the drawing below.

For the pushbutton switches, the designation that comes before the ) is the input point that each pushbutton is wired to on the 12$-*I81-& in slot ). For example, the first pushbutton in the first row is labeled &I%/&O%. he input point to which this pushbutton is wired is bit %. he selector switches ha.e only one designation abo.e the switch. For example, the first selector switch in the bottom row is labeled &I1). he input point to which the selector switch is wired is bit 1). For the indicator portion of the 1) combination pushbutton/indicator de.ices, the designation that comes after the ) is the output point that each indicator is wired to on one of the 12$-*O81-& modules. For example, the first two columns of indicators are wired, as labeled, to bits % through $ of the 12$-*O81-& module in slot %. he last two columns of indicators are wired, as labeled, to bits - through 11 of the 12$-*O81-& in slot /.