Home

1756-QS001 - Literature Library

image

Contents

1. A B Conveyor_Direction BOOL C Conveyor_Speeds Motor_Start_Delay MyData_1 D MyData_2 MyData_3 MyData_4 MyData_5 Ft MyData_6 Tank1 Pressure Temp Float AgistatorSpeed Decimal Ingredient_A Decimal Ingredient_B Decimal Item Description A Tag stores data There is no fixed data table or numeric format for data addresses The tag name is the address You create the tags that you want to use B Data type defines the type of data that a tag stores such as a bit integer floating point value or string C Array defines a block of data file The entire block uses the same data type It can have 1 2 or 3 dimensions D Structure combines a group of data types into a re usable format template for tags Use a structure as the basis for multiple tags with the same data layout E Member describes an individual piece of data within a structure F User defined data type defines your own data structure A user defined data type stores all 40 the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type Publication 1756 QS001E EN P October 2009 As you create user defined data types follow these guidelines Guideline Consider the pass through of descriptions Details See User defined Data
2. s AB_ETH 1 Ethernet f 192 168 1 200 1756 ENBT A 1756 ENBT A Backplane 1756 A10 4 f 00 1756 L55 4 LOGIXSS55 1756 L55 4 1756 M14 01 1756 ENBT A f 02 1756 L55 4 LOGIX5555 1756 L55 A 1756 M23 F F 5 To download the project click Domoa If the process failed to download to the controller The revision of the offline project and controller s firmware are not compatible 1 Choose Mma Look for Firmware Update Files In C Program Files ControlFLASH Revision Update Type File 12 25 Upgrade 0001 000E 0038 5563_INT_R 12 24 Upgrade 0001 000E 00385563_INT_R 12 22 Upgrade 00015000E5 003855563_INT_R 12 17 Upgrade 00015000E5 003855563_INT_R 121A Linnrade ON01 0NNF ONAALSRRA R12 1 E Installed Firmware Update File Directory C Program Files ControlFLASH 2 Select the revision for the controller 3 Choose and then Yes Publication 1756 0S001E EN P October 2009 31 Chapter 1 Select the Operating Mode of the Controller Program and Test a Simple Project To execute or stop executing the logic in a controller change the operating mode of the controller 1 Determine which mode you want for the controller No Choose Program mode Do you want to execute the logic in the controller c p pe Do you want the logic to control the output
3. 26 Publication 1756 QS001E EN P October 2009 Program and Test a Simple Project Chapter 1 Show or Hide Alias Information Show or hide alias information for a tag 1 From the Tools menu choose Options 2 Select the Ladder Editor Display category LI Categories Application Font Color Tag Display Ladder Editor Display Font Color SFC Editor Element Naming Display Font Color 3 Check or uncheck Show Tag Alias Information 4 Click OK Change the appearance of the Ladder Editor r Rung Display Justification Left Maximum Lines Publication 1756 0S001E EN P October 2009 I Show Rung Numbers V Show Rung Comments 100 Instruction Display I Show Main Operand Descriptions Justification Center zj Maximum Lines 20 M Show Tag Alias Information 27 Chapter 1 Program and Test a Simple Project Establish a Serial Connection to the Controller RSLinx Classic software handles communication between Logix5000 controllers and your software programs such as RSLogix 5000 software To communicate with a controller for example download monitor data configure RSLinx Classic software for the requited communication Logix5000 Controller _RSLinx Classic Software RSLogix 5000 Software lt lt p Z lt Q RSLinx Gateway RSWho 1 File
4. E SSeS MyTaq_1 15 This marker yTag_1 14 MyTag_1 15 Y gl TJA MainRoutine 4 J rT TIPK MainRou Pack_Ca 4 gt Means Description I Original logic When online RSLogix 5000 software continues to show you the original logic Relay ladder Function block Structured text SFC while you edit a copy of the logic pending edit A green border or side rail shows which logic the controller is currently running In function block structured text or SFC use the buttons above the routine to switch between different views jalg A aa HI WS 15 x Ly Relay ladder Function block Structured text SFC 120 Pending edits This is a copy of the original logic for you to edit Any changes remain on your computer until you accept the edits e In relay ladder you edit individual rungs within a routine e In function block structured text or SFC you edit an entire routine Publication 1756 QS001E EN P October 2009 Program a Project Online Chapter 8 This marker Means Description Relay ladder Test edits When you accept your pending edits the software downloads them to the controller and marks them as test edits but the controller continues to execute the original logic You then manually switch execution to the test edits or back to the sore original logic test and untest the edits Dg D If you Then Test the edits e Execution
5. MainTask a Ese MainProgram Controls fill and pack line Ea MainRoutine Main routine that calls the execution of all other routines in tl i Pack_Cartons Packages product in carton according to package size mE Packages product and then packs it 8 to a carton Package Step Puts product into package Product_In_Package Transition amp Pack_In_Carton Step Packs product into 8 size carton L Product_In_Carton Transition Maintains sugar level in sugar hopper When the sugar hopper gets low refills the hopper low level LS Open the inlet Line 4 Ei Line 5 Line 6 cm Run_Conveyor Turns the conveyor on and off Unscheduled Programs x Close Help 3 To go to the location of a element in logic select the element and click Go To Forcing an 1 0 Value Use a force to override input data or logic when you need to e test and debug your logic e check wiring to an output device e temporarily keep your process functioning when an input device has failed ATTENTION Forcing can cause unexpected machine motion that could injure personnel Before you install disable or remove a force determine how the change will effect your machine or process and keep personnel away from the machine area Enabling O forces causes input output produced or consumed values to change If you remove an individual force forces remain in the enabled state If forces are enabled and yo
6. Import the New Comments 1 In RSLogix 5000 software from the Tools menu choose Import f RSLogix 5000 Pass_Through_Descriptions 1756 L63 File Edit Yiew Search Logic Communications Tools Window Help Options Security b Translate PLCS SLC Export Motion Direct Commands Ef ControlFLASH 2 Select the file that has the comments you entered the export file Tmport x Look in a Projects ek FE MyProject_1 Tags CS File name M yProject_1 Tags CSY Files of type RSLogix 5000 Import Export Files CSY Y Cancel Help 3 Click Import 4 Check the Errors tab for the results of the import operation To refresh the view of the ladder logic and see the comments close and open the routine Totals a 0 tag s created 0 tag s overwritten on collision 0 description s imported 1 new comment s imported 0 comment s overwritten on collision Complete 0 error s 0 warning s Errors 104 Publication 1756 QS001E EN P October 2009 Document a Project Chapter 6 Comments in a Function Block Diagram or SFC Use Text boxes to add notes about the diagram or chart in general or a specific element Or use a text box to capture information that you will use later on as you develop the project Set the Word Wrap Option Use the word wrap option to control the width of the text box as you type You set the option for function block diagrams and SFC
7. jsource MyTag te bjss inser Detauls Save Defauts DERE 3 Click OK 86 Publication 1756 QS001E EN P October 2009 Program a Project Offline Chapter 5 Enter a Sequential Function Chart A sequential function chart SFC lets you define a sequence of states steps through which your machine or process progresses The steps can execute structured text call subroutines or simply serve as signals for other logic 4 Slol lt e 8 aAA sre Badii p i N af Action_000 4 B Fan 1 C D Tran_001 Assembly Done E Item Description A Step is major function of your process It contains the actions that occur at a particular time phase or station B Action is one of the functions that a step performs To program the action either enter structured text or call a subroutine C Transition is a true or false condition that tells the SFC when to go to the next step To specify the condition either enter a BOOL expression in structured text or call a subroutine D Branch executes more than 1 step at the same time simultaneous or choose between different steps selective E Wire connects one element to another anywhere on the chart Publication 1756 0S001E EN P October 2009 87 Chapter5 Program a Project Offline Enter an SFC 1 Drag elements from the toolbar to the chart e A green dot shows a point to which the element will automatica
8. Description im I Tag Type Base Alias Produced fi Consumers Consumed Data Type Boot fel Scope MainProgram X 6 Click OK Select an Existing Tag 1 Double click the tag area 2 Click the w RH MainProgram Routine _B 3 Select the desired tag Publication 1756 0S001E EN P October 2009 Program a Project Offline Chapter 5 91 Chapter5 Program a Project Offline To select a bit click the w Local4 1 D NT Boolean Inputs E ag 2 3 fa 5 7 f89_MO g e s 10 11 12 13 14 15 J Local 4 0 Dat INT Outputs J MachFaultt_Ack BOOL Controler Program Show Show All 4 To change the scope of tags in which to look click the appropriate button Verify a Project As you program your project periodically verify your work fe SSe E MyData_8 0 c lt _ um e e MyData_1 0 MyData_1 1 1 zi i gt i MainRoutine BE 4l et pepr WEE Rung 0 XIC Operand 0 Missing operand Rung 0 OTE Operand 0 Reference tag not found i j i of program Program_B program Program_B Bit Reference Detected MainProgram MainRoutine Rung 2 OTE MainProgram MainRoutine Rung 1 OTE Complete 2 error s 2 warning s kszo Ae Pe TO 92 Publication 1756 QS001E EN P October 2009 Program a Project Offline Chapter 5 Item Description Verify Check a routine or project for programming errors or incomple
9. General Connection Module Info Configuration Alam Configuration Calibration Backplane Channel 0 2 3 4 z Input Range 10v to 10V 7 Sensor Offset 0 0 m Scaling f High Signal High Engineering Notch Filter 60Hz El 10 0 ee 00 Digital Filter 0 ms Low Signal Low Engineering 10 0 Y 10 0 ii ATs 100 kb Publication 1756 0S001E EN P October 2009 49 Chapter2 Organize a Project Notes 50 Publication 1756 QS001E EN P October 2009 Chapter 3 Program Add On Instructions With version 16 of RSLogix 5000 programming software you can design and configure sets of commonly used instructions to increase project consistency Similar to the built in instructions contained in Logix5000 controllers these instructions you create are called Add On Instructions With Add On Instructions you can e insert your own instruction e copy an Add On Instruction definition from another RSLogix 5000 project e import an Add On Instruction definition from another RSLogix 5000 project What You Need You need these items to complete the tasks in this manual e Personal computer running RSLogix 5000 software version 16 or later e A layout of the system for which you are creating a project Follow These Steps 4 Insert an Add On Instruction page 52 5 Copy an Add On Instruction definition page 53 6 Import an Add On Instruction definition page 54 7 Access a param
10. You need these items to complete the tasks in this manual e Personal computer running RSLogix 5000 software version 16 or later e A layout of the system for which you are creating a project Publication 1756 QS001E EN P October 2009 11 Chapter 1 Program and Test a Simple Project Before You Begin To configure and program a Logix5000 controller you use RSLogix 5000 software to create and manage a project for the controller A project is the file on your workstation or server that stores the logic configuration data and documentation for a controller e The file for the project has an ACD extension e When you create a project the project name is the same as the name of the controller e The controller name is independent of the project name You can rename either the project name or the controller name In an open project there is this information fs RSLogix 5000 My_Project_1 1756 163 Ef File Edit view Search Logic Communications T alsa S e gt Offline J E RUN A No Forces b aul No Edits ar ie 3 Motion Groups E Add On Instructions Conveyor _Control Motor_Starter Simulate_Feedback Simulation _DT_1st Under_Developement_Insertion_Sc amp Data Types E User Defined Op Strings i Fe a Item Description A Name of the project If you rename the project or controller both names are shown B Name of the controller C The controller organizer is a graphical overview
11. e Slot number of the controller e The path where the project will be stored 4 Click OK Publication 1756 QS001E EN P October 2009 Program and Test a Simple Project Chapter 1 Conventions for Names Throughout a Logix5000 project you define names for the different elements of the project such as the controller data addresses tags routines and I O modules As you enter names follow these rules e Only letters numbers and underscores _ e Must start with a letter or an underscore e lt 40 characters e No consecutive or trailing underscores e Not case sensitive Add Your 1 0 Modules To communicate with an I O modules in your system you add the modules to the I O Configuration folder of the controller The properties you select for each module defines the behavior of the module TIP The screens shown are representative of three types of controllers other types are available but are not shown here 1 Right click the I O Configuration folder and choose New Module CompactLogix ControlLogix Controller Controller E Controller My_Project_1 Tasks H E Motion Groups 0 Motion Groups dd On instructions Add On Instructions 05 Data Types P oan utes Trends See amp 1 0 Configuration 1756 Backplane 1756 A10 Backplane CompactLogix System fa 2 1756 L63 My_Project_1 ff 1769 L35E My_Project_2 J 4 1756 MODULE Pushbuttons_Latched P 1769 L35 Ethernet Port LocalENB as Ethern
12. 2 Click Ladder Editor 3 Check these checkboxes Categories Application ditor preferences Font Color T Insert Mode Tag Display adder Editor J Auto Rung Verification Display V Enable Quick Key FontColor SFC Editor IV Show Quick Key Configuration Element Naming 5 Configure Display a To assign a key to an element 1 Click a 2 For the desired key select the element 3 When you have assigned the desired keys click s Quick Key Configuration f x Close Help Assign Key Unassign Key Eek rT a a E r oe P 72 Publication 1756 QS001E EN P October 2009 Program a Project Offline Chapter 5 Export Import Ladder Logic If you want to re use ladder logic from another project simply export the logic to an L5X file and import it into the required project The L5X file contains all that you need for the logic except I O modules i Project A mix L5X file BH EAe rungs Export Stat 7 Reset Buton a on oo ags Local if bata o ocal ata F SR data t i d Seer SNO Stat PB_Store_Bit Cee ype S SFS Output Bit Startup_Reset aon Project B ioixi af Run The End Run a EE When You Import Rungs When you import rungs RSLogix 5000 software shows a list of the tags and user defined data types that go along with the rungs Use the list to manage the tags and data types tha
13. 2 To show a list of cross references to a tag right click and choose Go To Cross Reference Paint shop cooling fan MyTag_1 1 MyTag_1 2 Paint shop cooling fan MyTag_2 0 Publication 1756 0S001E EN P October 2009 129 Chapter7 Troubleshoot the Controller 3 To go to an instruction double click it ip Type T ag 7 Scope M ainProgram 7 Show Show All 7 Name MyTaq_2 0 Refresh E Program 7 Routine Location Reference B Destrative MainProgram 5 MainRoutine Rung 2 MyTag_2 0 MainProgram EmainRoutine Rung 2 MyTag_2 0 MainProgram B MainRoutine Rung 3 MyTag_2 0 By Tag A Tay Hierarchy A Y means this instruction changes the value of the tag Browse Logic To browse the logic of a routine for a specific item such as an instruction element tag or comment use the Browse Logic window 1 In RSLogix 5000 software from the Search menu choose Browse Logic 4 RSLogix 5000 My_Project_1 1756 L63 MainProgram Refill_Hopper File Edit View Search Logic Communications Tools Window Help Find Ctrl F Replace Ctrl H GoTo Ctrl G Cross Reference Ctrl E Find Next Fa Find Previous Shift F3 P D Next Result F4 130 Publication 1756 QS001E EN P October 2009 Troubleshoot the Controller Chapter 7 2 Expand and collapse entries to see or hide its contents x Find Language Element Description
14. Routine Name Refill_Hopper a MainRoutine 2 From the Tools menu choose Export f RSLogix 5000 Pass_Through_Descriptions 1756 L63 File Edit Yiew Search Logic Communications Tools Window Help Options Security b Translate PLC5 SLC Import Motion Direct Commands Ef ControlFLASH 102 Publication 1756 QS001E EN P October 2009 Document a Project Chapter 6 3 Note the location and name of the export file Export OOOO I x Save in Projects gt c EA Samples File name MyProject_1 Tags CS Save as type RSLogix 5000 Import Export File CSW Cancel Help Tags None X Logic Comments fan x 4 Choose what to export 5 Click Export Edit the Export File 1 In Microsoft Excel software open the export file 2 Enter rung comments i MyProject_t Tags cs o xi A B C D TYPE SCOPE ROUTINE COMMENT This routine calls the execution of all other RCOMMENT MainProgram MainRoutine routines NOP OWNING_ELEMENT LOCATION Ifthe conveyor is not turning RCOMMENT MainProgram MainRoutine on or off check this routine RCOMMENT program that routine that contains comments for the leave rung contains the rung the rung rung blank number 4 Save and close the file keep it in the CSV format Publication 1756 0S001E EN P October 2009 103 Chapter6 Document a Project
15. Search for All Occurrences of a Element 1 Open the RSLogix 5000 project that you want to search 2 From the Search menu choose Find Find in Routines Find What wl Text Only 7 Limit To Find Where AI Routines 0 IV Wrap Direction P Match Whole Word Only C Up Down Find Within Function Block Diagrams Ladder Diagrams Sequential Function Charts Structured Text Components 128 Function Block Diagrams Sequential Function Charts Structured Text Options Instruction Main Operand Comments Mlinstruction Operands Instructions MRung Comments MRung Types Publication 1756 QS001E EN P October 2009 Troubleshoot the Controller Chapter 7 3 Specify the search criteria a Type the characters to find To browse for a tag click select the tag and click OK To select a bit number click the w My_Proiect_ controller Local 4 AB 1756_DI C 0 Local 4 1 AB 1756_DI 0 Local 4 l Fault DINT Local 4 Data ha DINT b Choose Text Only c Choose All Routines d Select each language and check the options in which to search To display this section of the dialog box click Find within gt gt 4 Click Find ll Go to an Instruction 1 To go to an instruction double click it Searching through MainProgram MainRoutine Main Operand Comments Main Operand Comments Main Operand Comments
16. amp Sugar High high level LS THEN Controls the speed of the recirculation pump The speed depends on the temperature in the tank IF tank temp gt 200 THEN Sugar Inlet 0 close the inlet IF bar _code 65 A THEN Gets the number of elements in the Inventory array and stores the value in the Inventory Items tag SIZE Inventory 0 Inventory Items Publication 1756 0S001E EN P October 2009 107 Chapter6 Document a Project Language Switching With RSLogix 5000 software version 17 you have the option to display project documentation such as tag descriptions and rung comments for any supported localized language You can store project documentation for multiple languages in a single project file rather than in language specific project files You define all the localized languages that the project will support and set the current default and optional custom localized language The software uses the default language if the current language s content is blank for a particular component of the project However you can use a custom language to tailor documentation to a specific type of project file user Enter the localized descriptions in your RSLogix 5000 project either when programming in that language or by using the import export utility to translate the documentation off line and then import it back into the project Once you enable language switching in RSLogix 5000 software you ca
17. dd Red E Tanks 0 Ingredient_B BOOL ank Add Blue m i Tanks 1 Tank West rota m H Tanks 1 Level DINT wes est Tank Murent Liters e iE H Tanks 1 Pressure DINT fest Tank Kpa T anksI11 Tern RFAI iact Tank Nenrens F Item Description A Pass through of descriptions are automatically created when possible RSLogix 5000 software looks for an available description for a tag element or member e Descriptions in user defined data types ripple through to the tags that use that data type e Description of an array tag ripples through to the elements and members of the array B Append descriptions to base tags RSLogix 5000 software automatically builds a description for each member of a tag that uses a user defined data type It starts with the description of the tag and then adds the description of the member from the data type C Edit pass through descriptions so that you can use the data type and array description as a 98 basis for more specific descriptions In this example Tank became West Tank Publication 1756 QS001E EN P October 2009 Document a Project Chapter 6 RSLogix 5000 software uses different colors for descriptions A description in this color Pass through description Black Manually entered description Turn Pass Through and Append Descriptions On or Off 1 In RSLogix 5000 software from the Tools menu choose Options f RSLogix 5000 My_Project_1 1756 L63 MainProgram Run_Conveyor 34
18. publication 1768 UM001 e 1769 CompactLogix System User Manual publication 1769 UM007 e ControlLogix System User Manual publication 1756 UM001 e DriveLogix Controller User Manual publication 20D UM002 e GuardLogix Controllers User Manual publication 1756 UM020 e SoftLogix5800 System User Manual publication 1789 UM002 Integrate a specific Logix5000 controller within a system of controllers I O modules and other devices EtherNet IP Modules in Logix5000 Control Systems User Manual publication ENET UM001 ControlNet Modules in Logix5000 Control Systems User Manual publication CNET UM001 Control devices over an EtherNet IP network Control devices over a ControlNet network DeviceNet Modules in Logix5000 Control Systems User Manual publication DNET UM004 Control devices over a DeviceNet network You can view or download publications a http www tockwellautomation com literature To order paper copies of technical documentation contact your local Rockwell Automation distributor or sales representative Publication 1756 QS001E EN P October 2009 Chapter 1 Program and Test a Simple Project This chapter introduces the basic programming sequence for a Logix5000 controller e It covers the steps required to develop and test a ladder or function block diagram e The examples in the chapter show how to control a digital or analog output based on the state of a digital or analog input What You Need
19. Add a Faceplate to Microsoft Excel Software 83 Biter Structuted Pexticcictiesay ithe sanos kaine eae 84 Browse Por antlnsiuchoa each niyo ina y ane yee an 85 Assign Operands to an Instruction sisted wears wie es ee 86 Enter a Sequential Function Chats otiwi4evees 4 ia ated reat 87 Bat SI oue geared te he hota vip gs estas So aE ae aaah 88 Assign Operands a 5 5 5 5 nea ARES FEES SERRE SAIS Re 4 89 Creata Ta irs ch ne aie e otal ee Rk e a sl anes Oe pease 90 S l ct an Existing Mae is pyc ee CoG pasa we ie oon a 91 Venty a Projectes Patent chile Chet GRE ln a Sa ths Bed west PE a ah 92 G idelines for aes win awa ae aay ek a rE ETEA 94 Chapter 6 What You Need intial fate ied 4 Sick hd cea ee ea od ce 97 Foll w These St ps receo teste ai ee a AB AS 97 Uset d fined Data Types iisi ao Aiia To AEE E a 98 Turn Pass Through and Append Descriptions On or Off 99 Paste a Pass Through Descriptioity 2 vice aed nee rea as 100 Add Rung Comments 356s ek hb Mes Bie oa ees 101 Rung Comments Using Microsoft Excel ya criae natincae ee oor 102 Export the Existing Comments i cjucn rea eee ook he 102 Edit the Export Biles i e ea debien e At Noten eich 4 103 Import the New Comments oui iiica caleea ety yh aback ae teed 104 Comments in a Function Block Diagram or SFC 105 Set the Word Wrap Opiottcnnctess rovidannad tees tees 105 Add 4 Lext BOX y 622455 criti od eA wea ENE ee es 106 Comments in Structure
20. Dim 2 4 _ 3 E Define Your Routines Once your project has the required programs you have to define and create the routines for each program Controller Quick_Start_1 Controller Tags J Controller Fault Handler I Power Up Handler B E Tasks MainTask A cB MainProgram A Program Tags HA MainRoutine Routine_B a Routine_C B of Program_B A Program Tags Ea Main_Routine Routine_B LI Unscheduled Programs A Item Description A Routine provides the executable code logic for a program similar to a program file in a PLC or SLC controller B Main routine is required each program e When the program executes its main routine automatically executes e Use the main routine to control the execution of the other routines in the program e To call execute another routine subroutine within the program use a Jump to Subroutine JSR instruction C Subroutine is any routine other than the main routine or fault routine To execute a Publication 1756 0S001E EN P October 2009 subroutine use a Jump to Subroutine JSR instruction in another routine such as the main routine 43 Chapter2 Organize a Project Define a Routine for Each Section of Your Machine or Process To make your project easier to develop test and troubleshoot divide it into routines subroutines 1 Identify each physical section of your machine or process 2 Assign a routine for
21. Edit view Communications Station DDE OPC Security Window Help 2 amp 18 Gk amp I Autobrowse Workstation USMAYHMILLS 5 Linx Gateways Ethernet Driver establish communication over a specific network AB_DF1 1 DF1 lt f G a AB_ETH 1 Ethernet lt E 192 168 1 200 1756 ENBT A 1756 ENBT A 192 168 1 201 1756 ENET B 1756 ENET B Backplane 1756 A10 4 fA 00 1756 L55 4 LOGIXSS55 1756 L55 4 1756 M14 4 LOGIX5555 01 1756 ENBT A 1756 ENBT A 02 1756 L55 4 LOGIXS555 1756 L55 4 1756 M23 4 LOGIX5555 3 LOGIX5563 1756 L63 4 LOGIX5563 04 1756 IB161 4 1756 IB161 4 DCIN ISOL 05 1756 OB16D 4 1756 OB16D A DCOUT DIAG D E ae Path communication route to a device To define a path you expand a driver and select the device G2 03 1756 Use a serial cable to establish a point to point connection between the serial ports on your computer and controller WARNING If you connect or disconnect the serial cable with power applied to this module or the serial device on the other end of the cable an electrical arc can occur This could cause an explosion in hazardous location A installations Be sure that power is removed or the area is nonhazardous before proceeding 1 Connect a serial cable to your controller and computer Logix5000 Controller 1756 CP3 or 1747 CP3 serial cable 28 Pub
22. File Edit View Search Logic Communications Tools Window Help Security Ls b Translate PLCS SLC Import Export Motion Direct Commands Ef ControlFLASH 2 Select the Display 3 Turn on check or turn off uncheck the desired options Workstation Options x Categories Application Change general appearance for RSLogix 5000 FORCE Tag Description Display Width 20 characters ont Color Tag Editor Display Tag Description Display Justification Center T para og M Show Pass Through Descriptions hi ot or IV Append To Base Tag Descriptions SFC Editor I Show Grid Element Naming IV Show Sheet Boundaries Display Font Color IV Show Full Drag i ERM Editar Publication 1756 0S001E EN P October 2009 99 Chapter 6 Document a Project Paste a Pass Through Description To use a pass through description as the starting point for a more specific description 1 Right click the pass through description and choose Paste Pass Through Controller Tags Pass_Through_Descriptions controller p joj x Scope Pass Through Desc Show Show All 7 Sort Tag Name z Description Tank Tank I Cut Ctrl x E Copy Ctrl C Paste Ctrl y Delete Del y L I rt hd a Tanks E Tank H Tanks 0 Tank l Tanksf Tank 100 Publication 1756 QS001E EN P October 2009 Document a Proje
23. Motion control using structured text State machine operations Sequential function chart SFC Complex mathematical operations Specialized array or table loop processing ASCII string handling or protocol processing Publication 1756 0S001E EN P October 2009 Structured text 45 Chapter 2 Organize a Project Divide Each Routine Into More Meaningful Increments If a routine uses this language Ladder logic Structured text Then Break up large routines into several smaller routines routine Example To continuously execute several complex boolean operations create a separate routine for each operation Function block diagram FBD Within the FBD routine make a sheet for each functional loop for a device such as a routi motor or valve ne a sheet To control 4 valves where each valve requires feedback that it is in its commanded position make a separate sheet for each valve Sequential function chart SFC 46 Break the SFC into steps ae routine step step step To perform the following sequence 1 Fill a tank 2 Mix the ingredients in the tank 3 Empty the tank make each section fill mix empty a separate step Publication 1756 QS001E EN P October 2009 Organize a Proj
24. Output Reference a gt ICON Input Wire Connector oO OCON Output Wire Connector E Text Box Text Box SQ Process H Drives HE Filters HEJ Select Limit HE Statistical v Show Language Elements By Groups New Add On Instruction Help gt EHEHEHEHE lt l Publication 1756 QS001E EN P October 2009 Program a Project Offline Chapter 5 3 Drag the element to the desired location Ki SEL Esen ssun snes MUX gt 4 gt Favorites X Process X Drives _X Fillers Select Limit alele DI Bl gt By shee f eA OO Connect Elements To connect elements click corresponding pins green dot valid connection point ALM SCL P10e RrPs Pose setP Lone 4 gt Favortes Process Drives AFiters A SelectLint Statistica aleia o e gt E Publication 1756 0S001E EN P October 2009 79 Chapter5 Program a Project Offline Resolve a Loop To resolve a loop define a wire as an input right click the wire and choose Assume Data Available al SEL Esen ssun snes MUX gt Stat 4 gt Favortes K Process X Drives X Fillers SelectiLimit alel l D 21 5 Sheet 1 vi of4 Delete Element Properties Add Sheet Add sheets as need to a function block diagram 1 Click New Sheet 2 Type a name for the sheet alela Bl Bl BF Sheet 2 ot4
25. Program a Project Offline Where Is Name Name that identifies this specific tag Element Subscript or subscripts that point to a specific element within an array e Use the element identifier only if the tag or member is an array e Use one subscript for each dimension of the array For example 5 2 8 3 2 7 To indirectly dynamically reference an element use a tag or numeric expression that provides the element number For example MyArray Tag_1 MyArray Tag 2 1 MyArray ABS Tag_ 3 Member Specific member of a structure e Use the member identifier only if the tag Is a structure e f the structure contains another structure as one of its members use additional levels of the Member format to identify the required member Bit Specific bit of an integer data type SINT INT or DINT Index To indirectly dynamically reference a bit of an integer use a tag or numeric expression that provides the bit number For example MyTag Tag_1 MyTag Tag 2 1 MyTag ABS Tag _4 Create a Tag 1 Double click the tag area SIA o Ble al shee ee MyData_9 2 Type a name for the tag and press Enter Use underscores _ in place of spaces 3 Right click the tag name and choose New 4 Type the data type To browse for a data type or assign array dimensions click E 90 Publication 1756 QS001E EN P October 2009 5 Choose the scope for the tag Name MyData_7
26. QS001E EN P October 2009 Notes Publication 1756 0S001E EN P October 2009 145 Notes 146 Publication 1756 QS001E EN P October 2009 Rockwell Automation Support Rockwell Automation provides technical information on the Web to assist you in using its products At http www rockwellautomation com support you can find technical manuals a knowledge base of FAQs technical and application notes sample code and links to software service packs and a MySupport feature that you can customize to make the best use of these tools For an additional level of technical phone support for installation configuration and troubleshooting we offer TechConnect support programs For more information contact your local distributor or Rockwell Automation representative or visit http www trockwellautomation com support Installation Assistance If you experience an anomoly within the first 24 hours of installation review the information that s contained in this manual You can contact Customer Support for initial help in getting your product up and running United States or Canada 1 440 646 3434 Outside United States or Use the Worldwide Locator at htto www rockwellautomation com support americas phone_en html Canada or contact your local Rockwell Automation representative New Product Satisfaction Return Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from
27. RSLinx Classic software handles communication between Logix5000 controllers and your software programs such as RSLogix 5000 software To communicate with a controller download or monitor data configure RSLinx Classic software for the required communication Logix5000 Controller or a Your Computer EtherNet IP network RSLinx Classic Software RSLogix 5000 software Communication Module r m XX XX XX XX XX XX Ethernet 1756 ENBT Configuration General Port Configuration J Obtain IP Address from Bootp Server IP Address Item Ethernet address MAC a BOOTP Server Software lt Q RSLinx Gateway RSWho 1 File Edit view Communications Station DDE OPC Security Window Help 2 amp 5 8 Gk x Hes Linx Gateways Ethernet AB_DF1 1 DF1 E es AB_ETH 1 Ethernet D E 192 168 1 200 1756 ENBT A 1756 ENBT A 192 168 1 201 1756 ENET B 1756 ENET B Backplane 1756 A10 4 00 1756 L55 4 LOGIX5555 1756 L55 4 1756 M14 4 LOGIX5555 01 1756 ENBT A 1756 ENBT A 02 1756 L55 4 pana 1756 il 1756 M23 A LOGIX5555 1756 L63 6 3 04 1756 IB161 4 vee ET DCIN ISOL 05 1756 0B16D A 1756 0B16D A DCOUT DIAG 06 1756 ENET B O7 1756 OF6VI A 1756 OF6VI A XXXXXX Description Address that is assigned to a module at the factory e The module always keeps its ethernet a
28. Sim ulation_D T_1st Single question mark Required parameter Enter a tag o No nub on the end of a pin Not a required parameter SimDTinv D Structured text The instruction takes only the required parameters Enter a tag for each parameter Simulation_DT_1st Simulation_DT_1st Simlnput DA1 TIP For help with an instruction select the instruction and then press F1 In structured text make sure the cursor is in the blue instruction name 52 Publication 1756 QS001E EN P October 2009 Program Add On Instructions Copy an Add On Instruction Definition You can copy an Add On Instruction from within another RSLogix 5000 project 1 Open the RSLogix 5000 project that has the Add On Instruction definition 2 Find the definition in the Add On Instructions folder f RSLogix 5000 My_Controller_1 in Add File Edit View Search Logic Communications alsm a gt s m Offline j E RUN E No Forces b or No Edits a m0 E Controller My_Controller_1 i Tasks Motion Groups E Add On Instructions Conveyor_Control Motor_Starter Simulate_Feedback i 3 Right click the definition and choose Copy Open Definition Copy X Ctrl C E Pa i 4 Go to the project that gets the definition 5 Right click the Add On Instructions folder and choose Paste New Add On Instruction Import Add On Instruction Publication 1756 0S001E EN P October 2009 Chapt
29. StepIndex number The controller resets the Steplndex each time the equipment phase changes states The controller resets the Steplndex to the number you put in the Initial Step Index box External Sequencer Loss of Communication Command Publication 1756 0S001E EN P October 2009 Are you using FactoryTalk Batch software to command this equipment phase e No Skip this box e Yes Go to the next question If the controller loses communication with FactoryTalk Batch software what do you want the equipment phase to do e Continue in its current state Select None e Go to aborting Select Abort e Go to holding Select Hold e Go to stopping Select Stop The equipment phase must still follow the state model For example it goes to holding only if it is in running or restarting when communication fails 65 Chapter 4 Program an Equipment Phase Setting Choices External Request Hold Action Are you using any PXRQ instructions e No Skip this box e Yes Go to the next question What do you want to do if an equipment phase goes to holding while a PXRQ instruction is in process e Nothing Select None e Stop the request Select Clear 66 Publication 1756 QS001E EN P October 2009 Chapter 5 Program a Project Offline This chapter provides more detailed information on how to program the logic for a routine and create tags for the logic What You Need You need these items t
30. Tag stores data There is no fixed data table or numeric format for data addresses The tag want to use name is the address no cross reference to a physical address You create the tags that you B Program isolates logic and data from other logic and data Each program contains one or more logic routines as associated data C Scope defines whether a tag is accessible to all programs controller tag or limited to a specific program program tag Data at the program scope is isolated from other programs There is no need to manage conflicting tag names between the programs Program_A Program Tags l Local Data Other routines Main Routine Tag_4 Tag_5 Tag_6 Controller Tags Global Data Tag_ Tag Tag_3 Program_B Program Tags Local Data Other Routines Main Routine Tag_4 Da Tag_5 Tag_6 All programs have access to data that is at the controller scope Data at the program scope is isolated from other programs e Routines cannot access data that is at the program scope of another program e You can re use the tag name of a program scoped tag in multiple programs e For example both Program_A and Program_B can have a program tag named Tag_4 38 Publication 1756 QS001E EN P October 2009 Organize a Project Chapter 2 If you have multiple machines stations or processes that use
31. Type on page 98 Organize a Project Chapter 2 Data that represents an O device requires additional programming If you include members that represent 1 0 devices you must use logic to copy the data between the members in the user defined data type and the corresponding 1 0 tags If you include an array as a member limit the array to a single dimension Multi dimension arrays are not permitted in a user defined data type When you use the BOOL SINT or INT data types place members that use the same data type in sequence Follow these steps to create a user defined data type 1 Right click Data Types and choose New Data Type Controller Fault Handler Power Up Handler 3 Tasks a MainTask of MainProgram 3 Unscheduled Programs Phases Motion Groups Gi Add On Instructions Data Types Trends 1 0 Configuration Logix5000 controllers allocate memory in 4 byte chunks If you sequence smaller data types together the controller packs as many as it can fit into a 4 byte chunk More Efficient BOOL Less Efficient BOOL BOOL BOOL DINT DINT BOOL DINT DINT BOOL 2 Type a name for the data type not the name of a tag that will use the data type Publication 1756 0S001E EN P October 2009 41 Chapter2 Organize a Project 3 Enter the members As an option type a description for each member Data Typ
32. affecting execution When the routine executes all sheets execute Input reference IREF reads a value from a tag or set a constant value Wire transfers a value between elements Instruction produces output values based on input values Output reference OREF writes a value to a tag Output wire connector OCON writes a value to one or more ICONs G TM Mm OY oo Ww Input wire connector ICON reads a value from an OCON on the same sheet or a different sheet in the routine To read a value from another routine use an OREF IREF combination Publication 1756 0S001E EN P October 2009 71 Chapter5 Program a Project Offline 1 2 3 Item Description H Assume data available indicator defines the data flow within the loop The arrow indicates that the data serves as input to the first block in the loop If a group of blocks are in a loop you have to identify which block to execute first Use the Assume Data Available indicator to mark the input wire that creates the loop the feedback wire This input pin uses the output that block 3 produced on the previous scan Use the Keyboard to Add an Element You can add function block elements by using the computer keyboard 1 Press Insert 2 Type the mnemonic for the element and press Enter 78 Add FBD Element x FBD Element A Instruction Help gt gt Name Description D iiag Input Reference lt J OREF
33. each of those sections Description of Your Machine or Process First Section Routine 1 Second Section Routine 2 VA Third Section Routine 3 Identify the Programming Languages That Are Installed Follow these steps to determine which programming languages are installed on your version of RSLogix 5000 software 1 Start RSLogix 5000 software 2 From the Help menu choose About RSLogix 5000 44 Publication 1756 QS001E EN P October 2009 Assign a Programming Language to Each Routine For each routine choose a programming language e Logix5000 controllers let you use the following languages Ladder logic Function block diagram Sequential function chart Structured text e Use any combination of the languages in the same project In general if a routine represents Continuous or parallel execution of multiple operations not sequenced Boolean or bit based operations Complex Logical operations Message And Communication Processing Machine interlocking Operations that service or maintenance personnel may have to interpret in order to troubleshoot the machine or process Organize a Project Chapter 2 Use this language Ladder logic Continuous process and drive control Loop control Calculations in circuit flow Function block diagram FBD High level management of multiple operations Repetitive sequences of operations Batch process
34. identical logic but different data create a program for each machine station or process e You can re use both code and tag names in the programs e There is no need to manage conflicting tag names between the programs 1 Right click MainTask and choose New Program ERE Controller Controller Quick Start_1 Controller Tags Controller Fault Handler E Power Up Handler 1 Tasks z a MainTask amp MainProgram 5 Unscheduled Programs Phases 3 Motion Groups Add On Instructions Data Types An 2 Type a name for the program and click OK Name Description Schedule in MainTask x TIP Names follow these conventions e Only letters numbers and underscores _ e Must start with a letter or an underscore e lt 40 characters e No consecutive or trailing underscores e Not case sensitive Certain tags must be controller scope If you want to use a tag Use this scope In more than one program in the project In a Message MSG instruction Controller Tags To produce or consume data To communicate with a PanelView terminal In a single program only Publication 1756 0S001E EN P October 2009 Program Tags for the program 39 Chapter2 Organize a Project Create User defined Data Types User defined data types let you organize your data to match your machine or process This streamlines program development and creates self documenting code that is easier to maintain
35. independent of each other If you want text boxes to Automatically grow to the width of the longest line of text in the box Turns conveyor on and off based on start and stop buttons If both start and stop are on the stop button overrides the start button 4a Retain a fixed width and wrap the text You can always manually resize the box Turns conveyor on and off based on start and stop buttons If both start and stop are on the stop button overrides the start button a 1 In RSLogix 5000 software from the Tools menu choose Options 24 File Edit View Search Logic Communications Tools Window Help Security 5 RSLogix 5000 My_Project_1 1756 L63 MainProgram Run_Conveyor gt Translate PLCS SLC Import Export Motion Direct Commands Ef ControlFLASH Publication 1756 0S001E EN P October 2009 Choose this option I Word Wrap IV Word Wrap 105 Chapter 6 Document a Project 2 Select the editor Wark station Optima 3 ippici CEA tho appearance of the Squandial F Display fe Show Teal Goes Foniy Jette aion Tag Eda Die E Laddes Edi z Disp D Wadwa Fori Toku 5 he igo Pe Mise Tag Qesciption Display Widih R Show Descrpdion Doas Pon dati I Show Tag Alias Information Forti cko D dub Soll Dearing Ondine Moning Shucturad Test Edim FonhToks i 3 Select or clear the word wrap option Add a Text Box 1 Drag t
36. of the project Use the controller organizer to navigate to the various components of a project To open a folder and show its contents either e double click the folder e click the sign 12 Publication 1756 QS001E EN P October 2009 Program and Test a Simple Project Follow These Steps 1 2 Create a project for the controller page 14 Add I O modules page 15 Look at I O data page 17 Enter ladder logic page 19 Enter a function block diagram page 21 Assign alias tags for your devices page 25 Establish a serial connection to the controller page 28 Download a project to the controller page 30 Select the operating mode of the controller page 32 Publication 1756 0S001E EN P October 2009 Chapter 1 13 Chapter 1 Program and Test a Simple Project Create a Project for the Controller 1 Start RSLogix 5000 software fi RSLogix 5000 My_Project_1 1756 L63 File Edit View Search Logic Communications Tools Window 2 Click New 3 Specify the general configuration for the controller New Controller Name Description Chassis Ty fi7sc ato 10 Slot ControlLogix Chassis ICARS Logix 5000 Projects Create In ipp Specify these items some items apply to only certain controllers e Type of controller e Major revision of firmware for the controller e Name for the controller e Chassis type for the controller
37. to a Branch Right click the branch and choose Add Branch Level E SHAE Publication 1756 0S001E EN P October 2009 69 Chapter5 Program a Project Offline Delete an Element 1 Click the element 2 Click Delete El SSe Use the Keyboard to Add an Element You can add elements by using the computer keyboard 1 Press Insert 2 Type the mnemonic for the instruction or type Rung Branch or Branch Level MainProgram MainRoutine f E Add Ladder Element Description Hi F Branch BST BND Alarms Bit Timer Counter Input Output Compare 4 Z MainRoutine Compute Math Move Logical V Show Language Elements By Groups New Add On Instruction 3 Press Enter 70 Publication 1756 QS001E EN P October 2009 4 To move an instruction branch or rung to a different location use the mouse to drag it there A green dot shows a valid placement location drop point ioj x is SSB afe MainRoutine Enter Logic Using ASCII Text You can add elements by using the typing their ASCII equivalents 1 Double click the rung 2 Enter the ASCII text for the rung Rung 2 fin ASCII Text v xI Publication 1756 0S001E EN P October 2009 Program a Project Offline Chapter 5 n Chapter5 Program a Project Offline Enable Quick Keys Enable quick keys to use shortcuts when editing 1 From the Tools menu choose Options
38. your change 3 Choose Finalize All Edits in Program When editing online if the program scan time Is large or the number of modified rungs is large you might see HMI and RSLogix 5000 communication timeouts when edits are finalized The timeout is caused by the scan time x number of changed rungs You could have a large program with a very fast scan or a lot of rungs but you only modified a few and you will not see a timeout 124 Publication 1756 QS001E EN P October 2009 Chapter 9 Troubleshoot the Controller Use this chapter to obtain basic diagnostic information about your system and perform basic tasks What You Need You need these items to complete the tasks in this manual e Personal computer running RSLogix 5000 software version 16 and RSLinx software e The physical system you are troubleshooting e The project you want to troubleshoot Follow These Steps 4 Troubleshoot I O communication page 126 5 Clear a major fault page 127 6 Search a project page 128 7 Browse logic page 130 8 Force an I O value page 131 9 Create and run a trend histogram page 135 10 View scan time page 138 Publication 1756 QS001E EN P October 2009 125 Chapter 7 Troubleshoot the Controller Troubleshoot 1 0 Communication If there is a problem with several of the devices in your system communication with an I O module may have failed The I O indicator on the front of the controller and
39. your logic e You can use the data type to create multiple tags with the same data lay out For example use a user defined data type to store all the parameters for a tank including temperatures pressures valve positions and preset values Then create a tag for each of your tanks based on that data type Use arrays to quickly create a group of similar tags An array creates multiple instances of a data type under a common tag name e Arrays let you organize a block of tags that use the same data type and perform a similar function e You organize the data in 1 2 or 3 dimensions to match what the data represents For example use a 2 dimension array to organize the data for a tank farm Each element of the array represents a single tank The location of the element within the array represents the geographic location of the tank Important Minimize the use of BOOL arrays Many array instructions do not operate on BOOL arrays This makes it more difficult to initialize and clear an array of BOOL data e Typically use a BOOL array for the bit level objects of a PanelView screen e Otherwise use the individual bits of a DINT tag or an array of DINTs 94 Publication 1756 QS001E EN P October 2009 Guideline Take advantage of program scoped tags Details Program a Project Offline Chapter 5 If you want multiple tags with the same name define each tag at the program scope program tags for a different progra
40. 0 driver configure for EtherNet IP communication 110 configure for serial communication 28 duplicate destructive bit detection use of 92 E 141 Index 142 elapsed time task 138 enter function block diagram 77 ladder logic 68 logic while online 119 124 rung comment 101 SFC 87 structured text 84 comments 107 equipment phase create a phase state routine 60 inhibit 25 64 initial state 63 monitor 61 phase state routine 60 set initial step index 25 64 set the initial state 63 test states 61 errors check routine for 92 EtherNet IP network assign IP address 110 communicate with controller 110 execution choose controller mode 32 task 36 time 138 export ladder logic 73 rung comment 102 external request hold action 66 respond to lost communication 65 F faceplate add 81 fault controller 127 I O module 126 file See array finalize all edits in program 124 find See search firmware update during download 30 force 0 value 131 function block diagram create sheet 77 document 105 edit online 119 124 enter 77 resolve loop 77 use for 43 function block instruction use of faceplate 81 H histogram See trend 1 0 device access data 17 1 0 module add to project 15 address format 17 communication failure 126 configure 15 49 faulted 126 force value 131 import ladder logic 73 rung comment 102 inhibit equipment phase 25 64 initial state set 63 initial step index set 25 64 instruction
41. 5000 controller e program a Logix5000 controller e perform online maintenance tasks such a search and edit logic run a histogram clear faults and force I O values Required Software To complete this quick start the following software is required e RSLogix 5000 software version 18 or later e RSLinx Classic software version 2 51 Publication 1756 O0S001E EN P October 2009 9 Chapter Preface Additional Resources Resource Logix5000 Controllers System Reference publication 1756 OR107 Description Look up abbreviated information and procedures regarding programming languages instructions communications and status Logix5000 Controllers Design Considerations Reference publication 1756 RM094 Design and optimize a controller application Logix5000 Controllers Common Procedures publication 1756 PM001 Program a Logix5000 controller detailed and comprehensive information e Logix5000 Controllers General Instructions Reference Manual publication 1756 RM003 e Logix5000 Controllers Process and Drives Instructions Reference Manual publication 1756 RM006 e Logix5000 Controllers Motion Instruction Set Reference Manual publication MOTION RM001 Logix5000 Controllers Import Export Reference Manual publication 1756 RM084 Program a specific Logix5000 programming instruction Import or export a Logix5000 project or tags from or to a text file e 1768 CompactLogix Controller Quick Start and User Manual
42. Chart Properties T Trend lt MyTag_1_0_5 gt 5 x Aur Stop Errors Log Logging Oo 11 20 18 AM 11 20 18 AM 2 Click the Pens tab RSTrendx Properties Name General Display Pens xAxis Y Axis Tem Pen Attributes Teg Nene Cole vse wih 1 MyTag 1 0 3 Click Add Configure Tags 4 Select a tag to add and click ado To change the scope select a scope 5 To select a bit number click w New Trend Add Configure Tags Scope My_Project_1 controller aa AvailableT ags Tags To Trend MyTag 1 0 Ha la 10 14 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 6 When you have added the required tags click OK 7 Click the Y Axis tab 136 Publication 1756 QS001E EN P October 2009 Troubleshoot the Controller Chapter 7 8 Choose the type of graphing and click OK RSTrendxX Properties Name General Display Pens X Axis YAris Minimum Z maximum value options Automatic best fit based on actual data Preset use min max setting from Pens tab C Custom Minimum value Actual minimum value fp Mevinum value Actual mavimum value 100 Display options tilted cing Tl isolation 9 To resume the trend click en Save the Trend 1 Close the trend Trend MyTrend_1 isolated graphing Plots each pen in a separate b
43. Configuration The Tag Monitor displays the tags Tag Name Value Force Mask Local 0 1 Local 0 0 Binary Decimal Decimal Decimal Values are shown in the following styles Style Base Notation Binary 2 2 Decimal 10 NA Hexadecimal 16 16 Octal 8 B Exponential NA 0 0000000e 000 Float NA 0 0 A blue arrow indicates that when you change the value it immediately takes effect 2 To see a value in a different style select the desired style 3 To change a value click the Value cell type the new value and click Enter 4 To expand a tag and show its members click the sign Publication 1756 QS001E EN P October 2009 Program and Test a Simple Project Chapter 1 Ladder Logic For a Logix5000 controller you enter your logic in routines fae Controller Quick Start_1 A A Controller Tags 2 Controller Fault Handler 2 Power Up Handler B 3 8 Tasks Eig MainTask MainProgram Program Tags F MainRoutine fy Routine_B Routine _C B E Program_B A Program Tags C ER Main_Routine Routine_B E 9 Unscheduled Programs Item Description A A routine provides the executable code logic for a program similar to a program file in a PLC or SLC controller B There is one main routine you assign for each program e When the program executes its main routine automatically ex
44. Dbm a oe q gt IN MainRou h Pack_Ca 4 Function Block Structured Text SFC 4 gt MainRou Pack_Ca 4 Relay Ladder 2 Save the project Publication 1756 QS001E EN P October 2009 123 Chapter8 Program a Project Online Finalize All Edits in a Program The Finalize All Edits in Program option lets you make an online change to your logic without testing the change Test Accepted Program Edits Bt Untest Accepted Program Edits ty Assemble Accepted Program Edits 4 Cancel Accepted Program Edits 8 gt Finalize All Edits in Program Ctrl Shift F El MainProgram MySFC_1 E x ial A salsa AE Wx sled ATTENTION Use extreme caution when you edit logic online Mistakes can injure personnel and damage equipment Before you edit online e assess how machinery will respond to the changes e notify all personnel of the changes When you choose Finalize All Edits in Program e all edits in the program pending and test immediately download to the controller and begin execution e the original logic is permanently removed from the controller e outputs that were in the original logic stay in their last state unless executed by the new logic or other logic If your edits include an SFC e the SFC resets to the initial step e stored actions turn off Follow these steps to use the Finalize All Edits in Program option 1 Start a pending edit 2 Make
45. Enable Input System Defined Pai 0 BOOL Enable Output System Defined P 0 BOOL Stop command for the motor 0 BOOL Start command for the motor 0 BOOL Jog command for the motor Tojo AuxContact 0 BOOL Ausiliary contact of the motor Mak 3 Wire to the pin for the parameter Ladder Logic and Structured Text Use another instruction an assignment or an expression to read or write to the tag name of the parameter Use this format for the tag name of the parameter Add On Tag Parameter Add_On_ Tag Add on defined tag for the add on instruction Parameter Name of the parameter Publication 1756 0S001E EN P October 2009 55 Chapter3 Program Add On Instructions Monitor or Change the Value of a Parameter of an Add On Instruction Use the Properties dialog to monitor or change a parameter value of an Add On Instruction Routine Type Parameters Ladder logic or function block Click the Properties button for the instruction jotor_Starter Starts and stops a motor Motor_Starter Motor_Starter L Stop Start Out Motor_Out_LD 0e Structured text Right click the instruction and choose Properties gt Motor Starter Motor St arter ST Stop_PB Start _PB Motor Out_ST 1 Click and type the new value Motor_Starter Properties Motor_Starter_LD Rung 1 Parameters Tag Vs Neme Targument atie Data Type _ Deserpon EnableOut Enable Output System Defined Stop E
46. F F 6 Click and then Yes 118 Publication 1756 QS001E EN P October 2009 Chapter 8 Program a Project Online Use this chapter to edit your logic while the controller continues to control your machine or process What You Need You need these items to complete the tasks in this manual e Personal computer running RSLogix 5000 software version 16 or later and RSLinx software e The physical system to which you are connecting e The project you want to access Follow These Steps 1 Edit Logic While Online page 119 2 Finalize All Edits in a Program page 124 Edit Logic While Online Online edits let you change your logic while your machine or process continues to run Use extreme caution when you edit logic online Mistakes can injure personnel and damage equipment Before you edit online A e assess how machinery will respond to the changes e notify all personnel of the changes When you edit an SFC online e the SFC resets to the initial step e stored actions turn off Publication 1756 QS001E EN P October 2009 119 Chapter 8 Program a Project Online As you perform online edits RSLogix 5000 software uses markers to show the state of your edits Relay Ladder E MainProgram MainRoutine 15 x Function Block Structured Text SFC E MainProgram Pack_Cartons 15 x e Pare AARS f A H FT eA rame
47. Faceplate to Microsoft Excel Software 1 Start Microsoft Excel software 2 Choose View gt Toolbars gt Control Toolbox 3 Click and select the Logix 5000 Faceplate Control that you want 4 In the location for the faceplate drag the pointer to the desired size of the faceplate 5 Right click the faceplate and from the Logix 5000 Faceplate Control Object menu choose Properties Control Toolbox amp be a a M f i 4 F 2A 6 Click and browse to the tag that the faceplate controls General Display PIDE Server Fonts Locale Tag ja Topic Update Rate sec 7 Select the update period for the control and click OK 8 To exit design mode and use the control click here Control Toolbox K eT Bo Er a M fal a h A EBEB R 3 Ala Publication 1756 0S001E EN P October 2009 Chapter 5 83 Chapter5 Program a Project Offline Enter Structured Text Structured text is a textual programming language that uses statements to define what to execute Structured text can contain these components A MainProgram ST_1 Item Description A Construct defines logical conditions for the execution of other structured text code other statements In this example the construct is If Then Else End_if B BOOL expression checks if a tag or equation is true or false A BOOL expression typically serves as the condition for an ac
48. ING 6 305 018 P is thaw E ead i E E EE 21 Callthe Routine ss n e tanita eg eect fio Ray a ted 8 22 Enter a Function Block Diagram egaciiehon voies tween May 23 Configure a Function Block Instruction 0008 24 Assign Alias Tags tor Your Devices soi ojo dan twee Pee a 25 Show or Hide Alias Information 0 000 eee eee 24 Establish a Serial Connection to the Controller 0 28 Download a Project to the Controller 4 0se05 oN cde eos 30 Select the Operating Mode of the Controller 4 32 Chapter 2 What You Need sasra S E s A Gee A Sate tak ete a 35 Before You Begins raisio eS So hea A EE ER 35 Foll w These Steps rerin an ea ten Pest e a e aa 36 Configure the Task Execution uusussrsrururren Sas 36 Create Additional Programs sc scBeecsa Ss Acted dun nie daca wal ie ok des Seen 38 Create User defined Data Types esc cost ik naw ies eee Saal 40 Dene Your Routes ets Bh Rite dw th laa eRe ne eae Bae 43 Define a Routine for Each Section of a Machine or Process 44 Identify the Programming Languages That Are Installed 44 Assign a Programming Language to Each Routine 45 Divide Each Routine Into More Meaningful Increments 46 Assign Man Routines ndts Slt gedoascs anion de bratar andes mariate beat dab we a ah 47 Configure the Controller sis an vacws conuea kao los oe Rad was 48 Configure I O Modules iva usd eee ees dee as eee ES 49 5 Table of Conten
49. LEX Files of type RSLogix 5000 Import Export Files L5 7 Cancel 3 Check for conflicts in names Import Configuration x Tags Data Types TagName af aliasFor Type Description Operation Bef e cover Bi CN2_M Local 2 0 Data 0 iS sy Conveyor CN1 Motor TID Eebe O joo Na FRoppesied Use Fn xo Local 1 1 ABT 756_DII 0 AID eao AB ITSE_DODO Use Evitng 4 Click OK Publication 1756 OS001E EN P October 2009 75 Chapter5 Program a Project Offline Check Alias Tags A e e Estop_Disabled e lt Local 1 l Data 0 gt CN1 MotorRun CN1 Motor_Fault e e B 3 CNI_M CN1Jam_Fault_Entryy PE CN1 Jam_Fault_Exit_PE lt 5 a Check the alias tags in the rungs you import Item Description A If you import an alias tag make sure it points to the correct base tag When a tag is an alias for a tag that already exists in the project the software sets up the relationship between the alias and base tags B If the project does not have the base tag you have to either create the base tag or point the alias to a different base tag 76 Publication 1756 QS001E EN P October 2009 Program a Project Offline Chapter 5 Enter a Function Block Diagram A function block diagram lets you visually define the flow of data between instructions The data flow then drives the execution order of the instructions Item Description A Sheet divides the diagram into sections without
50. Logix5000 Controllers Allen Bradley Catalog Numbers 1756 ControlLogix 1756 GuardLogix 1768 CompactLogix 1768 Compact GuardLogix 1769 CompactLogix 1789 SoftLogix PowerFlex with DriveLogix Quick Start Rockwell Allen Bradley Rockwell Software Automation Important User Information Solid state equipment has operational characteristics differing from those of electromechanical equipment Safety Guidelines for the Application Installation and Maintenance of Solid State Controls publication SGI 1 1 available from your local Rockwell Automation sales office or online at http www rockwellautomation com literature describes some important differences between solid state equipment and hard wired electromechanical devices Because of this difference and also because of the wide variety of uses for solid state equipment all persons responsible for applying this equipment must satisfy themselves that each intended application of this equipment is acceptable In no event will Rockwell Automation Inc be responsible or liable for indirect or consequential damages resulting from the use or application of this equipment The examples and diagrams in this manual are included solely for illustrative purposes Because of the many variables and requirements associated with any particular installation Rockwell Automation Inc cannot assume responsibility or liability for actual use based on the examples and diagrams No patent liabilit
51. My_Project_t A Controller Tags ag Power Up Handler Tasks Motion Groups Add On Instructions the software automatically creates Data Types Trends controller scoped tags for the module Fees 1 0 Configuration An I O address follows this format Location Slot Type Member SubMember BLE Optional Where Is Location Network location LOCAL same chassis or DIN rail as the controller ADAPTER NAME identifies remote communication adapter or bridge module Slot Slot number of O module in its chassis or DIN rail Type Type of data input O output C configuration S status Member Specific data from the I O module depends on what type of data the module can store e For a digital module a Data member usually stores the input or output bit values e For an analog module a Channel member CH usually stores the data for a channel SubMember Specific data related to a Member Bit Specific point on a digital 1 0 module depends on the size of the I O module 0 31 for a 32 point module Publication 1756 0S001E EN P October 2009 17 Chapter 1 Program and Test a Simple Project 1 Right click Controller Tags and choose Monitor Tags Controller My_Project_1 Controller Tags i Controller Fault Handler Gi Power Up Handler Tasks 09 Motion Groups 09 Add On Instructions Data Types Bi Trends DA O
52. OT al Boolean Not G Locals5 0 Data 16 3 If necessary click the sign of the tag to show its members for example the BOOL value of a DINT tag Tag Name H Local 4 C 7 f Yalue Force Mask Local 4 I Forced Hl Local 4 1 F ault Local 4 1 Data 280 28 000 en ocal 4 Data 0 gt 4 Right click the tag and choose Remove Force Disable All 1 0 Forces 1 Go online with the controller 2 From the Forces menu choose I O Forcing gt Disable All I O Forces and click ves F 1 0 Forces Enabled Forces Installed F SFC Forces Disabled None Installed F oj No Edits 134 Publication 1756 QS001E EN P October 2009 Troubleshoot the Controller Chapter 7 Data Trend Histogram Trends let you view sampled tag data over a period of time on a graphical display Tag data is sampled by the controller and then displayed as point s on a trend chart lolx Run Stop Errors Log Logging Stoppec E Mpa ay MyTrend_1 Saturday July 2E 8 16 21 AM 1 ve a 8 16 21 AM Tag Values Time Tags Run a Trend for a Tag Right click the first tag that you want to trend and choose Trend MP Compare Expression Timer_1 4CC lt Timer_1 PRE 2 Publication 1756 0S001E EN P October 2009 135 Chapter 7 Troubleshoot the Controller Add More Tags to the Trend 1 Right click the chart and choose
53. RS To go to Click this Verify routine in view ie Verify entire project E 2 Go to an error or warning To go to Do this Specific error or warning Double click the error or warning Cycle through the list of errors and Press F4 warnings 3 Close the Errors tab Publication 1756 0S001E EN P October 2009 93 Chapter5 Program a Project Offline 4 To turn off duplicate destructive bit detection it s on by default from the Tools menu choose Options Workstation Options E Categories E Application Change general preferences for RSLogix 5000 Font Color Project Directory Tag Display p ead c RSLogix 5000 Projects Display Font Color IV Enable Look Ahead SFC Editor Iv Enable Duplicate Destructive Bit Detection Element Naming IV Search Base Tag Description in Operand Comment Display Display Guidelines for Tags Use the following guidelines to create tags for a Logix5000 project Details Guideline Create user defined data types User defined data types structures let you organize your data to match your machine or process A user defined data type provides these advantages e One tag contains all the data related to a specific aspect of your system This keeps related data together and easy to locate regardless of its data type e Each individual piece of data member gets a descriptive name This automatically creates an initial level of documentation for
54. Starter Motor St arter ST Stop PB Start _PB Motor Out_ST Publication 1756 0S001E EN P October 2009 Motor_Starter Motor_Starter_LD 57 Chapter3 Program Add On Instructions Edit and Monitor an Add On Instruction You can e see the logic as it executes e see tag values e change tag and parameter values B Motor_Starter Logic Dek Data Context gt Motor_Starter_LD v v pl nd turns 8 mand turns f If FauttTime is greater than 0 turn on Check amp uxContact This lets the instruction use the auxiliary contact of the motor Enter the time ms to wait for the auxiliary contact to open or close The Fault bit turns on when that time is up RT Check amp uxContact Greater Than 4 gt B Source A FauttTime Source FaultTime 4000 4000 Source B 0 Dest FaultTimer PRE 4000 You cannot e edit logic online edit logic for just this instruction To edit the logic you must edit the definition Update an Add On Instruction to a Newer Revision You can update the definition of an Add On Instruction to a newer revision IMPORTANT Before you change the definition of an add on instruction make sure the change won t cause problems with existing instances of that instruction When you change the definition of an add on instruction the change affects all the instances of that instruction in your project For example if a project uses a certain Add On Instruction 5 times update the definition so that
55. Symbols 102 A add phase state routine 60 alias tags use 25 array create 40 organize 94 use of 40 ASCII text enter logic using 68 assume data available indicator use of 77 BOOTP use of 110 browse logic 130 C clear major fault 127 command give with RSLogix 5000 software 61 comment add to function block diagram 105 add to rung 101 102 add to SFC 105 add to structured text 107 search for 128 communicate with controller via EtherNet IP network 110 with controller via serial cable 28 communication fault 126 configure controller 14 48 driver for EtherNet IP communication 110 driver for serial communication 28 I O module 15 49 task 36 trend 135 continous task execution 36 Publication 1756 0S001E EN P October 2009 Index controller communicate via EtherNet IP network 110 communicate via serial cable 28 configure 14 48 download project 30 faulted 127 go online with 116 mode 32 monitor 118 monitor execution 116 revision 30 controller organizer add I O module 15 navigate 14 controller scope tags when to use 38 create phase state routine 60 program 38 project 14 routine 43 sheet 77 text box 105 trend 135 D data I O module 17 trend 135 description rung 101 102 search for 128 tag 98 user defined data type 98 document function block diagram 105 rung 101 102 SFC 105 structured text 107 tag 98 user defined data type 98 download project 3
56. This is NOT OK If Dintl gt 5 m If Dintl For an assignment start with the Write an assignment as follows destination Destination Source A a Browse For an Instruction 1 Press Alt Insert 2 Type the mnemonic for the instruction and press Enter E Add Structured Text Element ST Element Instruction Help gt gt O x alala SE Eal Lt MyTag 1 0 Then FIND Description a Select Lirtt HE Statistical HF Alarms 49 Bit L Timer Countd 4 ComputesMath 4 Move Logical V Show Language Eleents By Groups New Add On Instruction Publication 1756 0S001E EN P October 2009 Find String A FIND Source Search Start Result Cancel Help Cx T EEEN gt MyStructuredText ll 85 Chapter5 Program a Project Offline Assign Operands to an Instruction 1 Right click the instruction and choose Argument List iolxi sjaje 2 FEIND Create Instruction Tag Browse Tags Ctrl Space Argument List Alt 4 amp Cut Ctrl x Copy Ctrl C Paste Ctrl Insert Instruction Defaults Save Instruction Defaults Clear Instruction Defaults 4 gt IN MySt Go To Ctrl G 2 For each parameter select a tag or type an immediate value FIND Instruction Argument List _ Parameter Argument Value
57. a user defined data type page 98 2 Add rung comments page 101 3 Enter and edit rung comments using Microsoft Excel page 102 4 Add comments to a function block diagram or SFC page 105 5 Add comments to structured text page 107 Publication 1756 QS001E EN P October 2009 97 Chapter 6 Document a Project User defined Data Type RSLogix 5000 software lets you automatically build descriptions out of the descriptions in your user defined data types This greatly reduces the amount of time you have to spend documenting your project As you organize your user defined data types keep in mind the following features of RSLogix 5000 software Wi Data Type Tank Name Tank Description Tank A 4 Members ete e Peer Level oat Decimal Currer Liters Pressure DINT Decimal Kpa r r ray Temp Ingredi meat Controller Tags Pass_Through_Descriptions controller Scope Pass_Through_Des x Show Show 4 Sort Tag Nam Ingredi P Tag Name amp Type Description Er E anks Tank 4 Eanksio Tank an a E Tanks 0 Level DINT ank urrent Liters B m H T anks 0 Pressure DINT ank Kpa o Tanks 0 Temp ank Degrees C E Tanks 0 Agitator Speed DINT ank RPM of Agitator m Tanks 0 Ingredient_ BOOL ank
58. all 5 instances change when you change the definition j Right click the Add On Instructions folder and choose Import Add On Instruction 2 Find the instruction and choose Import 3 Decide how to handle the conflict with the existing revision probably overwrite 4 Use a cross reference list to check each use of the instruction in your logic 58 Publication 1756 QS001E EN P October 2009 Chapter 4 Program an Equipment Phase Use PhaseManager software to create an equipment phase and change the default settings for the equipment phase What You Need You need these items to complete the tasks in this manual e Personal computer running RSLogix 5000 software version 16 or later e A layout of the system for which you are creating a project Follow These Steps 5 Create an equipment phase page 60 6 Create a state routine page 60 7 Manually step through the states page 61 8 Configure the initial state for an equipment phase page 63 9 Open the configuration for an equipment phase page 64 10 Configure an equipment phase page 64 Publication 1756 QS001E EN P October 2009 59 Chapter 4 Program an Equipment Phase Create an Equipment Phase 1 Right click Main Task and choose New Equipment Phase Hew Equipment Phase Sobada iri E Maint ask inhi Equipment Phase 2 Type a name for the equipment phase and click OK Create a State Routine 1 Right click Main Task and choose th
59. alue to engineering uses and sends it to an Output Reference OREF The OREF writes the value to an analog output a c O L t ALM ScL PIDE RMPS POSP SRTP LOLG FGEN TOT DEDT gt EES 4 gt Favorites Process A Drives A Filters Select Limit Statistical A Bit Timer Cou aler Dl De gt E Sheet i of N aq T a Publication 1756 0S001E EN P October 2009 23 Chapter1 Program and Test a Simple Project Configure a Function Block Instruction Assign specific values parameters to configure a function block instruction 1 Click the configuration button 4 lalo o zi an sa rrve mrs rose sere uove reen ror oeo p fin igi of 2 1 a 2 To change the value of a parameter click the value cell type the new value and click Enter SCL Properties SCL_O1 16 0000_000 elolololololol l l l anpnnannnnnnan 24 Publication 1756 QS001E EN P October 2009 Program and Test a Simple Project Chapter 1 For example in the SCL instruction specify the following parameters e InRawMax maximum input value e InRawMin minimum input value e InEUMax maximum engineering value e InEUMin minimum engineering value 3 Click OK Assign Alias Tags for Your Devices While you can use the input and output tags of a module directly in your logic it is easier to use alias tags An alias tag is a tag that represents another tag e Bot
60. and of a Trend chart Isolated graphing Non isolated graphing gt Select isolated or non isolated graphing on the TrendX dialog box Y Axis tab Run Stop Errors Log Logging Stoppec A MyTrend_1 Saturday July 2E E soMyTag_1 1 p a I 8 16 21 AM You get the choice to save the trend for future use Publication 1756 0S001E EN P October 2009 137 Chapter 7 Troubleshoot the Controller 2 Type a name for the trend and click Finish Name Description al Controller My_Project_1 E Tasks B L MainTask Sample Period fio 4 MainProgram 3 Unscheduled Programs Motion Groups Trends BEMyTrend_1 Data Types I O Configuration View Scan Time A Logix5000 controller provides two types of scan times Each serves a different purpose Scan Time Description Elapsed time task scan time Time that has elapsed from the start of a task to the end of the task in milliseconds The elapsed time of a task includes the time that the task is interrupted to service communications or other tasks Execution time program scan time Time to execute the logic of a program its main routine and any subroutines that the main routine calls in microseconds The scan time of a program includes only the execution time of the logic It does notinclude any interrupts View Task Scan Time 1 Right click and choose Properties EEEE Controller Cont
61. ault If your entire process unexpectedly shuts down the controller may have experienced a major fault A major fault is a condition severe enough for the controller to shut down 1 Go online with the controller 2 Choose Go To Faults Faulted Y Program Mode No Forces E Controller Fault E Battery Fault T 1 0 Not Present D No Edits a 3 Use this information to correct the cause of the fault Date Time Advanced SFC Execution File Redundancy Nonvolatile Memory Memory General SerialPort System Protocol User Protocol Major Faults Minor Faults 1 major fault since last cleared Clear Majors Recent Faults 121 1998 2 06 21 AM Type 04 Program Fault can be trapped by a fault routine Code 34 A timer instruction had a negative value for its PRE or ACC Task MainTask Program MainProgram Routine MainFRoutine Location Rung 0 4 After you correct the cause of the fault click Clear Majors Publication 1756 0S001E EN P October 2009 127 Chapter 7 Troubleshoot the Controller Search Functions in a Project You can find an element of your logic such as a tag instruction or comment based on the characters that you search for To find a n Specify Example Tag Full or partial tag name MyTag 1 Comment description Text within the comment description fan Instruction Mnemonic of the instruction OTE Instruction and tag Mnemonic and tag OTE MyTag 1
62. ch Logic Communications Tools Window Help New Ctrl N Open Ctrl 0 Close Save Ctrl S Save As New Component d Compact Print Ctrl P Print Options 1 My_Project_1 4CD 2 My_Project_2 4CD Ls 3 My_Project_3 4CD 2 Click to define a path to the controller Path AB_ETH 1 192 168 1 200 Backplane 0 Sie 3 Select the controller i Who Active IV Autobrowse El Workstation USMAYHMILLS e Linx Gateways Ethernet AB_DF1 1 DF1 f 01 1756 L1 A LOGIXSSS0 My_Project_t H a AB_ETH 1 Ethernet 4 Click orl If Your Computer Does Not Have the Project For the Controller 1 Open the RSLogix 5000 project for the controller 2 Click to define a path to the controller Path AB_ETH 14192 168 1 200 Backplane 0 Sie Publication 1756 0S001E EN P October 2009 Go Online to the Controller Chapter 7 117 Chapter7 Go Online to the Controller 3 Select the controller i Who Active M Autobrowse Workstation USMAYHMILLS eS Linx Gateways Ethernet I s AB_DF1 1 DF1 f 01 1756 L1 A LOGIXSSS0 My_Project_t a AB_ETH 1 Ethernet 5 Click to create the project file on your computer Options General Date Time Major Faults Minor Faults Condition The project file My_Project_2 4CD was not found in your project directory Look in ja Projects gt 4 st mal File name
63. ct Chapter 6 Add Rung Comments Use a rung comment to describe the operation of a rung of ladder logic You can also start the routine with a rung that contains only a No Operation NOP instruction Add a comment to this initial rung that describes the routine in general 1 Right click the rung and choose Edit Rung Comment Aak H SSB Cut Rung Ctrl x Copy Rung Ctrl C Fa Paste Ctrl Delete Rung Del Add Rung Ctrl R Edit Rung Enter Import Rung R Export Rung 2 Type your comments EEE H sael Rung Comment For Rung 0 x zi 150 Endl 4 A MainRoutine A Refill Hop 4 3 Click the check to save the comment and close the entry window Publication 1756 0S001E EN P October 2009 101 Chapter6 Document a Project Rung Comments Using Microsoft Excel You can also use spreadsheet software such as Microsoft Excel to create and edit rung comments This lets you take advantage of the editing features in the spreadsheet software Teta nung comments export in the CSV comma delimited format Make sure you keep that format when you save and close the export file Export the Existing Comments 1 In RSLogix 5000 software add at least one rung comment This helps to format the export file MainProgram MainRoutine This routine calls the execution of all other routines JSR Jump To Subroutine Routine Name Run_Conveyor JSR Jump To Subroutine
64. d Textic wes bakes Paes eae ane eees 107 Language Switching gt lt ojo0 bess healed Hoe or ee 108 Chapter 7 What You Needa Puja ware aces Bele wim aie Gta Jak els Bia EE AA 109 Pollow LheseSteps sac wiaiente i oii Pek aot ahve A E Pace 109 Establish EtherNet IP Communication with the Controller 110 Equipment and Information That You Need 111 Connect Your EtherNet IP Device and Computer 112 Assign an IP Address to the Controller or Communication Modtle s 55 nates woud creo ee eods s 112 Assign an IP Address to Your Computer 0004 114 7 Table of Contents Program a Project Online Troubleshoot the Controller Index Configure an Ethernet Divers ii aa sha tess a aansee tab 115 Online with a Controllers es erisa atau e Wits Sor ang trees 116 If Your Computer Has the Project For the Controller 117 If Your Computer Does Not Have the Project Forthe Controler a soot hans bon behute atid tt dot eil sn i eeii a 117 Chapter 8 What Xou Need eurer aya Al Maia nat congas hat ce nity cay htt 119 Follow These Steps pic sisreccintni koh GONE SWS SIE ea 119 Edit Logie While Onlines eresia ani ah esne idu e ean gob ee 119 Statt a Pending Bay page coe oen EEC a a 121 Make and Accept Your Edits iin wine tae ees unisex 122 Testthe Edits iaeia eeen bAa a e e pai ar ei 122 Assemble and Save the Edits onn unuununuurnrrrr rre 123 Finalize All Edits in a Program h dtc e certs el Ans habe cn wai
65. d data that is currently in the controller if any If the revision of the controller does not match the revision of the project you are prompted to update the firmware of the controller RSLogix 5000 software lets you update the firmware of the controller as part of the download sequence ATTENTION When you download a project or update firmware all active servo axes are turned off Before you download a project or update firmware make sure that this will not cause any unexpected movement of an axis Logix5000 Controller Project Download IMPORTANT To update the firmware of a controller first install a firmware upgrade kit e An upgrade kit ships on a supplemental CD along with RSLogix 5000 software e To download an upgrade kit go to http Avww ab com Choose Product Support Choose Firmware Updates RUN REM PROG Lap 1 Turn the keyswitch of the controller to 2 Open the RSLogix 5000 project that you want to download 5 RSLogix 5000 My_Project 1756 L55 a File Edit View Search Logic Communications Tools Window Help alsje a ele oo fra gels ff ve eael Path AB_ETH 14192 168 1 200 Backplane O a 3 Click 30 Publication 1756 QS001E EN P October 2009 Program and Test a Simple Project Chapter 1 4 Browse to the controller i Who Active IV Autobrowse Retest Workstation USMAYHMILLS eg Linx Gateways Ethernet AB_DF1 1 DF1
66. dancy Nonvolatile Memory Memory General Serial Port System Protocol User Protocol Major Faults Minor Faults Vendor Allen Bradley Type 1756 L63 ControlLogix5563 Controller Change Controller Revision 15 1 Name Ouick_Start_1 Description Chassis Type 1756 410 10 Slot ControlLogis Chassis Slot 0 Publication 1756 QS001E EN P October 2009 Organize a Project Chapter 2 Configure 1 0 Modules To change the behavior of a module use the Module Properties window for the module The configuration options vary from module to module 1 Right click the module and choose Properties E Controller My_Project_1 A Controller Tags Controller Fault Handler C Power Up Handler Tasks H E MainTask B e MainProgram A Program Tags Ea MainRoutine 9 Unscheduled Programs Phases Motion Groups 5 Ungrouped Axes Trends Data Types i User Defined ary Strings Cip Predefined i Module Defined 2 1 0 Configuration 1756 Backplane 1756 410 fa 0 1756 L63 My_Project_1 f 1 1756 08161 2 To change the name or slot number use the General tab General Connection Module Info Configuration Alarm Configuration Calibration Backplane Type 1756 IF6l 6 Channel Isolated Yoltage Current Analog Input Vendor Allen Bradley Parent Local Name Slot a 3 To change the configuration click the Configuration tab Some modules have several configuration tabs
67. ddress e To determine the ethernet address of a device look for a sticker on the device e Anethernet address uses this format XXI XX XX XX XX XX IP address Address that you assign to a module for communication over a specific ethernet network An IP address uses this format BOOTP Configure a device to request an IP address over an ethernet network from a BOOTP server Out of the box Allen Bradley EtherNet IP devices are configured for BOOTP BOOTP server Software program that receives BOOTP requests from ethernet devices and assigns IP addresses RSLinx software revision 2 40 and later includes BOOTP server software Driver Establish communication over a specific network Path 110 Communication route to a device To define a path you expand a driver and select the device Publication 1756 QS001E EN P October 2009 Go Online to the Controller Chapter 7 Equipment and Information That You Need 1 Depending on your controller you may need a communication module or daughter card 2 Determine if your EtherNet IP network is connected to the Internet or if it is a standalone network that does not connect to the Internet Son 3 For the EtherNet IP device controller bridge module or daughter card obtain the following Obtain this Ethernet address If your network is connected to the Internet from this source Sticker on the device If yo
68. devices Yes Choose Run mode No 2 Turn the keyswitch to p gt Choose Test mode RUN REM PROG ft 3 Go online with the controller 4 Select the mode Rem Prog No Forces P eee me No Edits attery Fault 32 Program Mode ail F 140 Not Present D Publication 1756 QS001E EN P October 2009 Program and Test a Simple Project Chapter 1 Mode Program Description Logic is not executing outputs are not controlled and editing operations are available If you are configuring an output module the owner controller is in Program Mode Newly received output values are ignored and all outputs will transition to their Program mode state which you can configure on the Configuration tab The output module s health LED will flash green when in Program mode Input modules are always in Run mode and always report back input data to the controller It does not matter whether the owner controller is in Run or Program mode The input module s health indicator is always solid green if a connection exists to it Run Test Publication 1756 0S001E EN P October 2009 Logic is executing inputs are read logic is scanned and outputs are controlled by the application program and changes made through the data monitor or the 1 0 force table The actual I O modules accept the output results of the application and set the outputs accordingly The keyswitch must b
69. e 80 Publication 1756 QS001E EN P October 2009 Program a Project Offline Chapter 5 Use a Faceplate for a Function Block RSLogix 5000 software includes faceplates controls for some of the function block instructions A faceplate is an Active X control that lets you interact with a function block instruction e Your RSLogix 5000 software package includes the faceplates but does not automatically install them To use the faceplates locate them on your software CD and install them separately e Use faceplates in an Active X container such as the following software FactoryTalk View SE Microsoft Excel e RSLogix 5000 software is not a valid Active X container e Faceplates communicate with the controller via DDE OPC topics in RSLinx Classic software To use RSLinx Classic software for DDE OPC topics purchase either RSLinx Classic software as a separate package RSLogix 5000 professional edition software which includes RSLinx Classic professional edition softwate RSLinx Classic Lite software which comes with the other RSLogix 5000 software packages does not provide DDE OPC communication Enhanced PID Mode Program Operator Cas Rat Auto Manual 0 SL el S LE Detail Cy Tune FE EGE 4 Status Ok Publication 1756 0S001E EN P October 2009 81 Chapter5 Program a Project Offline In RSLinx Classic software a topic represents a specific path to a controller RSLogix 5000 softwar
70. e revision 10 0 or later automatically creates an RSLinx topic whenever you o create a project save a project e change the revision of a project to 10 0 or later In some cases you have to update the data source for the topic in RSLinx software DDE OPC Topic Configuration Project Default Topic List _ Data Source Data Collection Advanced Communication My_Project_1 IV Autobrowse Penes My_Project_2 Workstation USMAYHMILLS My_Project_3 as Linx Gateways Ethernet AB_DF1 1 DF1 H a AB_ETH 1 Ethernet Set Up a Topic 1 Use RSLogix 5000 software to create the topic a Set the project path communication route to the controller b Save the project alem a oea Asael e alal Path AB_ETH 1 192 1681 200 Backplane O vl 2 In RSLinx Classic software check the topic a From the DDE OPC menu choose Topic Configuration b Select your project c Make sure the data source points to your controller d Click Done Topic List _ Data Source Data Collection Advance My_ Project M Autobrowse Aetest rkstation USMAYHMILLS Linx Gateways Ethernet AB_DF1 1 DF1 AB_ETH 1 Ethernet 169 254 217 80 Unrecognized Devic A 192 168 1 200 1756 ENET B ABCDI Backplane 1756 A10 4 00 1756 L55 4 LOGIX5555 01 1756 ENET B 82 Publication 1756 QS001E EN P October 2009 Program a Project Offline Add a
71. e Tank Name Description Members Data Type Size 20 byte s _ Name Data Type Style E Level DINT Decimal Pressure DINT Decimal Temp Float Agistator_Spee Decimal Ingredient_ amp BOOL Decimal Ingredient_B BOOL Decimal 4 Click OK Follow these steps to create a tag that uses a user defined data type 1 Right click the scope that you want for the tag and choose Edit Tags Controller Controller_Quick_Start_1 Controller Tags E Controller Fault Handler E amp I Power Up Handler 2 8 Tasks MainTask G MainProgram A Program Tags Ba MainRoutine Subroutine_ amp ig Subroutine_C Unscheduled Programs Phases Motion Groups Add On Instructions 2 Type a name for the tag 3 Type the name of the user defined data type MyData_4 MyData_5 REAL F MyData_6 STRING Tank_1 Tank 5 42 Publication 1756 QS001E EN P October 2009 Organize a Project Chapter 2 4 Do the following if you want the tag to be an array multiple instances of the data type a Select the data type and click EJ b Specify the array dimensions and click OK Data Types T ank 4 3 2 OK SELECTABLE_NEGATE SELECTED_SUMMER SERIAL_PORT_CONTROL SFC_ACTION SFC_STEP SFC_STOP SINT SPLIT_RANGE Tharnm Cancel Help rk Array Dimensions Dim 0 Dim 1
72. e equipment phase 2 Choose New Phase State Routine 3 Type a name for the state routine 4 Select the programming language and click OK x a E Tyo E L acco Dipa Heip ir Phas Ly Hy Prose F Geen Aoirean OF 60 Publication 1756 QS001E EN P October 2009 Program an Equipment Phase Chapter 4 Manually Step Through the States Before you step through states do the following e Download the project to the controller e Put the controller in run or remote run mode 1 Right click the equipment phase and choose Monitor Equipment Phase 2 Click the Ownership and then Yes Use this window to step through the states 3 Click Start I Eqieprent Phage Paanitor My Phage joan Puce EA Daet FISLopis 500001 Rani flecefing The equipment phase goes to the Running state Any code in the Running state routine starts running This is where you put the code for the normal production sequence of your equipment Publication 1756 0S001E EN P October 2009 61 Chapter 4 Program an Equipment Phase 4 Click Stop fF Egepen Phage Maar ibar My Phase The equipment phase goes to the Stopped state The Running state routine stops running The Stopping state routine is optional Without it the equipment phase goes directly to the Stopped state 5 Click Reset I fiep Phage Poanibar My Phase Phaser E Demaret PSL opis 500011 Auh Pii Pama Acuna The equi
73. e in the Remote or Run position Logic is executing inputs are read logic is scanned and outputs are controlled by the application program and changes made through the data monitor or the 1 0 force table The actual I O modules will ignore the output results of the application Some editing operations are restricted The keyswitch must be in the Remote position When going into Test mode e Input modules continue to update in Test mode e Produce consume tags continue to update in Test mode e Test mode places all outputs in the project in the Program mode state as configured in the Configuration tab for module properties 33 Chapter 1 Notes 34 Program and Test a Simple Project Publication 1756 QS001E EN P October 2009 Chapter 2 Organize a Project This chapter provides more detailed information on how to organize the program layout and data structures for the controller What You Need You need these items to complete the tasks in this manual e Personal computer running RSLogix 5000 software version 16 or later e A layout of the system for which you are creating a project Before You Begin A new project contains a default task for the execution of your logic Before you can create programs you must first configure the task execution A task defines scheduling and priority information for the execution scan of your logic a Controller Quick_Start_ Controller Tags J Controller Fault Handler J Powe
74. ect Chapter 2 Assign Main Routines Each program requires a main routine Once you create your routines assign a main routine for each program IMPORTANT In the default project MainProgram already has a main routine MainRoutine You have to assign a main routine only for each additional program that you create Follow these steps to assign a main routine 1 Right click the program folder and choose Properties Controller Quick_Start_1 Controller Tags E3 Controller Fault Handler 5 Power Up Handler E Tasks H MainTask Ej 3 MainProgram A Program Tags E MainRoutine B 3 Program_B A Program Tags B Main_Routine xl 2 Click the Configuration tab 3 Select the main routine and click OK E Program Properties Program_B is Oj x General Configuration Monitor Assigned Routines Main lt none gt Fault lt none gt Publication 1756 0S001E EN P October 2009 47 Chapter2 Organize a Project Configure the Controller If you want to change the configuration of the controller such as name chassis size or slot number use the Controller Properties dialog box 48 1 Click the Controller Properties button ff RSLogix 5000 My_Project_1 1756 L63 File Edit View Search Logic Communications Tools Window 2 Change the required properties some items apply only to certain controllers and click OK Date Time Advanced SFE Execution File Redun
75. ecutes e Use the main routine to control the execution of the other routines in the program e To call execute another routine subroutine within the program use a Jump to Subroutine JSR instruction C A subroutine is any routine other than the main routine or fault routine To execute a subroutine use a Jump to Subroutine JSR instruction in another routine such as the main routine When you create a project the software automatically creates a main routine that uses the ladder diagram programming language Controller My_Controller Controller Tags Controller Fault Handler Gi Power Up Handler amp Tasks Maintask 5 amp MainProgram A Program Tags aManoutne Gi Unscheduled Programs Phases 9 Motion Groups Add On Instructions Data Types GB Trends 2 1 0 Configuration Publication 1756 0S001E EN P October 2009 19 Chapter 1 Program and Test a Simple Project Enter Ladder Logic One way to enter logic is to drag buttons from a toolbar to the desired location H sae A green dot shows a valid placement location drop point To add ladder logic drag the button for the rung or instruction directly to the desired location You can enter yout logic and leave the operands undefined After you enter a section of logic go back and assign the operands EXAMPLE In the following example an Examine If Closed XIC instruction checks the on off state of a pushbu
76. er 3 53 Chapter3 Program Add On Instructions Import an Add On Instruction Definition You can add the definition of an Add On Instruction that was exported from another RSLogix 5000 project Does the RSLogix 5000 project already have a revision of this Add On Instruction e No use this procedure to import the instruction e Yes see Update an Add On Instruction to a Newer Revision on page 58 1 Right click the Add On Instructions folder and choose Import Add On Instruction CJ New Add On Instruction Import Add On Instruction 2 Find the instruction Import Add On Instruction Look in 6 Add On Instructions 7 a Conveyor_Control L5 4 3 mMotor_Starter L5x My Recent Simulate _Feedback L5x Documents Simulation _DT_1st L5X ig Desktop C File name Motor_Starter LEX F we lt My Network Files of type RS Logix 5000 XML Files L5x X Cancel Places Help 3 Select the instruction and click Import 54 Publication 1756 QS001E EN P October 2009 Program Add On Instructions Chapter 3 Access a Parameter That Is Not Visible How you read or write to a parameter of an Add On Instruction that is not visible depends on the programming language Function Block 1 Click the Properties button for the instruction 2 Check the Vis box for the parameter and click OK Motor_Starter Properties Motor_1_FBD Sheet 1 B1 Parameters Tag Description
77. et CompactBus Local Publication 1756 0S001E EN P October 2009 15 Chapter 1 Program and Test a Simple Project 2 Select the module and click OK Module Description 1756 IB32 B 32 Point 10v 31 2V DC Input DC Input 1750 IF16 16 Channel Non Isolated Voltage 1756 IF4FXOF2F A 4 Current Volt Inputs 2 Current 1756 IF4FXOF2F B 4 Current Volt Inputs 2 Current 1756 IF6CI5 A 6 Channel Isolated Current Sourcit 1756 IF61 6 Channel Isolated Yoltage Currer 1756 IF8 8 Channel Non Isolated Yoltage C 1756 IG16 4 16 Point OV 5 5 DC TTL Input 1756 IH161 16 Point 90 V 146 DC Isolated Ing 1756 IH16ISOE 16 Channel Isolated 125 Input Se 1756 IM161 16 Point 159 265 AC Isolated Ir 1756 IN16 16 Point 10 30 AC Input By Category By Vendor 3 From the Major Revision pull down menu choose the revision of the module Select Major Revision xj Select major revision for new 1756 IC16 module being created Major Revision Eo Cancel Help 4 Define the module and click OK New Module Soppe inn 147564016 16 Po Point 30V Soy oc Cree ese N Vendor a Allen Bradop Local Open Module Properties 16 Publication 1756 QS001E EN P October 2009 Program and Test a Simple Project Chapter 1 Look at Your I 0 Data I O information is presented as a set of tags When you add a module to the 1 0 i Controller Fault Handler Configuration folder Controller
78. eter that is not visible page 55 8 Monitor or change the value of a parameter page 56 9 View the logic of an Add On Instruction page 57 10 Edit and monitor an Add On Instruction page 58 11 Update an Add On Instruction to a newer revision page 58 Publication 1756 QS001E EN P October 2009 51 Chapter3 Program Add On Instructions Insert an Add On Instruction You can create an Add On Instruction in a ladder function block or structured text routine 1 Open the routine that will use the instruction 2 Click the Add On tab of the Language Element toolbar 3 Drag the instruction from the toolbar to the routine al tH teat ics PRS Se 2 4i f Favorites Adi On A Bit Timer Counter Input Output Compare 4 Enter the parameters Routine Type Parameters Ladder Single question mark Required parameter Enter a tag Simulation_DT_1st Simulation instruction which includes Simulation_DT_1st 7B Siminput T 7 SimTimeConstant SimOutput D41 Single and double question marks Required parameter Enter a tag Only double question marks Not a required parameter You can either e leave it blank and use the default value e if it s an input value enter a different value Function block Nub on the end of a pin Required parameter Wire the pin to an IREF OREF connector or another block x Simulation instruction which includes a
79. h tags share the same data e When the data changes both tags change e An alias tag provides a descriptive name for data such as DeviceNet input or output data e If the location of the data changes simply point the alias tag goes to the new location without editing your logic As an option create tags that describe each device without pointing them to the actual addresses of the devices Later convert the tags to aliases for the data of the devices 1 Enter the logic 2 Type a descriptive tag name for the device MainProgram MainRoutine Digital tier 0 ee eee a MainRoutine 3 Right click the tag name and choose New 4 Cut Instruction Ctrl x Copy Instruction Ctrl C fF Paste Ctrl V Publication 1756 0S001E EN P October 2009 25 Chapter 1 Program and Test a Simple Project 4 Select Alias from the menu Name Digital_Input_O OK Description Z Cancel reh Help kroma z Type Alias Connection Usage Alias For Locat1 Data0 wf Data Type joo Scope E8 MainProgam Style Decim S YS F Configure on OK 5 Select the tag that this alias tag represents 6 Select the scope for the alias tag 7 Click OK 8 Select the address of the data To select a bit click the w button pe Data Type Local 4 1 D v INT Boolean Inputs 4 a a 10 11 12 13 14 15 Local 4 0 Dat MachFault_Ack Controller Program Show Show All
80. hanges the device keeps the IP address Follow these steps if you have a serial connection to the controller 1 Start RSLinx software 2 Click 5 3 Browse to the EtherNet IP device 5 RSLinx Gateway Fie Edit Yiew Communications Station DDE OPC Security Window Help amp lke IV Autobrowse Retest Not Brow Workstation USMAYHMILLS zs Linx Gateways Ethernet AB_DF1 1 DF1 f 01 1756 L1 A LOGIXSS50 1756 L1 A 1756 M Backplane 1756 A7 4 00 1756 ENBT 4 1756 ENBT 4 01 1756 L1 4 LOGIX5550 4 Right click the device and choose Module Configuration Publication 1756 0S001E EN P October 2009 113 Chapter7 Go Online to the Controller 5 Click the Port Configuration tab 6 Depending on your device either o Select the Static button e Clear uncheck the Obtain IP Address from BOOTP Server check box General Port Configuration l Network Configuration Type Stati C Dynami General Port Configuration Fr aeaii Use DHEP to obtain network configuration Use BOOTE te obtain network configuration Obtain IP Address from IP Address o AOP OP 0 IP Address O Network Mask 0 0 0 0 Subnet Mask o Gateway Address 0 0 0 0 Gateway Address Ore 2 OT ee Oe 2 40 7 Type the e IP address e subnet mask e gateway address if required 8 Click OK and then click Yes Assig
81. he text box button from the toolbar to the chart aj ajaj gt ala E a WU e l ei al OG e A 2 Type the comment and press Ctrl Enter 3 To attach the text box to a specific element click the pin symbol and then the corresponding element A green dot shows a valid connection point 106 Publication 1756 QS001E EN P October 2009 Document a Project Chapter 6 Comments in Structured Text To make your structured text easier to interpret add comments Comments e let you use plain language to describe how your structured text works e download to the controller and upload from the controller e do not affect the execution of the structured text Follow these steps to add comments to your structured text To add a comment Use one of these formats Ona single line comment At the end of a line of structured text Within a line of structured text comment comment comment comment That spans more than one line start of comment end of comment start of comment end of comment Here is an example Format comment Example At the beginning of a line Check conveyor belt direction IF conveyor direction THEN At the end of a line ELSE If conveyor isn t moving set alarm light light 1 END IF comment Sugar Inlet 1 open the inlet comment IF Sugar Low low level LS
82. in the programming software indicates status Rem Prog J T Program Mode No Forces gt E Controller OK E No Edits a Battery Fault E 1 0 0K D If the indicator is Then Off Either e There are no modules in the I 0 configuration of the controller e The controller does not contain a project controller memory is empty Solid green The controller is communicating with all the modules in its I O configuration Flashing green One or more modules in the 1 0 configuration of the controller are not responding The Controller Organizer also shows status E3 Controller My_Controller_1 Q Tasks Motion Groups I Add On Instructions i Data Types GS Trends E lo Configuration 1756 Backplane 1756 410 a 2 1756 L61 My_Controller_1 fz M4 1756 MODULE Pushbuttons_Latched e q Comme Sj Module Defined Tags Locak4 c A Local 4 I A Locat4 0 Description Status Offline Module Fault v lt gt 126 Publication 1756 QS001E EN P October 2009 Troubleshoot the Controller Chapter 7 Indicator Description A Shows that the controller is not communicating with the module Module fault Communication with a module has failed Connection Communication link between 2 devices such as between a controller and 1 0 module PanelView terminal or another controller Logix5000 controllers use connections to communicate with the modules in its 1 0 configuration Clear a Major F
83. its to see if they execute as intended EE MainProgram MainRoutine aex aix ZEA i aae lol x s d l x nn R E R zi O12 MainRou 4 Pack Ca 4 pPI Relay Ladder FA MainProgram Pack_Cartons lO xj Ao asd e YAK did ell Function Block Structured Text SFC F MainProgram Pack_Cartons Pls xi eas Ws E 18 4 ak MainRou Pack_Ca 4 Function Block Structured Text SFC Publication 1756 QS001E EN P October 2009 Program a Project Online Chapter 8 2 Click Yes to test the edits RSLogix 5000 xj N Test edits for program MainProgram The following routines contain edits MySFC The Test Accepted Program Edits operation will leave the following outputs in their last state Outputs in D and R rung edit zones Outputs in the Original View Chart will be reset to initial step Outputs in the Original View Outputs in the Original View Test accepted program edits 3 If the edits are not correct click to switch execution back to your original logic untest the edits To make changes start another pending edit Assemble and Save the Edits 1 Assemble the edits The edits become permanent and the original logic is removed E MainProgram MainRoutine Testing Edits loj x TEREPRE OZEN 8 Sle giele sed sale TF Bef Fo a pe e
84. k administrator for the appropriate IP settings Obtain an IP address automatically Use the following IP address IP address 192 168 1 5 Subnet mask 255 255 255 0 Default gateway 8 Click OK Configure an Ethernet Driver 1 Start RSLinx software Qs RSLinx Gateway File Edit View Communications Station DDE OPC Security Window Help amp slal eli X 2 Click 8 3 Select Ethernet devices and choose _AddNew _ Driver Types Publication 1756 0S001E EN P October 2009 115 Chapter7 Go Online to the Controller 4 Accept the default name Choose a name for the new driver 15 characters maximum AB_ET H 1 5 Type the IP address of the controller or communication module Station Mapping Station Host Name 192 168 1 200 6 Click OK The driver is successfully configured and running Configured Drivers Status Running Running Name and Description AB_DF1 1 DF1 Sta 0 COM1 RUNNING AB_ETH 1 A B Ethernet RUNNING AB_ETH 2 A B Ethernet RUNNING Online with a Controller To monitor a project that is executing in a controller go online with the controller The procedure that you use depends on whether you have a copy of the project on your computer 116 Publication 1756 QS001E EN P October 2009 If Your Computer Has the Project For the Controller 1 Open the RSLogix 5000 project for the controller File Edit view Sear
85. l connection to the controller 1 Start BOOTP server software by either of the following e Start gt Programs gt Rockwell Software gt BOOTP DHCP Server gt BOOTP DHCP Server e Start gt Programs gt Rockwell Software gt RSLinx Tools gt BOOTP DHCP Server 2 If this is the first time you are using the software type the subnet mask and gateway if required for your network and then click OK Network Settings r Defaults Subnet Mask 0 0 0 0 Gateway 0 0 0 0 112 Publication 1756 QS001E EN P October 2009 Go Online to the Controller Chapter 7 3 Double click the Ethernet address of the controller communication module fg BOOTP DHCP Server 2 3 File Tools Help Request History Clear History Add to Relation List hr min sec Type Ethernet Address MAC 10 52 06 BOOTP 00 00 BC 05 74 BB 10 52 01 BOOTP 00 00 BC 06 00 34 10 51 59 BOOTP 00 00 BC 05 74 BB 4 Type the IP address and click OK 5 In the Relation List lower section select the device and click Disable BOOTP This lets the device keep the address even after a power cycle Relation List New Delete Enable BOOTP Enable DHCP E Ethernet Address MAC Type IP Address 00 00 6C 05 74 BB BOOTP 10 6 When you close the BOOTP server software you are prompted to save your changes e If you want a record of the IP address that you assigned to the device save the changes e Regardless of whether you save the c
86. l the time even when the equipment phase is in the idle state It runs before each scan of a state Do you want to run a prestate routine e Yes Select the routine that you want to run e No Leave this box set to lt none gt 64 Publication 1756 QS001E EN P October 2009 Program an Equipment Phase Chapter 4 Setting Fault Choices A fault routine lets you clear a major fault made by an instruction Do you want to set up a fault routine for the instructions in this equipment phase e Yes Select the routine that you want as your fault routine e No Leave this box set to lt none gt Inhibit Equipment Phase Do you want the controller to inhibit this equipment phase e Yes Check this box e No Leave this box unchecked or uncheck it Initial State Which state do you want the equipment phase to go to when you turn on the controller e Idle e Complete e Stopped e Aborted Complete State Immediately If not Implemented Do you want the equipment phase to skip any states that you aren t using e Yes Leave this box checked or check it e No Uncheck this box Initial Step Index Are any of the state routines in ladder diagram or structured text e No Skip this box e Yes Go to the next question Do any of those state routines use step numbers e Yes Type the number for the first step of each state e No Skip this box The tag for the equipment phase has a
87. led 124 Chapter 9 What You Need jicas a4 34 aswel ak ieg peas Seika eee 125 Follow These Steps hians dae owe bead aina eie ai ak 125 Troubleshoot I O Communication 0 00 c eee eee eee 126 Cleat a Major Faults dri rot o ea EEEa eee ARA Dole elie es 127 Search Functions in a Project had eee vere valk Pam Pekan Tee eek 128 Search for All Occurrences of a Element 04 128 Goto am TSEC ION yee Gd ae get Atk Sehnert tA He 129 Browse LOGIC si ile 8 ws ahah a ee AR Reta bee tet as 130 Forcing an I O Value yd asein nideruiorn d esaii E aan kd 131 Install an I O Force Force an I O Value 000 133 Remove an Individual Potce 4 224 455 debi AGS a ed 134 Disable Al T O Forces 0 ccc ec eens 134 Data Trend Histogram eeg 6 So pte a hatha tt hoe oo Ren aS 135 Run a Trend fot a Pag ats cutis Bice waitin tere wanin nid 4 135 Add More Tags to the Trend inks Rati Dinas MER as Sans 136 Save the Tretid si c15 6560 648 wishes tered idee euaaere ead 137 View Scam ELAS auc ae teutete tS tine daca E itn alee yil Pog tet a a ANA Aid 138 View Task Scan Time sais Sesh p estes Sethe apeees s 138 View Program Scan Time 44 4 2 an hae walen bao pee a ew BaD 139 Publication 1756 QS001E EN P October 2009 Preface About This Publication Use this manual to get started programming and maintaining Logix5000 controllers This manual describes the necessary tasks to do the following e establish communication with a Logix
88. lication 1756 QS001E EN P October 2009 Program and Test a Simple Project 2 Start RSLinx Classic software Vy RSLinx Gateway File Edit View Communications Station DDE OPC Security Window Help 2 s Bliz X 3 Click S 4 Select RS 232 DF1 devices and click Add New Configure Drivers Driver Types 5 From the Comm Port pull down menu choose the COM port of your computer Configure RS 232 DF1 Devices Device Name AB_DF1 1 Comm Pott com 7 Device Logix 5550 CompactLogix 7 Baud Rate 19200 ba Station Number 09 Z Decimal Parity None 7 Error Checking ecc 7 Stop Bits fi ba Protocol Ful Duplex x ie Configuration Successfull 6 From the Device pull down menu choose Logix 5550 CompactLogix 7 Click AstoConfigue 8 When the auto configuration completes click OK The driver is successfully configured and running Configured Drivers Name and Description Status AB_DF1 1 DF1 Sta 0 COM1 RUNNING Running AB_ETH 1 4 B Ethernet RUNNING Running AB_ETH 2 A B Ethernet RUNNING Running Publication 1756 0S001E EN P October 2009 Chapter 1 29 Chapter 1 Program and Test a Simple Project Download a Project to the Controller To execute a project in a controller download the project to the controller to transfer a project from your computer to the controller so you can run the project When you download a project you lose the project an
89. lly connect if you release the mouse button e Some toolbar buttons are active only after you select a corresponding element on the SFC For example to add an action first select a step e Drag an action until it is on top of the required step and then release the mouse button 2 To manually connect elements click corresponding pins A green dot shows a valid connection point 3 To enter structured text double click a symbol Then type the structured text and press Ctrl Enter 88 Publication 1756 QS001E EN P October 2009 Program a Project Offline Chapter 5 Assign Operands RSLogix 5000 software lets you program according to your workflow You can enter logic without assigning operands or defining tags Later you can go back and assign or define the operands to complete the logic MainProgram MainRoutine E H sael Then MyPata8 1 1 Else MyPata8 1 0 End_if Item Description A This instruction is missing an operand You can enter and save logic without assigning operands This lets you develop your logic in iterations and save libraries of code for re use B This is an undefined tag You can enter and save logic without defining all the tags This lets you develop your logic in iterations A tag name follows this format Name Element Member Element i ABLE or Index Optional Publication 1756 0S001E EN P October 2009 89 Chapter5
90. lowing format 4 mnemonic operand 1 operand 2 Quick keys Assign a logic element rung branch instruction to a keyboard key To add an element to the right or below the cursor press the designated key for the element Outputs in series Place multiple output instructions in sequence serial on a rung Interlace input and output instructions The last instruction on the rung must be an output instruction Parallel branches No limit to the number of parallel branches on a rung nest up to 6 levels Leave operands undefined enter logic without defining operands RSLogix 5000 software lets you enter and save logic without assigning operands This lets you develop your logic in iterations and save libraries of code for re use 68 Publication 1756 QS001E EN P October 2009 Program a Project Offline Chapter 5 Add a Rung or an Instruction Drag the button for the rung or instruction directly to the desired location A green dot shows a valid placement location drop point a Hlal af ogeu gt 4 gt Favorites Bit A Timer CouNer A Input Output A Compare Bda Add a Branch 1 Drag the branch button to where the branch starts A green dot shows a valid placement location drop point a HI tot fret afale toner gt 4 gt Favorites Bit Timer Counter il Sael Compare 2 Drag a branch rail to the desired location Add a Level
91. m This lets you re use both logic and tag names in multiple programs Avoid using the same name for both a controller tag and a program tag Within a program you cannot reference a controller tag if a tag of the same name exists as a program tag for that program Certain tags must be controller scope controller tag If you want to use the tag Assign this scope In more than one program in the project In a Message MSG instruction To produce or consume data To communicate with a PanelView terminal controller scope controller tags None of the above program scope program tags For integers use the DINT data type Publication 1756 0S001E EN P October 2009 To increase the efficiency of your logic minimize the use of SINT or INT data types Whenever possible use the DINT data type for integers e A Logix5000 controller typically compares or manipulates values as 32 bit values DINTs or REALs e The controller typically converts a SINT or INT value to a DINT or REAL value before it uses the value e f the destination is a SINT or INT tag the controller typically converts the value back to a SINT or INT value e The conversion to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory 95 Chapter5 Program a Project Offline Guideline Limit a tag name to 40 characters Details Here are the rules fo
92. m Control ForBreak A Special Trig Functions Advanced Math H sael 2 On the Program Control tab add a JSR instruction execute e 1 e ump To Subroutine e Routine Name MyFBD 1 e Input Par M e Input Par e Return Par e e MainRoutine J In the Routine Name field of the JSR instruction type the name of the routine that you want to To simply call the routine remove the rest of the parameters for the JSR instruction To remove a parameter right click the parameter and choose Remove Instruction Parameter ES Add Input Parameter Its Add Return Parameter E3 Remove Instruction Parameter N Save Instruction Defaults Publication 1756 QS001E EN P October 2009 Program and Test a Simple Project Enter a Function Block Diagram Enter function block diagram instructions in a function block routine 1 Click the tab for the desired instructions 4 Gl O an se prve anes rosr srte Lovs 4f 5 Favorites Process A Drives A Filter A Select Limit Statistica sia ol z Sheet 1 of1 A 2 Drag elements from the toolbar to the sheet 3 To connect elements click corresponding pins green dot valid connection point Chapter 1 EXAMPLE _ In the following example an Input Reference IREF reads the value of an analog input and sends the value to a Scale SCL instruction The SCL instruction converts the v
93. n an IP Address to Your Computer If your EtherNet IP network is a standalone network and your EtherNet IP device uses IP address and subnet mask values you may need to change the IP address and subnet mask values for your computer 1 Choose Start gt Settings gt Network and Dial up Connections 2 Right click on Local Area Connection 3 Choose Properties FY Network and Dial up Connections Address Network and Dial up Connections File Edit View Favorites Tools Advanced Help Back gt fy Bsearch O Folders history R w E Make New Connection Lo LJ I cal daa eamaaaiionl B Disable Network and Dial up eS O a Connections Create Shortcut Local Area Connection Rename Type LAN Connection Properties 114 Publication 1756 QS001E EN P October 2009 Go Online to the Controller Chapter 7 4 Select Internet Protocol TCP IP 5 Choose Properties aixi General Connect using E9 Intel R PRO 1000 MT Network Connection Configure Components checked are used by this connection Client for Microsoft Networks 8 File and Printer Sharing for Microsoft Networks ol TCP IP lt Instat Uninstall 6 Select Use the following IP address 7 Change the IP address and subnet mask aixi General You can get IP settings assigned automatically if your network supports this capability Otherwise you need to ask your networ
94. n dynamically switch between languages as you use the software Project documentation that supports multiple translations within a project includes e Component descriptions in tags routines programs user defined data types and Add On Instructions e Equipment phases e Trends e Controllers e Alarm messages in ALARM_ANALOG and ALARM_DIGITAL configuration e Tasks e Property descriptions for modules in the Controller Organizer e Rung comments SFC text boxes and FBD text boxes For more information on enabling a project to support multiple translations of project documentation see the online help 108 Publication 1756 QS001E EN P October 2009 Chapter 7 Go Online to the Controller Use this chapter to access the project in the controller so you can monitor edit or troubleshoot the controller What You Need You need these items to complete the tasks in this manual e Personal computer running RSLogix 5000 software version 16 or later and RSLinx software e The physical system to which you are connecting e EtherNet IP cabling e EtherNet IP communication card s for the for the module s in our sample project e The project you want to access Follow These Steps 1 Establish EtherNet IP communication with the controller page 110 2 Go online to a controller page 116 Publication 1756 OS001E EN P October 2009 109 Chapter7 Go Online to the Controller Establish EtherNet IP Communication with the Controller
95. ng and then Shift click the last rung Out Of sequence Click the first rung and then Ctrl click each additional rung 2 Right click the selection and choose Export Rung Cut Rung Ctrl x Copy Rung Ctrl C FA Paste Ctrl Delete Rung Del Add Rung Ctrl R Edit Rung Enter Edit Rung Comment Ctrl D Import Rung Export Rung Start Pending Rung Edits 3 Choose a location and name for the file 4 Create the file 7 Save in Gy Library e E a CountScans L5 aj StartStop L5 a DelayRoutineCompletion L5X DetectTimeOutOfEventTask L5x FreeRunningCounter L5x GetMajorFaultRecord L5x LookForSpecificFault L5 me Save as type RSLoaix 5000 Import Export File L5 7 Cancel 74 Publication 1756 QS001E EN P October 2009 Program a Project Offline Chapter 5 Import Rungs 1 Right click the location for the rungs and choose Import Rung 10 xi i SSB A Cut Rung Ctrl x Copy Rung Ctrl C amp Paste Ctrl V Delete Rung Del Add Rung Ctrl R Edit Rung Enter Edit Rung Comment Ctrl D L coneyor tpt ay Export Rung 2 Select the file to import and click Import 5 Look in ja Library Aee a CountScans L5 a StartStop L5X DelayRoutineCompletion L5X a DetectTimeOutOFEventTask L5x a FreeRunningCounter L5 B GetMajorFaultRecord L5x a LookForSpecificFault LSX File name GetMajorF aultRecord
96. nter the tag that gives the stop Start Enter the tag that gives the start Jog Jog command for the motor To AuxContact Auxiliary contact of the motor M ClearFault To clear the fault of the motor tt Out Output command to the motor st Fault If on the motor didn t start or sto FaultTime Enter the time ms to wait for the 4 gt Insert Definition Defaults Save Instruction Defaults Cancel Apply Help 2 Click Apply 3 Click OK 56 Publication 1756 QS001E EN P October 2009 Program Add On Instructions Chapter 3 View the Logic of an Add On Instruction It s possible to protect an Add On Instruction so that you can t see its logic You can determine whether an Add On Instruction is protected 1 Select the add on instruction 2 Look in the Quick View pane for Source Protection Controller My_Controller_1 Tasks Motion Groups G Ungrouped Axes J Add On Instructions Conveyor _Control Motor_Starter Simulate_Feedback Simulation_DT_1st Description Starts and stops a conveyor Revision v1 0 Revision Note Vendor Rockwell Data Type Siz 60 Edited 4 25 2006 11 02 23 AM Source Prote Source not available If it isn t listed then the routine isn t protected To view the logic right click the instruction and choose Open Instruction Logic jotor_Starter Starts and stops a motor Stop Start Out Motor_Out_LD 0e Motor
97. o complete the tasks in this manual e Personal computer running RSLogix 5000 Software version 16 e A plan for the project you are programming Before You Begin In this chapter you program the project while offline Online programming requires additional steps See chapter Chapter 8 Program a Project Online Follow These Steps 1 Enter ladder logic page 68 2 Export import ladder logic page 73 3 Enter a function block diagram page 77 4 Use a faceplate for a function block page 81 5 Enter structured text page 84 6 Enter a sequential function chart page 87 7 Assign operands page 89 8 Verify a project page 92 9 Review guidelines for tags page 94 Publication 1756 QS001E EN P October 2009 67 Chapter5 Program a Project Offline Enter Ladder Logic To enter ladder logic you have the following options Branch Level Branch j Rung XIC XIO OTE OTU OTL MOE SH SHCTOnS Drag and drop logic elements Use the p Language Element toolbar to drag and drop a rung branch or instruction to your routine A H ent b arja joo Ton cru gt EA Favorites ADEA Tmerkomter mpaiupa Compare Rung 0 in ASCII Text z Xifxc MyTag_1 0 OTE MyTag 21 lt a ASCII text Use ASCII text to enter or edit logic A tool tip helps you enter the required operands c CTU d GEQ f XI0 OTL o OTE RUNG s 05F u OTU x XIC ASCII text typically uses the fol
98. orce values may or may not exist e When you install add a force it immediately takes effect 132 Publication 1756 QS001E EN P October 2009 Troubleshoot the Controller Chapter 7 Install an 1 0 Force Force an 1 0 Value 1 Go online with the controller and open the routine that contains the tag that you want to force 2 Right click the tag and choose Monitor MOV Move Source Flow_Valve_1 50 0 Dest Local 7 0 ChOData b 50 0 Local 4 Data 0 Local 5 0 Data 6 PON 3 If necessary click the sign of the tag to show the value that you want to force for example the BOOL value of a DINT tag Tag Name Local 4 C Local 4 1 Local 4 Fault 4 Install the force value To force a Do this BOOL value Right click the tag and choose Force ON or Force OFF Integer or REAL value In the Force Mask column for the tag type the value to which you want to force the tag and press Enter 5 From the Forces menu choose I O Forcing gt Enable All I O Forces and click ves F 1 0 Forces Enabled Forces Installed No Edits F SFC Forces Disabled None Installed F oj Publication 1756 0S001E EN P October 2009 133 Chapter 7 Troubleshoot the Controller Remove an Individual Force 1 Go online with the controller and open the routine that contains the tag that you want to force 2 Right click the tag and choose Monitor BN
99. pment phase goes to the Idle state The Resetting state routine is optional Without it the equipment phase goes directly to the Idle state 62 Publication 1756 QS001E EN P October 2009 Program an Equipment Phase Chapter 4 6 Click Ownership This releases the equipment phase from control by this window Configure the Initial State for an Equipment Phase The initial state is the first state to which the equipment phase goes after you apply power 1 Right click the equipment phase and choose Properties 2 Choose the Configuration tab 3 Choose the Initial State and click OK be Equipment Phase Properties My r inmar TaT Enteral Peget Hod A nora Publication 1756 0S001E EN P October 2009 63 Chapter 4 Program an Equipment Phase Open the Configuration for an Equipment Phase 1 Right click the equipment phase and choose Properties 2 Click the Configuration tab E Equipment Phase Properties My Phasa General Configuration Parsneteas Horor Anhini Rmin Pedais nore Fault U T inhibit Equpren Frese hiatas lide K Cong Sise mediately rol implemented ited Step irer 0 Ermal Sequence Los of Commun ation ar ae Erama Fi aguad Hold action Configure an Equipment Phase Use the following settings to configure an equipment phase Setting Choices Prestate in prestate routine current state routine eee The prestate routine runs al
100. r Up Handler 6 Tasks fa MainTask o MainProgram A Program Tags Ba MainRoutine a Routine_B 3 Routine_c Publication 1756 QS001E EN P October 2009 35 Chapter2 Organize a Project Follow These Steps 1 Configure the task execution page 36 2 Create additional programs page 38 3 Create user defined data types page 40 4 Define your routines page 43 5 Assign main routines page 47 6 Configure the controller page 48 7 Configure I O modules page 49 Configure the Task Execution In this quick start we limit the project to a single task with one of the following types of execution If you want to execute your logic All of the time Execution of Logic task automatically task automatically task automatically task automatically restarts restarts restarts restarts Then configure the task for this type of execution Continuous This is the default configuration of MainTask At a specific period Execution of Logic A A A A task finishes period expires task finishes period expires task restarts task restarts 36 Periodic You define the period at which the task executes Publication 1756 QS001E EN P October 2009 Organize a Project Chapter 2 1 Right click MainTask and choose Properties BEE Controller Controller _Quick_Start_1 I Controller Tags 2 Controller Fault Handler 3 Power Up Handler B Ta
101. r a tag name Only alphabetic characters A Z or a z numeric characters 0 9 and underscores _ Must start with an alphabetic character or an underscore No more than 40 characters No consecutive or trailing underscore characters _ Not case sensitive Use mixed case Although tags are not case sensitive upper case A is the same as lower case a mixed case is easier to read Consider the alphabetical order of tags 96 These tags are easier to read Than these tags flankt TANMKT Tank1 TANKI tank_1 tank1 RSLogix 5000 software displays tags of the same scope in alphabetical order To make it easier to monitor related tags use similar starting characters for tags that you want to keep together Starting each tag for a tank with Otherwise the tags may end up Tank keeps the tags together separated from each other Tag Name Tag Name Tank_North North_Tank Tank_South _ __ other tags that start with the letters o p q and so on South_Tank Publication 1756 QS001E EN P October 2009 Chapter 6 Document a Project Use this chapter to document your RSLogix 5000 project This makes the system easier to debug maintain and troubleshoot What You Need You need these items to complete the tasks in this manual e Personal computer running RSLogix 5000 software version 16 e The project you are documenting Follow These Steps 1 Describe
102. roller Quick Start_1 iQ Controller Tags Controller Fault Handler 5 Power Up Handler Tasks a MainTask amp MainProgram Unscheduled Programs Phases E Motion Groups Add On Instructions Data Types Gi Trends 1 0 Configuration 138 Publication 1756 QS001E EN P October 2009 Troubleshoot the Controller Chapter 7 2 Click the Monitor tab fl Task Properties MainTask General Configuration Program Schedule Monitor Scan Times Elapsed Time Max 1 302000 ms La Last 0 048000 ms Elapsed Time of The Last Execution of This Task Maximum Elapsed Time of the Task View Program Scan Time 1 Right click and choose Properties Controller Controller _Quick_Start_1 I Controller Tags Controller Fault Handler Power Up Handler Tasks 5 fa MainTask amp MainProgram 5 Unscheduled Programs Phases Motion Groups Add On Instructions Data Types Trends 1 0 Configuration 2 Click the Configuration tab E Program Properties MainProgram General Configuration Assigned Routines Main l MainRoutine Fault IES Scan Times execution time Max 34 us Reset Max Last fio us Maximum Execution Time of This Program Execution Time of the Last Execution of This Program Publication 1756 0S001E EN P October 2009 139 Chapter 7 Troubleshoot the Controller Notes 140 Publication 1756 QS001E EN P October 2009
103. s of Rockwell Automation Inc Trademarks not belonging to Rockwell Automation are property of their respective companies Summary of Changes This version of the quick start corresponds to revision 18 of the Logix5000 controller firmware Change Page Descriptions of controller modes 32 Language switching 108 124 Additional information for finalizing edits in larger projects Publication 1756 O0S001E EN P October 2009 Summary of Changes Notes 4 Publication 1756 QS001E EN P October 2009 Preface Program and Test a Simple Project Organize a Project Publication 1756 0S001E EN P October 2009 Table of Contents About This P bli tion aoa Menai eenn ee Sine eran a ene s 9 Required Software spre jae 2 Sa 2s BEERS E ay TEE E CIS 9 Additonal Res utces r dv dariney tua Sele nrs ETE EEA Hae Ei 10 Chapter 1 What Y OU Need o s hn wet oa nan ss wpe Mah area yas 11 BELORe VOU Begins eurrien iii Eh wile il eh dates eet Se 3 12 Follow Mes Ste pS vile acd ftir ater oth inc Waka E A aN ly 13 Create a Project for the Controller sce lt i aa sh Gosia pewhsa eas 14 Conventions for Names sti dina whol ON NLA maint tl Nh in 15 Add Y out O Mod les ganii ocak eo Sas oa aa dee ae 15 Look at Your I O Data oe ec ee ene nena 17 Fadder Logie tia rennin nat dele hae aa ethos rau ly ay 19 Enter Ladder Opes atin e ena Wea ti itis E easel 20 Enter a Function Block Diagram anica ding carted os a aw noe ae we 21 Createa ROW
104. search for 128 IP address assign to module 110 L ladder logic add rung comment 101 102 edit online 119 124 enter 68 export 73 import 73 use for 43 use of quick keys 68 library of logic create and use 73 Publication 1756 QS001E EN P October 2009 logic check for errors 92 edit online 119 124 main routine assign 47 use of 43 major fault clear 127 mode controller 32 monitor controller 116 equipment phase 61 project in controller 118 name guidelines for tag 94 limitations 14 0 online edit logic 119 124 finalize all edits 124 with controller 116 operand assign 89 P pass through description 98 period define for task 36 periodic task execution 36 phase state routine add 60 program assign main routine 47 create 38 finalize all edits 124 scan time 138 program mode 32 programming language choose 43 RSLogix 5000 software 44 program scope tags when to use 38 Publication 1756 0S001E EN P October 2009 Index project create 14 download 30 monitor in controller 116 organize routines 43 upload 118 verify 92 PXRO instruction hold action 66 lost communication 65 Q quick keys enter ladder logic 68 revision controller firmware 30 routine add phase state routine 60 check for errors 92 create 43 create tag 89 edit logic online 119 124 import ladder logic 73 organize 43 program ladder logic 68 program using a function block diagram 77 program using an SFC 87 program u
105. sing structured text 84 RSLogix 5000 software give command 61 monitor an equipment phase 61 run mode 32 rung comment add 101 102 export import 102 S scan time view 138 scope choose for tag 38 guidelines 94 search browse 130 comments or descriptions 128 instruction 128 tag 128 143 Index 144 sequential function chart See SFC serial communication with controller 28 set hold action for a PXRQ instruction 66 initial step index 25 64 SFC document 105 edit online 119 124 enter 87 use for 43 sheet use of 77 state routine See phase state routine states set the initial state 63 step through 61 structure create 40 organize 94 structured text document 107 edit online 119 124 enter 84 use for 43 subroutine See routine T tag create 89 description 98 force value 131 format 89 guidelines 94 I O module 17 organize 40 94 reuse of names 38 scope 38 search for 128 trend value 135 task configure 36 scan time 138 test equipment phase 61 test mode 32 text box add to function block diagram 105 add to SFC 105 transition step through 61 trend create and run 135 troubleshoot check wiring to output device 131 communication with 1 0 module 126 entire system is shut down 127 override logic 131 see data history 135 several devices not responding 126 U update controller firmware 30 upload project 118 user defined data type create 40 use of 40 V verify project 92 Publication 1756
106. sks z fa MainTask amp MainProgram 3 Unscheduled Programs Phases Motion Groups Add On Instructions Data Types Trends 2 1 0 Configuration 2 Click the Configuration tab 3 From the Type pull down menu choose Periodic fl Task Properties MainTask General Configuration Program Phase Schedule Monitor Type Periodic Re Period iz me Priority Lower Number Yields Higher Priority Watchdog 500 000 ms 4 Type the period for the task and click OK To use multiple tasks or execute a task when a specific event trigger occurs see Logix5000 Controllers Common Procedures publication 1756 PM001 Publication 1756 0S001E EN P October 2009 37 Chapter2 Organize a Project Create Additional Programs A Logix5000 controller lets you divide your application into multiple programs each with its own tags data ites Controller Quick_Start_1 aS Controller Quick_Start_ A Controller Tags A Controller Tags 2 Controller Fault Handler 2 Controller Fault Handler C 2 Power Up Handler CI Power Up Handler B E Tasks E E Tasks 5 8 MainTask a MainTask E cB MainProgram B cS MainProgram A Program Tags A Program Tags ERI MainRoutine E MainRoutine E Routine_B 4 Routine_B E Routine_c 2 Routine_c B cB Program_B A Program_B A Program Tags A Program Tags ER Main_Routine Ea Main_Routine Item Description A
107. switches to the test edits all test edits Function block F execute Structured text LA i ae SFC gt e Outputs in the original logic stay in their last state unless executed by the test edits or other logic In an SFC the chart resets to the initial step and stored actions turn off Untest the edits Execution switches back to the original logic Outputs in the test edits stay in their last state unless executed by the original logic or other logic In an SFC the chart resets to the initial step and stored actions turn off In relay ladder if you delete a rung the software immediately marks it as a test edit upper case D character Start a Pending Edit 1 For relay ladder click select the rung that you want to edit 2 Start a pending edit 1 0 x 151 x Gez med alse hse d sel az ZAK d Se MainRout Pack Ca 4 APN MainRou Pack_Ca 4 Relay Ladder Function Block Structured Text SFC Publication 1756 0S001E EN P October 2009 121 Chapter 8 Program a Project Online Make and Accept Your Edits 1 Make your changes 2 Accept your changes The changes download to the controller and become test edits 101 Ep les alse J Mls wl El S S ________ gt e co M r r r r a MainRou 4 Pack_Ca aj S NES Relay Ladder Test the Edits 122 1 Test the ed
108. t are created during the import operation The Operation column shows what will happen to each tag and data type during the import The software either creates it uses an existing one in the project or discards it does not import it If you place the variables for the rungs in a user defined data type you have less tags to manage If desired you can rename a tag to make it fit the project better If a tag already exists in the project you can either Import Configuration e use the existing tag which discards the tag in the library file and binds the logic to the existing tag i Conveyor CN1 Motor Create New e rename the tag which creates a Be D Estop_Disabled BOOL No Estop pressed Use Existing new one D Local 1 1 7 AB 1756_DI 1 0 Discard il Local 2 0 AB 1756_D0 0 0 Use Existing If an 1 0 tag already exists in the project the import operation uses this tag for any aliases to that tag name Once you import a project make sure you check the alias tags for accuracy No new I O tags are created Publication 1756 0S001E EN P October 2009 73 Chapter5 Program a Project Offline Export Rungs 1 Select the rungs to export EE MainProgram MainRoutine 10 x E SSB SR One Shot Rising Storage Bit Start_PB_Store_Bit Output Bit Startup_Reset 41 gt MainRoutine If rungs are Do this In sequence Click the first ru
109. te configuration Warning A situation that may prevent the project from executing as expected RSLogix 5000 software lets you download a project that contains warnings Warnings include situations such as duplicate destructive bits and unassigned main routines Error A situation that you must correct before you download the project Errors include situations such as missing operands or undefined tags Duplicate destructive bit detection Determine if other logic bit instruction OREF ST assignment also clears or sets the value of a bit that you use in a OTE ONS OSF or OSR instruction RSLogix 5000 software detects duplicate destructive bits only if all of the following conditions are met e You enable duplicate destructive bit detection It s off by default e You use the bit in a ladder logic OTE ONS OSF or OSR instruction e Another logic element such as a bit instruction OREF or ST assignment also references that same bit and can change its value If you do not use a bit in an OTE ONS OSF or OSR instruction the software does not detect any duplicate destructive bits even if they exist By default duplicate destructive bit detection is turned off Follow these steps to verify a routine or project 1 Choose a verify option l RSLogix 5000 Controller_Quick_Start_1 1756 163 MainProgram Subroutine_B File Edit Yiew Search Logic Communications Tools Window Help alem S seel o x lell Tk GIB A
110. the manufacturing facility However if your product is not functioning and needs to be returned follow these procedures United States Contact your distributor You must provide a Customer Support case number call the phone number above to obtain one to your distributor to complete the return process Outside United States Please contact your local Rockwell Automation representative for the return procedure Documentation Feedback Your comments will help us serve your documentation needs better If you have any suggestions on how to improve this document complete this form publication RA DU002 available at http www rockwellautomation com literature www rockwellautomation com Power Control and Information Solutions Headquarters Americas Rockwell Automation 1201 South Second Street Milwaukee WI 53204 USA Tel 1 414 382 2000 Fax 1 414 382 4444 Europe Middle East Africa Rockwell Automation Vorstlaan Boulevard du Souverain 36 1170 Brussels Belgium Tel 32 2 663 0600 Fax 32 2 663 0640 Asia Pacific Rockwell Automation Level 14 Core F Cyberport 3 100 Cyberport Road Hong Kong Tel 852 2887 4788 Fax 852 2508 1846 Publication 1756 0S001E EN P October 2009 Supersedes Publication 1756 0S001D EN P February 2007 Copyright 2009 Rockwell Automation Inc All rights reserved Printed in the U S A
111. tion the if while or until of a construct C Assignment writes a value to a tag The value moves from the right side of the to the left side D Numeric expression calculates a value E Semicolon terminates an assignment instruction or end of a construct As you enter structured text follow these guidelines Guideline Description Structured text is not case sensitive Use any combination of upper case and lower case letters that makes your text easiest to read For example these three variations of IF are the same IF If if Use tabs spaces and carriage returns Tabs spaces and carriage returns have no effect on the execution of the structured text separate lines to make your structured 2 z taxteasiertotraad This Executes the same as this If Booll then If Booll then Bool2 1 End if Bool2 1 End if Bool2 1 Bool2 1 84 Publication 1756 QS001E EN P October 2009 Program a Project Offline Chapter 5 Guideline Write BOOL expressions as either true or false Description Use a BOOL expression to determine if specific conditions are true 1 or false 0 e ABOOL tag is already true 1 or false 0 Do not use an sign to check its state This is OK This is NOT OK If Booll If Booll TE ess If Bool2 0 If Not Bool2 To check an integer REAL or string make a comparison lt lt gt gt This is OK
112. top A E ere nein nai cote say 67 Before Yo Begino seie simula panaia en ae aaa ache ted wa shears 67 Follow These Steps dericsiessssiieresrs rere nin bens ne egy sks 67 Enter Ladder Logi pia eioi AE E E EAEE A os 68 Add a Rung or an Instruction 4 os price ce whed AE ee rererua 69 Adda Braincharre si a aes ne ne Te Oe ene AA 69 Add ae Ve hed Branch Aai Horreri tye hile ti ay E Aycan dy 69 DPeletean Elemente neen ii e e Owyhee aces Pang Woy 70 Use the Keyboard to Add an Element o s dipetsnae ceed in 70 Enter Logic Using ASCII Veta gt oat os etsy aay 71 Enable Quick Keys ionene eon nhs Sib ees eee es 72 Export Import Ladder Logic 145 cand enue ak be sas ows enter 73 When You Import Runes inciet hin opie dy adie oie Sales ow 73 Export Ramos St yc Torit ee DE ee tas Gh le Blasi Os ae 74 Import RUGS ine Geta E A ta in tes pik ah ate btn ate 75 Check Alias Passi ionin E EERE dua ahe uaa 76 Publication 1756 QS001E EN P October 2009 Document a Project Go Online to the Controller Publication 1756 0S001E EN P October 2009 Table of Contents Enter a Function Block Diagram wise mia eat VGA 4 ae Rew Tb 77 Use the Keyboard to Add an Element j4ac044sceaa vives 78 Connect FIeEMeEntS hind iste walt DEN AM has ie NN 2 a 79 Reso a TOO pips taian ie aa aig A a N 80 Add Sheet esesta riae preii pa nae aii uah ede datas tein ted 80 Use a Faceplate for a Function BIOCK pieced Pealewaaon eRe fon 81 Set Up A POpiC lt ac4taiieers oo Gee nS ae ees 82
113. ts Program Add On Instructions Program an Equipment Phase Program a Project Offline Chapter 3 What YoueNesds s aviv a meini ar Wet es Boat Gabe hen aes a 51 Follow These Ste Asse ttawe e nE A TERESE N wale CELTS 51 Insert an Add On Instruction ss sj scree ich ea A eee 52 Copy an Add On Instruction Definition 0 000 53 Import an Add On Instruction Definition 000 0 54 Access a Parameter That Is Not Visible sis 04 ions adrante odes 55 Funcion Blocks 4 io shiek vats Coe poet dea nites peepee as 55 Ladder Logic and Structured Text ijcd ee SS 55 Monitor or Change the Value of a Parameter of an Add On TnstructHon a eseese aata e E A EEE 56 View the Logic of an Add On Instruction 000000 57 Edit and Monitor an Add On Instruction 00000 58 Update an Add On Instruction to a Newer Revision 58 Chapter 4 What Xou Need igro i a n MAIC e n dia AMONG Net 59 Follow These Steps iis irese dioni hiis RR EEEE Se A 59 Create an Equipment Phase ossesiresrrriseeerecrererran 60 Greate State Rowtine s cicii hava toe toon ee ea dein iiano raaua BY 60 Manually Step Through the Statesines eda nhecedt iit Raa nai es 61 Configure the Initial State for an Equipment Phase 63 Open the Configuration for an Equipment Phase 64 Configure an Equipment Phase tit isledaie stirs dtm aback ate inn ans 64 Chapter 5 What You Need Metear ts ot a
114. tton If the pushbutton is on the Output Energize OTE instruction turns on a light XIC OTE If this bit is on turn on this bit Otherwise turn off this bit 20 Publication 1756 QS001E EN P October 2009 Program and Test a Simple Project Chapter 1 Enter a Function Block Diagram Follow these steps to add a function block diagram to your project Create a Routine Each routine in your project uses a specific programming language To program in a different language such as function block diagram create a new routine 1 Right click MainProgram and choose New Routine Controller My_Controller Controller Tags i Controller Fault Handler Power Up Handler 3 6 Tasks MainTask pres a Bh MainRoutine New Routine FE Unscheduled Programs Yi cut E Motion Groups as i Add On Instructions Ea Copy Ctrl C Data Types Gi Trends 2 Type a name for the routine xl Name l Description Cancel H Type E Function Block Diagram In Program MainProgram pE Help 3 Choose the programming language 4 Click OK Publication 1756 0S001E EN P October 2009 21 Chapter 1 Program and Test a Simple Project Call the Routine To execute a routine other than the main routine use a Jump to Subroutine JSR instruction to call the routine 22 1 Add a rung KI EE np eL sr ux Ret ser Tno ncr ur0 ure srr sre gt Math 4 h Progra
115. u install a force the new force immediately takes effect Publication 1756 0S001E EN P October 2009 131 Chapter 7 Troubleshoot the Controller If you want to Then Override a value Install an I O force force an 1 0 value Stop an individual force but leave other forces enabled and in effect Remove an individual force Stop all 1 0 forces but leave the 1 0 forces in the project Disable all 1 0 forces A force overrides a value from an input device or logic e Forcing an input tag overrides the value from the input device e Forcing an output tag overrides your logic and sends the force value to the output device MOV Move Source Flow_VYalve_1 50 0 Dest Local 7 0 ChOData b 50 0 Local 4 Data 0 Local 5 0 Data 6 gt ON When forces are in effect enabled a appears next to the forced element BNOT Boolean Not 1 gt o Local 5 0 Data 15 The force indicator on the front of the controller and in the programming software indicates status Rem Run AU 1 0 Forces REM Enabled Eg Forces b Installed No Edits as F SFC Forces Disabled None Installed D If the indicator is Then Off e No tags contain I O force values e 0 forces are inactive disabled Flashing amber e One or more tags contain a force value 1 0 forces are inactive disabled When you enable 0 forces all existing 1 0 forces take effect Solid amber 1 0 forces are active enabled e F
116. ur network is a standalone network that does not connect to the Internet from this source Sticker on the device IP address Subnet mask Gateway address may not be required Network administrator 192 168 1 x where x any value between 1 and 254 255 255 255 0 Not needed In this case your computer must use an IP address that is close to the EtherNet IP device s IP address For example if the EtherNet IP device uses the 192 168 1 x addressing the computer must also use that addressi ng but with a different x value 2 In this case your computer must use the same subne Publication 1756 0S001E EN P October 2009 mask value as the EtherNet IP device 111 Chapter7 Go Online to the Controller Connect Your EtherNet IP Device and Computer Connect your EtherNet IP device and computer via ethernet cable ATTENTION If you connect or disconnect the communications cable with power applied to this module or any device on the network an electrical arc can occur This could cause an explosion in hazardous location installations LogixS000 Ethernet Controller or Switch Communication Module u Standard Ethernet Cables With RJ 45 Connector Logix5000 or Controller or Communication Module Crossover Ethernet Cable With RJ 45 Connector Assign an IP Address to the Controller or Communication Module Follow these steps if you do not have a seria
117. y is assumed by Rockwell Automation Inc with respect to use of information circuits equipment or software described in this manual Reproduction of the contents of this manual in whole or in part without written permission of Rockwell Automation Inc is prohibited Throughout this manual when necessary we use notes to make you aware of safety considerations Identifies information about practices or circumstances that can cause an explosion in a hazardous environment which may lead to personal injury or death property damage or economic loss IMPORTANT Identifies information that is critical for successful application and understanding of the product ATTENTION Identifies information about practices or circumstances that can lead to personal injury or death property damage or economic loss Attentions help you identify a hazard avoid a hazard and recognize the consequence SHOCK HAZARD Labels may be on or inside the equipment for example a drive or motor to alert people that dangerous voltage may be present BURN HAZARD Labels may be on or inside the equipment for example a drive or motor to alert people that surfaces may reach dangerous temperatures o A EENS cou A A A Allen Bradley Rockwell Automation CompactLogix ControlLogix DriveLogix FactoryTalk Batch FactoryTalk View SE PhaseManager PowerFlex RSLinx RSLinx Classic RSLogix 5000 SoftLogix and TechConnect are trademark

Download Pdf Manuals

image

Related Search

Related Contents

Actron CP7674 Automobile Accessories User Manual    カメラペデスタル TP  MicroDock II Bedienungsanleitung  Visual MODFLOW Multi-Node Wells Tutorial  DUTCH GERMAN SWEDISH  膨脹式救命胴衣等の自己点検整備要領 - 社団法人・日本船舶品質管理  Please Follow the Instructions in This Manual to Ensure Successful  Ecocut MG 531 - Fuchs Lubricantes  

Copyright © All rights reserved.
Failed to retrieve file