ControlLogix Level 1 Maintenance and Troubleshooting
“Customized Automation Training”
ControlLogix Maintenance and Troubleshooting – Page # 1
ControlLogix Maintenance and Troubleshooting – Page # 2
Copyright (c)
1999 Ricky Bryce.
Permission is granted to copy, distribute verbatim copies of this document, commerciay or non!commerciay "ith no front cover te#ts, or back cover te#ts. Changing this document is not ao"ed.
ControlLogix Maintenance and Troubleshooting – Page # 3
ControlLogix Maintenance and Troubleshooting – Page # 4
$iscaimer% &his document is "ritten in the hope that you can utii'e for your o"n education to gain kno"edge of PC systems (shoud you decide to utii'e this document). though * beieve the information in this document to be accurate, it is +-R responsibiity to verify this information before impementing it in any "ay, especiay "hen damage to personne or euipment coud resut. By continuing to read this document, you agree to hod no one "ho "rites, modifies, or distributes this document iabe in any "ay (even negigence). $ue to the "ide variety of pant appications, some of the e#ampes in this document may be prohibited at your ocation, or coud cause damage to euipment, or harm personne.
ControlLogix Maintenance and Troubleshooting – Page # 5
bout the uthor% &his document is a coection of te#ts and graphics */ve put together over the past fe" years, and has been distributed under the 0$ since 1999. * hope you get much use out of it, and * "oud ike your feedback as to ho" this document can be improved.
s a suppement to this document, * "oud ike to invite you to my "ebsite at http://www.LearnAutomation.com . */m in the process of upoading documentation and videos that "i further hep you "ith probems or uestions you have "ith en Bradey processors.
23uman 4no"edge Beongs to 5veryone2
ControlLogix Maintenance and Troubleshooting – Page # 6 6
Table of Contents Questionnaire for Allen Bradley....................................................... ........................................................ .......................................................... 9 Pre-Assessment.......................................................................... ........................................................ .............................................................. ...... 11 Glossary............................................................. ....................................................... ...................................................................................... ............................... 15 Understanding Numbering Systems.........................................................................................................19 Hardare .................................................................................................................................................!1 "is#rete $n%ut &odules.................................................... ........................................................ ................................................................... ........... !1 "is#rete 'ut%ut &odules.....................................................................................................................!! Analog &odules...................................................... ........................................................ ............................................................................ .................... !( )*e +*assis..........................................................................................................................................!5 )*e P,+-5 +*assis.................................................................... ..................................................... !5 )*e S,+-5 +*assis................................................................ ..................................................... !5 )*e +ontrol,ogi +*assis................................................................. ............................................. !/ )*e 0le +*assis.............................................................................................................................!/ )*e Poer Su%%ly.......................................... ....................................................... ..................................................................................... .............................. ! )*e Pro#essor.......................................................... ........................................................ ............................................................................ .................... !9 )*e 2t*ernet &odule...........................................................................................................................(! 2t*ernet Addressing.................................................................................................................................(3 Addressing...........................................................................................................................................(3 Subnet &as4........................................................................................................................................(5 S,in........................................... ....................................................... .......................................................................................................... ................................................... (9 Utili6ing t*e BootP7"H+P Ser8er.......................................................................................................(9 Setting u% t*e 2t*ernet "ri8er.............................................................................................................3! +onfiguring t*e "01 "ri8er................................................................................................................35 Ba#4u% estore Utility...................................................................... .................................................. 3 0las*ing +ontrol,ogi &odules......................................................... ..................................................... 51 +reating a ne Pro:e#t..................................................... ....................................................... ....................................................................... ................ 55 Setting u% ,o#al $7' &odules................................................... ........................................................ .......................................................... .. 5/ 15/-$B1/ $n%ut &odule................................................ &odule........................................................................................................ ................................................................ ........ 5 15/-'B1/2 'ut%ut &odule...................................................... ................................................... 5 ;or4ing ;it* )ags................................................................................................................................../ +ontroller )ags..................................................................................................................................../ Program )ags.................................................. )ags.......................................................................................................... .................................................................................... ............................ /! Aliasing.................................................................... ........................................................ ........................................................................... ................... / emote +*assis............................................................... ........................................................ ......................................................................... ................. /9 Basi# $nstru#tions.....................................................................................................................................1 2amine $f +losed...............................................................................................................................1 2amine $f '%en............................................. ........................................................ .................................................................................... ............................ ! 'ut%ut )o 2nergi6e................................................. ........................................................ ............................................................................ .................... ! 'ut%ut )o ,at#*............................................... ,at#*...................................................................................................... ................................................................................... ............................ ( 'ut%ut )o Unlat#* ..............................................................................................................................( )imers.............................................................. ....................................................... ........................................................................................ ................................. 3 )imer 'n "elay <)'N=.......................................................................................................................5 )imer 'ff "elay <)'0=......................................................................................................................./ ControlLogix Maintenance and Troubleshooting – Page # 7 7
etentati8e 'n "elay )imer <)'=.................................................................................................... +ounters.................................................. ........................................................ ................................................................................................. ......................................... GS> +ommand............................................ ........................................................ ............................................................................................ .................................... 9 'n line 2diting................................................................ ........................................................ ......................................................................... ................. 95 Start ung 2dits...................................................................................................................................9/ &a4e +*anges.............................................. +*anges..................................................................................................... ....................................................................................... ................................ 9 A##e%t 2dits....................................................................... ....................................................... ................................................................. .......... 9 )est 2dits.............................................................................................................................................99 Assemble 2dits..................................................................................................................................1 0or#ing $7'.............................................................................................................................................11 User "efined "ata )y%es.......................................................................................................................1( Sim%le U")?s............................................................... ....................................................... ..................................................................... .............. 13 Nesting U")?s..................................................................... ........................................................ .............................................................. ...... 1 Produ#er7+onsumer &odel........................................................ ....................................................... ............................................................ ..... 111 )*e Produ#ed )ag.................................................... )ag............................................................................................................ ......................................................................... ................. 111 )*e +onsumed )ag.................................................. )ag.......................................................................................................... ......................................................................... ................. 11( &essaging........................................................ ....................................................... ...................................................................................... ............................... 1!1 )rending...................................................................................................... )rending.............................................. ................................................................................................... ........................................... 1!9 )roubles*ooting............................................... ........................................................ ...................................................................................... .............................. 1( Sear#*70ind........................................................................................................................................1( +ross eferen#e.................................................................................................................................1( )rending................................................. ........................................................ ........................................................................................... ................................... 1(
ControlLogix Maintenance and Troubleshooting – Page # 8
Name@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"ate@@@@@@@ Name@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@"ate@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@
uestionnaire !or "llen #radle$ "uto%ation &$ste%s 1=;*at is t*e %rimary %ur%ose you are attending t*is #lass
!=Are you interested in %rogramming troubles*ooting or bot*
(=;*at do you find most diffi#ult about Allen Bradley P,+Cs
3=Ho often do you a##ess t*e Allen Allen Bradley P,+
5=After ta4ing t*is #lass ill you be %utting your 4noledge to use rig*t aay in t*e %lant
/=;*at ty%e of eDui%ment do you generally or4 it*
=;*at ty%es of netor4s are you using it* your P,+ system system $eE "ata Hig*ay %lus #ontrolnet de8i#enet 2t*ernet et#
=;*at is your #om%anyCs %oli#y on for#ing
9="o you generally *a8e a##ess to t*e internet as you or4
1=+an you bring a #o%y of some %lant %rograms into t*e #lassroom tomorro
ControlLogix Maintenance and Troubleshooting – Page # '
11=;ill you e8er be installing ne systems or #*e#4ing ne systems on#e t*ey *a8e been installed
1!=;ill you e8er be modifying t*e $7' stru#ture of eisting systems
1(="o you *a8e any a ny #ommon system failures t*at are related to t*e Allen Bradley P,+ $f so *at are t*ese failures
13=Are you interested in learning features of S ,ogi t*at are not #urrently in use by b y your %lant but if used #ould redu#e dontime
ControlLogix Maintenance and Troubleshooting – Page # 1( 1(
Name@@@@@@@@@@@@@@@@@@@@@@@@@@@@@"ate@@@@@@@@@@@@@@S#ore@@@@@ Name@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@"ate@@@@@@@@@@@@@@S#ore@@@@@@@@@@@ @@@@@@
ControlLogix Maintenance "nd Troubleshooting Pre)Test 1= Name t*ree t*ree de8i#es de8i#es t*at #an #an be #onne#ted #onne#ted to a discrete input moduleF
!= Name t*ree t*ree de8i#es t*at t*at you mig*t find find #onne#ted #onne#ted to a discrete output moduleF
(= Name one de8i#e de8i#e t*at #an #an be #onne#ted #onne#ted to an analog input moduleF
3= Name one field field de8i#e t*at t*at you ould find find #onne#ted #onne#ted to an analog output moduleF
5= 'n a dis#rete dis#rete in%ut module a status status lig*t is on. ;*at does t*is indi#ate indi#ate
/= 'n a dis#rete out%ut module if a status lig*t is on *at does t*is indi#ate
= Name one use of t*e serial serial %ort <#ommuni#ation #*annel = on t*e t*e front of t*e %ro#essor.
= ;*at is t*e t*e %ur%ose %ur%ose of of RSLinx softare
9= ;*at is t*e t*e %ur%ose %ur%ose of of RSLogix 5000 softare
ControlLogix Maintenance and Troubleshooting – Page # 11 11
1=;*at is t*e %ur%ose of Tags <"ata 0iles=
11=;*at is t*e %ur%ose of Tasks
1!="efine a BIT of memoryF
1(=Ho many bits are a8ailable in a tag it* t*e DINT data ty%e
13=;*at instru#tion must be %la#ed in t*e &ain outine so t*e Sub-outines ill ee#ute
15=;*at are t*e fi8e ste%s in8ol8ed in %erforming an on line edit if t*e %ro#essor is in remote run mode
1/=$f you *a8e a motor t*at ill not run *en t*e o%erator %us*es a start button you may need to go on line it* t*e %ro#essor and lo#ate t*e out%ut in t*e +ontrol,ogi %rogram t*at energi6es ene rgi6es t*e motor. )*is allos you to see *at ot*er #onditions must be met before t*e %ro#essor ill energi6e t*e out%ut. ;*at features of S,ogi mig*t you use to lo#ate t*e motor?s out%ut in t*e +ontrol,ogi %ro:e#t
1=$n 1/ you find t*at t*e reason for t*e failure is a bad t*ermal sit#* on t*e motor. Sin#e you do not *a8e any more t*ermal t*e rmal sit#*es in sto#4 you de#ide to for#e t*e motor?s out%ut instru#tion on. ;*at are some dangers it* t*is and *at are some better o%tions t*at you #ould *a8e #*osen.
ControlLogix Maintenance and Troubleshooting – Page # 12 12
1=)*e %ro#essor is in emote un mode. ou %erform an on line edit and inad8ertently get t*e %ro#essor #aug*t in an infinite loo%. ;*at ill *a%%en *en your edits are tested
19="ue to t*e ay t*e +ontrol,ogi %ro#essor s#ans t*e $7' %rogrammers ill sometimes *a8e a routine for $n%ut Buffering Buffering and anot*er for 'ut%ut Buffering. Buffering. ;*at ould be t*e %ur%ose of t*ese to routines
!=An o%erator informs you of 8ariations in a %rodu#t. ou sus%e#t t*e 8ariations in %rodu#t are due to a flu#tuation in tem%erature. ;*at feature of S,ogi softare softare ould allo you to gra%* a tem%erature o8er time
!1=$f a neon lam% is ired dire#tly to a tria# out%ut module t*e neon lam% is alays on e8en *en %ro#essor is not #alling for t*e out%ut. ;*at #auses t*is and *o #an it be #orre#ted
!!=;*at is t*e %ur%ose of t*e battery on t*e %ro#essor
!(=;it* a netor4 of P,+?s it is %ossible to inad8ertently donload to t*e rong %ro#essor. %ro#essor. )*is #an *a8e disastrous results. results. ;*at ste%s #an you ta4e to ensure you are not donloading to t*e rong system
!3=Name some #ommuni#ation %roto#ols t*at may be used for %eer to %eer #ommuni#ation beteen netor4ed P,+?s.
!5=Name some #ommuni#ation %roto#ols t*at may be used for #ommuni#ation beteen a %ro#essor and $7' de8i#es su#* as a remote #*assis dri8e or robot.
ControlLogix Maintenance and Troubleshooting – Page # 13 13
ControlLogix Maintenance and Troubleshooting – Page # 14 14
Glossary Addressing: BitF Smallest unit of information t*e P,+ #an %ro#essI % ro#essI 'N or '00 ordF (! Bits for "ouble $nteger !ard"are F Input #oduleF eads t*e S)A)US of field de8i#es $utput #oduleF +'N)',S field de8i#es Discrete #oduleF eads or #ontrols de8i#es *i#* only *a8e ! statesF on or off Analog %oduleF eads or #ontrols de8i#es *i#* *a8e a range su#* as to 1 8olts or 3 to ! milliam%s &o"er Supply F Pro8ides #ontrol %oer to modules on t*e ba#4%lane '(assis F )*e %*ysi#al de8i#e t*at modules are %lugged into.
%ro#essor resides. Local '(assis F )*e #*assis *ere t*e %ro#essor &rocessor F )*e ?Brain? of t*e P,+ *i#* #ontains t*e ma#*ine %rogram.
ControlLogix Maintenance and Troubleshooting – Page # 15 15
Trou)les(ooting Tools:
'ross Re*erencing: Allos t*e troubles*ooter to Dui#4ly na8igate t*roug* t*e %rogram by listing all lo#ations in ladder logi# *ere a %arti#ular address is lo#ated.
Usually t*e troubles*ooter ill #ross referen#e a false #ondition on a rung of logi# to find t*e out%ut ou t%ut t*at ill turn t*e referen#ed bit on. ou #an A##ess +ross eferen#ing by rig*t #li#4ing a %arti#ular address.
)*e #ustom data monitor utility *as to be installed as a se%arate tool. Sin#e t*e +"& utility is not built into S,ogi you must *a8e S,in a#ti8ated. S,in ,ite ill not or4 it* t*e +"& utility. ,orce:
Simulates real orld :um%ers. Use #are *ile %erforming a for#e. for#e. ou must understand fully *o a for#e is going to affe#t your system. $n most #ases only addresses starting it* an $F or an 'F #an be for#ed. )o for#e an in%ut or out%ut you #an rig*t #li#4 on t*e address in logi# t*en #*oose for#e on or for#e off. off. After t*e for#e is installed for#es #an t*en be enabled from t*e on line tool bar. Trending: )rending a#ts some*at li4e a ?softare #*art re#order? and allos you to tra#4 an analog signal o8er time.
ControlLogix Maintenance and Troubleshooting – Page # 16 16
'o##unication ter#inology: RSLinxF )*is is t*e #ommuni#ation ser8er. $f S,in is not set u% %ro%erly S,ogi ill not #ommuni#ate to t*e %ro#essor. Dri-er F Allos S,in to #ommuni#ate it* a %arti#ular *ardare de8i#e. )*e most #ommon dri8ers are t*e "01 dri8er to #ommuni#ate it* +*annel and t*e P+&J dri8er for a la%to% to #ommuni#ate to +*annel 1A for station 5. +onfigure dri8ers by #li#4ing #ommuni#ation on t*e menu bar. RS(oF A gra%*i#al s#reen s#reen *i#* ill dis%lay dis%lay *at de8i#es S,in *as establis*ed #ommuni#ation it*. A##ess S;*o by #li#4ing #ommuni#ation on t*e t*e menu bar. )*en #li#4 #li#4 on t*e name of t*e dri8er you is* to use for #ommuni#ation. )*e rig*t *and side of t*e s#reen ill re8eal de8i#es t*e dri8er *as #ommuni#ation it*. RSLogixF )*e softare *i#* allos you to troubles*oot or %rogram a %ro#essor.
it* t*e %ro#essor
ControlLogix Maintenance and Troubleshooting – Page # 17 17
%e#ory Layout: TagsF A se#tion of t*e %ro#essor?s memory memory t*at stores information. information. ou #an also t*in4 of tag elements as 8ariables. 0or eam%leF )*e memory lo#ation K&ain)orDueL #ould store a dri8e torDue 8alue.
)*ere are to s#o%es of tagsF Program tags *i#* are lo#al to to t*e %rogram t*ey eside in and +ontroller S#o%ed tags *i#* are global. ou #an a##ess t*e Program )ag database by double #li#4ing %rogram tags :ust abo8e t*e &ainoutine of ea#* %rogram. +ontroller tags #an by a##essed at t*e to% of t*e +ontroller organi6er indo. TasksF A se#tion of t*e %ro#essor?s memory *i#* *olds %rograms. Programs *old outines. 2a#* #ontroller #an *a8e multi%le tas4s it* multi%le %rograms in ea#* tas4. 2a#* of t*ese %rograms #an t*en *a8e multi%le routines.
Ato#ic Data Types: B$$L SINT INT DINT R.AL
1-bit boolean M #leared 1 M set 1-byte integer -1! to 1! 1! !-byte integer -(!/ -(!/ to (!/ (!/ 3-byte integer integer -!133(/3 -!133(/3 to !133(/3 !133(/3 3-byte floating-%oint floating-%oint number -(.3!!(2( to -1.1539332-(
ControlLogix Maintenance and Troubleshooting – Page # 18 18
+nderstanding Nu#)ering Syste#s Understanding numbering systems ill *el% you to understand 8arious ays in *i#* data #an be monitored in t*e +ontrol,ogi %ro#essor. 0or eam%le if you are reading t*e 8alue of a limit limit sit#* you ould ant to #*ange t*e numbering system
'n t*e folloing #*art you ill rite don t*e de#imal numbers to 15 and t*e numeri# #on8ersions #on 8ersions for ea#* of t*ese numbering systems. systems. )*is #*art ill *el% you understand to%i#s #o8ered later in t*e #ourse su#* as mas4ing.
ControlLogix Maintenance and Troubleshooting – Page # 1' 1'
Dec imal Binary
Octal
Hex/BCD
ControlLogix Maintenance and Troubleshooting – Page # 2( 2(
*ard+are )) ,iscrete -n.ut Modules )*e %ur%ose of t*e dis#rete in%ut module is to read t*e status of field de8i#es. ;*en a 8oltage is dete#ted on t*e terminal of an a n in%ut module it* res%e#t to #ommon #ommon t*e #orres%onding status lig*t is energi6ed and during t*e %ro#essor s#an t*e 8alue of 1 is %la#ed into t*e t*e in%ut data table. 2am%les of in%ut de8i#es in#lude sit#*es sit#*es %us*buttons or auiliary #onta#ts on a motor starter. )*e emo8able )erminal Blo#4 <)B= #an be deta#*ed from t*e module if t*e lo#4ing tab is %us*ed u%. )*e en#losure of t*e )B ill also slide off t*e terminal blo#4 for easy a##ess to t*e terminals. Please anser t*e folloing DuestionsF 1= ;*at is t*e t*e #atalog number number of your "+ $n%ut $n%ut module module
!= Name at least t*ree field de8i#es t*at #an be #onne#ted to t*e "+ $n%ut module
(= ;*at do t*e status lig*ts indi#ate on t*e front of t*e "+ $n%ut &odule
3= ;*at is t*e t*e slot number number of t*e "+ $n%ut module module at your station. station.
ControlLogix Maintenance and Troubleshooting – Page # 21 21
,iscrete /ut.ut Modules )*e %ur%ose of t*e dis#rete out%ut module is to #ontrol field de8i#es. )*e dis#rete out%ut module reDuires %oer from an eternal sour#e. ;*en a 1 is %la#ed into t*e out%ut tag of t*e +ontrol,ogi
ControlLogix Maintenance and Troubleshooting – Page # 22 22
"nalog Modules Analog modules are used to #ontrol and read t*e status of analog de8i#es. Analog de8i#es *a8e a range of states instead of :ust on7off states li4e dis#rete de8i#es. Some analog modules *a8e sit#*es *i#* determine *et*er t*e in%ut #*annels are to be set u% for 8oltage or #urrent. Some analog modules are #onfigured t*roug* softare. softare. 2am%les of analog in%uts in#ludeF Potentiometer Pressure )ransdu#ers >ariable s%eed dri8es and it* a t*ermal #ou%le module tem%erature #an be read into t*e %ro#essor?s memory. 2am%les of analog out%uts in#ludeF &eters >ariable S%eed "ri8es >al8e Positioners and #*art re#orders. An analog signal #annot be e%ressed it* a single bit and t*erefore analog 8alues ill #onsume a ord of memory. 0or our #lass e ill use t*e Analog module on t*e 0le $7' $7' #*assis. Please anser t*e folloing DuestionsF
1= ;*at is t*e t*e #atalog number number of your analog analog module module
!= Ho many #*annels of $n%ut and *o many #*annels of 'ut%ut are a8ailable on t*is module
(= Ho do you set u% t*e in%ut #*annels to a##e%t eit*er a #urrent or a 8oltage in%ut
3= ;*at range 8oltage or #urrent ill t*e $n%ut #*annels a##e%t on your module ;*at range of 8oltage ill t*e out%ut #*annels a##e%t
5= Name at least least t*ree de8i#es de8i#es t*at are are analog in%utsF in%utsF
/= Name at least t*ree t*ree field de8i#es de8i#es t*at are analog out%utsF out%utsF
ControlLogix Maintenance and Troubleshooting – Page # 23 23
An Analog %odule 12324NI$3
ControlLogix Maintenance and Troubleshooting – Page # 24 24
The Chassis )*e #*assis is t*e de8i#e *i#* *olds modules. Allen Bradley ma4es t*e +ontrol,ogi #*assis #*assis a8ailable in 3 1 1( and 1 slots. Here are some #*assisF
)*e P,+-5 +*assis <;it* modules=F <0or di% sit#* settings on t*is #*assis refer refer to %age 3-1 and 3-! of t*e P,+-5 Qui#4 eferen#e Guide.=
)*e S,+-5 +*assis <;it* modules=F
ControlLogix Maintenance and Troubleshooting – Page # 25 25
)*e +ontrol,ogi +*assis <;it* &odules=F
)*e 0le +*assisF
ControlLogix Maintenance and Troubleshooting – Page # 26 26
The Po+er &u..l$ )*e %oer su%%ly su%%lies %oer to t*e modules on t*e ba#4%lane. Generally %oer from field de8i#es "'2S N') #ome from t*e %oer su%%ly. )*e %oer su%%ly only %ro8ides #ontrol %oer to modules on t*e ba#4%lane. Poer for field de8i#es #ome from a se%arate sour#e *i#* is #onne#ted to t*e out%ut module. )*e %oer su%%ly merely %ro8ides t*e %oer needed to s*ut a #onta#t or fire fire a tria# or transistor to %ass %oer from t*is eternal sour#e to t*e field de8i#e. 'n t*e ba#4 of t*e %oer su%%ly a :um%er is used to set t*e 8oltage range. Please anser t*e folloing DuestionsF
1= ;*ere does %oer #ome from to to %oer field de8i#es su#* as solenoids lig*ts and motor starters != ;*at must be set u% on a ne %oer su%%ly before it #an be %la#ed into ser8i#e ser8i#e (= Ho many am%s ill ill your %oer su%%ly su%%ly %ro8ide to t*e ba#4%lane ba#4%lane 3= ;*at is t*e t*e #atalog number number of your %oer %oer su%%ly su%%ly
ControlLogix Maintenance and Troubleshooting – Page # 27 27
ControlLogix Maintenance and Troubleshooting – Page # 28 28
The Processor )*e %ro#essor is t*e main %art of your +ontrol,ogi system. system. )*e %ro#essor is *ere t*e t*e %rogram is stored t*at reads t*e status of your eDui%ment eDu i%ment and based on #ertain #e rtain status ma4es a de#ision on *at to #ontrol. 0or eam%leF )*e %ro#essor is reading t*e status status of a sit#*. ;*en t*e o%erator energi6es t*e sit#* t*e %ro#essor mig*t #all for solenoid to energi6e t*at etends a #ylinder. ;*en t*e #ylinder rea#*es t*e end of it?s tra8el it mig*t #lose a limit sit#*. )*e %ro#essor ill see t*at a limit sit#* *as been #losed and s*ut off t*e solenoid. Alt*oug* traditionally t*e %ro#essor usually is %la#ed in slot it #an be %la#ed any*ere in t*e #*assis as long as t*e %rogram is setu% for t*e %ro#essor to be in t*at slot. ou #an also use as many %ro#essors as you li4e in a #*assis
ControlLogix Maintenance and Troubleshooting – Page # 2' 2'
ControlLogix Maintenance and Troubleshooting – Page # 3( 3(
T(e 'ontrolLogix &rocessor:
ControlLogix Maintenance and Troubleshooting – Page # 31 31
The 0thernet Module 2t*ernet is a %roto#ol t*at *as been idely used for many years. Before 2t*ernet as used it* it* P,+ systems it as used in 'ffi#e en8ironments for s*aring files %rinters data from databases et#... 2t*ernet is t*e fastest #ommuni#ation %roto#ol a8ailable for t*e +ontrol,ogi system it* s%eeds u% to 1 &b%s <&illion bits %er se#ond=. 2t*ernet #an be used to #ommuni#ate it* t*e +ontrol,ogi system from a #om%uter for #ommuni#ation beteen #ontrollers to allo t*e #ontroller to #ommuni#ate it* $7' 'r &&$
'n#e t*e $P address is assigned assigned t*e $P ill s#roll s#roll a#ross t*e al%*anumeri# dis%lay. dis%lay. )*is $P address #an t*en be used in t*e t* e 2t*ernet "ri8er for S,in or if ty%e t*e $P address into t*e address bar of a eb broser su#* as &o6illa t*e modules on board eb ser8er ill s*o t*e module?s status and t*e status of e8ery ot*er module in t*e #*assis.
ControlLogix Maintenance and Troubleshooting – Page # 32 32
'n t*e bottom of t*e 15/-2NB) module you ill find an -35 -35 %ort. Using a standard %at#* #able you #an #onne#t t*e module to an 2t*ernet sit#* sit#* or a *ub. )o #onne#t to your #om%uter dire#tly you ill need a #rosso8er #able
ControlLogix Maintenance and Troubleshooting – Page # 33 33
0thernet "ddressing 28ery de8i#e on t*e same 2t*ernet netor4 must must *a8e a uniDue address. Allen Bradley P,+?s #urrently use t*e $P <$nternet %roto#ol= addressing s#*eme s#*eme <8ersion 3=. )*is is t*e addressing s#*eme dis#ussed in t*is do#ument. 2am%les of 2t*ernet de8i#es mig*t be a Personal +om%uter
0or Uni7,inu systems t*e #ommand /s)in/i*con*ig ill %rodu#t similar results. $n t*is eam%le my P+ *as t*e $P address of 167819808101 . No ot*er ma#*ine on t*e same netor4 ill *a8e t*is same $P address nor s*ould you attem%t to assign t*e same address addre ss to anot*er de8i#e on t*e netor4. $f t*is *a%%ens one of t*e de8i#es ill not be seen. seen. 2a#* segment of t*e $P address is #alled an $'T.T. All $P addresses addresses in t*e $P83 addressing s#*eme s#*eme are made u% of 3 o#tets. 2a#* o#tet is an bit unsigned integer.
ControlLogix Maintenance and Troubleshooting – Page # 34 34
Su)net %ask Noti#e t*e Subnet &as4F 7558755875580. )*e %ur%ose of t*e subnet mas4 mas4 is to identify *i#* %art of t*e $P address is t*e netor4 address ad dress and *i#* %art of t*e $P address is t*e *ost or terminal on t*e netor4. )o understand *o t*e subnet mas4 or4s it *as to be bro4en bro4en don into a binary format... ,oo4 at t*e $P address in BinaryF
11 . 111 . . 1111 M 19!.1/..11 19 !.1/..11 No loo4 at t*e subnet mas4F 11111111 . 11111111 1 1111111 . 11111111 . M !55.!55.!55. !5 5.!55.!55. Any*ere a 1 eists in t*e subnet mas4 t*at bit of t*e $P address is 8ieed 8 ieed as t*e N2);'J %art of t*e address.... ,ets see *at bits are %assedF 11666666 11111111
. .
16161666 11111111
. .
66666666 . 61166161 11111111 . 66666666
7 7
11666666
.
16161666
.
66666666 . don/t pass 7
198.1:.6.161 8;;.8;;.8;;.6 198.1:.6.<
;*ere8er t*ere as a 1 in t*e subnet e %assed t*at bit b it of t*e $P address as %art of t*e netor4 address. )*erefore e ould say t*e netor4 address for t*is ma#*ine is 19!.1/..O. 28ery de8i#e on t*is netor4 must *a8e an $P address t*at starts it* 19!.1/.. and O is t*e terminal address on t*e netor4. 0or eam%leF "e8i#es it* t*ese to $P addresses #an #ommuni#ate it* ea#* ot*er dire#tly it*out going t*roug* a routerF 167819808; and 167819808700 "it( su)net 7558755875580 755875587558 0
)*ese to de8i#es #annot #ommuni#ate it* ea#* ot*er dire#tlyF 167819818; and 1678198;8700 "it( su)net 7558755875580
Hoe8er if t*e subnet mas4 as #*angedF 167819818; and 1678198;8700 "it( su)net 75587558080 )*ese to de8i#es ill #ommuni#ate it* ea#* ot*er be#ause t*e netor4 address is only made u% of t*e first to o#tets o#tets 19!.1/.O.O... sin#e t*e netor4 address is t*e same for t*e to to de8i#es t*ey ill #ommuni#ate dire#tly.
ControlLogix Maintenance and Troubleshooting – Page # 35 35
Su)net %ask .xercise: $ndi#ate *et*er or not t*e folloing de8i#es #an #ommuni#ate it* ea#* ot*er dire#tlyF
1. 192.168.0.5 192.168.0.5
and 192.168.0.6 192.168.0.6 with subnet mask of 255.255.255.0 255.255.255.0
!"
#$
2. 192.168.1.5 192.168.1.5
and 192.168.0.6 192.168.0.6 with subnet mask of 255.255.255.0 255.255.255.0
!"
#$
%. 192.168.1.5 192.168.1.5
and 192.168.0.6 192.168.0.6 with subnet mask of 255.255.0.0 255.255.0.0
!"
#$
&. 10.1.1.5
and 10.1.1.6
with subnet mask of 255.255.255.0 255.255.255.0
!"
#$
5. 10.1.1.5
and 10.1.1.6
with subnet mask of 255.0.0.0
!"
#$
6. 10.2.5.5
and 10.1.1.6
with subnet mask of 255.255.255.0 255.255.255.0
!"
#$
'. 10.2.5.5
and 10.1.1.6
with subnet mask of 255.0.0.0
!"
#$
8. 10.2.5.5
and 10.1.1.6
with subnet mask of 255.255.0.0 255.255.0.0
!"
#$
9. 192.168.0.1 192.168.0.1
and 10.1.1.6
with subnet mask of 255.0.0.0
!"
#$
10.
and 10.1.1.6
with subnet mask of 255.0.0.0
!"
#$
10.2.1.5
ControlLogix Maintenance and Troubleshooting – Page # 36 36
$t(er Ter#s: GAT.A< )*e gateay address is t*e $P address of a ser8er or *ardare router t*at #onne#ts you to ot*er netor4s su#* as t*e $nternet.
DNS =&ri#ary and Secondary> )*e "NS ser8er <"omain Name Ser8er= resol8es *ost names into $P $P addresses. ;*en you enter an address su#* as a*oo.#om into your eb broser your P+ does not understand *ere to go. $t must as4 t*e "NS ser8er to loo4 u% t*e $P address of a gi8en *ost names. Host names are for *umans to understand. +om%uters understand $P addresses.
D!'& "ynami# Host +onfiguration Proto#ol I ;*en a de8i#e su#* as a #om%uter is #onfigured to use "H+P A "H+P ser8er s*ould be a8ailable on t*e netor4. As soon as t*e de8i#e #onne#ts to to t*e netor4 it ill as4 t*e "H+P ser8er to automati#ally assign an $P address subnet mas4 "NS ser8ers Gateay address et#. )*is address is dynami# so t*e de8i#e #ould get a different $P address ea#* time it?s it?s #onne#ted.
Boot& Bootstra% Proto#ol I Similar to "H+P e#e%t a BootP de8i#e ill get t*e same $P address e8ery time it #onne#ts. )*e BootP ser8er *as a list list of *ardare addresses and $P addresses t*at belong to to ea#* de8i#e. ;*en a de8i#e
ControlLogix Maintenance and Troubleshooting – Page # 37 37
ControlLogix Maintenance and Troubleshooting – Page # 38 38
&Linx )) tiliing the #ootP,*CP &erer 1= ;rite don t*e 2t*ernet Hardare Address of t*e de8i#e de8i#e you is* is* to #onfigure. #onfigure. )*is is also #alled t*e &A+ address. Here is an eam%le of a *ardare *ardare addressF 00:00:B':1.:6:D6 != un t*e BootP7"H+P utility. ou #an a##ess t*is t*is utility if it is installed by #li#4ing Start Programs
(= 'n#e t*e ser8er is o%en it it may as for some s%e#ifi# netor4 information if t*is is t*e first first time t*e BootP ser8er *as been run. ou #an obtain t*is information from your netor4 administrator. administrator. 0or t*is eam%le e :ust set t*e subnet mas4 to !55.!55.!55. t*en #li#4 'J. 3= Poer u% your %ro#essor and you s*ould see t*e 2t*ernet de8i#e begin to reDuest and address.
5= "ouble #li#4 on t*e de8i#e. ou ill t*en be %rom%ted to assign an $P address to t*e de8i#e. Be sure you double #li#4 t*e rig*t de8i#e. 2ntering an $P address into t*e rong eDui%ment #ould *a8e disastrous #onseDuen#es.
ControlLogix Maintenance and Troubleshooting – Page # 3' 3'
/= ou #ould also enter a *ost name and des#ri%tion at t*is time if if you is*. = $f you is* to 8erify #ommuni#ation you #an %ing t*e de8i#e from from t*e #ommand %rom%t. By default t*e #ommand %rom%t #an be a##essed from Start Programs A##essories +ommand Prom%t.
ou s*ould get re%lies. )o %ing #ontinuously use t*e -t flag after t*e %ing #ommand. A #ontrol-+ ill sto% t*e %ing #ommand.
ControlLogix Maintenance and Troubleshooting – Page # 4( 4(
ControlLogix Maintenance and Troubleshooting – Page # 41 41
&etting u. the 0thernet ,rier in &Linx )*e 2t*ernet dri8er is used to ma4e a #onne#tion to 2t*ernet "e8i#es su#* as an 2t*ernet P,+-5 or a +ontrol,ogi system. )*e folloing ste%s ill ill al4 you t*roug* a sam%le #onfiguration #onfiguration of t*e 2t*ernet dri8er in S,in. 1= '%en S,in S,in #ommuni#a #ommuni#ation tion ser8er ser8er
!= +li#4 ?+ommuni#ation? on t*e menu bar and t*en #*oose ?+onfigure "ri8ers?. "ri8ers?.
(= 0rom t*e A8ailable dri8er ty%es %ull don menu #*oose ?2t*ernet "ri8es? "ri8es? t*en %ress t*e ?Add Ne? button.
3= 0or t*is t*is eam%le eam%le t*e name name #an be left at default. default. Press 'J.
ControlLogix Maintenance and Troubleshooting – Page # 42 42
5= Po%ulate t*e list of *ostnames. $f you do not *a8e a ay to resol8e *ostnames you #an enter t*e $P address of t*e de8i#es you is* is* to #onne#t to
/= Press A%%ly A%%ly t*en 'J. ou ill see t*e dri8er is no running. +lose t*e ?+onfigure "ri8ers? "ri8ers? s#reen.
= )o test your dri8ers #li#4 t*e t*e S;*o i#on in t*e tool bar of S,in.
ControlLogix Maintenance and Troubleshooting – Page # 43 43
= +li#4 t*e 2t*ernet "ri8er
9= )o go on line it* a P,+ you must must go to S,ogi S,ogi at t*is %oint. %oint.
ControlLogix Maintenance and Troubleshooting – Page # 44 44
Con!iguring the ,1 ,rier in &Linx )*e "01 "ri8er is used for %oint to %oint #ommuni#ation o8er S!(! beteen a +'& %ort on a P+ and t*e serial %ort <+*annel = of a %ro#essor. )*e folloing ste%s ill ta4e you t*roug* a sam%le #onfiguration of t*e "01 S!(! dri8er. 1= '%en S,in +ommuni#ation +ommuni#ation Ser8er. $f t*ere is no s*ort-#ut on t*e des4to% you #an a##ess S,in by #li#4ing Start Programs o#4ell o# 4ell Softare S,in S,in
!= +li#4 ?+ommuni#ation? on t*e menu bar t*en #*oose ?+onfigure "ri8ers?.
(= 0rom t*e A8ailable "ri8er )y%es %ull don menu #*oose ?S!(! "01 "e8i#es? t*en %ress t*e A"" N2; button.
3= 0or t*is t*is eam%le eam%le t*e name name #an be left at default. default. Press 'J.
ControlLogix Maintenance and Troubleshooting – Page # 45 45
5= Alt*oug* t*e #ommuni#ation %arameters #an be entered manually if you are #urrently #onne#ted to t*e %ro#essor :ust *it t*e ?Auto+onfigure? button. S,in ill *it t*e %ro#essor %ro#essor it* different baud rates and different settings until it finds finds a setting it gets a res%onse on. ;*en t*is *a%%ens you ill get a message t*at t*e auto#onfiguration auto#onfiguration as su##essful. Press 'J *en finis*ed. finis*ed.
/= ou ill see t*e dri8er is no running. +lose t*e K+onfigure "ri8ers? "ri8ers? s#reen.
ControlLogix Maintenance and Troubleshooting – Page # 46 46
= )o test your dri8ers #li#4 t*e t*e S;*o i#on in t*e tool bar of S,in.
= +li#4 t*e "01 dri8er
)o go on line you must go to S,ogi at t*is %oint.
ControlLogix Maintenance and Troubleshooting – Page # 47 47
&Linx #acu. estore tilit$ )*e S,in Ba#4u% estore Utility #an be used to ba#4u% t*e #urrent dri8er #onfiguration of S,in or restore t*e #onfiguration from a %re8ious ba#4u% at an earlier time.
Ba#4ing u% t*e #urrent +onfigurationF )o a##ess t*e Ba#4u% estore Utility #li#4 Start Programs o#4ell Softare S,in Ba#4u% estore Utility.
1= +li#4 t*e ?Ba#4u%? ?Ba#4u%? button. button. != A dialog s#reen ill a%%ear as4ing *ere you ant to sa8e t*e ba#4u% file. file. +*oose a lo#ation lo#ation from t*e %ull don menu. $f you are sa8ing t*is to a flo%%y dis4 dis4 #*oose t*e A dri8e. 0or t*is eam%le t*e dri8er #onfiguration ill be sa8ed to t*e +F "ri8e. ou must also enter a file name and t*en %ress SA>2.
(= ou ill t*en get a message t*at t*e o%eration #om%leted su##essfully. Press 'J t*en you #an #lose t*e S,in Ba#4u% estore Utility.
ControlLogix Maintenance and Troubleshooting – Page # 48 48
estoring a %re8ious +onfigurationF )o a##ess t*e Ba#4u% estore Utility #li#4 Start Programs o#4ell Softare S,in Ba#4u% estore Utility. Be aare t*at S,in must be s*ut don to to %erform t*is o%eration. o%eration. $f S,in is not s*ut don you ill be %rom%ted a##ordingly.
1= +li#4 t*e ?estor ?estore? e? button. button. != A dialog s#reen ill a%%ear as4ing *ere t*e ba#4u% file file is stored at. +*oose a lo#ation lo#ation from t*e %ull don menu. $f t*e ba#4u% file as on a flo%%y dis4 you ould #*oose t*e AF dri8e. 0or t*is eam%le t*e ba#4u% is on t*e +F "ri8e. +li#4 on t*e file you is* is* to restore from t*e %ress ?'%en?.
(= A dialog bo s*ould a%%ear indi#ating t*at t*at t*e o%eration as #om%leted su##essfully. $f $f you got an error try t*e restore restore %ro#edure again. $n some 8ersions of S,in BU must be ran ti#e ti#e if S,in as o%en.
ControlLogix Maintenance and Troubleshooting – Page # 4' 4'
ControlLogix Maintenance and Troubleshooting – Page # 5( 5(
lashing ControlLogix Modules $n order to flas* +ontrol,ogi firmare you need to *a8e t*e +ontrol 0las* utility installed. $f it is not installed on your P+ t*e installation %rogram #an %robably be found on t*e same dis4 as S,ogi 5. $n t*is eam%le e are going to flas* a 15/- ,1 %ro#essor. 1= Before Before starting starting ma4e ma4e sure ne#essary ne#essary dri8er dri8erss are #onfigure #onfigured d in S,in. S,in. $f your dri8ers dri8ers are not #onfigured in S,in t*en restore from t*e a%%ro%riate ba#4u% file or #onsult your do#umentation on *o to #onfigure s%e#ifi# dri8ers to #ommuni#ate it* your eDui%ment. )o o%en t*e +ontrol 0las* utility #li#4 S)A)P'GA&S0las* Programming )ools+ontrol 0las*.
!= Be sure to read read all instru#tio instru#tions ns t*at are %resente %resented d to you and ta4e all ne#essar ne#essary y %re#autions %re#autions *ile flas*ing a module. $f your flas* %ro#edure %ro#edure is interru%ted you #ould damage t*e module.
ControlLogix Maintenance and Troubleshooting – Page # 51 51
(= 'n t*e first first s#reen s#reen e are are going to to %ress t*e N2O) N2O) button. button.
3= +*oose t*e de8i#e de8i#e t*at you you is* is* to flas*. flas*. 0or t*is t*is eam%le eam%le e ill ill use use t*e 15/-,1 15/-,1 o%tion. o%tion. )*en %ress N2O). No t*e +ontrol0las* utility ill as4 for t*e %at* of t*e de8i#e you is* to flas*. "rill don t*roug* t*roug* S,in until you find t*e de8i#e you are anting to to flas*. Hig*lig*t t*e de8i#e t*en %ress 'J.
ControlLogix Maintenance and Troubleshooting – Page # 52 52
5= Net you are as4ed as4ed *at firmare firmare 8ersion 8ersion you you ant to to flas* flas* t*e module module to. to. $n t*is t*is #ase t*e module ill be flas*ed to to firmare 8ersion 1.!(. $f t*e %ro#essor?s firmare as not t*e same firmare t*at e needed e ould *ig*lig*t t*e re8ision of firmare e ant for t*is u%date and t*en %ress N2O).
/= Net you you ill ill re#ei8e re#ei8e a arning. arning. ead t*e t*e arning arning #areful #arefully. ly. $f you you still still is* is* to flas* t*e module %ress 0$N$SH.
ControlLogix Maintenance and Troubleshooting – Page # 53 53
)*e firmare u%date ill no ta4e %la#e.
)*ere may be more t*an one stage in u%dating a module so be sure not to interru%t t*e u%date %ro#ess until it is #om%letely finis*ed. ;*en t*e u%date is finis*ed you ill see t*e folloing messageF
ControlLogix Maintenance and Troubleshooting – Page # 54 54
'reating a ne" RSLogix 5000 &ro?ect 1= '%en S,ogi 5 I ou may *a8e a s*ort #ut on t*e des4to% or under Start Programs o#4ell Softare S,ogi 5 2nter%rise Series S,ogi 5 != .+li#4 .+li#4 0ile 0ile Ne Ne
(= Net Set Set u% t*e %ro#essor %ro#essor t*en %ress %ress 'JF
ControlLogix Maintenance and Troubleshooting – Page # 55 55
3= ou *a8e a 8alid %ro:e#t. $t ill not do mu#* t*oug* be#ause e *a8e not #onfigured any $7' yet. ,et?s ta4e a moment to dis#uss some #om%onents #o m%onents of t*e S,ogi 5 user u ser interfa#e.
5= Net e ill add t*e folloing modules to t*e $7' $7' +onfiguration at t*e bottom of t*e #ontroller organi6er indoF 1. 15/-$B1/ >ersion !.3 Slot 5 !. 135-'B1/2 >ersion !.3 Slot / Ne" %odule?. /= )o do t*is rig*t #li#4 #li#4 t*e $7' +onfiguration folder folder in t*e %ro:e#t tree and sele#t sele#t ?Ne"
ControlLogix Maintenance and Troubleshooting – Page # 56 56
= +*oose t*e 15/-$B1/ 15/-$B1/ module module from t*e a8ailable a8ailable de8i#es de8i#es and #li#4 $@ .
= )*e module is 8ersion !.3 so so t*e &a:or re8ision is ! and t*e minor re8ision is is 3. +li#4 'J on t*e &a:or re8ision dialog bo if your re8ision is #orre#t.
9= +om%lete +om%lete t*e module %ro%ertie %ro%ertiess dialog bo as follos follos t*en #li#4 ?,inis( ,inis(?.
ControlLogix Maintenance and Troubleshooting – Page # 57 57
1=ou ill noti#e t*e 15/-$B1/ module a%%ears in t*e $7' +onfiguration +onfiguration folder. Net e ill add N t*e 15/-'B1/2. ig*t #li#4 on t*e $7' +onfiguration folder and sele#t Ne" ? e" %odule?.
11=+*oose t*e 15/-'B1/2 module from t*e list of a8ailable modules t*en %ress $@ .
1!=Sin#e t*e module is 8ersion !.3 #*oose ! as t*e ma:or re8ision.
1(=+om%lete t*e module %ro%erties dialog as s*on t*en %ress ?,inis(?.
ControlLogix Maintenance and Troubleshooting – Page # 58 58
13=ou ill noti#e bot* modules are are no in t*e $7' +onfiguration +onfiguration tree. Be sure to ad:ust t*is %ro#edure to suit t*e modules you are a#tually using it* your on system.
15=ou are ready to donload. Sin#e t*e #ommuni#ation %at* *as not been sele#ted yet let?s #li#4 +ommuni#ations ;*oA#ti8e 0rom t*e menu bar
5= +*oose t*e t*e %at* to your %ro#essor %ro#essor and donload. donload.
ControlLogix Maintenance and Troubleshooting – Page # 5' 5'
oring ith Tags )ags are -aria)les t*at your %rogram reads and mani%ulates. )*ere are to ty%es of )agsF 'ontroller tags and &rogra# tags . +ontroller tags are GL$BAL *i#* means t*at any %rogram or any #ontroller #an read or rite to t*e tag. Program tags are L$'AL to t*e %rogram t*ey reside in.
'ontroller Tags: $f one %rogram needs to #ommuni#ate it* anot*er %rogram you ould use a +ontroller )ag t*at ea#* %rogram #an read from or rite to. 0or t*is eam%le lets say a #on8eyor *as t*ree segments. 2a#* segment *as it?s on %rogram. ;*en an 2-Sto% button is %ressed %ressed e ould ant all se#tions se#tions to s*ut don. )*erefore t*e 2S)'P 2S)'P ould be a G,'BA, tag.
,oo4 at t*e folloing eam%leF
2a#* %rogram *as it?s on tag database t*at no ot*er %rogram #an a##ess but if a %rogram rites rites a 8alue to a +ontroller )ag any %rogram #an a##ess t*e tag. 0or t*is eam%le $?8e #reated a ne %ro:e#t #alled #on8eyor it* an in%ut module in slot 5 and an out%ut module in slot /.
ControlLogix Maintenance and Troubleshooting – Page # 6( 6(
'%en t*e +ontroller )ag "atabase and be sure sure ?2dit )ags? is sele#ted. sele#ted. "e#lare t*e tag #alled 2sto%@+ondition it* a B'', data ty%e. )*e B'', data ty%e means one bit of information is to be stored. )*is is similar to a B( bit in a P,+ or S,+. Press enter.
ControlLogix Maintenance and Troubleshooting – Page # 61 61
&rogra# Tags Program tags are lo#al to t*e t*e %rogram t*ey reside in. 'ne main ad8antage of %rogram tags is t*at e #an #reate one %rogram and #o%y it multi%le multi%le times. )*e ea#t same %rogram tags #an be used in ea#* instan#e of t*e %rogram. )*is ma4es t*e %ro#ess of building logi# for similar similar %ie#es of eDui%ment 8ery sim%le.
1= ig*t #li#4 on t*e main %rogram and #*oose ?Pro%erties? ename &ainProgram to +on8eyor@+ontrol.
!= ig*t #li#4 on t*e &ain)as4 to add a ne %rogram. )*e name of your %rogram is Se#tion@1.
(= 2%and Se#tion@1 and o%en t*e Program )ags. Noti#e t*ere are no tags in t*e %rogram tag database. At t*e bottom of t*e tag editor s#reen be sure ?2dit )ags? is sele#ted.
ControlLogix Maintenance and Troubleshooting – Page # 62 62
3= Set u% t*ree %rogram tags as s*on. Pay attention to t*e "ata )y%e. )*e data ty%e of t*e tag s%e#ifies t*e ay t*e data is stru#tured it*in t*e tag. A B'', data ty%e ill store 1 bit of information and a "$N) <"ouble $nteger= data ty% e ill store (! bits of information <)*is is usually used for numbers=
5= No let?s add some logi#F ig*t #li#4 t*e Se#tion@1 %rogram and add a ne routine. routine.
= )*e name ill ill be &ainoutine &ainoutine t*en t*en %ress 'J.
ControlLogix Maintenance and Troubleshooting – Page # 63 63
= ;e named t*is t*e &ainoutine but did not #onfigure it as t*e &ainoutine yet. 28ery %rogram needs to *a8e a main routine. )*at is t*e routine t*e %ro#essor s#ans it*in t*e %rogram. ou ill noti#e in t*e #ontroller organi6er organi6er indo t*ere is no 1 on t*e ladder i#on yet. ig*t #li#4 t*e Se#tion@1 %rogram and go to %ro%erties. +li#4 t*e +onfiguration tab. $n t*e Pull don menu net to &ain #*oose t*e &ainoutine. A%%ly your #*anges t*en %ress 'J.
9= Noti#e Noti#e t*e &ainoutin &ainoutinee is no *as a 1 on it... it...
1='%en t*e &ainoutine and add t*e folloing logi# using t*e drag and dro% met*odF
ControlLogix Maintenance and Troubleshooting – Page # 64 64
11=)*e Duestion mar4s indi#ate t*at e need an address on ea#* instru#tion. "ouble #li#4 t*e Duestion mar4 on t*e O$+and #li#4 t*e %ull don tab. 1!=Be sure +ontroller )ags is is sele#ted. 2%and ,o#alF5F$ and #li#4 t*e %ull don tab tab net to data to re8eal all (! bits. +*oose bit .
1(=0or t*e O$' #*oose t*e 2S)'P )ag.
13=0or t*e ')2 +*oose ?Se#tion unning? as a Program s#o%ed tag.
ControlLogix Maintenance and Troubleshooting – Page # 65 65
15.No t*at e *a8e one #om%lete %rogram <'r as #om%lete as e need it for eam%le... ,et?s #o%y t*e %rogram and use it for ot*er se#tions of t*e #on8eyor. 1/=ig*t #li#4 t*e Se#tion@1 %rogram and #*oose ?+o%y?. ig*t #li#4 on t*e ?&ain)as4? and #*oose %aste. )*en rig*t #li#4 t*e ?&ain)as4? again and %aste a se#ond time.
1=)*is ga8e us a total of ( #o%ies of t*e same %rogram. %rogram. ig*t #li#4 on Se#tion@11 go to t*e %ro%erties and rename it to Se#tion@!. ig*t #li#4 Se#tion@! go to %ro%erties and rename to Se#tion@(. ;*en finis*ed your %ro:e#t ill loo4 li4e t*isF t*isF
1=No all e *a8e to do is go ba#4 and #*ange t*e $7' in ea#* %rogram to refle#t t*e a#tual sit#* t*at turns on t*e #on8eyor for t*at se#tion and if e *ad it set u%... )*e out%ut t*e logi# rites to. All t*e internal bits are already ritten for us and t*e %rogram stru#ture is in %la#e.
ControlLogix Maintenance and Troubleshooting – Page # 66 66
Aliasing )*is %ro#ess #an be ta4en one ste% furt*er. furt*er. )*e %rogram #an be set u% so not*ing not*ing *as to be #*anged in logi# *a8e to be #*anged after it *as been #o%ied. Aliasing allos t*is to be done. An Alias is a tag t*at is a s*ort#ut to to anot*er tag. ;e #an #reate %rogram tags in in t*e %rogram tag database t*at %oint to t*e real orld $7'. After a %rogram *as been #o%ied you :ust need to go into t*e %rogram tag database and #*ange t*e address t*e aliases %oint to. ,oo4 at t*is eam%le. 1= '%en t*e %rogram tags of Se#tion@1. Be sure ?2dit )ags? is sele#ted sele#ted and #reate a tag #alled ?Start?. $n t*e Alias for #olumn ma4e t*is tag alias for ,o#alF5F$."ata..
Noti#e t*e + net to t*e $n%ut module?s address. )*is means t*at you are %ointing to a #ontroller tag. != No go ba#4 to t*e &ainoutine and #*ange t*e address on t*e first instru#tion to t*e alias name. Noti#e by default t*e a#tual memory lo#ation t*e alias is %ointing to a%%ears belo t*e alias name.
(= No #o%y se#tion on and %aste it ti#e again into t*e main tas4. )*at ill gi8e us se#tions 11 and 1!.
ControlLogix Maintenance and Troubleshooting – Page # 67 67
3= Go into se#tion 11 and #*ange t*e Start alias to %oint to bit 11 of t*e in%ut module.
5= "o t*e same for se#tion 1!. +*ange t*e start tag to loo4 at bit 1! of t*e in%ut module. /= ;*en bit 11 goes *ig* on t*e in%ut module +on8eyor 11?s start bit ill be energi6ed. ;*en Bit 1! goes *ig* on t*e in%ut module +on8eyor 1!?s start bit ill energi6eR ou #an see *o aliasing ould allo you to Dui#4ly de8elo% %rograms t*at are 8ery similar. A +ontroller tag #an be an alias for anot*er #ontroller tag. tag. A %rogram tag #an alias anot*er %rogram tag. A %rogram tag #an alias a #ontroller tag but a #ontroller #ontroller tag +ANN') alias a %rogram %rogram tag. ou #an alias to se8eral tag le8els. )*e start tag you :ust #reated %ointed to a bit le8el tag. But if it ould *a8e %ointed to t*e data ord instead e ould *a8e to s%e#ify t*e bit number manually in logi#. ,oo4 at t*e #*art beloF
ControlLogix Maintenance and Troubleshooting – Page # 68 68
e%ote Chassis $n many systems many %oints of $7' are lo#ated far aay from t*e local c(assis . )*e local c(assis is t*e #*assis *ere t*e %ro#essor in fo#us resides. $n many #ases it is easier to mount a #*assis at t*e remote lo#ation. A #ommuni#ation #able ill allo t*e %ro#essor to #ontrol t*e t*e #*assis at t*e remote lo#ation. 0or eam%le if !5/ %oints of $7' $7' ere ( feet from t*e t*e lo#al #*assis it ould be easier to mount a #*assis at t*e remote lo#ation. ou ould t*en run t*e !5/ %oints of $7' :ust a fe feet to t*e remote #*assis t*en run one #ommuni#ation #able ba#4 to t*e lo#al #*assis. )*e eam%le belo s*os t*e 2t*ernet7$P #ommuni#ation %roto#ol *oe8er many ot*er %roto#ols follo t*e same model su#* as +ontrolNet +ont rolNet or emote $7' it* slig*tly different iring and #onfiguration #*anges. ,oo4 at t*e diagram belo. $n t*is eam%le e *a8e an in%ut in%ut and out%ut module in t*e lo#al #*assis. #*assis. )*is ould be for $7' in t*e lo#al 8i#inity. 0or $7' in anot*er lo#ation e #an use a remote #*assis. #*assis. )*e %ro#essor ill establis* a #onne#tion to t* is remote $7' and ill read in%uts and #ontrol #o ntrol out%uts on t*is #*assis. $n t*is eam%le t*e lo#al #*assis is +ontrol,ogi and t*e remote #*assis is 0,2O $7' <)*is #ould also be many ot*er o t*er ty%es of #*assis su#* as anot*er +ontrol,ogi #* assis P,+-5 +*assis S,+ +*assis Blo#4 $7' et#....=. et#....=. )*is %ro#edure ill assume t*at you *a8e an eisting %rogram and t*at $P addresses *a8e already been assigned assigned to t*e 2t*ernet module and 2t*ernet Ada%ter. $f you ere to use +ontrolNet you ould assign assign node numbers instead of $P $P addresses. ou #an assign node numbers to t*ese modules by %*ysi#ally %*ysi#ally dialing in a node number on t*e modules t*emsel8es. 0or emote $7' you ould set u% t*e "$P sit#*es a##ording to t*e user manua ls for ea#* module.
ControlLogix Maintenance and Troubleshooting – Page # 6' 6'
'o##unication pat( ,oo4 at t*e diagram belo s*oing t*e #ommuni#ation %at*. )*e %ro#essor is *ere t*e t*e %rogram resides so t*e %at* e #*oose ill be relati8e to t*e %ro#essor itself. 1= )*e %ro#essor %ro#essor must first first #onne#t to t*e 15/-2N 15/-2NB) B) module module in t*e lo#al lo#al #*assis #*assis.. $f you are using +ontrolNet t*is ould be a 15/-+NB<= module. 0or t*e older remote $7' Proto#ol t*is ould be a 15/-"H$' module. != Net e must must tell tell t*e lo#al lo#al 15/-2NB) 15/-2NB) module module to #onne#t #onne#t to t*e ada%ter ada%ter at t*e t*e remote remote #*assis. emember e are using 0le $7' $7' for t*is %arti#ular %arti#ular eam%le so e ould #onne#t to t*e 193-A2N) module <2t*ernet= 193-A+N<=<+ontrolNet= or 193-ASB <emote $7'=. (= )*e net ste% is is to *a8e t*e ada%ter ada%ter #onne#t to t*e t*e indi8idual indi8idual modules modules it*in it*in it?s #*assis. #*assis. ;e are using t*e folloing modulesF 1. Slot Slot I 193 193-$B -$B1/ 1/ <"+ <"+ in%u in%utt module module== !. Slot Slot 1 I 193 193-'B -'B1/ 1/ <"+ <"+ out% out%ut ut modul module= e= (. Slot Slot ! I 193-$ 193-$2 2
ControlLogix Maintenance and Troubleshooting – Page # 7( 7(
I/$ 'on*iguration 'on*iguration No t*at e *a8e de#ided t*e layout for our system e need to go to t*e +ontrol,ogi %ro:e#t and set u% t*e remote #*assis under $7' $7' +onfiguration. e#all t*at ( ste%s ill ill a##om%lis* t*is #onne#tionF 0irst e #onne#t to t*e ,o#al 2NB) module t*en t*e 2NB) ill #onne#t to t*e A2N). Net t*e A2N) ill #onne#t to t*e modules t*at are in it?s on #*assis. 1= $f you do not already already *a8e t*e 2t*ernet 2t*ernet module module set u% in your $7' $7' +onfigurati +onfiguration on rig*t #li#4 #li#4 t*e $7' +onfiguration folder and sele#t ?Ne &odule?.
!= Sele#t t*e t*e 15/-2NB) 15/-2NB) module module from t*e t*e list of a8ailable a8ailable modules modules t*en t*en %ress 'J. 'J.
(= Net you ill ill #*oose #*oose t*e ma:or ma:or re8ision re8ision of t*e t*e 15/-2NB) 15/-2NB) module. module. )*is re8isio re8ision n is usually usually on t*e label on t*e side of t*e module *oe8er t*is label may not be u% to date. ou #an use t*e module information from S,in or ty%e t*e $P address into your eb broser and #li#4 ?&odule $nformation? to determine determine t*e re8ision le8el. At t*e time t*is manual as ritten t*e modules e use for #lass are !.3. )*is means t*e &a:or re8ision is ! and t*e minor re8ision is 3. )*erefore e must sele#t ! as t*e ma:or re8ision. Press 'J *en finis*ed.
ControlLogix Maintenance and Troubleshooting – Page # 71 71
3= Net #om%let #om%letee t*e dialog dialog bo for t*e t*e 2t*ernet 2t*ernet module. module. our lo#atio lo#ation n may *a8e s%e#ifi# s%e#ifi# naming standards but e ill name t*is module ?Local.t(ernet%odule ?. )*e I& address s#rolls a#ross t*e front of t*e 2NB) module
5= 'ur net net ste% ste% is to *a8e *a8e t*e 15/-2NB) 15/-2NB) #onne#t #onne#t to to t*e 193-A2 193-A2N) N) module. module. $n $7' +onfiguration rig*t #li#4 on t*e 2NB) module. emember e are #onne#ting to t*e A2N) module from t*e 2NB) module
ControlLogix Maintenance and Troubleshooting – Page # 72 72
/= +*oose t*e 193-A2N 193-A2N) ) from t*e list list of of a8ailable a8ailable de8i#es. de8i#es. Press 'J.
= Net sele#t sele#t t*e t*e ma:or re8isi re8ision on of t*e A2N) A2N) module. module. ;e #an get t*is t*is informat information ion from t*e eb broser by ty%ing t*e $P address into t*e broser?s address bar and #li#4 ?&odule +onfiguration?. At t*e time t*is manual as ritten t*e A2N) A2N) module *ad firmare 8ersion !.1!. )*erefore e must enter ! as t*e ma:or re8ision. re8ision.
ControlLogix Maintenance and Troubleshooting – Page # 73 73
= ou may *a8e *a8e naming naming #on8entions #on8entions for for remote remote #*assis #*assis at your on lo#ation. lo#ation. 0or our #lassroom #lassroom use e ill name t*e module ?Re#ote'(assis ?. ou #an usually get t*e I& address of t*is module from your netor4 administrator s#*emati#s or ot*er do#umentation if t*e address as not ritten on t*e front of t*e module. Use t*e $P address t*e instru#tor assigns to you. ;e ill lea8e t*e #omm format as ?Rack $pti#iation ? and t*is ill treat t*e t*ree modules in t*e #*assis as a single single #onne#tion instead of *a8ing a se%arate #onne#tion for for ea#* module. )*e 15/-2NB) module only su%%orts /3 #onne#tions in in many #ases. )*is #*assis #onsists #onsists of ; slots
ControlLogix Maintenance and Troubleshooting – Page # 74 74
9= No t*at t*at a #onne#ti #onne#tion on *as been made made beteen beteen t*e t*e 2NB) module and t*e A2N) module module e need to establis* a #onne#tion beteen t*e A2N) module and t*e t*ree modules t*at are in it?s #*assis. )o add t*e first module module <)*e 193-$B1/= rig*t #li#4 t*e t*e A2N) module in t*e $7' +onfiguration and sele#t ?Ne &odule?.
1= +*oose t*e 193-$B1/ module module from t*e list list of a8ailable modules t*en %ress 'J.
11= +om%lete t*e &odule #onfiguration dialog as follos t*en %ress 0$N$SH. 0$N$SH.
ControlLogix Maintenance and Troubleshooting – Page # 75 75
1!= Net e ill add t*e 193-'B1/ module to t*e $7' +onfiguration tree. Again e are #onne#ting to t*is module from t*e 193-A2N) module so rig*t #li#4 t*e A2N) module and sele#t ?Ne &odule?
1(= 0rom t*e list list of a8ailable modules sele#t t*e 193-'B1/ "+ out%ut module. Press 'J.
13= +om%lete t*e module #onfiguration dialog as s*on t*en %ress 0$N$SH.
ControlLogix Maintenance and Troubleshooting – Page # 76 76
15= Net e need to add t*e last module to t*e remote #*assis. )*is ill be t*e 193-$2. )*is #onne#tion ill be beteen t*e A2N) and t*e $2 module <ust li4e t*e A2N) #onne#ted to t*e %re8ious to modules e #onfigured. ig*t #li#4 t*e 193-A2N) module and sele#t ?Ne &odule?.
1/= 0rom t*e list of a8ailable modules #*oose t*e 193-$2 module t*en %ress %ress 'J.
1= #om%lete t*e module #onfiguration dialog as s*on t*en %ress 0$N$SH.
ControlLogix Maintenance and Troubleshooting – Page # 77 77
1= No t*at all of our modules *a8e been added to t*e $7' +onfiguration S,ogi S,ogi *as #reated tags for us in t*e t*e #ontroller tag database. ,et?s ta4e a loo4 at t*e #ontroller tags to see *ere *ere data from t*ese t*ree modules ill a%%ear.
19= )a4e a loo4 at t*e tag names t*at t*at S,ogi generated for us.
!= Noti#e t*e tag names assume t*e name of t*e ada%ter in t*e remote #*assis. ou ill also noti#e for t*is eam%le t*at e *a8e to tags for ea#* slot. slot. )*e slot number immediately follos t*e tag name.
ControlLogix Maintenance and Troubleshooting – Page # 78 78
!1= Sin#e e establis*ed a #onne#tion to ea#* module in in t*e #*assis indi8idually e *a8e to sets of tags for t*is remote $7'. ;e *a8e t*e base tags *i#* #ontain most all of t*e information information e need to 4no about t*e #*assis and e *a8e t*e deri8ed tags *i#* follo t*e same naming #on8ention as t*e lo#al $7'. )*e deri8ed tags alias #orres%onding memory lo#ations in t*e base tag t*at refle#t t*e data for it?s on slot *en %ossible.
!!= $f you go to edit tags you ill see *at based tags t*e deri8ed tags are aliasing.
ControlLogix Maintenance and Troubleshooting – Page # 7' 7'
!(= 0or t*is #ourse e ill be using t*e deri8ed tags. )o see t*e data from t*e "+ $n%ut &odule you must be on line on t*e monitor tags tab t*en e%and emote@+*assisFF$. emote@+*assisFF$. ou ill see ea#* in%ut from t*is module. )*ese tags #an be used dire#tly in ladder logi# or you #an #reate anot*er alias to use for your %ro:e#t.
ControlLogix Maintenance and Troubleshooting – Page # 8( 8(
#asic -nstructions A Little !istory A #ommon %rogramming language used in P,+?s is is #alled ,adder ,ogi#. ,adder ,ogi# as de8elo%ed years ago to *el% ele#tri#ians ada%t to to P,+?s. ,adder logi# is still idely in use today alt*oug* t*is language a%%ears to be ea4ening. ,adder logi# is similar similar to Assembly ,anguage in many ays *i#* as idely used to %rogram #om%uters #om%uters years ago. Sin#e t*en *ig*er le8el languages su#* as PAS+A, *a8e #ome along. $n t*e last fe years e *a8e seen a more 'b:e#t 'riented 'riented a%%roa#* to %rogramming in languages su#* as a8a. )*e +ontrol,ogi %ro#essor seems to be folloing t*e 'b:e#t 'riented 'riented a%%roa#* it* it?s User "efined data ty%es
.xa#ine I* 'losed =CI'> ou ill find t*at most instru#tions in t*e S,+ P,+-5 and +ontrol,ogi #onsist of t*ree #*ara#ter %neumoni#s. )*e O$+ loo4s at a gi8en bit of memory in t*e %ro#essor. $f t*is bit is on t*en t*e O$+ ill intensify indi#ating logi#al logi#al #ontinuity t*roug* t*e instru#tion. instru#tion. Here is *at t*e O$+ loo4s li4e in logi#.
ControlLogix Maintenance and Troubleshooting – Page # 81 81
.xa#ine I* $pen =CI$> )*e O$' is :ust t*e t*e o%%osite of t*e O$+ instru#tion. instru#tion. )*e O$' loo4s at a bit in memory. $f t*e bit is a t*en t*e O$' is true. true. $t ill intensify intensify indi#ating logi#al #ontinuity t*roug* t*e instru#tion and t*e net instru#tion in t*e rung ill ill be eamined. )*is is usually referred referred to as a N') instru#tion be#ause t*e address t*e instru#tion %oints to must N') be on for t*e instru#tion to be true. Here is an eam%le of *o t*e O$' ill a%%ear in ladder logi#F
$n t*e abo8e eam%le you #an see t*at as soon as t*e &ain Pum% Sit#* is s*ut off a bit is set to run t*e ba#4u% %um%.
$utput To .nergie =$T.> )*e out%ut to energi6e sim%ly turns a bit on *en it is e8aluated e8 aluated as true and s*uts a bit b it off *en t*e instru#tion is e8aluated as false. Using t*e same address on an ')2 in to different different %la#es in t*e %rogram is #onsidered bad %rogramming %ra#ti#e. )*e to ')2?s #an interfere it* ea#* ot*er and ma4es troubles*ooting diffi#ult. Belo you ill find to different states of t*e same rung. )*e first state s*os t*e rung as false so a 6ero is ritten to B(F17. )*e se#ond state is true true and a 1 ill be ritten ritten to B(F17.
ControlLogix Maintenance and Troubleshooting – Page # 82 82
$utput To Latc( =$TL> and $utput To +nlatc( =$T+> )*e 'ut%ut )o ,at#* instru#tion ill ill rite a 1 to it?s address *en true. ;*en t*e '), goes false again t*e out%ut address ill remain a 1 until anot*er instru#tion su#* as t*e 'ut%ut to Unlat#* s*uts it ba#4 off. This is true een i! the .rocessor .o+ers do+n9 and is brought bac u.:: ou must use #aution *en using t*e ,at#*7Unlat#* *en #ontrolling real orld de8i#es. Here is *at t*e ,at#*7Unlat#* ill loo4 li4e in logi#F
$f t*e out%ut address is off bot* t*e lat#* and unlat#* instru#tions are not intensified but on#e t*e bit is turned on you ill see bot* t*e lat#* and unlat#* intensified e8en t*oug* bot* in%uts are s*ut off.
"ue to t*e %ro#essor s#an #y#le sin#e t*e unlat#* is %la#ed after t*e lat#* if bot* in%uts ere to go true t*e Unlat#* instru#tion ould in and t*e out%ut address ill be s*ut off. $f t*e lat#* as after t*e unlat#* t*en t*e lat#* ould be t*e last instru#tion s#anned and t*erefore t*e bit ould be left in t*e energi6ed state.
ControlLogix Maintenance and Troubleshooting – Page # 83 83
Ti%ers )imers are generally used for delaying an e8ent from ta4ing %la#e or to delay a de8i#e from s*utting off eit*er on an on transition or an off transition. )*ere are t*ree ty%es ty%es of timersF timersF )*e )imer 'N delay <)'N= )imer 'ff delay <)'0= and t*e e tentati8e )imer 'n delay <)'=. )imers #an be #reated as +ontroller +ontroller )ags or Program )ags. A tag of t*e )$&2 data ty%e #onsists of t*e folloing #om%onentsF Preset ord
)*e entire timer is addressed by it?s element statement <)3F.A++=
ControlLogix Maintenance and Troubleshooting – Page # 84 84
Ti#er $n Delay =T$N> )*e )imer 'n delay delays an e8ent from from ta4ing %la#e. 'n#e t*e timer be#omes true t*e enable bit be#omes true instantly. )*e timer ill also start timing timing instantly so t*e )) bit be#omes *ig*. Sin#e t*e timer is timing t*e a##umulated 8alue ill in#rement.
'n#e t*e A##umulated 8alue rea#*es t*e %reset t*e done bit <"N= ill go *ig* and t*e timer ill sto% timing. )*e a##umulated 8alue remains at
;*en t*e sit#* is energi6ed t*e t*e timer ill begin timing. timing. ;*en t*e A++ 8alue rea#*es t*e P2 8alue t*e "N bit goes *ig* and t*e main motor ill start. start. Sin#e t*e )ime Base is .1 t*erefore 5 <%reset= times .1
ControlLogix Maintenance and Troubleshooting – Page # 85 85
Ti#er $** Delay =T$,> )*e 'ff "elay )imer is generally used to delay an e8ent from s*utting off. $mage a lube system on a large motor. As long as t*e main motor is turning t*e lube %um% s*ould be running. ;*en t*e main motor s*uts off you ouldn?t ant to s*ut off t*e lube %um% immediately be#ause be#au se t*e main motor needs time to #oast don to 6ero 6ero P&?s. )*e &ain motor #ould run off t*e 2N bit and t*e ,ube motor motor #ould run off t*e "N bit. 'n t*e 'ff delay timer as soon as t*e rung goes true )*e 2N bit goes true as it does for all timers. Sin#e t*e 'ff delay timer does not delay t*e "N bit from s*utting off t*e "N bit goes *ig* immediately. emember t*e )'0 instru#tion delays t*e "N bit from s*utting off not turning on.
;*en t*e motor sit#* is energi6ed bot* b ot* t*e main motor and t*e lube motor ill energi6e immediately. ;*en t*e main motor sit#* is s*ut off t*e main motor s*uts off off immediately but sin#e t*e )'0 delays t*e t*e "N bit from from s*utting off off t*e ,ube motor motor ill s*ut s*ut off ( se#onds later. ;arningF Using t*e 2S instru#tion on a )'0 instru#tion #ould #ause un%redi#table o%eration.
ControlLogix Maintenance and Troubleshooting – Page # 86 86
Retentati-e $n Delay Ti#er =RT$> )*e )' instru#tion or4s a lot li4e t*e )'N instru#tion instru#tion it* one main e#e%tionF ;*en t*e rung goes false on t*e )' instru#tion instru#tion it ill retain retain t*e A++ 8alue. ;*en t*e rung be#omes true again t*e A++ 8alue ill %i#4 u% from from *ere it left off. off. 'ne good a%%li#ation for t*e )' ould be an *our meter to indi#ate total runtime for ma#*inery. Sin#e t*e )' does not no t reset itself *en t*e rung goes false t*e 2S instru#tion must be used to reset a timer. Here is a %ra#ti#al a%%li#ationF
$n t*is eam%le on#e t*e ma#*ine a##umulates 1 *our of run time a lig*t mig*t #ome on indi#ating t*at a lubri#ation needs to be engaged. 'n#e t*e o%erator lubri#ates t*e t*e ma#*ine *e #an reset t*e *our meter.
ControlLogix Maintenance and Troubleshooting – Page # 87 87
Counters +ounters #ount rung transitions. )*e +)U runs t*e a##umulated 8alue of t*e t*e #ounter u% on t*e false to true rung transition and t*e +)" +)" instru#tion runs t*e a##umulated 8alue don. )*e +)U and +)" #an be used in #on:un#tion it* ea#* ot*er. 'ounters consist o* t(e *ollo"ing co#ponents: A++ A##umulated >alue P 2 +" +ount "on Bit +U '> '8erflo Bit UN
Preset >alue +ount U% bit Underflo bit
)ags used for #ounters are de#lared it* t*e +'UN)2 data ty%e. Here is an eam%leF
t*e +)U instru#tion is true. )*e A++ 8alue ,or t(e 'T+ instruction F )*e +U bit is *ig* *en t*e in#rements by t*e 8alue of 1 ea#* time time t*e +U bit goes *ig*. ;*en t*e A++ rea#*es t*e P2 t*e "N bit ill be set. )*e +)U ill #ontinue to in#rement t*e a##umulated 8alue until it rea#*es t*e maimum %ossible 8alue for a (! bit signed integer bit ill ill be set and t*e A++ 8alue ill ill go to -!133(/3. 2a#* time t*e +U bit goes *ig* t*e A++ 8alue ill still #ontinue to in#rement
ControlLogix Maintenance and Troubleshooting – Page # 88 88
Here is a %ra#ti#al eam%le of a +)U7+)" im%lementationF
2a#* time a %i66a goes into t*e o8en t*e t*e A++ 8alue is in#remented by one. 2a#* time a %i66a #omes out of t*e o8en t*e A++ 8alue is de#remented by one. )*erefore t*e A++ 8alue re%resents re%resents *o many %i66as are in t*e o8en at any gi8en gi8en time. )*e "N bit #ould be used to s*ut t*e #on8eyor don if %i66as are going into t*e o8en and not #oming outR
ControlLogix Maintenance and Troubleshooting – Page # 8' 8'
+sing t(e GS 'o##and alue= #ommand to #ontinuously load t*e time from t*e system into t*e ne array. ou s*ould a##ess t*e *el% file in S,ogi 5 for a #om%lete des#ri%tion of t*e ;A,,+,'+J)$&2 ob:e#t. )o a##ess t*e *el% file #li#4 Hel% on t*e menu bar t*en #li#4 +ontents. +li#4 t*e 0$N" tab. $f t*is is t*e first time time you are using t*e Hel%0ind feature you may be %rom%ted to sele#t net t*en finis* to build t*e *el% database. )y%e all#lo#4time in ste% 1 t*en in ste% ( double #li#4 ?a##essing t*e all#lo#4time ob:e#t?. 0or t*is eam%le e are sim%ly going g oing to #reate an array of o f se8en elements in t*e #ontroller tag database t*en use t*e GS> #ommand to %o%ulate t*e t*e array it* t*e system time. )*e %ur%ose of ea#* of t*e se8en elements are as follosF 2lement I ear 2lement 1 I &ont* 2lement ! I "ay 2lement ( I Hour 2lement 3 I &inute 2lement 5 I Se#ond 2lement / I &i#rose#ond ,et?s get started.... 1= 0irst 0irst e need to o%en t*e #ontroller #ontroller tag tag database at t*e t*e to% of your #ontrolle #ontrollerr organi6er organi6er indo. indo.
ControlLogix Maintenance and Troubleshooting – Page # '( '(
!= Net let?s let?s be sure sure t*e ?edit ?edit tags? tags? tab is sele#ted sele#ted so so e #an add a ne tag. tag.
(= )*e ne tag tag e #reate ill ill be #alled #alled ?time? ?time? and t*e ty%e ty%e ill ill be ?"$N)T?. ?"$N)T?. e#all t*at t*at t*e T T ill #reate an array of elements. Press enter to a##e%t t*e tag.
3= ,et?s loo4 at t*e Array. Array. +li#4 K&onitor K&onitor )agsL. )agsL. +li#4 t*e KL KL net to t*e tag name name and you you ill ill see t*at se8en elements *a8e been #reated.
ControlLogix Maintenance and Troubleshooting – Page # '1 '1
5= Net e need to #*oose #*oose *i#* *i#* routine routine e e ill be adding adding t*e GS> to. e#all t*at t*e %ur%ose %ur%ose of t*is GS> is to etra#t t*e all #lo#4 time from t*e system and load it into t*e tag e :ust #reated. 0or t*is eam%le e ill go to t*e &ainoutine &ainoutine of t*e &ainProgram. ou #an a##ess t*e routines from t*e #ontroller organi6er indo.
/= Be sure sure t*e end rung is *ig*lig*ted *ig*lig*ted t*en t*en ty%e GS> <)*en <)*en %ress %ress K2nterL= K2nterL= ou ill ill noti#e noti#e t*e GS> #ommand *as been added to you logi#.
= "ouble #li#4 t*e KL KL net to +lass +lass Name. )*e #lass #lass ill be ;A,,+,'+ ;A,,+,'+J)$& J)$&2. 2. )*ere is only one instan#e a8ailable of t*is #lass so e don?t need to sele#t sele#t one. )*e Attribute ill be "ate)ime. )*e destination s*ould be timeT.
ControlLogix Maintenance and Troubleshooting – Page # '2 '2
= No you #an donload donload your or4 or4 and and go on line in in un mode. mode. $f your your GS> #ommand is or4ing %ro%erly t*e GS> #ommand ill be etra#ting t*e time from t*e system and loading t*e all #lo#4 time
ControlLogix Maintenance and Troubleshooting – Page # '3 '3
ControlLogix Maintenance and Troubleshooting – Page # '4 '4
/n line 0diting !or ControlLogix )*ere are fi8e basi# ste%s in %erforming an edit on line. 1= != (= 3= 5=
Star Startt 2di 2dits ts &a4e &a4e +*an +*ange ges s A##e A##e%t %t edit edits s )est )est 2dit 2dits s and and Asse Assemb mble le edit edits. s.
;oteF Beginning it* >ersion 1( ?,inalie .dits ? ill a##e%t test and assemble all in one ste%. Unless you are 8ery e%erien#ed it is re#ommended t*at you follo t*e full 5 ste% %ro#edure.
Alt*oug* t*ese ste%s seem 8ery sim%le t*ere are a re a fe rules to at#* out for. •
•
•
•
•
ou #annot #*ange t*e data ty%e of eisting tags. $f you #reate a ne tag it* it* t*e rong data ty%e you must delete t*e tag and de#lare it again. ou #annot ma4e an on line edit if t*e 4ey sit#* is in un &ode. ou do not need to %erform an on line edit to dire#tly #*ange a 8alue in t*e data table su#* as t*e %reset of a timer or #ounter. $f t*e %ro#essor is in %rogram mode you do not need to test and assemble after a##e%ting. $f t*e %ro#essor is in %rogram mode and a rung is deleted t*ere is no arning.
,et?s al4 t*roug* t*e 5 ste% %ro#edureF ,oo4 at t*e rung belo. 'ur ob:e#ti8e is to transfer #ontrol of t*e out%ut to ,o#alSit#*./. $f you #li#4 on bit ,o#alSit#*. and attem%t to ma4e a #*ange not*ing *a%%ens.
ControlLogix Maintenance and Troubleshooting – Page # '5 '5
Step 1> Start Rung .dits )*e first ste% is to %ut t*e rung into edit mode. )*ere are se8eral ays t*is #an be doneF "ouble #li#4 t*e rung number ig*t #li#4 t*e rung number and start rung edits 0rom ?,ogi#? on t*e menu bar #li#4 'n line 2dits t*en start %ending rung edits +li#4 t*e start rung edit i#on in t*e on line editing tool bar :ust abo8e abo8 e t*e ladder 8ie •
•
•
•
Noti#e t*at S,ogi made a #o%y of t*e rung for us to or4 it*. By loo4ing at t*e %oer rails you #an see t*e bottom rung is being ee#uted by t*e %ro#essor and t*e to% rung is t*e one you need to ma4e edits to. ou ill also noti#e t*e e
ControlLogix Maintenance and Troubleshooting – Page # '6 '6
Step 7> %ake '(anges No t*at t*e rung is in edit mode #*anges #an be made. $f you added a ne rung in ste% ste% 1 t*is is *ere you need to add your logi# to t*e ne rung. Be #areful not to add any logi# t*at ill fault t*e %ro#essor or #ause damage to %ersonnel or eDui%ment. Noti#e t*e i
ControlLogix Maintenance and Troubleshooting – Page # '7 '7
Step ;> Accept .dits No t*at your rung is set u% as you need it it?s time to send t*e edits to t*e %ro#essor. ou #an a##e%t %ending rung edits <)*is ould :ust a##e%t t*e rung you *a8e sele#ted= or you #an a##e%t %ending progra# edits <)*is ould a##e%t all t*e edits in t*e #urrent progra# = )*ere are se8eral ays to %erform t*e net t*ree ste%s. •
•
•
ig*t #li#4 t*e rung number and a##e%t edits +li#4 ,ogi# 'n line 2dits A##e%t A## e%t
Noti#e in t*e margin rung 1 is mar4ed for insertion and rung ! is mar4ed for remo8al. )*e $?s and ?s are #a%itol be#ause t*e edits are no in t*e %ro#essor. ,oo4 at t*e %oer rails. ou #an see t*e old rung is still being ee#uted by t*e %ro#essor.
ou ill also see t*at %ending edits eist by loo4ing at t*e on line tool bar.
ControlLogix Maintenance and Troubleshooting – Page # '8 '8
Step 3> Test .dits ;*en you test edits t*e ne or modified rungs ill be#ome a#ti8e. )*e old rungs ill be left left in t*e %ro#essor until e are sure our ne rungs are or4ing %ro%erly. Be aare t*at if you #*ange an out%ut address t*ere mig*t no longer be logi# logi# riting to t*at address. address. )*is means t*at you #ould abandon a bit in t*e 'N state. ou #an test your edits by doing one of t*e folloing a#tionsF 1= ig*t ig*t #li#4 #li#4 t*e rung rung numb number er != +*oose ,ogi# ,ogi# 'n line line 2dits )est a##e%ted a##e%ted %rogram %rogram edits edits from from t*e menu bar bar (= +li#4 t*e t*e )est i#on in t*e on line line edit tool bar bar abo8e your logi# logi# indo. indo.
$f you are modifying an in%ut ty%e ty%e address you s*ould also be #areful. #areful. $f t*e rung as %re8iously %re8iously true you may ant to ma4e sure your ne logi# is also going to be true at t*e moment you a##e%t or t*e t*e out%ut may s*ut off. ,et?s test t*e edits and you ill noti#e t*e ne rung
Noti#e t*e %oer railsF
ControlLogix Maintenance and Troubleshooting – Page # '' ''
Step 5> Asse#)le .dits $f you logi# is or4ing %ro%erly go a*ead and assemble t*e edits. Assembling remo8es t*e old rung and t*e edit 6one mar4ers. After Assembling you may ant to sa8e your or4 to t*e t*e *ard dri8e. ou #an assemble by using one of t*e folloing met*odsF 1= ig*t #li#4 #li#4 t*e rung rung number number and #*oose #*oose a##e%t edits edits
Noti#e t*e ,ogi# no a%%ears to be normalF
ControlLogix Maintenance and Troubleshooting – Page # 1(( 1((
orcing -/ 0or#ing #an be used for troubles*ooting and to to some etent simulates real real orld :um%ers. ,ea8ing for#es in t*e %ro#essor or de%ending on for#ed $7' to ma4e your eDui%ment run is #onsidered bad %ra#ti#e. ,oo4 at t*e diagram beloF
Under normal #ir#umstan#es t*e folloing e8ents ta4e %la#eF 1. )*e sit#* sit#* is s*ut s*ut !. A 1 a%%ears a%%ears in in t*e in%ut in%ut tag (. )*e O$+ O$+ instru#t instru#tion ion goes goes true true 3. )*e ')2 is enabled enabled 5. A 1 is ritten ritten to t*e out%ut out%ut tag tag /. )*e lig*t lig*t ill ill energi6e energi6e on t*e t*e out%ut out%ut module module ,orcing t(e input: $f you %la#e a :um%er a#ross t*e sit#* you ould *a8e t*e same effe#t as t*e sit#* alays being s*ut. A 1 ould alays alays be in t*e t*e data table t*e logi# ould be true and t*e lig*t ould energi6e. )*e same effe#t a%%lys to for#ing. for#ing. 0or#ing t*e in%ut on ould result in a 1 in t*e in%ut data table for t*e sit#* and all logi# ould be ee#uted as if t*e sit#* as s*ut. )*e o%%osite a%%lys to an '00 for#e. for#e. An 'ff for#e ould be similar to #utting a lead on t*e sit#*. A 6ero ould result in t*e in%ut data table. ,orcing t(e output: $f you %la#e a :um%er to t*e out%ut t*e out%ut table ould still be a 6ero if t*e logi# is false. fa lse. $nformation does not flo from from t*e out%ut de8i#e to t*e out%ut data table. )*erefore any O$+ instru#tion t*at is loo4ing at t*e out%ut bit ould also be false. )*e same a%%lies to for#ing. $f you for#e an out%ut de8i#e t*e out%ut data table ill still be #ontrolled by t*e ladder logi#.
Note: Even though forcing an output does not directly effect the data table, The field device itself could feed an input back into the processor causing other things to happen in logic. logic. Know your system before using the force feature.
ControlLogix Maintenance and Troubleshooting – Page # 1(1 1(1
)*ere are se8eral ays to for#e for#e $7'. 0or#ing #an be a%%lied from ladder logi# or from t*e +ontroller )ag database. $nternal memory lo#ations lo#ations #annot be for#ed. for#ed. ou #an only for#e for#e real $7' Aliases to real $7' or %rodu#er7#onsumer tags. $n t*is eam%le e ill for#e an in%ut dire#tly from from ladder logi#. ig*t #li#4 on t*e in%ut address address and #*oose ?0or#e 'n?.
Noti#e t*e for#e lig*t on t*e %ro#essor begins to flas*
)*e for#e lig*t on your %ro#essor ill no be solid amber indi#ating t*at installed for#es *a 8e been enabled. $f e go to t*e data table you ill see t*at t*e in%ut in%ut bit is on and it it is red indi#ating t*at a for#e *as been enabled on t*e in%ut. ou ill also see t*at t*e for#e mas4 refle#ts *i#* bits *a8e been for#ed in t*e data ord. 0or#ing #an be %reformed dire#tly from t*e for#e mas4 as ell.
$n t*e for#e mas4 t*e 8alue of 1 indi#ates a bit *as been for#ed on. )*e 8alue of indi#ates an off off for#e and a %eriod indi#ates no for#e is installed on a %arti#ular bit.
ControlLogix Maintenance and Troubleshooting – Page # 1(2 1(2
oring +ith ser ,e!ined ,ata T$.es A User "efined "ata ty%e allos allos t*e user to #reate *is *is on data stru#ture offline. offline. )o understand user defined "ata )y%es you must first first understand %re-defined data ty%es. $n t*e P,+-5 )3F as a 8ariable it* t*e timer data ty%e. )3F #ontained se8eral membersF )3F.A++ )3F.P2 )3F7"N )3F72N and )3F7)). $n +ontrol,ogi a 8ariable su#* as lubedelay #an be #reated and gi8en t*e data ty%e of K)imerL. 'n#e t*is assignment is made t*e 8ariable KlubedelayL #an be e%anded to re8eal all of it?s #om%onentsF lubedelay.A++ lubedelay.P2 lubedelay."N lubedelay.)) and lubedleay.2N. All of t*ese 8ariables are u%dated by a timer instru#tion in logi#. )*e timer ob:e#t is alays on t*e ?menu? as a %re defined data ty%e but you don?t *a8e any timers by default. ou *a8e to set u% a 8ariable in in t*e tag database and assign t*at 8ariable t*e timer data ty%e. ou ould no *a8e a timer. $nstead of using t*e data stru#ture stru#ture of a timer you may may ant to #reate your on data stru#tures. stru#tures. 0or eam%le you may ant to #reate a data ty%e #alled ?)an4Alarm? and *a8e t*e alarm data ty%e #onsist of some members su#* as Hig*,e8el and ,o,e8el. No any tag you assign a )an4Alarm data ty%e ill in*erit bot* t*e Hig*,e8el and ,o,e8el members. "ata stru#tures and data ty%es are are not dire#tly usable by t*e logi#. Setting u% a User "efined "efined "ata ty%e merely %uts an item on a menu. ou don?t a#tually *a8e an instan#e of t*e t*e item until you de#lare a tag it* your data ty%e. 0or eam%leF Stea4 and S*a4e sells *amburgers
ControlLogix Maintenance and Troubleshooting – Page # 1(3 1(3
Si#ple +DTs $n an o%en %ro:e#t lo#ate t*e "ata )y%es folder in t*e #ontroller organi6er organi6er indo. Under t*e "ata )y%es folder you ill find t*e Predefined data ty%es. 2%and t*e Predefined data ty%es folder and double #li#4 )$&2.
Noti#e t*e members of t*e )imer "ata Stru#ture. Any tag e assign in t*e tag database as a timer ill in*erit all of t*ese members.
ControlLogix Maintenance and Troubleshooting – Page # 1(4 1(4
;*en you #reate &y)imer it* t*e timer ty%e t*e tag #an be e%anded to re8eal all t*e #om%onents.F
Net e are going to #reate a User "efined "ata stru#ture #alled K)an4AlarmL. )*is data stru#ture ill *a8e to membersF Hig*,e8el and ,o,e8el. ig*t +li#4 on t*e User-"efined folder under "ata )y%es and sele#t KNe "ata )y%eL.
)*e name of t*is data ty%e ill ill be )an4Alarm. )*e to members Hig*,e8el and ,o,e8el ill ill ea#* *a8e a bool data ty%e.
ControlLogix Maintenance and Troubleshooting – Page # 1(5 1(5
No t*at K)an4AlarmL is an a8ailable data ty%e e #an no #reate an instan#e of t*is data ty%e in t*e tag database. $n t*is eam%le $ #reated a tag #alled &y)an4 and ga8e it t*e )an4Alarm data ty%e. &y)an4 in*erited t*e members of t*e )an4Alarm data ty%e. ;e #an no *a8e O$+?s and ')2?s in logi# t*at use &y)an4.,o,e8el and &y)an4.Hig*le8el 8ariables.
Here is an eam%le of *at logi# mig*t loo4 li4e to %o%ulate t*ese bitsF
ControlLogix Maintenance and Troubleshooting – Page # 1(6 1(6
Nesting +DTs Additional information may be needed for &y)an4. Status information may also be a8ailable. )*e )an4Status data ty%e ill ill #onsist of t*ree membersF ,e8el "raining and 0illing. ,et?s go a*ead and set u% t*is data ty%e t*en e ill nest )an4Alarm and )an4Status members into a tan4 data ty%e. )*is ill %ro8ide us it* it* all t*e information e need about &y)an4 all in one area. ,ets do t*is one ste% at a time. 0irst +reate a U") for )an4Status as s*on <ig*t #li#4 t*e User-"efined folder and sele#t ?ne da ta ty%e?=F
Noti#e t*at ,e8el is an a#tual 8alue so it ill *a8e to be "$N). 0illing and "raining are eit*er true or false so t*eir ty%e is B'',. A%%ly your #*anges. ;e #an use t*e )an4Status "ata ty%e in t*e tag database as it is but e ould *a8e to #reate a se%arate tagname *i#* is not good. emember our goal is to organi6e data. )o *a8e all t*e data under one tagname e are going to *a8e to #reate anot*er data stru#ture t*at *as t*e members )an4Status and )an4Alarm. 2a#* of t*ose data stru#tures *a8e t*eir on members.
ControlLogix Maintenance and Troubleshooting – Page # 1(7 1(7
+reate t*e data stru#ture as s*onF
No go to t*e +ontroller )ag "atabase and #reate ( tags )an41 )an4! and )an4( ea#* *a8ing t*e data ty%e of ?)an4?. ,oo4 *at *a%%ensR
All t*ree )an4s *ad t*e ?)an4? data ty%e. ty%e. <e#all t*at t*e tan4 data ty%e ty%e #onsisted of to members alarm and status.
ControlLogix Maintenance and Troubleshooting – Page # 1(8 1(8
emember also t*at alarm and status status *ad t*eir on stru#tures stru#tures as ell. 2%and t*e alarm and status tags.
All t*e data for ea#* )an4 is no ell organi6ed. )*ese tags s*ould t*en be in#or%orated into into t*e in%ut and out%ut data ma%%ing routines.
ControlLogix Maintenance and Troubleshooting – Page # 1(' 1('
ControlLogix Maintenance and Troubleshooting – Page # 11( 11(
ProducerConsu%er Model $n older P,+ systems su#* as t*e P,+-5 a message instru#tion *ad to be ee#uted in order to get data from one %ro#essor to anot*er. Alt*oug* t*is or4ed 8ery ell ell t*ere as seldom a guarantee *en data ould arri8e at it?s destination nor ou ld data be transferred if t*e %ro#essor as in %rogram mode. ;it* t*e Produ#er7+onsumer model t*e transfer of data b eteen %ro#essors ta4es %la#e it*out any logi# and t*e user sets t*e P$ <eDuested Pa#4et $nter8al= for t*e rate at *i#* data s*ould be u%dated. )*e %rodu#er #onsumer model is 8ery easy to understand and to tra#e *ere data is #oming from. )*e Produ#er7+onsumer model #an transfer data beteen tags *i#* *a8e a "$N) data ty%e an array or a User-"efined "ata )y%e
T(e &roduced Tag )*e %rodu#er *as t*e easy :ob. $n t*e +ontroller )ag "atabase a user sim%ly #reates a tag and mar4s it as %rodu#ed. $n t*is #ase #ase &yProdu#ed)ag is a "$N). )*e ?P? in t*e left-most #olumn ma4es t*e tag %rodu#ed. ;*en e mar4 a tag as %rodu#ed e are sim%ly alloing t*e tag tag to be ser8ed to #onsumers. ;e #an %o%ulate t*is %rodu#ed tag t*roug* logi# and t*e #onsumed tags in ot*er %ro#essors ill re#ei8e t*e data e %la#e into t*e %rodu#ed tag.
ControlLogix Maintenance and Troubleshooting – Page # 111 111
$f you ere to rig*t #li#4 on t*e tag and go to t*e tag?s %ro%erties e ould *a8e a fe more o%tionsF
$f e #li#4 on t*e ?+onne#tion? tab e #an set t*e maimum number of #onsumers *i#* are alloed to #onne#t to t*e %rodu#ed tag. )*e alloed 8alues are are 1 to !5/. ou #an also send send e8ent triggers to #onsumers using t*e $') instru#tion in logi#.
ControlLogix Maintenance and Troubleshooting – Page # 112 112
The Consu%ed Tag $n t*e %re8ious fe %ages e dis#ussed *o to set u% a tag in t*e producing %ro#essor. %ro#essor. No e ill go to t*e %rogram *i#* resides in t*e %ro#essor *i#* ill be consu#ing data from t*is %rodu#ed tag. Setting u% a #onsumed tag in8ol8es an etra ste%. 0irst e build a %at* to t*e %ro#essor *ere t*e t*e tag is being %rodu#ed. )*is is done in $7' $7' +onfiguration. )*en t*e #onsumed tag #an be #reated.
Step 1F Building t*e %at* to t*e %rodu#er.
$n t*e $7' #onfiguration tree e ill *a8e to build a %at* to t*e %ro#essor *ere t*e %rodu#ed tag resides. 0irst e ill ill *a8e to establis* establis* a #onne#tion to our lo#al 2t*ernet or +ontrolNet module. Net e ill *a8e our lo#al #ommuni#ation module #onne#t to a #ommuni#ation module in t*e #*assis *ere t*e %rodu#ed tag resides. ,ast e must tell t*e #ommuni#ation module in t*e remote #*assis #*assis to #onne#t to t*e %ro#essor *i#* is %rodu#ing data. ,oo4 at t*e diagram beloF
ControlLogix Maintenance and Troubleshooting – Page # 113 113
)*is #onne#tion is made under $7' +onfiguration. ,irstE rig*t #li#4 on t*e $7' +onfiguration folder to #onne#t to t*e lo#al #ommuni#ation module if it not already set u%.
Be sure to sele#t t*e #ommuni#ation module you ill be using 0or t*is eam%le e are using a 15/2NB) module.
ou #an get t*e ma:or re8ision from a eb broser S,in or from t*e label on t*e side of t*e module if t*e label is #orre#t. 'ur module is 8ersion !.3
ControlLogix Maintenance and Troubleshooting – Page # 114 114
;e named t*is module lo#al@enbt. )*is module resides in slot ( and t*e $P address is 19!.1/..9. )*e minor re8ision as 3.
;*en finis*ed it* t*is ste% your lo#al #ommuni#ation module ill a%%ear in t*e $7' #onfiguration similar to t*e image s*on beloF
Second e must add t*e #ommuni#ation module module of t*e remote #*assis to t*e $7' +onfiguration. ;e must rig*t #li#4 on our lo#al #ommuni#ation module and tell our lo#al #ommuni#ation module to #onne#t to t*e remote #ommuni#ation module as s*onF
;e are #onne#ting to anot*er 15/-2NB) module.
Again t*e remote 2NB) module is 8ersion !.3 so t*e &a:or e8ision is !.
ControlLogix Maintenance and Troubleshooting – Page # 115 115
;e ill name t*e module remote@enbt. $t *as t*e t*e $P address of 19!.1/..9/. $t is in slot ( of a slot slot #*assis. ;e #*oose ra#4 o%timi6ation for t*e #omm format so data from from all modules #an be re#ei8ed t*roug* a single #onne#tion. )*e minor re8ision re8ision is 3. Ad:ust your settings settings as ne#essary for your station.
;*en finis*ed adding t*e remote enbt module your $7' #onfiguration ill loo4 similar to t*e image beloF
T(ird e must ma4e a #onne#tion to t*e %ro#essor from t*e remote@enbt module.
ig*t #li#4 t*e remote enbt module and e ill add a ne module as e did before.
&ost of t*e stations *a8e t*e 15/-,1 %ro#essor. Be sure to sele#t t*e ty%e of %ro#essor t*at resides in t*e station *i#* is %rodu#ing t*e data.
ControlLogix Maintenance and Troubleshooting – Page # 116 116
Sele#t t*e re8ision le8el of t*e t*e %ro#essor you are #onne#ting to. )*e 8ersion as 1( *en t*is do#ument as #reated.
)*e %ro#essor is named remote@%ro#essor and resides in slot .
;*en finis*ed your $7' +onfiguration ill a%%ear similar to *at is s*on beloF
ControlLogix Maintenance and Troubleshooting – Page # 117 117
t*e #onsumed tag. Step 7F +reating t*e No t*at e *a8e a %at* to t*e %ro#essor *i#* is %rodu#ing t*e tag e #an #reate our #onsumed tag. ,irst go to t*e #ontroller tag database and #li#4 ?2dit )ags?.
Second e ill #reate a tag #alled ?&y+onsumed)ag?. ,ea8e it as a "$N).
ControlLogix Maintenance and Troubleshooting – Page # 118 118
)*ird rig*t #li#4 on t*e tag and #*oose ?edit tag %ro%erties?. )*e tag ty%e is #onsumed. 0rom t*e Pull"on tab you #an sele#t remote@%ro#essor as t*e %rodu#er. <)*is is t*e %ro#essor e #onne#ted to in $7' +onfiguration. )*e name of t*e tag in t*e remote@%ro#essor is #alled &yProdu#ed)ag and is a "$N). )*e P$ is fine for t*is eer#ise but if you is* to #onser8e bandidt* on t*e netor4 netor4 t*e P$ #an be in#reased so t*e tag ill u%date less often.
ou are ready to donload and test your or4.
ControlLogix Maintenance and Troubleshooting – Page # 11' 11'
ControlLogix Maintenance and Troubleshooting – Page # 12( 12(
ControlLogix Messaging )*e %rodu#er #onsumer model is 8ery effi#ient for transferring data beteen %ro#essors but if t*e data transfer does not need to o##ur at %eriodi# inter8als you may be able to #onser8e netor4 bandidt* using t*e message instru#tion. Using t*e message instru#tion instru#tion data #an e8en be re#ei8ed
ControlLogix Maintenance and Troubleshooting – Page # 121 121
1= 0irst let?s set u% t*e memory lo#ations e ill be using for t*is transfer. ;e ill #reate t*ree ne items in t*e #ontroller tag databaseF 1. msg'ut msg'utbo bo as "$N) "$N) !. msg$nb msg$nbo o as "$N) "$N) (. msg+on msg+ontro troll as mess message age #sg$ut)ox ill be t*e memory lo#ation t*at anot*er #ontroller #an read from. )*is tag *as not*ing to do it* our on message instru#tion but e ill %o%ulate t*is tag it* data so t*e station reading from your #ontroller #an test t*eir #onne#tion. ou ill be reading t*e msg'utbo msg'utbo tag of anot*er station later in t*is eer#ise. #sgIn)ox is *ere t*e data ill ill be stored it*in our on #ontroller. After t*e message instru#tion instru#tion ee#utes *ate8er data as stored in t*e msg'utbo of t*e target %ro#essor ill a%%ea r in t*e msg$nbo tag of your on %ro#essor. #sg'ontrol is sim%ly t*e or4s%a#e for t*e message instru#tion instru#tion to be able to o%erate. $t stores information about t*e message instru#tion su#* as *en it is enabled aiting or done.
!= )*ere are se8eral ays e #an add t*ese tags. ou #an rig*t #li#4 ?+ontroller )ags? at t*e to% of t*e #ontroller organi6er indo and add a ne tag or you #an o%en t*e #ontroller tag database and add t*e tags to t*e bottom of t*e s%reads*eet. NoteF ou must be in ?2dit )ags? mode to add tags tags to t*e #ontroller tag tag database. )*is #an be done eit*er on line or offline. Add t*ese t*ree tags to t*e #ontroller tag database as s*onF
ControlLogix Maintenance and Troubleshooting – Page # 122 122
(= Net add a self-running self-running timer as s*on. )*is timer ill be used to trigger t*e message instru#tion. instru#tion. ou ill *a8e to de#lare msg)imer msg)imer as )imer. ou #an do t*is by #reating anot*er entry in t*e tag database or rig*t-#li#4 msg)imer on#e you?8e ty %ed it into t*e timer instru#tion and t*en sele#t ?ne msg)imer? to de#lare t*e t*e ne 8ariable for use in logi#. )*is %ro#edure ill ma4e t*e entry in t*e tag database for you.
Noti#e t*e %reset on t*e timer is 5. Be#ause t*e time base for +ontrol,ogi is millise#onds only t*e %reset for t*is timer is *alf of one se#ond. ;e?ll be using t*e "N bit from t*is timer to trigger trigger t*e message instru#tion. 3= Net enter t*e folloing rung of logi# for t*e message instru#tion. All 8ariables in t*is rung *a8e already been de#lared.
5= +li#4 t*e elli%sis elli%sis to #onfigure t*e message instru#tion. instru#tion. )*e elli%sis is t*e ( dots net to t*e #ontrol element /= )*e message instru#tion is 8ery 8ersatile and t*ere are a lot lot of o%tions. )*e message instru#tion #an be used to initiate blo#4 transfers read or rite module status and e8en reset an ele#troni# fuse on an out%ut module. 0or t*is eer#ise eer#ise e are :ust :ust interested in in a +$P data table read. +$P <+ontrol and $nformation Proto#ol= is t*e means by *i#* +ontrol,ogi %ro#essors nati8ely e#*ange data t*roug* t*e message instru#tion.
ControlLogix Maintenance and Troubleshooting – Page # 123 123
= Net you are are as4ed for t*e sour#e and t*e destination destination element. )*e sour#e is t*e name of t*e t*e tag from *i#* e are getting data and t*e destination is t*e memory lo#ation in *i#* t*is data is to be %la#ed. e#all t*at e are getting data from t*e msg'utbo tag of t*e remote %ro#essor and e ill be %la#ing t*at data into into our on msg$nbo tag. )*e lengt* ill be :ust one element.
= ;e *a8e told t*e %ro#essor *at t*e sour#e and destination tags are *oe8er t*is P,+ #ould reside reside on a netor4 of many +ontrol,ogi systems. ;e *a8e not yet s%e#ified *at %at* t*e #ontroller needs to ta4e to #onne#t to t*e msg'utbo tag. Go to t*e ?#ommuni#ation? tab and e?ll dis#uss *o to #onfigure t*e #ommuni#ation %at*.
ControlLogix Maintenance and Troubleshooting – Page # 124 124
9= ,oo4 again again at our #ommuni#atio #ommuni#ation n %at*F 0rom our P,+ <)o% left= e must first #onne#t to t*e ba#4%lane. )*e net ste% ould be to #onne#t to our on 2t*ernet module F &te. "< To get to:
Speci*y:
&te. #< ,or #odule on:
Speci*y:
)*e Ba#4%lane
1
)*e Ba#4%lane
Slot
"01 Port <'f #ontroller=
!
"01 Netor4
"01 Address
+ontrolNet Port of +NB
!
+ontrolNet Netor4
Node
2t*ernet %ort
!
"H Netor4
Node
"H %ort +H A <"H$'=
!
2t*ernet Netor4
$P Address
"H %o %ort +H B <"H$'=
(
;ote !or ste. # $ou can also also use the !ollo+ing !ollo+ing !or%ats< !or%ats< address<.ort9 address<.ort9 ,;& na%e9 or or ,;& na%e<.ort=
Using t*is #*art you ill #ome u% it* t*e %at* 1E;E7E16781980852E1E0
ControlLogix Maintenance and Troubleshooting – Page # 125 125
1=Ho did e get t*is %at* 1. 0rom t*e %ro#ess %ro#essor or you are %rogrammin %rogramming g you must first first #*oose ?1? to get to t*e ba#4%lane in ste% A. !. Ste% B tells us to s%e#ify t*e slot number e need to go to net. )*is ould be t*e slot for t*e 15/-2NB) module. ust bro+se bro+se to the .rocessor? .rocessor?
11=ou %at* ill a%%ear as s*on
1!=A%%ly your #*anges t*en %ress 'J. 1(="onload to your %ro#essor and %ut t*e %ro#essor into ?run? or ?remote run? mode.
ControlLogix Maintenance and Troubleshooting – Page # 126 126
13=$n t*e +ontroller )ag database %o%ulate t*e t*e msg'utbo tag it* a 8alue. ou must be in ?&onitor )ags? to in:e#t a 8alue t*en %ress enter.
15=$f your &SG instru#tion is or4ing %ro%erly and if t*e msg'utbo tag is set u% %ro%erly in t*e remote %ro#essor you s*ould re#ei8e t*is 8alue in your msg$nbo.
1/='%en t*e #ontrol element for t*e message instru#tion and you ill see t*e t*e t* e status bits #*ange as t*e &SG instru#tion ee#utes. 0or a more detailed e%lanation of t*ese bits and error #odes you mig*t find in t*is #ontrol element refer to t*e *el% file in S,ogi 5. Not all status words are shown below!
1= $f you as using t*is for an a%%li#ation you ould rite logi# net to %o%ulate t*e msg'ubo tag it* information you need anot*er #ontroller to re#ei8e "sing your own tag names!
ControlLogix Maintenance and Troubleshooting – Page # 127 127
ControlLogix Maintenance and Troubleshooting – Page # 128 128
Trending
)rending is used to gra%* data o8er time. )*is #an be eit*er an analog signal signal or a dis#rete signal. ou are alloed %ens %er trend #*art it* a maimum of !55 trending #*arts %er %ro:e#t. )*is is a sim%le sim%le %ro#edure t*at ill guide you t*roug* t*e #reation of a trend #*art in your %ro:e#t.
ne+ trend ?.?. 1= ig*t ig*t #li# #li#4 4 t*e t*e trends folder in t*e +ontroller 'rgani6er ;indo and sele#t ?ne+
!= $n t*e ne trend dialog indo name your trend and add a des#ri%tion. 0or t*is eam%le e ill ill lea8e t*e sam%le %eriod at default. +li#4 ;ext ? ?.?.
ControlLogix Maintenance and Troubleshooting – Page # 12' 12'
(= +*oose t*e t*e tag you is* to trend trend t*en %ress %ress t*e "dd ? ? button. ou ill noti#e your tag is no in t*e list of tags to trend. +li#4 inish.
3= Net +li#4 t*e ?un? button in t*e u%%er left #orner of t*e trending trending #*art.
ControlLogix Maintenance and Troubleshooting – Page # 13( 13(
5= ou ill see your #*art start start tra#4ing. ou ill noti#e t*e #*art runs 8ery fast. ou only *a8e a time %eriod of ! se#onds #urrently being dis%layed from t*e left to t*e rig*t side of t*e s#reen.
/= ;e are going to #*ange t*is to to ! minutes so t*e #*art ill run mu#* sloer. )*is ill gi8e us a better indi#ation of *at t*e signal is doing o8er time. )*e O ais runs left to rig*t <)*is is )ime= and t*e S#ale runs from bottom to to%. )o re#onfigure t*e O ais rig*t #li#4 on t*e #*art and Pro.erties?. #*oose ?Chart Pro.erties
ControlLogix Maintenance and Troubleshooting – Page # 131 131
= 'n t*e O tab #*ange #*ange t*e time time s%an s%an to 7 #inutes. )*en %ress "..l$ and /@ .
= ou ill see see your #*art is is no tra#4ing o8er a ! minute minute time %eriod.
9= ou ill see see t*e s#ale is is not refle#ting refle#ting t*e full range %ossible for t*e analog signal. )*is is be#ause t*e #*art defaults to automati# mode. $t ill ta4e t*e minimum and maimum 8alue and ad:ust t*e t*e s#ale a##ordingly. ;e ill a##ount for t*is in t*e net ste%.
ControlLogix Maintenance and Troubleshooting – Page # 132 132
1=ig*t #li#4 on t*e #*art and go ba#4 to ?Chart Pro.erties ?
11='n t*e ? Ais? tab you ill ill noti#e ( o%tions. Automati# &ode is *at e ere running by default. )*is ad:ust t*e s#ale based on a#tual data. ou #an also #*oose %reset if you li4e and enter a different min7ma 8alue for ea#* %en on t*e %ens tab. )*e last o%tion o%tion is to #*oose ?+ustom?. )*is ill let us lo#4 in our on 8alues for t*is %arti#ular trend #*art. ;e ill use #ustom for t*is eam%le and enter as t*e minimum minimum and 1 as t*e maimum. )*ese 8alues #an be ad:usted based on t*e data you are getting from your analog sour#e. Press "..l$ t*en /@ *en *en finis*ed.
ControlLogix Maintenance and Troubleshooting – Page # 133 133
1!=ou ill see t*e s#ale on t*e #*art is no lo#4ed in it* t*e #ustom 8alues you entered en tered from t*e ?A "xis? tab.
1(=By #li#4ing any*ere on t*e #*art a 8alue bar ill a%%ear. )*is 8alue bar ill indi#ate t*e ea#t 8alue of t*e tag at t*at moment in time.
13=$f you #li#4 on an area of t*e #*art and drag your mouse you ill dra a bo around a #ertain area of t*e gra%*. ;*en you release your mouse you ill ill be 6oomed in on t*at %arti#ular %arti#ular area of t*e #*art. ou ill 4no you are in 6oom mode by a magnifying glass on your mouse #ursor.
ControlLogix Maintenance and Troubleshooting – Page # 134 134
15=)o get out of Voom mode rig*t #li#4 on t*e #*art and Undo Voom7Pan.
1/=Net you must restart your #*art by un-%ausing t*e gra%*.
1=our #*art s*ould no be tra#4ing. $f you is* to #*ange t*e #olor of your %en "ouble-+li#4 t*e %en in t*e u%%er left *and #orner of your #*art. A %allet ill a%%ear. +*oose your ne #olor from t*e %allet t*en %ress /@?
ControlLogix Maintenance and Troubleshooting – Page # 135 135
1=ou 4no 4no t*e basi# met*od for setting u% a trending #*art. At t*is time ta4e ta4e a fe minutes to e%lore t*e ot*er o%tions you *a8e for t*e trending #*art. ou #an add more %ens if you li4e li4e under t*e ?%ens? tab. tab. )*is ill allo you to tra#4 more addresses. addresses. ou #an also #*ange t*e idt* of ea#* %en ma4e t*em 8isible 8isible or in8isible in8isible et#.... )ry to #*ange t*e t*e #olor of t*e ba#4ground.... $f you *a8e Duestions as4 t*e instru#tor.
ControlLogix Maintenance and Troubleshooting – Page # 136 136
ControlLogix Maintenance and Troubleshooting – Page # 137 137
!ands $n Trou)les(ooting our instru#tor ill guide you t*roug* t*e folloing troubles*ooting utilitiesF Sear#*70ind +ross eferen#e )rending 2tensi8e time ill be %ro8ided for you to %ra#ti#e tra#ing don out%uts #ross referen#ing t* roug* a %lant %rogram and learning *i#* in%uts are reDuired to energi6e 8arious out%uts.
ControlLogix Maintenance and Troubleshooting – Page # 138 138
ControlLogix Maintenance and Troubleshooting – Page # 13' 13'