Home

Logix5000 Controllers

image

Contents

1. 1 Data Types Last f O T 1 Trends Execution Time of the Last Execution of This Program 1 fad Ti PanFiniwakine Publication 1756 QS001D EN P February 2007 A add phase state routine 38 Add on Instructions 29 alias tags use 45 array create 61 organize 95 use of 61 ASCII text enter logic using 73 assume data available indicator use of 81 BOOTP use of 110 browse logic 132 C clear major fault 128 command give with RSLogix 5000 software 39 comment add to function block diagram 106 add to rung 102 103 add to SFC 106 add to structured text 108 search for 129 communicate with controller via EtherNet IP network 110 with controller via serial cable 48 communication fault 127 configure controller 18 68 driver for EtherNet IP communication 110 driver for serial communication 48 I O module 19 69 task 57 trend 137 continous task execution 57 controller Index communicate via EtherNet IP network 110 communicate via serial cable 48 configure 18 68 download project 51 faulted 128 go online with 115 mode 53 monitor 118 monitor execution 115 revision 51 controller organizer add I O module 19 navigate 18 open routine 23 controller scope tags when to use 59 conventions 10 create phase state routine 38 program 59 project 18 routine 64 sheet 81 text box 106 trend 137 D data I O module 21 trend 137 description rung 102 103 search for 129 tag
2. New Equipment Phase State Routine x O 3 Selecta name for the Equipment Phase l state routine State K Running Description Help Ladder Diagrarn In Phase e My Phase 4 Select the programming language 5 Click OK Open Routine on OF Publication 1756 QS001D EN P February 2007 Program and Test a Simple Project 39 i Manually Step Through the States Before you do this procedure do the following e Download the project to the controller e Put the controller in run or remote run mode E Step Notes a FE Controller MyController Sen Tasks See MainTask fe MainFrogram Verify Cross Reference Ckrl E Monitor Equipment Phase k a 1 Right click the Equipment Phase and choose Monitor Equipment Phase g F Equipment Phase Monitor My _Phase Guipment Phases FASE Owner s lt none gt iy Phase Restart Resetting i E 2 Click the ownership button and then Yes take ownership This lets you use this window to step through the states Publication 1756 0S001D EN P February 2007 40 Program and Test a Simple Project Step Notes F Equipment Phase Monitor My_Phase oj x Equipment Phases FSE Gunes ASLoaix 500011 iy Phase tart Hald i a Hold Restart 7 F 3 Click Start e The Equipment Phase goes to the Running state e Any code in the Running state routine starts running This Is where you put the cod
3. 1756 IH161 16 Point 90 1464 DE Isolated Ing 3 Select the revision of the module x 756 IH1 615E 16 Channel Isolated 1254 Input Se Select major revision for new 1756 1076 module o LPOGIMI61 16 Point 159 265 AC Isolated Ir being created 1756 INTS 16 Point 104 304 AC Input 2 Select the type of module Major Revizion ee pe ee eS New Module 1756016 16 Point 30W B0 DC Input 151 endor 5 Allen Bradley o n EA E Noe pes Types 4 Type aname for the module up to 40 characters with no spaces 5 Select the location of the module a npt Data SSsS S Swr in the chassis or rail ee De Revision J Compatible Keying oe 6 Accept the default configuration for the module iv Oo pen M D du le Properti es Aig HAE Bape ey eee Publication 1756 QS001D EN P February 2007 Program and Testa Simple Project 21 Look at Your 1 0 Data I O information is presented as a set of tags Controller My_Project_1 Controller Tags When you add a module to the 1 0 E Controller Fault Handler Configuration folder E Power Up Handler Tasks 9 Motion Groups Add On Instructions f Data Types E Trends the software automatically creates controller scoped tags for the module ATO Configuration An I O address follows this format Where Location Slot Type Member SubMember BIC Optional Is Network loca
4. Oooo Tank Tank P al Tanks 1 TE Tank ae H T anks 2 West Tank o Eana C Publication 1756 0S001D EN P February 2007 102 Document a Project 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 B MainProgram MainRoutine ol x i 55 53 63 1 Right click the rung and choose Edit Rung Comment Cut Rung Ctrl Copy Rung Ctrl C EA Paste Ctrl Delete Rung Del Add Rung CHrl R Edit Rung Enter Edit Rung Comment h Ctrl D Import Rung Eaei UIE E B MainProgram MainRoutine O x H Sael E ee oe a E 2 ype your comments Rung Comment For Rung 0 x 5 sit oe Ps 3 Close the entry window Enel 4 r MainRoutine A Refill Hop 4 Publication 1756 0S001D EN P February 2007 Document a Project 103 Enter and Edit Rung Comments Using Microsoft Excel aT RSLogix 5000 software ea 13 0 or later 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 IMPORTANT Rung comments export in the CSV comma delimited format Make sure you keep that format when you save and close the export file Publication 1756 QS001D EN P February 2007 104 Docume
5. Optional Save the Trend Aur Stop Eme Log mj MyT ag_ 1 a BS OMyTag_l it KE Logging Stopper 0 16 21 4M Sy My Trend_1 Saturday July 2E O a 6 19 AM o 16 21 AM E E Controller My_Projeckt_1 T Tasks al MainTask E 3 MainF rogram 9 Unscheduled Programs E E Motion Groups EY Trends H J6 Data ie H E LO Configuration 7 Choose the type of graphing isolated graphing Plots each pen in a separate band of a Trends chart isolated graphing Hon isolated graphing Select isolated or nonr isolated graphing on the Trends dialog box Y Axis tab 8 Click OK 9 To resume the trend click Fun 1 When you close the trend you have the option save the trend for future use New Trend General Sample Period fio Milisecond s 2 Type a name for the trend and click Frish Hame Description Trend Publication 1756 QS001D EN P February 2007 140 Troubleshoot the Controller View Scan Time A Logix5000 controller provides two types of scan times Each serves a different purpose E tating Controller Quick Start_1 g Controller Tags Controller Fault Handler EE Power Up Handler Tasks A MainTask i MainProgram 4 Unscheduled Programs Phases E Motion Groups E Add On Instructions J Data Types Trends 1 0 Configuration Elapsed time task scan time time that has elapsed from the start of a task to
6. Program Tags ia ER MainRoutine oo Routine_B Eo pi z Routine l ieg Program _B l oe Ki Program Tags na ER Main_Routine Posen FH Routine 6 There is no need to manage conflicting tag names between the programs Controller Tags Global Data All programs have access to data that is at the controller scope Tag_1 Tag_ 2 Program_A Program_B Local Data Local Data Tag_o Tag_5 Tag_6 Tag_6 Program Tags Program Tags 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 Publication 1756 QS001D EN P February 2007 60 Organize a Project Do you have multiple machines Create a program for each machine Stations or processes that use Station or process identical logic but different data e You can re use both code and tag names in the programs e here is no need to manage conflicting tag names between the programs Skip this section A single program is sufficient for now k Start Sees Controller Controller Quic Controller Tags Controller Fault Handler 2 Power Up Handler Tasks e MainTask B MainProgram Uschehled Progans Phases Motion Groups 1 Right click and choose New Program w Data Types Trends Description vem 10 Configuration el 3 Click OK Schedule irr
7. General Port Configuration W Obtain IP Address fram Bootp Server IF Address USE ea em a ie o RSLinx Gateway RSWho 1 File Edit View Communications Station DDEfOPC Security Window Help 2 S Glie w Not Browsing E Workstation USMAYHMILLS Eee Linx Gateways Ethernet H AB_DF1 1 DFi l AB_ETH 1 Ethernet oe A 192 168 1 200 1756 ENBT A 1756 ENBT A El Al 192 168 1 201 1756 ENETIB 1756 ENET B Backplane 1756 410 fl A 00 1756 L55 4 LOGIXS555 1756 L55 4 1756 M14 4 LOGINSS55 H Al 1 1756 ENBTI4 1756 ENBT 4 H A 02 1756 L55 4 LOGINS555 1756 L55 4 1756 M23 4 LOGINS555 03 1756 L63 LOGIMS563 1756 L63 4 LOGINS563 04 1756 IB160 4 1756 IB1614 DOIN ISOL Publication 1756 0S001D EN P February 2007 Your Computer RSLinx Classic Software RSLogix 5000 software q BOOTP Server Software Ethernet address MAC address that is assigned to a module at the factory e The module always keeps its ethernet address e o determine the ethernet address of a device look for a sticker on the device e An ethernet address uses this format XX XX IXX XXIXXIXX IP address address that you assign to a module for communication over a specific ethernet network An IP address uses this format XXX XXX XXX XXX 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 f
8. MainRou A Pack Ca 4 b Publication 1756 0S001D EN P February 2007 124 Program a Project Online Finalize All Edits ina Program RSLogix 5000 software a8 13 0 or later The Finalize All Edits in Program option lets you make an online change to your logic without testing the change ae Test Accepted Program Edits Finalize All Edits in Program HE Untest Accepted Program Edits ry 45semble Accepted Program Edits ae Cancel Accepted Program Edits ay Finalize All Edits in Program Cbrl ShiFE F FA MainProgram MySFLC_ 1 J TE EPERE ATTENTION Use extreme caution when you edit logic online Mistakes can injure personnel and damage equipment Before you edit online AN 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 your change 3 Choose Finalize All Edits in Program Publication 1756 QS001D EN P February 2007 Chapter r Tro
9. TN Allen Bradley CompactLogix ControlLogix DriveLogix FlexLogix GuardLogix Logix5000 PowerFlex RSLinx ESNetWorx RSLogix 5000 SoftLogix and Rockwell Automation are trademarks of Rockwell Automation Microsoft Windows and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and or other countries Trademarks not belonging to Rockwell Automation are property of their respective companies Summary of Changes This document describes changes to Logix5000 controllers as a result of the release of RSLogix 5000 Software version 16 Revision bars in the margin identify updated information Changes for this version of the document include Change Page Added reference to 1768 CompactLogix and 1756 GuardLogix Throughout controllers document Updated RSLogix 5000 screen shots to accurately reflect the Throughout software s appearance in version 16 document Use Add on Instructions 29 Use PhaseManager to Create and Configure an Equipment Phase 37 Publication 1756 0S001D EN P February 2007 summary of Changes 4 Notes Publication 1756 QS001D EN P February 2007 Summary of Changes Program and Test a Simple Project Table of Contents Preface About This Publication 04 bea hte eed ae PE he 9 AO O ana a Be 8 E a a he a a E 10 Reduced SOMWAlCs searr nae e aE narea ee eee 10 CONVENTIONS 44 4 53 beard die a a e bab oa a 10 Additonal RESOUICES sepite ake Pees RUA E Ree
10. e Main ask 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 Program lags for the program Publication 1756 QS001D EN P February 2007 E Add On Instructions Name lt q 2 Type a name for the program Create User defined Data Types Organize a Project 61 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 Tag Name Motor Start Delay Hi MyData_1 w Conveyor Speeds DINE Type EE MyData_2 jot PRE ONT E Moaes Rea C pol MyData 6 STRI T ank_1 Level Decimal Pressure Temp Agistator Spee Ingredient A Ingredient _B d UMER Name____ Data Type 4 qH_ Tag store 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 Data type define the type of data that a tag stores such as a bit integer floating point v
11. 1E Save Instruction Defaults Tm b om b t t D 5 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 Publication 1756 0S001D EN P February 2007 Program and Test a Simple Project 27 Enter a Function Block Diagram al Lali dI CaN TE ALM SCL PIOE RMPS POSP SRTP LOLG ifr Process Drives A Fiter A SelectLimt Statistica 1 Click the tab for the desired instructions ama nora a 2 E i Sheet 1 of 1 2 Drag elements from the toolbar to the sheet 3 To connect elements click corresponding pins green dot valid connection point In the following example an Input Reference REF reads the value of an analog input and sends the value to a Scale SCL instruction The SCL instruction converts the value to engineering uses and sends it to an Output Reference OREF The OREF writes the value to an analog output al Gia O O I ALn StL P IDE RAFS POSF SRTP LOLG FGEN TOT DEDT gt SS H Favorites Process A Drives A Fiers SelectLimt A Statistical A Bit A Timer Co BAEO Bet tN Sheet Publication 1756 QS001D EN P February 2007 28 Program and Test a Simple Project Configure a Function Block Instruction Follow these steps to assign specific values parameters to a function block al L3 lt Ci
12. DelayRoutine Completion Lox DetectTimecutorEventT ask L5 FreeRunningCounter Los GetMajorFaultRecord LSx LookForSpecificFault Lox 3 Choose a location and name for the file 4 Create the file File name save as type RSLoaix FOOD Import E sport File LS Cancel Help ve Publication 1756 QS001D EN P February 2007 80 Program a Project Offline Import Rungs B MainProgram Conveyor_1 ol x in z Ea Import Rung l x Look in E Library do ee E aa CountScans L5 aa StartStop L5x di Cut Rung Chrl e DelayRoutine Completion Lox Copy Rung Ctrl C DetectTimecutofEventTask L5x al Paste Ceri FreeRunningCounter Los oe GetMajorFaultRecord L5 Delete Rung Del LookForSpecificFault Lox Add Rung CEri R alll Edit Rung Enter be Edit Rung Comment Ctri D File name Gem ajorF aultR ecord LS i Import Rung k Export Rung Files of tope ern ete iin Tags Data ES S TesName Aies F Tse Descriptor P E oo o e oreo 0 mm peazo OOO ereer AJB Eser Deea oo Na ES Es OO eroa alo teszo ETDD 1 Right click the location for the rungs and choose Import Rung 2 Select the file to import 3 Check for conflicts in names 4 Import the file Check Alias Tags If you import an alias tag make sure it points to the correct base tag When a tag Rungs That You is an alias for a tag that already exists in the project the software sets up the Import
13. February 2007 36 Program and Test a Simple Project What You Can and Can t Do El Motor Starter Logic Seles You can Data Context Motor_Starter_LD iv jal e see the logic as it executes Outlommand turns on when Stop and Start are on Ps Ot Command turns off when Stop turns off B lf FaukTime is greater than O turn on Check4uxContact This lets the instruction use the auxiliary contact of the Enter the time ms to wait tor the motor auxiliary Contact ta open or clase The Fault bit turns on when that time i amp up e see tag values RT ay Check AuxContact 2 Greater Than 4 8 Move Source 4 FaultTime Source FauktTime 4000 4000 e change tag and Source B 0 Dest FaukTimer PRE 4000 parameter values You can t e edit logic online e edit logic for just this instruction To edit the logic you must edit the definition Update an Add on Instruction to a Newer Revision Do this procedure when you want to change 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 Example Suppose your project uses a certain add on instruction 5 times In that case all 5 instances change when y
14. Modules Page 69 Organize a Project 57 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 gA Controller Tags ve 9 Controller Fault Handler E Power Up Handler j e Tasks ia MainTask ieg MainProgram A Program Tags a Ea MainRoutine Sie Controler Quick Start_1 Task define scheduling and priority information for the execution scan of your logic 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 Then configure the task for this type of execution All of the time Continuous Execution ooo P ee nn eeo This is the default configuration of MainTask of Logic task automatically task automatically task automatically task automatically restarts restarts restarts restarts At a specific period Periodic Execution a You define the period at which the task of Loaic executes i eee E T task period expires task period expires finishes task restarts finishes task restarts Publication 1756 0S001D EN P February 2007 58 Organize a Project E Controller Controller Quick Start_1 Controller Tags Controller Fault Handler Power Up Handler 3 83 Tasks MainTask og MainProgram Unscheduled Programs Phases a Motom tr QUES E Task Pr
15. add to project 19 address format 21 communication failure 127 configure 19 69 faulted 127 force value 133 import ladder logic 77 rung comment 103 inhibit equipment phase 44 initial state set 42 initial step index set 44 instruction search for 129 IP address assign to module 110 L ladder logic add rung comment 102 103 edit online 120 124 enter 3 export import 77 use for 64 use of quick keys 73 library of logic create and use 77 logic check for errors 93 edit online 120 124 main routine assign 67 use of 64 major fault clear 128 mode controller 53 monitor controller 115 equipment phase 39 project in controller 118 name guidelines for tag 95 limitations 18 0 online edit logic 120 124 finalize all edits 124 with controller 115 open routine 23 operand assign 90 P pass through description 99 period define for task 57 periodic task execution 57 phase state routine add 38 PhaseManager 37 program assign main routine 67 create 59 finalize all edits 124 scan time 140 program mode 53 programming language choose 64 RSLogix 5000 software 65 Index 143 program scope tags when to use 59 project create 18 download 51 monitor in controller 115 organize routines 64 upload 118 verify 93 PXRO instruction hold action 45 lost communication 45 0 quick keys enter ladder logic 73 related documentation 11 revision controller firmware 51 routine add phase state rout
16. troubleshoot check wiring to output device 133 communication with I O module 127 entire system is shut down 128 override logic 133 see data history 137 several devices not responding 127 U update controller firmware 51 upload project 118 user defined data type create 61 use of 61 V verify project 93 How Are We Doing ANB Your comments on our technical publications will help us serve you better in the future Thank you for taking the time to provide us feedback wy You can complete this form and mail or fax it back to us or email us at RADocumentComments ra rockwell com Pub Title Type Logix5000 Controllers Quick Start Cat No Various Pub No 1756 QS001D EN P Pub Date February 2007 Part No 953014 89 Please complete the sections below Where applicable rank the feature 1 needs improvement 2 satisfactory and 3 outstanding Overall Usefulness 1 2 3 How can we make this publication more useful for you 2 3 Can we add more information to help you Completeness all necessary information procedure step illustration feature is provided er example guideline other explanation definition Technical Accuracy 1 2 3 Can we be more accurate all provided information Clarity 1 E How can we make things clearer all provided information is easy to understand Other Comments You can add additional comments on the back of this form Your Name Your Title Function Would you like us to contact you regarding
17. 99 user defined data type 99 document function block diagram 106 rung 102 103 SFC 106 structured text 108 tag 99 user defined data type 99 download project 51 driver configure for EtherNet IP communication 110 configure for serial communication 48 duplicate destructive bit detection use of 93 Publication 1756 QS001D EN P February 2007 142 Index E elapsed time task 140 enter function block diagram 81 ladder logic 73 logic while online 120 124 rung comment 102 SFC 88 Structured text 86 comments 108 equipment phase create a phase state routine 38 inhibit 44 initial state 42 monitor 39 phase state routine 38 set initial step index 44 set the Initial state 42 test states 39 errors check routine for 93 EtherNet IP network assign IP address 110 communicate with controller 110 execution choose controller mode 53 task 5 7 time 140 export ladder logic 77 rung comment 103 external request hold action 45 respond to lost communication 45 F faceplate add 84 fault controller 128 I O module 127 file See array finalize all edits in program 124 find See search firmware update during download 51 force I O value 133 Publication 1756 QS001D EN P February 2007 function block diagram create sheet 81 document 106 edit online 120 124 enter 81 resolve loop 81 use for 64 function block instruction use of faceplate 84 H histogram see trend I O device access data 21 1 0 module
18. Cyberport Road Hong Kong Tel 852 2887 4788 Fax 852 2508 1846 Publication 1756 QS001D EN P February 2007 Supersedes Publication 1756 QS001C EN P May 2005 PN 953014 89 Copyright 2007 Rockwell Automation Inc All rights reserved Printed in the U S A
19. Location of the module in the chassis or rail Pe Nameofthe module 3 To change the configuration click the Configuration tab Some modules have several configuration tabs General Connection Module Info Configuration Alarm Configuration Calibration Backplane Channel OTENE erae 10v to 10 t Range Sensor Offset foo Scaling l High Signal High Engineering Match Filter eo Hz fioo ii 10 0 Digital Filter 0 m Low Signal Low Engineering 10 0 y o n Scaling Publication 1756 0S001D EN P February 2007 70 Organize a Project Notes Publication 1756 QS001D EN P February 2007 Chapter 3 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 to complete the tasks in this manual e Personal Computer running RSLogix 5000 Software version 16 e A plan for the project you are programming Publication 1756 QS001D EN P February 2007 72 Program a Project Offline Follow These Steps Use this diagram to program a project offline Before You Begin Before You Begin Page 2 Enter Ladder Logic Page 73 Export Import Ladder Logic Page 77 Enter a Function Block Diagram Page 81 Use a Faceplate for a Function Block Page 84 Enter Structured Text Page 86 Enter a Sequential Function Chart Page 88 Assign Operands P
20. ST_J Ioj x BOOL expression check if a tag or equation is true or false A c BOOL expression typically serves as the condition for an action the if Ift Bool 1 and bint_l a1 then while or until of a construct Bool _ 1 Assignment write a value to a tag The value moves from the right Dint_2 Dint_1 3 side of the to the left side El E Numeric expression calculate a value Eool_ O l Semicolon terminate an assignment instruction or end of a End if construct As you enter structured text follow these guidelines Guideline Description 1 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 2 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 eaa erted This Executes the same as this If Booll then Le BOO LIL then Bool t Te ENJ ILT Bool 2s s EnG DI BOOLZ s 3 BoolLZ s lL gt 3 Write BOOL expressions as either true Use a BOOL expression to determine If specific conditions are true 1 or false 0 or false 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 LE BOOLI si IF OO tlhe s IF Not BoclZ LE BOOL2 S Q 3 e To check
21. Sass sss m me E 4 q d Allen Bradley Logix5000 Controllers catalog numbers 1756 L1 1756 L1M1 1756 L1M2 1756 L1M3 1756 L55M12 1756 L55M13 1756 L55M14 1756 L55M16 1756 L55M22 1756 L55M23 1756 L55M24 1756 LSP 1756 L61 1756 L61S 1756 L62 1756 L62S 1756 L63 1756 L64 1768 L43 1769 L31 1769 L32C 1769 L32CR 1769 L32E 1769 L35E 1789 L60 1794 L34 PowerFlex with DriveLogix Controllers Quick Start Rockwell 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 literature rockwellautomation com 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 varia
22. an integer REAL or string make a comparison lt lt gt gt lt gt This is OK This is NOT OK LE DINEI Dreg IF babe a s onl ss 4 For an assignment start with the Write an assignment as follows destination Destination Source tia Publication 1756 QS001D EN P February 2007 Program a Project Offline 87 Browse For an Instruction 1 Press Alt Insert eI al AEE E Add Structured Text Element Eg ST Element an Instruction Help gt gt FIND Description Find ie a acne aa r A rete sae siat Reus FIND Source Search Start Result Drives Filters S electLirrat Stahstical Alarms Bit Timer Counta Computer Mat 4 MoveLogical AE PETAL ah A EER MW Show Language Elehents By Groups Cancel E Hew Add On Instruction Help k MyStructuredText F 4 F Fr 2 Type the mnemonic for the instruction and press Enter Assign Operands to an Instruction ioj ajala 2 1 Right click the instruction and choose Argument List FANE Create Instruction Taq 2 For each parameter select a tag or type an immediate Browse Tags Ctrl Space value amp cut Ctrl Copy Ctrl A FIND Instruction Argument List Parameter Argument aue l Aeee E een O el 3 Close the dialog box o astat o apai mysi Ressut o Pee Save Defauts Gea Dera Publication 1756 QS001D EN P February 2007 88 Program a Project Offlin
23. and Configure an EOP PITS E e T EAA ara S wae Seba atk Glee RERE 37 Greate an EQuipmicnt Phase yu sures oie ate eke 37 Create a State ROUUNS 6 os edie ebaded eee aa vee me a4 38 Manually Step Through the States 0 39 Configure the Initial State for an Equipment Phase 42 Open the Configuration for an Equipment Phase 43 Configure an Equipment Phaser os bi bob aie eae ec 44 Assign Alias Tags for Your Devices anaana auaa aaa 45 Publication 1756 0S001D EN P February 2007 6 Table of Contents Organize a Project Program a Project Offline Publication 1756 QS001D EN P February 2007 Show or Hide Alias Information 47 Establish a Serial Connection to the Controller 48 Download a Project to the Controller 51 Select the Operating Mode of the Controller 53 Chapter 2 Wha You Need ot v 64 etec 26054464 Feegamhe i 55 Follow These Steps ee ahh ays ees ce nicest ceo ahh ee se ees 56 Pe VO hey VOU lel ok fa atone Se heat St are ote Seale a ae AA att ee Sed F Configure the Task Execution nananana aaa DF Create Additional Programs nsanu 59 Create User defined Data Types onanan aaa 61 Define Your Routines 62 6 ek ee naaa 64 Define a Routine for Each Section of Your Machine Ol OC 66S aei er E EAE eee ee E E a 64 Identify the Programming Languages That Are Installed 65 Assign a Programming Language to Each Routine 65 Di
24. cooling Found Rung 3 OTU Instruction Main Operand Comments p cooling Publication 1756 QS001D EN P February 2007 Troubleshoot the Controller 131 Go to an Instruction SWSearching through MainProgramn Hainkoutine Instruction p cooling cooling lt a lo go to an instruction p cooling double click it Paint shop cooling fan MyT ag 1 1 MyT ag 1 2 MyT ag 2 0 lt qa 2 lo show alist of cross references to a tag right click and choose Go To Cross Reference Paint shop cooling fan MyTag 2 0 ioi x Type Tag Scope MainProgram Show Show All Mame MyT ag 2 0 Refresh E brogram Y e __ tecetin_ Reference 6 bah MainPragram E MainRoutine Rung 2 MyTag_2 0 ae xIC MainProgram jMainRoutine Rung 2 MyTag_2 0 M 3 To go to an instruction double click it OTU MainProgram HjMainRoutine Rung 3 MyTag_2 0 GE 4 EC A Y means this instruction changes the value of the tag Publication 1756 QS001D EN P February 2007 132 Troubleshoot the Controller Browse Logic aT RSLogix 5000 software 13 0 or later 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 choose Search gt 2 RSLogix 5000 My_Project_1 1756 L63 MainProgram Refill_ Hopper Browse Logic File Edit view Search Logic Communications Tools Wi
25. eee 11 Where to Start Typical Commie Utah eei awe e Be A oy oe aA 14 Chapter 1 Whar Your Need y gat wots ae ee tees oes Bored we ee eee es 15 Follow TRES Sle 05a ast ented ce Bu ah oh aa ate ae 16 Behe VOUN De Ors petate tee ote bee kes set Bae 17 Create a Project for the Controller s ius ove oo ose See 18 Conventions for Names a1i00 a 04 oe dd e abana teneeeas 19 AGO Your Modules aeu ieur ob BS oes AGAR ee eed 19 LOOk at Yourd O Dad x 21 048 ceee ee oe ees CS eRe OES 21 Enter Ladder LOviCusn kak pede od besa d od eae he ods 23 Openi a ROUN 4s oot ha BERS E ees CE PERE EE ES 29 Biter ACCS LOS iC ees evita AE ee 24 Enter a Function Block Diagram 2 2 2 46 60s 0 00 4 23 Ceea ROUUING ei eeure tae a EE tee 295 Cal the ROUUNCs 2 i4 ve date Reed bears oe iS ees 26 Enter a Function Block Diagram 27 Configure a Function Block Instruction naaa aaa 28 Use Add on I nstructions 6 5 4 4 5 4824 aa e455 29 Insert an Add on Instruction 74 2 9 546 2 oo a ewe 30 Copy an Add on Instruction Definition 31 Import an Add on Instruction Definition 32 Access a Parameter That Isn t Visible 46 0 bares woe do 33 Monitor or Change the Value of a Parameter of an Add on Instruction o a aaa a 34 View the Logic of an Add on Instruction 35 What You Can and Can t DO sack ink tae be ou Bees 36 Update an Add on Instruction to a Newer Revision 36 Use PhaseManager to Create
26. eet ee sd File Edit View Search Logic Communications Tools Window a 2 Click the New button New Controller specify the general configuration for the controller some items apply to only certain controllers AME x a Choose the type of controller b Choose the major revision of firmware for the controller ee ee c Type a name for the controller Namen Soo oe es d Choose the chassis type for the controller Description Reece e Select the slot number of the controller f Specify the path where the project will be stored Chassis Type 1756 410 10 Slot ControlLogix Cha A Create In CARS Logix SODD Projects Publication 1756 QS001D EN P February 2007 Program and Test a Simple Project 19 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 avail
27. gets the definition E RSLogix 5000 My Controller_2 1756 9 Right click the Add On Instructions folder and choose Paste File Edit wiew Search Logic Communications Cs Mew Add On Instruction B OLEI i Ser Import Add On Instruction Offline i F RUN m No Forces P l Ok No Edits a Controller My Controller _2 Tasks Motion Groups Add On Instructions Data Types Publication 1756 QS001D EN P February 2007 32 Program and Test a Simple Project Import an Add on Instruction Definition Do this procedure when you want to use the definition for an add on instruction that was exported from another RSLogix 5000 project Once the project has the definition you can use the instruction in your programs 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 36 fa RSLogix 5000 My_Controller_ 1756 File Edit wiew Search Logic Communications alsa S e ol se Offline j E AUN E Mo Forces P m i No Edits a Bo Controller My_Contraller_2 E Tasks E Motion Groups mf Add On Instructions Conveyor Control Lox Motor Starter Lox My Recent Simulate _Feedback L5 Documents Desktop Simulation DT_1st L5 1 Right click the Add On Instructions folder and choose Imp
28. lt none gt Communication Command External Request Hold Action hone r omea s Publication 1756 0S001D EN P February 2007 44 Program and Test a Simple Project i Configure an Equipment Phase Use the following settings to configure an Equipment Phase Setting Prestate Inhibit Equipment Phase Initial State Complete State Immediately If not Implemented i Fault Publication 1756 QS001D EN P February 2007 Choices prestate routine Current state routine The prestate routine runs all 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 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 Do you want the controller to inhibit this Equipment Phase e Yes Check this box e No Leave this box unchecked or uncheck it 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 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 Program and Te
29. on instruction Parameter Name of the parameter Publication 1756 QS001D EN P February 2007 34 Program and Test a Simple Project Monitor or Change the Value of a Parameter of an Add on Instruction Do this procedure when you want to see or change a parameter value of an add on instruction 1 Decide which programming language you are using e Function block or ladder diagram otor_ Starter Click the Properties button for the instruction Starts and stops a motor Motor Starter Motor_Starter_LD Stop Stop_Pe e Structured text CEE e sat Right click the instruction and choose Properties arter OP_ PR otart P B Motor 0 ue S T Open Instruction Definition Properties Alt Enter Values of the parameters Motor_Starter Properties Motor_Starter_LD Rung 1 Ed 2 Do you want to change a value Parameters Tag e No Go to step 5 Name Argument Value Data Type Description e Yes Continue with step 3 om EnableOut BOOL Enable Output System Defined Click and type the new value l Stop BOOL Enter the tag that gives the stop YP a Start BOOL Enter the tag that gives the start i Jog BOOL Jog command for the motar 6 E i 4 Click Apply Aur ontact ClearF ault BOOL Ausilary contact obtee motor bl BOOL To clear thef4ult of the motor t Out BOOL Dpat command to the motor st Fault BOOL If on the motor didn t start or sto FaultT ime x ah T Enter the time me to wait for the a
30. 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 3 If necessary click the sign of the tag to show its members for example the BOOL value of a DINT tag H Local4 C Locabd Locat4 l Faut 2 00 BNOT m Boolean Not FMocstdidsaO gt o or O oati Daat o oo 4 Right click the tag and choose Remove Force Disable All 1 0 Forces Rem Aun 140 Forces PRET Enabled oe Forces Installed Ho Edits l SFE Forces Disabled None Installed To D 1 Go online with the controller 2 Choose I O Forcing Disable All 1 0 Forces and choose yes disable O forces Publication 1756 QS001D EN P February 2007 Troubleshoot the Controller 137 Create and Run a 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 eS Trend MyTrend joj x Trend sample specific tags over time and show the data on a graphical display Run Stop Erare Log Logging Stopper Ol MTeg 11 MyTrernd_1 Saturday July 26 6 16 27 AM O aTa Hie i ow Values of the tags Tags that you want to Time look at Publication 1756 QS001D EN P February 2007 138 Troubleshoot the Controller Run a Trend for a Tag Right click the first tag that you want to trend and c
31. required properties some items apply only General Serial Part System Protocol User Protocol Major Faults Minor Faults to certain controllers Vendor Allen Bradley Type 1756 L63 ControlLogik5563 Controller a Select the type af controller Revision 15 1 oe MEN b Type the name of the controller Description Chassis Type J1756 81 0 10 Slot ControlLogis Chassis Slot jo c Select the chassis size for the controller d Select the slot number of the controller 3 Click OK Publication 1756 0S001D EN P February 2007 Organize a Project 69 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 ee Controller My_Project_1 pi i Controller Tags E Controller Fault Handler 9 Fower Up Handler Tasks Gal MainTask Foe MainProgram E Program Tags Seen Motion Groups i EI Ungrouped Axes EI Trends BS Data Types lak User Defined H E Strings H E Predefined H E Module Defined i e PO Configuration air ripe R 1 Right click the module and choose Properties ow A 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 1 56 IF6l 6 Channel leolated Voltage Current Analog Input Vendor Allen Bradley Parent Local Name i Slot s lt _ _ __
32. 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 MOC eae n bie org crore aa E ace ees 113 Assign an IP Address to Your Computer 114 Configure an Ethernet Drivef 0 115 Go Online to a Controllers ace madcpaewede Bea RS es 115 If Your Computer Has the Project For the Controller 116 If Your Computer Does Not Have the Project For the COMMIOUCT se gearastan a maa a a a 117 Chapter 6 WACA ONECO neke noth tanta a e are e aa ees dd 119 Polow Tie se SICDS 64 raad aE NE Oe E em AT 119 Edit Logic Wihile Online aeria e 6404445485445 120 Publication 1756 0S001D EN P February 2007 8 Table of Contents Troubleshoot the Controller Index Publication 1756 QS001D EN P February 2007 Stara Pending Edite uc 4 4euraund de oweadhaueaws S 122 Make and Accept Your Edits s ac0e4u a4d4d40e wad 122 MSL Ue e E e EEE E E A AE 123 Assemble and Save the Edits 004 123 Finalize All Edits in a Proetam lt 2 45402 aby Ade hak GS 124 Chapter 7 What MOUN CeCe sutra E E aie ee Ae eee 125 Follow These SIED eyr care bah oink gaat g ae Eh 126 Troubleshoot I O Communication 0 0 05 127 Card Major PAU 5 sod eo he oh Bae Buk r 128 oean MaA PrO amp 4 an thaw eta Oa te an amp Ed ete aio 129 Search for All Occurrences of a Tag Instruction etc 130 GO
33. the Value cell type the new value and press the Enter key 3 To expand a tag and show Its members click the sign Publication 1756 QS001D EN P February 2007 Program and Testa Simple Project 23 Enter Ladder Logic For a Logix5000 controller you enter your logic in routines Sled Controler Quick Start_1 lg Controller Tags Prees EI Controller Fault Handler EI Power Up Handler ee Tasks Foal MainTask Sea MainProgram ae Ei Program Tags mi MainRoutine at Routine _B Z Foutine _C SEE Frogram_B or Program Tags Main _ Routine Open a Routine Routine provide the executable code logic for a program similar to a program file ina PLC or SLC controller Main routine for each program you assign a main routine 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 Subroutine 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 3 8 Controller My_Controller I Controller Tags i Controller Fault Handler Pow
34. 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 not include any interrupts View Task Scan Time Sees Controler Controller Quick Start_1 Controller Tags 1 Right click and choose Properties Controller Fault Handler 2 Click the Monitor tab Power Up Handler Tasks e MainTask i MainProgram lt a lee Task Properties MainTask General Configuration Program Schedule Monitor lt 4 Motion Groups Scan Times Elapsed Time 2 Add On Instructions i Data Types Max f 302000 ms Trends Elapsed Time of The Last Execution of This Task Maximum Elapsed Time of the Task View Program Scan Time l Sees Controler Controller Quick Start Q Controle Tags 2 Click the Configuration tab im Program Properti A 1 Right click and choose Properties i Controller Fault Handler General Configuration E Power Up Handler al Tasks Assigned Routines A MainTask Main M ainR outine 4 MainProgram Faut Pashia 7 Motion sroups Scan Times execution time E Add On Instructions Maximum Execution Time of This Program Max a4 us Reset Max
35. L 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 If you want multiple tags with the same name define each tag at the program scope program tags for a different program 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 controller scope controller tags To produce or consume data To communicate with a PanelView terminal None of the above program scope program tags Publication 1756 QS001D EN P February 2007 96 Program a Project Offline Guideline o For integers use the DINT data type Details 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 con
36. MAYHMILLS Hla Linx Gateways Ethernet 3 Click Gis AB_DFI 1 DFI O E OL 1756 L1 A LOGIXS550 My_Project_1 H ag AB_ETH 1 Ethernet e Jo open a level click the sign e f a controller is already selected make sure that it is the correct controller Operating Mode of the _ Rem Prog J e Program Made To Controller hig Porwas b IS Controller OF i 7 Battery Fault No Edits OL Nat Present i Publication 1756 0S001D EN P February 2007 Go Online to the Controller 117 lf Your Computer Does Not Have the Project For the Controller j Logix5000 Controller upload transfer a project from a controller to your computer so you can monitor the project Project p Upload 1 Define the path to the controller i eas Ea a Click al b Select the controller fo Who Active e To open a level click the sign I Autobrowse e f a controller is already selected make sure Lieto ae Workstation USMAYHMILLS that it is the correct controller s Linx Gateways Ethernet l Flay AB_DF1 1 DF1 2 Click Upload oe A 01 1756 L1 4 LOGIXSS50 My_Project_1 Fly AB_ETH 1 Ethernet 3 Create the project file on your computer Options General Date Time Major Faults Minor Faults Ec a Click Select File Condition The project file My Project 2 4CD was not found in your project directory Select File ee b C
37. Pack_Ca 4 t l W T F n 2 Accept your changes The changes download to the controller and become test MainRou 4 Pack Ca 4 edits Relay Ladder Publication 1756 QS001D EN P February 2007 Program a Project Online 123 Test the Edits 1 Test the edits to see if they execute as Intended 2 Yes test the edits iol xil MainProgram MainRoutine e festlew ivi mel ealeal seiad ainProgram Pack_Cartons q 5 x SAS EEH RAA E34 MainProgram Pack _Cart iol xl Pie Ey 7 d A pA E RSLogix 5000 Test edits for program MainProgrann Blaf ai ojo 3 F E The following routines contain edits MySFC 4 H 5 MainRkou X Pack_Ca 4 WY The Test Accepted Program Edits operation ainkou APack Ca 4 outputs in their last state EI Outputs in D and H rung edit zones EN Outputs in the Original View Chart will Bi 2a Nutputs in the Original wiew 3 If the edits are NOT OK switch execution back to your original logic untest A 0 the edits To make changes start another pending edit e puts in the Original View Ho Assemble and Save the Edits 1 Assemble the edits The edits become permanent and the original logic is removed FA MainProgram Pack_Cartons Testing Edit 0 x zwe ae aaa a SDI Ett MainRoutine Testing caite A E E ee e s s aea aa l 8 Se wil F _ PAA __ _ D i RA h Pack_Ca A ry
38. T an SCL P10e anes posr sate LoLa Faen TOT peor a Favorites Process SelectiLimt A Statistical A Bit A Timer Co Eea 2 amp gt Gl ia o O 1 Click the configuration button MSCL Properties SCL_01 5 xj Parameters Tag Wis None e e e Enableln 1 BOOL Enable Input If False the T Jemableln BOOL 2 To change the value of a parameter dwn REAL The analog signal input to slice tne vaie col wpe heieri ane HL e 00 REAL Te sm abet and press Enter CT a COO REAL The minimum value attain UC InEUMas REAL The maximum scaled valu l l C mEUMin sR The minimum scaled value For example in the SCL instruction Mo lt 0 iiasceee ie specify the following parameters D Enabletut 7 BOL En A e InRawMax maximum input value OM Ow REL This is the output of the 5 E E npuvalae O Malm O BOOL The above maximum input ate O T Minster BOL The below minimum input e InEUMax maximum engineering Ol Status 16 0000_0000 DINT Bit mapped status of the f value O InstuctFaut s s BEN Instruction generated a fault e nEUMIn minimum engineering Dief InFawRangelny Bd BOOL InFawhin lt nA awb as value 3 Click OK Status OK Execution Order Aber routine not verted Cancel Apply Help Publication 1756 QS001D EN P February 2007 Program and Test a Simple Project 29 Use Add on Instructions With version 16 of RSLogix 5000 programming so
39. T BND E Sf ch L NOE HEJ Alarms End y H Bit EHLI Timer Counter EHLI Input Output HHL Compare 4 H5 MainRkoutine 4 EHLI Compute Math HHI Move Logical V Show L El ts By G 2 Type the mnemonic for the instruction A E Can tals Or type Rung Branch or Branch Level New Add On Instruction 3 Press Enter instructions Tip Click here to enter custom add on see Chapter 1 for more information oC Mm D im T 4 To move an instruction branch or rung to a different location use the mouse to drag It there End 4 Fk MainRoutine 4 A green dot shows a valid placement location drop point Enter Logic Using ASCII Text 1 Double click the rung Program a Project Offline Rung 2 JIn ASCII Text XII m tm mm cD 2 Enter the ASCII text for the rung 5 x 15 Publication 1756 QS001D EN P February 2007 76 Program a Project Offline Enable Quick Keys 1 Choose Tools Options 2 Select click Ladder Editor 3 Select check these checkboxes Workstation Options Categories dder Editor preferences El Sp plication i ingert Mode l Auto Aung E Ladder E ditor Verntication opa M Enable Quick Ke ee FontColor 5 E SFC Editor M Show Quick Key Configuration Element Naming Configure Display onge 4 To assign a key to an element b For the desired key select the element c When you have a
40. TANT l l referenced component For intallation and maintenance information for the components in your configuration refer to the publications shipped with the component Typical Configuration l A Sai aT q 5 D X Z m ZA Reference A B C D Publication 1756 QS001D EN P February 2007 J om oo aa 6 O mmay d F ej 6 8 6 oo oo oo oo 30566 M Component 1769 CompactLogix Controller 1756 ControlLogix controller with 1756 CNBR module 1794 Flex I O with 1788 CNC module Personal computer running RSLogix 5000 Software version 16 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 The rest of the chapters in this publication provide more detailed i
41. W r r IT 0l m W r O al oj aAa aaj ee D Sort Parameters by Name Insert Definitio Defaults Save Instry4tioan Defaults Cancel Apply Help 5 When you re done click OK Publication 1756 QS001D EN P February 2007 Program and Test a Simple Project 35 View the Logic of an Add on Instruction Do this procedure when you want to see the logic that an add on instruction is using It s possible to protect an add on instruction so that you can t see its logic Do this to see if an add on instruction is protected Controller My _Controller_1 a Tasks Motion Groups Ungrouped Axes 3 Add on Instructions 1 Select the add on instruction Motor_Starter Hs Simulate Feedback Simulation DT ist vw Description Starts and stops a conveyor Revision 1 0 Revision Mote Vendor Rockwell Data Type Siz 60 Edited 4 25 2006 11 02 23 AM 2 Look in the Quick View pane for Source Protection If it isn t listed then the routine isn t protected Do this to see the instruction logic bal mahal Right click the instruction and choose Open Instruction Logic Starts and stops a motor Motor Starter Motor _ Starter _LD J Stop Stop _PB Start Open Instruction Logic Open Instruction Definition Out Motor _Out_Lo 0e Properties Alt Enter Motor Starter Motor St arter_ST Op_PB Start PB Moror OUT oT Publication 1756 QS001D EN P
42. a Configure on OK Select the address of the data To select a bit click the w i __bocataiDe hr NT Boolean Inputs A ocal 4 O Dat acts i MachFautt_Ack ook in the controller scoped tags T Controller Progam Show Show All gt gt Publication 1756 QS001D EN P February 2007 Program and Testa Simple Project 47 Show or Hide Alias Information Follow these steps to show or hide that alias information for a tag 1 Choose Tools Options 2 Select the Ladder Editor Display category Workstation Options Categories El Application es FontColor 2 Tag Display l Ladder Editor s Display ks FontColor SFC Editor os Element Naming z Display i FontColor e appearance of the Ladder Editor Rung Display Instruction Display F Show Rung Numbers Show Main Operand Descriptions M Show Rung Comments Justification Justification Center Left El blarimum Lines p Maximum Lines 100 W Show Tag Alias Information 3 Check or uncheck this box 4 Click OK Publication 1756 QS001D EN P February 2007 48 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 or example download monitor data configure RSLinx Classic software for the required commun
43. 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 each of those sections Description of Your Machine or Process First Section Routine 1 Second Section Routine 2 oo Third Section Routine 3 Publication 1756 QS001D EN P February 2007 Organize a Project 65 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 To add a programming language see the ControlLogix Selection Guide publication 1756 SG001 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 Use this language Continuous or parallel execution of multiple operations not sequenced Ladder logic Boolean or bit based operations Complex Logical operations Message And Communication Processing Machine interlocking Operations that service or maintenance personnel may
44. able but are not shown here Publication 1756 QS001D EN P February 2007 20 Program and Test a Simple Project CompactLogix ControlLogix FlexLogix Controller Controller Controller Controller My_Project_1 Tasks Motion Groups E Add On Instructions 05 Data Types Trends PESE Controller My_Project_2 20 Tasks E Motion Groups 9 Add On Instructions 9 Data Types E Trends 1 0 Configuration 7 Backplane CompactLodix System ff 1769 L35E My_Projec 1769 L35E Ethernet Port bycalENB zs Ethernet g CompactBus Local Ee ae Controller My_Project_3 29 Tasks 9 Motion Groups CI Add On Instructions 5 Data Types Trends Configuration 173 Backplane FlexLogix System aE 1794 134 My_Project_3 g FlexBus Local g FlexBus Local2 Cs ie oe tE Backplane 1756 410 fa 2 1756 L63 My_Project_1 5 4 1756 MODULE Pushbuttons_Latched 1 Right click and choose New Module Cut Ctrl apy Ctrl C Description o 1756 IB32 B 32 Point 10 31 24 DC Input z 1756 116 16 Point 30 60 DC Input 2 1756 IF16 16 Channel Mon Isolated Yoltagej 1756 IF4 FROF2F iA 4 Current olt Inputsiz Current Z 1756 IF4F 0F2FIB 4 Current volt Inputsiz Current z 1756 IF6CI5 A 6 Channel Isolated Current Sourcit ia 1756 IF6I 6 Channel Isolated Voltage Currer z 1756 IF8 6 Channel Non Isolated Volkage ic z 1756 1G16 4 16 Point O 5 5 OC TTL Input ame
45. acd extension e When you create a project the project name is the same as the name of the controller e he controller name is independent of the project name You can rename either the project name or the controller name File name Files of type jal RASLogis 5000 Files ACD LE Cancel Help Za Name of the project fe RSLogix 5000 My_Project_1 1756 L63 If you rename the project or controller both names are Ef File Edit View Search Logic Communications T shown alsel S e ol Offline J E RUN TET Ho Forces P e h No Edits a E pO Name of the controller lt Controller organizer graphical overview of the ay project Use the controller organizer to navigate to the Motion Groups 9 Add On Instructions various components of a project Conveyor Control sg 94 gt p open a folder and show Its contents either Hien ogee e double click the folder F Simulation _DT_1st e click the sign Under Developement _Insertion_5Sec a 5 2 Data Types o close a folder and hide its contents either Ca User Defined e double click the folder Lyd Strings e click the sign E 4dd On Detined iar Predefined E Module Defined Trends ic TH Cambia iw skier Publication 1756 QS001D EN P February 2007 18 Program and Test a Simple Project Create a Project for the Controller 1 Start RSLogix 5000 software a gt RPT Ts e cry oto
46. achine 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 I 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 you install a force the new force immediately takes effect Then Install an 1 0 Force Force an 1 0 Value Stop an individual force but leave other Remove an Individual Force forces enabled and in effect Stop all I O forces but leave the 1 0 forces in Disable All I O Forces the project Publication 1756 QS001D EN P February 2007 134 Troubleshoot the Controller MOV Move Source Flow Valve 1 AU amp Dest Local 0 ChOD ata b 50 06 Force override a value from an input device or logic e forcing an input tag overrides the value from the input bed 9 0 Data a device Local 4 Data O p e forcing an output tag overrides your logic and sends the force value to the output device BNO T When forces are in effect enabled a _ appears next to the j forced element Local 5 0 0ata 15 Boolean Not status of I O forces If the LED Then indicator is Off e No tags contain I O force values Rem rm 1 0 Forces REN e O forces are inactive disabled Forces b ante ji Flashing amber e One
47. age 90 Verity a Project Page 93 Review Guidelines for Tags Page 95 In this chapter you program the project while offline Online programming requires additional steps See chapter 6 Program a Project Online Publication 1756 QS001D EN P February 2007 Program a Project Offline 73 Enter Ladder Logic To enter ladder logic you have the following options Branch Level Branch Rung XIC XIO OTE OTU OTL ee Drag and drop logic elements Use the ee Language Element toolbar to drag and drop a rung branch or instruction to your routine al H i a aE faea H e or Ton cru Favorites A Bit A TimerfCounter A InputlGutput A Compare shina in ASCII Text fc MyTag 1OOTEMTag 21 ASCII text Use ASCII text to enter or edit logic A tool tip helps you enter the required operands c CTU d GEG F10 IS0TL o 0TE RUNG s 05F u 0TU x xIC ASCII text typically uses the following format mnemonic operand_l 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 gt Parallel branches No limit to the number of parallel branches on a rung nest
48. al connection to the controller RSLinx Gateway 1 Start RSLinx software File Edit View Communications Station DDEMOPC Sec 2 Click E sa sla eee 3 Browse to the EtherNet IP device To open a level click the sign Mot Brow Workstation USMA YHMILLS Fe Linx Gateways Ethernet ley AB_DF1 1 DFI Ele ff O01 1756 L1 A LOGIXSS50 1756 L1 4 1756 M Backplane 1756 A7 4 00 1756 ENBT 4 1756 ENBT 4 f O1 1756 L1 4 LOGIX5550 4 Right click the device and choose Module Configuration 5 Click the Port Configuration tab 6 Depending on your device either e Select the Static button e Clear uncheck the Obtain IP Address from Bootp Server check box General Port Configuration 7 Type the e P address e subnet mask e gateway address if required General Port Configuration Network Configuration Type i Static C Dyn se DACE to obtain network contig f Use BOOTE to obtain network conf pice te EmA oo Obtain IP Address from IP Address IP Address 0 Network Mask 8 Click OK and then yes change IP address Subnet Mask 0 Gateway Address Gateway Address Oo Oe T Assign 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 listed on page 111 you may need to change the IP address and subnet mask values for your computer 1 Access the Network and Dial up Connections e
49. alue or string Array define a block of data file The entire block uses the same data type It can have 1 2 or 3 dimensions Structure combine 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 Member describe an individual piece of data within a structure User defined data type create your own structure that emulates your devices A user defined data type stores 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 Publication 1756 QS001D EN P February 2007 62 Organize a Project As you create user defined data types follow these guidelines Guideline 1 Consider the pass through of descriptions 2 Data that represents an I O device requires additional programming 3 If you include an array as a member limit the array to a single dimension 4 When you use the BOOL SINT or INT data types place members that use the same data type In sequence Publication 1756 QS001D EN P February 2007 Details see Describe a User defined Data Type on page 99 If you include members that represent I O devices you must use logic to copy the data between the members in the user defined data type and the corresponding 1 0 tags Multi dimension arrays are not permitted in a user defined data type Logix5000 controllers a
50. ation 1756 0S001D EN P February 2007 92 Program a Project Offline Select an Existing Tag ru MainProgram Routine_B NOT_oz 3 Select the desired tag To select a bit click the w wane pee peen Cangi O a EF r ee e js 10 14 12 13 14 15 Local 4 0 Dat MachFauk Ack Controller Program Show Show All 4 Jo change the scope of tags in which to look click the appropriate button Publication 1756 QS001D EN P February 2007 Program a Project Offline 93 Verify a Project As you program your project periodically verify your work E 7 MyData 8 E 0 aiuis E E MyData 1 0 MyData 1 1 i zi 1 MainRoutine Ae Rung ZIC Operand U Missing operand Error Rung OU OTE Operand 0 Reterence tag not found verifying routine Main _Foutine of program Program_B verifying routine Routine B of program Program_B Warning Duplicate Destructive Bit Reterence Detected MainProgran Mainkoutine Rung 4 OTE MainProgran Mainkoutine Rung 1 OTE 2 Warning Verify check a routine or project for programming errors or incomplete configuration Warning 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 situation tha
51. bles 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 liability 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 Identities 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 to identify a hazard avoid a hazard and recognize the consequences 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 be dangerous temperatures WARNING A IMPORTANT ATTENTION A A
52. date 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 AN axis Logix5000 ss Controller SEE LIS gw PN m lt 7 Sg Download transfer a project from your computer to Project the controller so you can run the project e when you download a project you lose the Download project and data that is currently in the controller if any e 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 mAs update the firmware of a controller first install a firmware upgrade kit e Anupgrade kit ships on a supplemental CD along with RSLogix 5000 software e Jo download an upgrade kit go to http www ab com Choose Product Support Choose Firmware Updates Publication 1756 QS001D EN P February 2007 52 Program and Test a Simple Project 1 Turn the keyswitch of the controller to i REM PROG a Open the RSLogix 5000 project that you want to download 2 Define the path to the controller fe RSLogix 5000 My_Project 1756 L55 7 File Edit View Search Logic Communications Tools Window Help e Path AB_ETH 14192 168 1 200 Backplane o EB b Click El pei z c Browse to the cont
53. do not have a serial connection to the controller 1 Start BOOTP server software Start Programs Rockwell Software gt BOOTP DHCP Server BOOTP DHCP Server Start Programs Rockwell Software RSLinx Tools BOOTP DHCP Server Network Settings Defaults Ee ee 2 If this is the first time you are using the software type the subnet mask and Gateway 0 0 0 0 gateway if required for your network and then click OK 3 Double click the ethernet address of the controller communication module File Tools Help Request History Clear History Add to Relation List Se es Ethernet Address MAC 10 52 06 BOOTP 00 00 6C 05 74B6 Ethermet Address MAC 00 06 5B D3 0D 4C 10 52 01 BOOTP 00 00 6C 06 00 34 10 51 55 BOOTP 00 00 EC 05 7466 IF Address D 0 0 0 4 Type the IP address and click OK 5 In the Relation List lower section select the device and choose A Disable BOOTP DHCP New Delete Enable BOOTP Enable DHCP C Ethernet Address MAC mes aE This lets the device keep the address even after a power cycle 00 00 60 05 74 66 BOOTP 10 58 89 59 6 When you close the BOOTP server software you are prompted to save your changes e f you want a record of the IP address that you assigned to the device save the changes e Regardless of whether you save the changes the device keeps the IP address Publication 1756 QS001D EN P February 2007 114 Go Online to the Controller If you have a seri
54. e 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 2lol lel lzsl ze o ae MSF tl lea yale me Step major function of your process It contains the actions that occur at a particular time phase or station Action one of the functions that a step performs To program the action either enter structured text or call a Subroutine Tran 000 lt 4 Transition 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 Branch execute more than 1 step at the same time simultaneous or choose between different steps selective Assembly Done Wire connect one element to another anywhere on the chart Publication 1756 QS001D EN P February 2007 Program a Project Offline 89 Enter an SFC UGAR ma 6 7S ape yspc FO fest es je eT E ee ee 1 Drag elements from the toolbar to the chart e A green dot shows a point to which the element will automatically connect If you release the mouse button E e Some toolbar buttons are active only after you select a Seana corresponding element on the SFC For example to add an action first select a
55. e Verifying routine Mainkoutine of program MainProgran oe JError Rung 0 KIC Operand 0 Missing operand Pe Bs i Rung 0 OTE Operand Reterence tag not found Verifying routine Main_Routine of program Program_B WYeritying routine Routine_B of program Programn_B WWWarning Duplicate Destructive Bit Reference Detected a HainFrogram Mainkoutine Rung 2 OTE MainProgramn Mainkoutine Rung 1 OTE Complete 2 error s 2 warning ft 2 Go to an error or warning eo To go to Do this Specific error or Double click the error or warning warning Cycle through the list Press F4 of errors and warnings 3 To close the Errors tab click here 4 To turn off duplicate destructive bit detection it s on by default choose Tools Options Workstation Options Categories El Application general preferences for RSLogix 5000 gt Font Color Project Directory Tag Display Ei Ladder Editor CSAS Logis 5000Projects fe Display a Font Color iY Enable Look Ahead SFC Editor Y Enable Duplicate Destructive Bit Detection z Element Haming W Search Base Tag Description in Operand Comment Display Publication 1756 QS001D EN P February 2007 Guidelines for Tags Use the following guidelines to Guideline Create user defined data types L Use arrays to quickly create a group of similar tags lake advantage of program scoped tags Program a Project Offline 95 create tags for a Lo
56. e for the normal production sequence of your equipment F Equipment Phase Monitor My_Phase q a Oo x Equipment Phases zy Owners ASLogis 500041 wet y Phase sac a a a e Hold Restart Resetting Abort fF comptete Stopping Aborting Restarting 4 Click Stop e The Equipment Phase goes to the Stopped state e The Running state routine stops running e The Stopping state routine is optional Without it the Equipment Phase goes directly to the Stopped state Publication 1756 QS001D EN P February 2007 Program and Testa Simple Project 41 Step Notes F Equipment Phase Monitor My_Phase oj x quipment Phases Eeg Owners ASLogm 5000 1 zhin Phase F a i Start Hald es Hold Restart Stop Abort Abort 5 Click Reset e The Equipment Phase goes to the Idle state e The Resetting state routine is optional Without it the Equipment Phase goes directly to the Idle state F Equipment Phase Monitor My_Phase guipment Phases ahd y Phase 6 Click the ownership button T Ioj x FAT Owners RSLogis 5000 1 Start Hold l Resetting Restart Restarting This releases the Equipment Phase from control by this window Publication 1756 0S001D EN P February 2007 42 Program and Test a Simple Project Configure the Initial State for an Equipment Phase The initial state is the first state to which the Equipment Phas
57. e goes after you apply power H E Controller MyContraller Tasks Gal MainTask l H O MainFroagram 1 Right click the Equipment Phase ERR and choose Properties e Unscheduled A Ngrams Phases a a Finalize All Edits in Phase Cbrl ShiFt F Properties r lee Equipment Phase Properties My_Pha oO x 2 Choose the Configuration tab __Gerefat Configuration Parameters Monitor Assigned Routines Prestate lt none gt Fault lt none gt F Inhibit Equipment Phase 3 Choose the initial state External Sequencertes Communication Command External Request Hold Action lt none gt Z 4 Click OK Cancel Apply Help ws Publication 1756 QS001D EN P February 2007 Program and Testa Simple Project 43 J Open the Configuration for an Equipment Phase H E Controller MyContraller 1 Right click the Equipment Phase and choose Properties 2 Choose the Configuration tab Fle MainTask mE MainProgram oa Unscheduled rams Phases a Ps Finalize All Edits in Phase Ctrl ShiFk F Properties r WE Equipment Phase Properties My_Phase AEA General onfiguration Parameters Monitor Assigned Routines Prestate lt none gt Fault lt none gt F Inhibit Equipment Phase Initial Stake Idle ad W Complete State Immediately IF not Implemented Initial Step Index 0 Extemal Sequencer Loss of
58. e points to your e a controller bly Project i Autobrowse rkstation USMAYHMILLS d Click Done Linx Gateways Ethernet 46 DF1 1 DFI 46 ETH 1 Ethernet 169 254 217 860 Unrecognized Devic i 192 168 1 200 1756 ENET B ABCDI Backplane 1756 4104 m i OO 1756 L55 4 LOGIX5555 Add a Faceplate to Microsoft Excel Software Control Toolbox amp bE I fei EB ER E 1 Start Microsoft Excel software 2 Choose View Toolbars 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 choose Logix 5000 Faceplate Control Object Properties General Display PIDE Server Fonts Locale Tag Po afe 6 Click and browse to the tag that the faceplate controls Topic P Update Rate 0 s e 7 Select the update period for the control 8 Click OK 9 To exit design mode and use the control click here Publication 1756 0S001D EN P February 2007 86 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 Construct define logical conditions for the execution of other structured text code other statements In this example the construct is If Then Else End_it MainProgram
59. ed relationship between the alias and base tags Ee E Estop_Dizabled e lt Locald Data ds CAT MotorAun CN1 Motor Fault E E Ss E If the project does not have the base tag you have to either 5 CNI hi create the base tag or point the alias to a different base CAT Jam Fault Entry PE CNT Jar Fault Exit_PE T tag 5 Qe eee Publication 1756 QS001D EN P February 2007 Program a Project Offline 81 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 Sheet divide the diagram into sections without i affecting execution When the routine executes all sheets execute Sheet i e of 3 TIC101 aE Input reference IREF read a value from a tag or set a constant value Wire transfer a value between elements Instruction produce output values based on input values Output reference OREF write a value to a tag Output wire connector OCON write a value to one or more ICONs Input wire connector ICON read 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 Assume data available indicator define the data flow within the loop The arrow indicates that the data serves as input to the first block in the loop This input pin uses the output that block 3
60. er Logix5000 Controller P OD TD s LOT LLO LT Lj LAS 1756 CP3 or 1747 CP3 serial cable Publication 1756 QS001D EN P February 2007 50 Program and Test a Simple Project 2 Configure an RS 232 driver 2 RSLinx Gateway a Start RSLinx Classic software File Edit View Communications Station DDEMOPC Security Window Help all slal eee slick S c Select RS 232 DF devices and click P4 d Accept the default name Choose a name for the new driver 15 characters maximunn 4B_DF1 1 Device Name AB DF1 1 Comm Fort COM BAR E i3200 Station Mumber oo Decimal Parity None Error Checking Stop Bits fi Protocal Auto Configuration Successtull Configured Drivers Name and Description Status The driver is successfully e Select the COM port of your computer f Select Logix 5550 CompactLogix g Click _AuteContioue h When the auto configuration completes click OK r Logis 5550 7 CompactLogis AB_DF1 1 DFI Sta 0 COM1 RUNNING Running lt AB_ETH 1 A B Ethernet RUNNING Running configured and CHARING AB_ETH 2 A B Ethernet RUNNING Running Publication 1756 0S001D EN P February 2007 Program and Test a Simple Project 51 Download a Project to the Controller To execute a project in a controller download the project to the controller When you download a project or up
61. er Up Handler 3 83 Tasks fa MainTask e3 MainProgram A Program Tags DEEI a I Unscheduled Programs Phases 9 Motion Groups Add On Instructions 29 Data Types E Trends 1 0 Configuration To open a folder and show Its contents either e double click the folder e click the sign To open a routine double click the routine Publication 1756 QS001D EN P February 2007 24 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 To add ladder logic drag the button for the i l i l 4 4 4 4L lt u Ton cru Res ssu ssu nov gt rung or instruction directly to the desired i aa E location a 5 Favorites Bi TimerQounter A Inputfoutput ComputemMath X Mo You can enter your logic and leave the operands undefined After you enter a section of logic go back and assign the operands A green dot shows a valid placement location drop point EXAMPLE In the following example an Examine If Closed XIC instruction checks the on off state of a pushbutton 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 Publication 1756 QS001D EN P February 2007 Program and Test a Simple Project 25 Enter a Function Block Diagram Follow these steps to add a Functi
62. es While you can use the input and output tags of a module directly in your logic it is easier to use alias tags Publication 1756 QS001D EN P February 2007 46 Program and Test a Simple Project Conveyor _OnCommand Conveyor Start Local2 0 Data 4 0 gt Conveyor Stop Alias tag a tag that represents another tag e Both 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 Conveyor OnCommand Local2 0 Data 4 0 gt As an option create tags that describe each device without pointing them to e Ifthe location of the data changes simply point the actual addresses of the devices Later convert the tags to aliases for the the alias tag goes to the new location without data of the devices editing your logic 1 Enter your logic 2 Type a descriptive tag name for the device B MainProgram MainRoutine O x 3 Right click the tag name and choose New E Digital Input 0 p d 0 eS oe New Dgital Input r x 4 Cut Instruction Ctrl N ame al End Copy Instruction Chrl C eae EA Paste Ctrl Description R Cancel MainRoutine 4 b Help E Usage normal T 4 Select Alias from the menu Pe o a 5 Select the tag that this alias tag represents AiseFor locsttiDaeo E Data Type a Bil 6 Select the scope for the alias tag Scope 7 Choose OK
63. et TF 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 QS001D EN P February 2007 Chapter 5 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 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 Use this diagram to go online to the controller START Establish EtherNet IP Communication with the Controller Page 110 Go Online to a Controller Page 115 Publication 1756 QS001D EN P February 2007 110 Go Online to the Controller Establish EtherNet IP Communication with the Controller 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 EtherNet IP network Logix5000 Controller or Communication Module r XX XX XX XXIXXIXX 1756 ENBT Configuration
64. ftware 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 Publication 1756 QS001D EN P February 2007 30 Program and Test a Simple Project j Insert an Add on Instruction Follow this procedure when you want to use an add on instruction in one of your routines 1 Open the routine that will use the instruction 2 Click the Add On tab of the Language Element aj H toot test 8S Se gt toolbar ale JK Favorites Ad 0n 4 Git Timer Counter Inputiutput Compare 3 Drag the instruction from the toolbar to the routine 4 Fill in the parameters Ladder Diagram Single question mark Required parameter Enter a tag Simulation _DT_1 st Simulation instruction which includes C Simuletion ptis 7 nae T7 m TY SimCut put DA 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 diffent value Function Block Diagram Nub on the end
65. gistator Speed DINT ST ingredient A ngeden a Right click the scope that you want for the tag and choose Edit Tags b Type a name for the tag c Type the name of the user defined data type from step 1 d Specify the array dimensions Data Types T ank 4 3 2 SELECTABLE_NEGATE SELECTED_SUMMER SERIAL_PORT_CONTROL SFC_ACTION SFC_STEF SFC_STOF SINT SPLIT_RANGE STRING c Tiki ri Array Dimensions Dim O Dim 1 Dim 2 E 3 E Publication 1756 QS001D EN P February 2007 64 Organize a Project Define Your Routines Once your project has the required programs you have to define and create the routines for each program Eee Controller Quick Start 1 Routine provide the executable code logic for a program similar to a program Controller Tags file in a PLC or SLC controller a 9 Power Up Handler l Main routine For each program you assign a main routine Bay Tasks Eta MainTask e When the program executes its main routine automatically SEE MainProgram executes os E Program Tags Ej MainRoutine e Use the main routine to control the execution of the other routines in s the program e o call execute another routine subroutine within the program Subroutine 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 Define
66. gix5000 project Details 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 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 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 BOO
67. have to interpret in order to troubleshoot the machine or process Continuous process and drive control Function block diagram FBD Loop control Calculations in circuit flow High level management of multiple operations Sequential function chart SFC Repetitive sequences of operations Batch process Motion control using structured text State machine operations Complex mathematical operations Structured text Specialized array or table loop processing ASCII string handling or protocol processing Publication 1756 QS001D EN P February 2007 66 Organize a Project Divide Each Routine Into More Meaningful Increments If a routine uses this Then language Ladder logic Break up large routines into several smaller routines Structured text Function block diagram FBD Within the FBD routine make a sheet for each functional loop for a device such as a motor or valve Sequential function chart SFC Break the SFC into steps Publication 1756 0S001D EN P February 2007 routine routine Example To continuously execute several complex boolean operations create a separate routine for each operation To control 4 valves where each valve requires feedback that it Is in its commanded position make a separate sheet for each valve 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 e
68. he CSV format Import the New Comments fo RSLogix 5000 Pass_Through_Descriptions 1756 L63 Fie Edit View Search Logic Communications Tools Window Help Options 1 In RSLogix 5000 software choose Tools gt Security Import Se Translate PLCSs SLiC iii e l Export 2 Select the file that has the comments you aa entered the export file Tepe Look in E Frojects 4a c Ei l Samples MyProject_1 Tags CSy 3 Import File name MyProject_1 T ags CSW 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 0 tagia created 0 tagia overwritten on collision 0 descriptionfs imported 1 new commentis imported 0 comment s overwritten on collision Complete U errorfs OU varningi A Search Results A Watch Errors 4 Publication 1756 QS001D EN P February 2007 106 Document a Project Add Comments to 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 independent of each other If you want text boxes to Choose this option Automatically grow to the w
69. he comment description fan Instruction Mnemonic of the instruction OTE Instruction and tag Mnemonic and tag OTE MyTag_1 Publication 1756 QS001D EN P February 2007 130 Troubleshoot the Controller Search for All Occurrences of a Tag Instruction 1 Open the RSLogix 5000 project that you want to search 2 Choose Search Find 3 Specify the search criteria Find in Routines Find what a Type the characters to find Tent Only Find Where All Routines Limit To To browse for a tag click E select the tag and click OK ABATSE DCO l E To select a bit number click the w AD 1756_0 0 e wrap Dil Match Whole wded Only Local 4 Data ONT ofi jz 3 fa 5 je z ETR i a 9 10 14 12 13 14 15 Find Within Function Block Djagrams Ladder Diagrams SequembslEunction 34 95 965 27 25 20 40 41 Charts Structured Apep epa Components Options b Choose Text Only Function Block Diagrams Instruction Man Operand Comments wl lnetruction Operands c Choose All Routines 4 netructions Rung Comments d Select each language and check the options in Fung Types which to search To display this section of the dialog box click Find Within gt gt 4 Click Find All Sequential Function Charts Structured Test 2WSearching through MainProgram Mainkoutine Instruction Main Operand Comments p cooling Found Rung 2 OTE Instruction Main Operand Comments p
70. hoose Trend MP Compare Expression Timer TAC lt Timer _1 FPRE 2 Add More Tags to the Trend PS Trend lt MyTag_1_ 0 5 gt O x l l a a X 1 Right click the chart and choose Chart Properties E St Errore Log i En Stop Eros Loor Logging 2 Click the Pens tab C MyTag ioi lt MyTag_1_0_5 gt Friday August 11 20 15 AM RSTrends Properties Name General Display Pens Anis Anis Tem Pen Attributes TagName Color Visible width 1 MyTag iC 3 Click Add Configure Tage New Trend Add Configure Tags i 4 Select a tag to add and click Add gt Scope My Project_1 controller lt q lo change the scope select a scope Available ags Tage To Trend Tenere ger OEE MyTaq_1 OT Femote omen ST o 1 j2 3 4 5 e cain fe g rola 12 13 14 48 To select a bit number click w 6 When you have added the required tags click OK Publication 1756 QS001D EN P February 2007 Troubleshoot the Controller 139 6 Click the Y Axis tab RSTrends Properties Hame General Display Fens Anis YAKS Minimum masinuro value options Automatic best fit based on actual data C Preset Custom Miniman value use min mas setting trom Feys tab f Actual minimum value I Manmumn valie f Actyal marimum alue 100 Display options M Isolated graphing fo isolation
71. ication Logix5000 Controller RSLinx Classic Software RSLogix 5000 Software RSLin Gateway RSWho 1 File Edit View Communications Station DDEMOPC Security Window Help 2 S Biiz amp lO Workstation USMAYHMILLS Fe Linx Gateways Ethernet H AB_DF1 1 DFi l AB_ETH 1 Ethernet i 192 168 1 200 1756 ENBT 4 1756 EMBT A Driver establish communication over a specific network A 192 168 1 201 1756 ENET B 1756 ENET B Backplane 1756 410 4 E 00 1756 L55 4 LOgIs5555 1756 L55 A 1756 M14 4 LOGI 5555 EE 01 1756 EWBT A 1756 EMBT A E 02 1756 L55 4 LOgIs5555 1756 L55 A 1756 M23 4 LOGI 5555 03 1756 L63 LOGIs5563 1756 L63 4 LOGIx5S563 oe 04 1756 IB161 4 1756 IB1614 OCIN ISOL se 0S 1756 O816D 4 1756 061604 OCOUT DIAG Path communication route to a device To define a path you expand a driver and select the device Use a serial cable to establish a point to point connection between the serial ports on your computer and controller Publication 1756 0S001D EN P February 2007 Program and Testa Simple Project 49 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 comput
72. ich comes with the other RSLogix 5000 software packages does not provide DDE OPC communication Faceplates are available for the following instructions e Alarm ALM e Enhanced Select ESEL Totalizer TOT Ramp Soak RMPS Discrete 2 State Device D2SD Discrete 3 State Device D3SD Enhanced PID PIDE Status Ok Topic In RSLinx Classic software a topic represents a specific path to a controller DDE OPC Topic Configuration Project Default Topic List Data Source Data Collection Advanced Communication W Autobrowse My Project 1 My Project My Project a TE Workstation USMAYHMILLS aay Linx Gateways Ethernet H AB_DF1 1 DF1 lg AB_ETH 1 Ethernet RSLogix 5000 software revision 10 0 or later automatically creates an RSLinx topic whenever you e create a project e 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 Publication 1756 QS001D EN P February 2007 Program a Project Offline 85 Set Up a Topic 1 Use RSLogix 5000 software to create the topic aeu S ee ole res ARS BIB Ala a Ce 1 a Set the project path communication route to the controller b Save the project 2 In RSLinx Classic software check the topic a choose DDE OPC Topic Configuration Select your project Topic List Data Source Data Collection Advance c Make sure the data sourc
73. idth of the longest line of text in the box Word Wrap Tums caonveyoron and off based on start and stop buttons lf both stat and stop are on the stop button overrides the start button a Retain a fixed width and wrap the text You can always manually resize the box M Word Wrap Tums conveyoroan and off based on stat and stop buttons If both stat and stop are on the stop button overrides the start button al To set the word wrap option 1 In RSLogix 5000 software choose Tools gt A RSLogix 5000 My_Project_1 1756 L63 MainProgram Run_Conveyor Options dy File Edit wiew Search Logic Communications Tools window Help Options Security 2 Select the editor Categories e the appearance of the Sequential F M Show Test Boxes Justification Lett El Application Display es FontColor Tag Editor Display E Ladder E ditor s Display D word Wrap A FontColor ai SFC Editor M Use Fag Description Display width a Element Naming Show Description Boxes es FontColor l FED Edito FontColor af structured Text Editor es FontColor M Show Tag Alias Information 3 Select or clear the word wrap option I Auto Scroll During Online Monitoring Publication 1756 QS001D EN P February 2007 Documenta Project 107 Add a Text Box 1 Drag the text box button from the toolbar to the chart lt aq 2 ype the comment and press Ctrl En
74. ine 38 check for errors 93 create 64 create tag 90 edit logic online 120 124 import ladder logic 77 open 23 organize 64 program ladder logic 73 program using a function block diagram 81 program using an SFC 88 program using structured text 86 RSLogix 5000 software give command 39 monitor an equipment phase 39 run mode 53 rung comment add 102 103 export import 103 S scan time view 140 scope choose for tag 59 guidelines 95 search Publication 1756 0S001D EN P February 2007 144 Index browse 132 comments or descriptions 129 instruction 129 tag 129 sequential function chart see SFC serial communication with controller 48 set hold action for a PXROQ instruction 45 initial step index 44 SFC document 106 edit online 120 124 enter 88 use for 64 sheet use of 81 source protection use of 23 state routine see phase state routine states set the Initial state 42 step through 39 structure create 61 Organize 95 structured text document 108 edit online 120 124 enter 86 use for 64 subroutine See routine T tag create 90 description 99 force value 133 format 90 Publication 1756 QS001D EN P February 2007 guidelines 95 I O module 21 organize 61 95 reuse of names 59 scope 59 search for 129 trend value 137 task configure 5 scan time 140 test equipment phase 39 test mode 53 text box add to function block diagram 106 add to SFC 106 transition step through 39 trend create and run 137
75. ject better If a tag already exists in the project Import Canha you can either Tags Data Types itis in ieee DIS BE fC Corey e N 0 CN2 M Local 2 0 D ata 0 rae Conveyor CH1 Motor euse the existing tag which discards the tag in the library file and binds the logic to the existing tag erename the tag which creates a DA EserDisiea BOL new one KID Locat J ABAFE DEO Discard ala teaz 7 ee para Use sisting No new 1 0 tags are created If an I O 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 Publication 1756 QS001D EN P February 2007 Program a Project Offline 79 Export Rungs 1 Select the rungs to export Ey MainProgram MainRoutine ze Z ear If rungs are Do this El EHE In sequence Click the first rung and then Start_PB SR One Shot Rising Storage Bit Start PB Store Bit Output Bit Startup Reset Shift click the last rung Out Of sequence Click the first rung and then Ctrl click each additional rung Cub Rung ctrl CH1 2 Right click the selection and choose Export Rung Sopy Rung uals TA Ea Faste Ctrl a Delete Rung Del P Add Rung Ctrl F Edit Rung Enter Edit Rung Comment Ctrl D x p g zj Import Rung Save irr a Library c Ez Export Rung h a CountScans L5 a ShartStop L5x E
76. lect Ethernet devices and choose Add New 4 Accept the default name Choose a name for the new driver 15 characters maximum AB_ETH 1 Station Mapping Station Host Name 5 Type the IP address of the controller or communication gt 32 687200 module E3 Driver 6 Click OK Configured Drivers Status The driver is successfully configured and running AB_DF1 1 DF1 Sta 0 COM1 RUNNING Running AE ETH 1 A E Ethernet RUNNING Go Online to 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 Publication 1756 QS001D EN P February 2007 116 Go Online to the Controller lf Your Computer Has the Project For the Controller Logix5000 Controller Online monitor a project that a controller is executing Project lt oe Project Online 1 Open the RSLogix 5000 project for the controller fe RSLogix 5000 My_Project_1 1756 11 File Edit View Search Logic Communications Tools Window Help Mew Ctrl h Open Ctrl 0 Close Save Ctrl 5 Save AS New Component b Compact Print Ctrl F Frink Options 1 My _Project_1 ACD 2 My _Froject_2 ACO k 3 My _Froject_3 ACD 2 Define the path to the controller i Bake ME a Click b Select the controller f Who Active W Autobrowse workstation US
77. lick and then as Look ir E Projects ja a File name bly Project 2 ACE Operating Mode of the _ RemPreg Program Mode ae Controller E P IS Controller OF i 7 E E atter Fault No Edits a M O Not Present D Publication 1756 0S001D EN P February 2007 118 Go Online to the Controller Notes Publication 1756 QS001D EN P February 2007 Chapter 6 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 and RSLinx Software e The physical system to which you are connecting e The project you want to access Follow These Steps Use this diagram to program a project online START Edit Logic While Online Page 120 Finalize All Edits in a Program Page 124 Publication 1756 QS001D EN P February 2007 120 Program a Project Online Edit Logic While Online Online edits let you change your logic while your machine or process continues to run 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 edit an SFC online e the SFC resets to the initial step e stored actions turn off As you perform onli
78. llocate 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 Less Efficient Organize a Project 63 Follow these steps to create a user defined data type and tags that use the data type Hi Data Type Tank 1 Create a user defined data type Seep Controler Controller Quick Start_1 Controller Tags Controller Fault Handler 3 Power Up Handler 2 Tasks MainTask ig Mainfrogram 4 Unscheduled Prograp Phases Motion Groups Add On Instruc Data Types Trends 1 0 Configuration a Right click and choose New Data Type b Type a name for the data type not the name of a tag that will use the data type c Enter the members As an option type a description for each member d Click OK 2 Create a tag that uses the user defined data type Controller Controller Quick Start_1 Controller Tags J Controller Fault Handler T Power Up Handler Tasks A MainTask E E MainProgram Program Tags a MainRoutine Subroutine A Subroutine _B Subroutine E F Unscheduled Programs Phases J Motion Groups Add On Instructions Data Types J Trends 1 0 Configuration 3 Do the following if you want the tag to be an array multiple instances of the data type c Select the data type and click fe Mame Tank Description Members ime aee Do Pesme E Temp o A
79. mode you want for the controller Do you want to execute the No Choose program mode logic in the controller Yes Do you want the logic to Yes Choose run mode control the output devices No Choose test mode 2 Turn the keyswitch to RUN REM PROG P 3 Go online with the controller 4 Select the mode Rem Prog i Program Mode Tal yA E Controller OF i E Battery Fault 140 Not Present a i Ho Forces Mo Edits A Publication 1756 QS001D EN P February 2007 54 Program and Test a Simple Project Notes Publication 1756 QS001D EN P February 2007 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 e A layout of the system for which you are creating a project Publication 1756 QS001D EN P February 2007 56 Organize a Project Follow These Steps Use this diagram to organize a project Publication 1756 QS001D EN P February 2007 START Before You Begin Page 57 Configure the Task Execution Page 57 Create Additional Programs Page 59 Create User defined Data Types Page 61 Define Your Routines Page 64 Assign Main Routines Page 67 Configure the Controller Page 68 Configure 1 0
80. mpty a separate step Organize a Project 67 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 See Controller Quick_Start_1 a 2 Controller Tags C Controller Fault Handler C Power Up Handler ES Tasks Ht MainTask 8 MainProgram Pol Program Tags Ei MainRoutine a Program_B 1 Right click and choose Properties Program Tags Main_Routine E Program Properties Program _B z iol x 2 Click the Configuration tab General Configuration kontor Assigned Routines Main lt none gt Fault lt none gt lt a _ 3 Select the main routine 4 Click OK Publication 1756 QS001D EN P February 2007 68 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 fo RSLogix 5000 My_Project_1 1756 L63 File Edit View Search Logic Communications Tools Window allal a fee fo ro t 1 Click the Controller Properties button Date Time Advanced SFC Execution File Redundancy Nonvolatile Memory Memory 2 Change the
81. nal Computer running RSLogix 5000 Software version 16 e The project you are documenting Publication 1756 QS001D EN P February 2007 98 Document a Project Follow These Steps Use this diagram to document a project START Describe a User defined Data Type Page 99 Add Rung Comments Page 102 Enter and Edit Rung Comments Using Microsoft Excel Page 103 Add Comments to a Function Block Diagram or SFC Page 106 Add Comments to Structured Text Page 108 Publication 1756 QS001D EN P February 2007 Describe a User detined Data Type RSLogix 5000 software a8 13 0 or later Document a Project 99 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 Mame Tank Description Tank 4 Members Name Data Type Style Description E Lee DINT Decimal Ciyent Liters Fiesswe DNT Decimal KPA O Tem PEA Fot Deot otato Speed DINT Decimal RPM A Agitator L ingedoen A BOOL Decimal Add Fee E ingedoen B E00L Decimal Add Blue Scope Pass_Through Desc Show Show Al Controller Tags Pass _ Through _Descripttons controller P Tag Name Type _ Description _ ____ B E an Ta Tank Pass through of desc
82. nd Descriptions On or Off 1 In RSLogix 5000 software choose Tools gt A RSLogix 5000 My_Project_1 1756 L63 MainProgram Run_Conveyor Options Ay File Edit view Search Logic Communications Tools window Help ee aa a Security Categories El App general appearance for RSLogix 50 lication Tag Description Display Width ell Tag Description Display Justification Center E MW Show Pass Through Descriptions V Append To Base Tag Descriptions l Show Grid ll 3 Turn on check or turn off uncheck the desired 5 Tag Editor Display options I ms t tt i FontColor SFC Editor Publication 1756 0S001D EN P February 2007 Documenta Project 101 Paste a Pass Through Description To use a pass through description as the starting point for a more specific description Controller Tags Pass_ Through _Descriptions controller f Z ol x Scope Pass Through Desi T Show Show Al Sort Tag Name 1 Right click the pass through description and E A e Type A choose Paste Pass Through PE ie tanks Tak ET b Tanks eaten o E o ie Tanks 3 Tank iea IE ee oe GS Paste Ctrl Delete Del T LE Monitor Tags AeditTags fia Controller Tags Pass_ Through _Descriptions controller Scope Pass Through Des Show Show Al Sort Tag N a _jP tagName Type Description 2 Edit the description and press Ctrl Enter BC E Tanks Cd Tanki Tank
83. ndow Help Find Ctrl F Replace Ckrl H 60 To Chrl 6 Browse Logic Sse Cross Reference Ctril E 2 To expand an entry and see its contents ae Find Next F3 k _ I l M _ _ m rae eis e click the sign e right click the entry and choose Expand All Find Al Logic Language Element Description zig MainTask HSS MainProgram Controls fill and pack line 3 To collapse an entry and hide its contents either e a ja calls the exe HE4 Pack_Lartons ackages product in carton a double click the entry Packages product and then p e click the sign Package Step Puts product into package Product In Package Transition amp Pack_In_Carton Step Packs product into 8 size cart ProductIn_ Carton Transition Refill Hopper Maintains sugar level in sugar 4 To go to the location of a element in logic select the ae Ee Voer OPREA Line 2 low level LS element and choose Go To a nen hie rel a ugar llet Line 4 Line 5 Line 6 4 Aun Conveyor Turns the conveyor on and of EI Unscheduled Programs Publication 1756 QS001D EN P February 2007 Troubleshoot the Controller 133 Force 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 If you want to Override a value Forcing can cause unexpected m
84. ne edits RSLogix 5000 software uses markers to show the state of your edits Relay Ladder MainProgram MainRoutine FE ee E2 MyT ag_1 15 iF MainRkoutine 4 This marker Means Relay ladder i Original logic j Function block Structured text SFC Publication 1756 0S001D EN P February 2007 MyTag_1 15 Function Block Structured Text SFC ini ioli EED zj S _ A Se a El El b if H5 Mainkou APack_Ca 4 b Description When online RSLogix 5000 software continues to show you the original logic 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 ii x ziaz VS HI ada HI This marker Relay ladder Function block Structured text SFC Relay ladder Function block Structured text SFC Means i Pending edits OF Program a Project Online 121 Description 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 n function block structured text or SFC you edit an entire routine When you accept your pending edits the software downloads them to the controller and marks them as test edits but the contr
85. nformation on how to program edit and troubleshoot a project What You Need You need these items to complete the tasks in this manual e Personal Computer running RSLogix 5000 Software version 16 e A layout of the system for which you are creating a project Publication 1756 QS001D EN P February 2007 16 Program and Test a Simple Project Follow These Steps Publication 1756 QS001D EN P February 2007 Before You Begin Page 17 Create a Project for the Controller Page 18 Add 1 0 Modules Page 19 Look at O Data Page 21 Enter Ladder Logic Page 23 Enter a Function Block Diagram Page 25 Use this diagram to program and test a simple project Use Add on Instructions Page 29 Configure an Equipment Phase Page 37 Assign Alias Tags for Your Devices Page 45 Establish a Serial Connection to the Controller Page 48 Download a Project to the Controller Page 51 select the Operating Mode of the Controller Page 53 Program and Test a Simple Project 17 Before You Begin To configure and program a Logix5000 controller you use RSLogix 5000 software to create and manage a project for the controller xi Lookin E3 Froese l e A e S My_Project_1 ACcD 8 My _Project_2 4CD 8 My_Project_3 4CD Project 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
86. nput right click the wire and choose Assume Data Available Delete Element Assume Data Available X Properties Add Sheet 1 Click the New Sheet button 2 Type a name for the eleieam ES elle a a et Publication 1756 QS001D EN P February 2007 84 Program a Project Offline Use a Faceplate for a Function Block RSLogix 5000 software includes faceplates controls for some of the function block instructions Manual 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 j S oss Ta Detail e RSLinx Classic software as a separate package cry ri Tune e RSLogix 5000 professional edition software which includes RSLinx Classic Enhanced PID lt q Faceplate Active X control that lets you interact with a function block instruction op Py Mode e Your RSLogix 5000 Enterprise Series software package includes the faceplates but does not automatically install them To use the faceplates locate them on your 100 E 100 ye software CD and install them separately mE 50 Program e Use faceplates in an Active X container such as the following software 25S 25 Operator e RSView 32 ae Cas Rat e RSView SE asiha e Microsoft Excel ay _ Auto e RSLogix 5000 software is not a valid Active X container professional edition software RSLinx Classic Lite software wh
87. nt a Project Export the Existing Comments 1 In RSLogix 5000 software add at least 1 rung ESAs x comment This helps to format the export file E AAE This routine calls the execution of all other routines JSA Jump To Subroutine lL Routine Name Run Conveyor E fo RSLogix 5000 Pass_Through_Descriptions 1756 L63 3 Fie Edit View Search Logic Communications Tools Window Help Options Security d 2 Choose Tools Export yy kal Translate PLCS SLC Import Motion Direct Commands Save ihi E Projects m ee Eel Samples 3 Note the location and name of the export file File name MyProject_1 Tags C5 4 Choose what to export Save as type RSLoaix KODO Import E sport File CS4 Cancel Help Tags None x 5 Export Logic Comments fan Publication 1756 QS001D EN P February 2007 Documenta Project 105 Edit the Export File 1 In Microsoft Excel software open the export file 2 Enter rung comments in the following format a MyProject_1 Tags CS l SCOPE ROUTINE COMMENT OWNING ELEMENT LOCATION This routine calls the execution of all other RCOMMENT MainProgram MainRoutine routines MOP 0 Ifthe conveyor is not turning RCOMMENT MainProgram MainRoutine on or off check this routine 1 RCOMMENT program that routine that contains comments for the leave rung contains the rung the rung rung blank number 3 Save and close the file Keep it in t
88. of a pin Required parameter Wire the pin to an IREF OREF connector or another block ta Simulation instruction which includes a Simulation_DT_1st SimOTinw Single question mark Required parameter Enter a tag No nub on the end of a pin Not a required parameter The instruction takes only the required parameters Enter a tag for Simulation _DT_ 1Vst Simulation_OT_ 1st Simlnput OAT each parameter 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 Publication 1756 QS001D EN P February 2007 Program and Testa Simple Project 31 i Copy an Add on Instruction Definition Do this procedure when another RSLogix 5000 project has an add on instructon that you want to use After you copy the definition you can use the instruction in your programs 1 Open the RSLogix 5000 project that has the add on instruction definition X RSLogix 5000 My_Controller_1 in Add 2 Find the definition in the Add On Instructions folder File Edit wiew Search Logic Communications c 3 3 Right click the definition and choose Copy allu S Bal gt gt se Offline J T RUN m ale Eanes FOK Open Definition Ho Edits J Controller My Controller _1 J Tasks J Motion Groups Add On Instructions lt Conveyor Control Motor Starter Simulate _Feedback 4 Go to the project that
89. oller continues to execute the Original logic You then manually switch execution to the test edits or back to the Original logic test and untest the edits If you Then Test the edits e Execution switches to the test edits all test edits execute e Qutputs in the original logic stay in their last state unless executed by the test edits or other logic e In an SFC the chart resets to the initial step and stored actions turn off Untest the edits e Execution switches back to the original logic e Qutputs in the test edits stay in their last state unless executed by the original logic or other logic In relay ladder if you delete a rung the software immediately marks It as a test edit upper case D character Publication 1756 QS001D EN P February 2007 122 Program a Project Online Start a Pending Edit 1 For relay ladder click select the rung that you want to edit 2 Start a pending edit Fa MainProgram Pack_Cartons ol x Eea e a A l I B MainProgram MainRoutine oj x izle IPH al PA BIE MainRout A Pack Ca 4 b SIE ii Mainkou APack Ca 4 b Relay Ladder Function Block Structured Text SFC Make and Accept Your Edits FA MainProgram Pack_Cartons Ioj x function block Zhen sl na 7 alse E tt MainProgram MainRoutine iff o B Ey ERIR A wie E A ERCA m fe E 1 Make your changes A i i Ej i JEY Mainkouw k
90. on 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 Controller My Controller S Controller Tags Controller Fault Handler E Power Up Handler Tasks a MainTask i e New Routine 1 Right click and the program and choose eae New Routine Unscheduled Programs Y cut Ctrl Motion Groups aA a l Sa Add On Instructions Copy Ctrl 2 Type a name for the routine E Data Types J Trends 110 Configuration 3 Choose the programming language 4 Click OK Mame Description Type E Function Block Diagram Publication 1756 QS001D EN P February 2007 26 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 Controller My Controller Controller Tags J Controller Fault Handler iF Add a rung E Power Up Handler e e 2 Select the Program Control tab P co a La 3 Add a JSR instruction Ey MainRuoutine Phase BSS ES 4 Select the name of the routine that you want to execute TER a Jump To Subroutine ial Routine Name Myr BD 1 Input Par Input Par Return Par ES 4dd Input Parameter ER Add Return Parameter gt Remove Instruction Parameter CLE MainRoutine
91. on defines the minimum amount of preparation required before completing the current chapter e What You Need This section lists the tools that are required to complete the steps in the current chapter This includes but is not limited to hardware and software e Follow These Steps This illustrates the steps in the current chapter and identifies which steps are required to complete the examples using specific networks Publication 1756 QS001D EN P February 2007 Audience This manual is for programmers and maintenance personnel who will be using one of the following Logix5000 controllers e 1756 ControlLogix controllers e 1756 GuardLogix controllers e 1768 CompactLogix controllers e 1769 CompactLogix controllers e 1789 SoftLogix5800 controllers e 1794 FlexLogix controllers e PoweFlex700S with DriveLogix controllers To use this manual you must already have experience with the following e Programmable controllers e Industrial automation systems e Personal computers e Microsoft Windows95 98 NT 2000 and XP operating systems Required Software To complete this quick start the following software is required e RSLogix 5000 Software version 16 e RSLinx Classic Software version 2 51 Conventions Text in the courier font identifies example programming code shown in a monospace font so you can identify each character and space Publication 1756 QS001D EN P February 2007 Additional Resources Re
92. op ties MainTask Joj x J Add On Instructions J Data Types General Configuration Program Phase Schedule Monitor Trends HO Configuration Type Periodic i Period TE Priority Lower Number elds Higher Priority Watchdog 500 000 rig 1 Right click and choose Properties 2 Click the Configuration tab 3 Choose Periodic 4 Type the period for the task 5 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 QS001D EN P February 2007 Organize a Project 59 Create Additional Programs A Logix5000 controller lets you divide your application into multiple programs each with its own tags data a a Tag store data There is no fixed data table or numeric format for data addresses The tag fae name is the address no cross reference to a physical address You create the tags that you ee EI Power Up Handler want to use Sion Tasks Ga MainTask 23 Mainerogram Program isolate logic and data from other logic and data Each program contains one or ool more logic routines as associated data Scope define whether a tag is accessible to all programs controller tag or Bl Power Up Handler limited to a specific program program tag Data at the program scope is isolated Ba Tasks from other programs MainTask See MainProgram
93. or 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 communication route to a device To define a path you expand a driver and select the device Go Online to the Controller 111 Equipment and Information That You Need 1 Depending on your controller you may need a communication module or daughter card If you have this controller Install this In this location 1756 ControlLogix controller 1756 ENBT 10 100 Mbps EtherNet IP Bridge module open slot in the same chassis as the controller 1769 L35E CompactLogix controller no additional communication module or card is required 1794 FlexLogix controller 1788 ENBT communication daughter card open slot in the controller 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 The graphic shows a simple standalone network ool ad 6 7 sa bei J 3 For the EtherNet IP device controller bridge module or daughter card obtain the following Obtain this If your network is connected to the If your network is a standalone network internet from this source that does not connect to the Interne
94. or more tags contain a force value No Edits a a e O forces are inactive disabled a eat eel D e When you enable 1 0 forces all existing 1 0 forces take effect Solid amber e O forces are active enabled e Force values may or may not exist e When you install add a force it immediately takes effect Publication 1756 QS001D EN P February 2007 Troubleshoot the Controller 135 Install an I O 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 MOM Move Source Flow Valve 1 AU E Dest Local 7 0 Ch0D ata F AU amp 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 ai H Locat4 l Faut 2 00 a U Local 5 0 Data b FMocstdidsao gt O Heati Daat ooo 4 Install the force value To force a Do this Rem Run T 170 Forces i iana BOOL value Right click the tag and choose Force ON or Force OFF z Enabled ES eum 7 oan Integer or REAL In the Force Mask column for the tag type the value to which No Edits Se hea value you want to force the tag and press Enter Disabled ee i F D 5 Choose 1 0 Forcing Enable All I O Forces and click yes enable I O forces Publication 1756 QS001D EN P February 2007 136 Troubleshoot the Controller Remove an Individual Force 1 Go
95. or visit http support rockwellautomation com Installation Assistance If you experience a problem with a hardware module within the first 24 hours of installation please review the information that s contained in this manual You can also contact a special Customer Support number for initial help in getting your module up and running United States 1 440 646 3223 Monday Friday 8am 5pm EST Outside United Please contact your local Rockwell Automation representative for any States technical support issues New Product Satisfaction Return Rockwell tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility However if your product is not functioning it may need to be returned United States Contact your distributor You must provide a Customer Support case number see phone number above to obtain one to your distributor in order to complete the return process Outside United Please contact your local Rockwell Automation representative for States return procedure Power Control and Information Solutions Headquarters Americas Rockwell Automation 1201 South Second Street Milwaukee WI 53204 2496 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
96. ort Add On Instruction Us New Add On Instruction Import Add On Instruction 2 Find the instruction 3 Select the instruction and click Import _ a File name Motor _Starter LEX g Publication 1756 0S001D EN P February 2007 Program and Test a Simple Project 33 j Access a Parameter That Isn t Visible Do this procedure when you want to read or write to a parameter of an add on instruction that isn t visible on the instruction If the programming language is Function block diagram Ladder diagram Structured text Then 1 Click the Properties button for the instruction 2 Check the Vis box for the parameter Example Check the Vis box of the Jog parameter to use it in your diagram Motor_Starter Properties Motor_1_FBD Sheet 1 B1 Parameters Tag Argument Value Data Tyne Description Lm Eyableln 1 BOOL Enable Input System Defined Par o E Arable ut 0 BOOL Enable Output System Defined F Jv top 0 BOOL Stop command for the mator Iv Start 0 BOOL Start command for the motor C E 0 BOOL Jog command for the motar To jo AuxContact 0 BOOL Ausilarn contact of the motor Mak 3 Click OK 4 Wire to the pin for the parameter 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 Where Is Add_On_Tag Add on detined tag for the add
97. ou change the definition 1 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 Publication 1756 QS001D EN P February 2007 Program and Testa Simple Project 37 Use PhaseManager to Create and Configure an Equipment Phase Follow this procedure to use PhaseManager to create an Equipment Phasease and change the default settings for the Equipment Phase Create an Equipment Phase 1 Right click Main Task and choose New Equipment Phase 2 ype a name for the Equipment Phase 3 Click OK 7 Controller MyController o amp Controller Tags bese i Controller Fault Handler bse a Power Lip Handler E a Tasks E L Hew Equipment Phase Ca New Program Lay New Equipment Phase N Cancel Description Help Schedule ir la Main ask Inhibit Equipment Phase Publication 1756 QS001D EN P February 2007 38 Program and Test a Simple Project j Create a State Routine H E Controller MyController E Tasks DAA MainTask agi MainProgram 1 Right click Main Task and choose Unscheduled Sgrams Phases the Equipment Phase a eM Ee New Phase State Routine N Bz New Routine 2 Choose New Phase State Routine Mew Parameter
98. produced on the previous scan 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 Publication 1756 QS001D EN P February 2007 82 Program a Project Offline Use the Keyboard to Add an Element 1 Press Insert a BB lt a K E SEL eset ssun snesl Hux gt BS Add FBU Element SelectiLimit Stal FEL Element FEF Mame Description Input Reference Output Reference Input wire Connector Output Wire Connector Test Box Test Box Process Drives Filters S elect Limit A Statistical Pa Sa W Show Language Elements By Groups Cancel New 4dd On Instruction Help T aa kt 2 Type the mnemonic for the element and press Enter 3 Drag the element to the desired location Connect Elements ALH SCL F10e rnes Pose sete Loe 4 lt Favorites Process SelectiLimit A Statistica ase o 2 gt I sheet 1 lofi fo To connect elements click corresponding pins green dot valid connection point Publication 1756 QS001D EN P February 2007 Program a Project Offline 83 Resolve a Loop al Be T c seL eset ssun snee nux gt Stat a e N Favorites Process A Drives A Filers SelectiLimit _ eee eee ees To resolve a loop define a wire as an i
99. riptions 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 yil arm B a e a Hi Tanks O Level DINT tebTanks O Pressue DINT Tank Kpa Py p tanksfo Temp REAL Tank Degrees C _ feTanksiO Asitstor Speed DINT Tank RPM of Agitator Tank Add Red L Tanks O ingredient B BOOL Tark Add Blue o MTarkilngedien A BOOL Tank erent Liters Append description to base tag 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 Ep Tanksf1 Tank West Tank aes Sas Tanks 1 Level DIN T West Tank Kurent Liters m g E Tenkt Presswe DINT west Tank Kpa E ineme REA west Tank Degrees C Paste pass through description Use the data type and array description as a basis for more specific descriptions In this example Tank became West Tank Publication 1756 0S001D EN P February 2007 100 Document a Project RSLogix 5000 software uses different colors for descriptions A description in this color Isa Gray Pass through description Black Manually entered description Turn Pass Through and Appe
100. roller fo Who Active e lo open a level click the sign E e When you see the controller select it Workstation USMAYHMILLS Fas Linx Gateways Ethernet H AB_DF1 1 DFi l AB_ETH 1 Ethernet Ele A 192 168 1 200 1756 ENBT A 1756 ENBT A 4 Backplane 1756 410 4 H A 00 1756 L55 4 LOGINSS55 1756 L55 4 1756 M14 DG 01 1756 ENBT IA 3 Download the project es A oz 1756 L55 A LOGINSSSS 1756 L55 4 1756 M22 Spee MOS 1756 L63 LOGIX5563 1756 L63 4 LOGIKs563 a Click Downoad Failed to download to the controller The revision of the offline project and controller s firmware are not compatible Which response did RSLogix 5000 software give Download to the controller b Click Download b Choose Update Firmware Look for Firmware Update Files Ir C Program Files Control FLASH si Upgrade 00015000E 003845563_INT_ Upgrade 00015000E 0038 5563_INT_F Upgrade 00015000E 003845563_INT_ Upgrade 00015000E 00323845563 _INT_ Inarade WOO07 O0NF ASR SRR A AT 1 E Installed Firmware Update File Directory C Program Files ControlFLASH c Choose the revision for the controller d Choose and then Yes Publication 1756 QS001D EN P February 2007 Program and Test a Simple Project 53 Select the Operating Mode of the Controller To execute or stop executing the logic in a controller change the operating mode of the controller 1 Determine which
101. s and status Program a Logix5000 controller detailed and comprehensive information Program a specific Logix5000 programming instruction Import or export a Logix5000 project or tags from or to a text file Convert a PLC 5 or SLC 500 application to a Logix5000 project Integrate a specific Logix5000 controller within a system of controllers 1 0 modules and other devices Control devices over an EtherNet IP network Control devices over a ControlNet network Control devices over a DeviceNet network To view or download manuals visit http www rockwellautomation com literature To obtain a hard copy of a manual contact your local Rockwell Automation distributor or sales representative Publication 1756 QS001D EN P February 2007 12 Notes Publication 1756 QS001D EN P February 2007 Where to Start Chapter 1 Program and Test a simple Project Chapter 2 Organize a Project Chapter 3 Program a Project Offline Chapter 4 Document a Project Chapter 5 Go Online to the Controller Chapter 6 Program a Project Online Chapter 7 Troubleshoot the Controller Publication 1756 QS001D EN P February 2007 14 Typical Configuration You will need the following basic components to begin working with RSLogix 5000 software This is a typical configuration yours may vary In this publication we do not tell you how to install or maintain any component shown here nor any other IMPOR
102. source Logix5000 Controllers Quick Start publication 1756 QS001 Logix5000 Controllers System Reference publication 1756 QR007 Logix5000 Controllers Common Procedures publication 1756 PM001 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 1756 RMO007 Logix5000 Controllers Import Export Reference Manual publication 1756 RM084 Logix5550 Controller Converting PLC 5 or SLC 500 Logic to Logix5550 Logic Reference Manual publication 1756 6 8 5 e CompactLogix System User Manual publication 69 UM007 e ControlLogix System User Manual publication 1756 UM001 e DriveLogix Controller User Manual publication 20D UM002 e FlexLogix System User Manual publication 794 UM001 e GuardLogix Controllers User Manual publication 1756 UM020 e SoftLogix5800 System User Manual publication 1789 UM002 EtherNet IP Modules in Logix5000 Control Systems User Manual publication ENET UM001 ControlNet Modules in Logix5000 Control Systems User Manual publication CNET UM001 DeviceNet Modules in Logix5000 Control Systems User Manual publication DNET UM004 11 Description Get started with a Logix5000 controller Look up abbreviated information and procedures regarding programming languages instructions communication
103. ssigned the desired keys click x Close Free Help Assign Key Unassian Key aft Publication 1756 QS001D EN P February 2007 Program a Project Offline 77 Export Import Ladder Logic RSLogix 5000 software a8 13 0 or later 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 Project A loxi H SE rungs Export Start Reset Button a on main control lt panel Start_PB tags lt Local 1 I Data 1 gt SR 0 One Shot Rising B Storage Bit Start_PB_Store_Bit B gt data types SFS DupaBt o Stalp Heset Project B MainProgram MainRoutine 5 x comments End 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 that are created during the import operation Publication 1756 QS001D EN P February 2007 78 Program a Project Offline 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 pro
104. sta Simple Project 45 Setting Choices Initial Step Index A Are any of the state routines in ladder diagram or structured text e No Skip this box e Yes Go to step B B Do any of those state routines use step numbers e Yes lype the number for the first step of each state e No Skip this box The tag for the Equipment Phase has a 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 A Are you using RSBizWare Batch software to command this Equipment Phase Command e No Skip this box e Yes Go to step B B If the controller loses communication with RSBizWare 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 External Request Hold Action A Are you using any PXRQ instructions e No Skip this box e Yes Go to step B B What do you want to do if an Equipment Phase goes to holding while a PXRO instruction is in process e Nothing Select None e Stop the request Select Clear Assign Alias Tags for Your Devic
105. step e Drag an action until it is on top of the required step and then XO fol tran_ooo release the mouse button 2 o manually connect elements click corresponding pins A green dot shows a valid connection point lt q 3 loenter structured text double click a symbol Then type the structured text and press Ctrl Enter Publication 1756 QS001D EN P February 2007 90 Program a Project Offline 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 B MainProgram Mainkoutine i sael Missing operand 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 T m mm th ch lelg D 2 lf E sef A Undefined tag enter a tag name without defining the tag RSLogix 5000 software lets you enter and save logic without defining all the operands This lets you develop your logic in iterations A tag name follows this format Name Element Member Element Suis Or Optional 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
106. system communication with an I O module may have failed front of the controller _ vo Rem Prog TV Progr m Mode Nic manese H roller OK 7 thery Fault Mo Edits a E ook E 29 Controller My Controller_1 5 Tasks Motion Groups 5 Add On Instructions Data Types Trends E LO Configuration 3 1756 Backplane 1756 410 a 2 1756 L61 My_Contra 4 1756 MOCLUL shb Module Defined Tags Local 4 Local 4 1 Local 4 c Description Status Gffline Module Faut lt Status of I O Communication If the LED Then indicator is Off Either e There are no modules in the I O 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 A AN over a module means 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 Publication 1756 QS001D EN P February 2007 128 Troubleshoot the Controller Clear a Major Fault If your entire process unexpectedl
107. t from this source Ethernet address Sticker on the device Sticker on the device IP address Network administrator 192 168 1 x where x any value between 1 and 254 Subnet mask 255 255 255 0 Not needed Gateway address may not be required 1 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 addressing but with a different x value 2 In this case your computer must use the same subnet mask value as the EtherNet IP device Publication 1756 QS001D EN P February 2007 112 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 or the network an electrical arc can occur This could cause an explosion in hazardous location installations ee Ethernet ontro ler or switch Communication Module Standard Ethernet Cables With RJ 45 Connector Logix5000 SOET Controller or Communication Crossover Ethernet Cable With Module mam RJ 45 Connector Publication 1756 0S001D EN P February 2007 Go Online to the Controller 113 Assign an IP Address to the Controller or Communication Module Follow these steps if you
108. t 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 Publication 1756 QS001D EN P February 2007 94 Program a Project Offline Follow these steps to verify a routine or project 1 Choose a verify option fs RSLogix 5000 Controller_Quick_ Start_1 1756 L63 MainProgram Subroutine_B a File Edit View Search Logic Communications Tools Window Help Verity routine IN VIEW alH S sel ol 8 S0 89 Tk IB 2 2 Verify entire project Y MuData_ amp EN SY om oo Ppa MuData_1 0 My ata 1 1 __ We a ee eee eee eee ee eee i AEA MainRoutine JE S zen
109. 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 Publication 1756 QS001D EN P February 2007 Program a Project Offline 91 Where Is 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 Bie 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 ru MainProgram Routine_B alale ol Zh gt E e ae NOT o 1 Double click the tag area 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 Tag_Name Name MyData_ Description Fi Tag Type Base C Alias C Produced C Consumed 4 Type the data type To browse for a data type or assign array dimensions click E 5 Choose the scope for the tag Scope MainProgram K 6 Click OK Data Type EDOL Public
110. tek Ga search Syrolders Hristo 2 A Make New Connection Start Settings gt Network and Dial up Connections Disable Status e and Dial up onnections Create Shortcut Delete 2 Right click on Local Area Connection Local Area Connection Rename 3 Choose Properties Properties Local Area Connection Properties 21 xi General General You can get IP settings assigned automatically if your network suppo Connect using this capability Otherwise you need to ask your network administrator Intel R PRO 1000 MT Network C F the appropriate IP settings nte etwor onnection 6 Select Use the i i Obtain an IP address automatically Configure fo owIiIn g P a dd ress Use the following IP address Components checked are used by this connection IP address f 192 168 1 5 4 Select Internet E Client for Microsoft Networks Subnet mask 255 255 255 0 A File and Printer Sharing for Microsoft Networks 7 C h an g e th e P l Protocol TCP IP Intemet Protocol TCP IP TANE AS ae address and subnet 5 Choose Properties a 8 Click OK Publication 1756 QS001D EN P February 2007 Go Online to the Controller 115 Configure an Ethernet Driver 1 Start RSLinx software RSLinx Gateway File Edit View Communications Station DDEfOPC Security Window Help 2 Click lt S S18 Bile x Configure Drivers lt q 3 Se
111. ter aie 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 Publication 1756 QS001D EN P February 2007 108 Document a Project Add Comments to 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 On a single line comment At the end of a line of structured comment text comment Within a line of structured text comment comment That spans more than one line start of comment end of comment retar OF COmMent s a send Or comment Here is an example Format Example comment 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 OG Ms L7 ENDIF comment Sugar Inlet 1 open the inlet IF Sugar Low low level LS amp Sugar High high level Lio LEN gii Controls the speed of the recirculation pump The speed depends on the temperature in the tank IF tank temp gt 200 THEN 7 comment Sugar Inlet 03 close the inl
112. tion LOCAL same chassis or DIN rail as the controller ADAPTER_NAME identifies remote communication adapter or bridge module Slot number of I O module in its chassis or DIN rail Type of data input O output C configuration S Status Specific data from the 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 specific data related to a Member Specific point on a digital I O module depends on the size of the 1 0 module 0 31 for a 32 point module Publication 1756 QS001D EN P February 2007 22 Program and Test a Simple Project Controller My Project 1 Right click and choose Monitor Tags Controller Tags E Controller Fault Handler E Power Up Handler Values are shown in the following styles a Styl e Base Notation Motion Groups Add On Instructions Binary 2 2 2 Data Types Decimal 10 NA E Trends l emg 1 0 Configuration Hexadecimal 16 16 Octal 8 O Exponential NA 0 0000000e 000 Float NA 0 0 A blue arrow indicates that when you change the value it immediately takes effect Tag Name 4 Value Loca OC Locakt0 0 Loe Bina HtocstNse0 o cing O Decimal 1 o see a value in a different style select the desired style 2 To change a value click
113. to aM MSUN 24 64 h64 28 C2AGEEEEERBEMEEAGA 131 BLOW SC LOGIC 2 fiat s Einen a ote teas hi the ed eee ie al ee ores 132 Fore am TON AC tebe oe eee RES Oecd 133 Install an I O Force Force an I O Value 135 Remove an Individual Force 2 0 2 0 0000000000 136 Pisa ple AU OFOG er wre oe wt ar Stee Ramee RE 136 Create and Run a Trend Histogram 137 R n a Trend fora Tag 2 43084 4 ak ou era nea oes 138 Add More Tags to the Trend nnan n naaa aaa 138 Optional Save ne tend ores oh a ow aa 139 View oca Mess 6 6464 24 hae o4d OS ed oe eee S A 140 View Task Scan Times 2 ood 64 anaes Ban ee ae Saws 140 View Procran Scan TINE aaa 3 oot oh ay eels 140 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 Logix5000 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 The beginning of each chapter contains the following information Read these sections carefully before beginning work in each chapter e Before You Begin This section lists the steps that must be completed and decisions that must be made before starting that chapter The chapters in this quick start do not have to be completed in the order in which they appear but this secti
114. tuchon 4 a4s00 ohana dtiveaea ce 3 Assign Operands to an Instruction 37 Enter a Sequential Function Chart 42 5546 s us ae aaa diee we 88 POCO AG ORG bso eee Ce kee T wees hore Ge we ee wees 39 ASSIS OPECI SS nea 20 amp Meet et aS av AG Ga oe ore ae 90 CHAS Ay VAS Sra Eis ead eke hen he enc tw Be EE ce TD 91 Select ai EP XIsUMNO TAG 2 wigs oldies gh eee ho els BE erie 92 NOA PrO O ie erspart ennea eee ae eae sO 93 Guidelines fOr GAGS 5 2 eaaa baaie ha oe ee ari eaa Y 95 Chapter 4 Wh YOU NGE a raort une cota oe eee So Ae hae 97 Folow These SIGDS ss ha 4a beeen owas Pb ek eee eh ee ee os 98 Describe a User defined Data Type 045 99 Turn Pass Through and Append Descriptions On or Off 100 Paste a Pass Through Description 101 Add RUNG Commens e 2 4 hac SG 3 4 44 eR eae odo 102 Enter and Edit Rung Comments Using Microsoft Excel 103 Export the Existing Comments amp cc edbu4 oes ee ee lt 104 EG he T pO Piles 4256 4e2e gwen heed bone he ee bo 105 Import the New Comments 00005 105 Add Comments to a Function Block Diagram or SFC 106 Set the Word Wrap Option 0 0 0 0 0005 106 Adda TeBe 44 i beheaded ede4o Fh ashes 107 Add Comments to Structured Text 00 4 108 Chapter 5 Wilda VOUMINGEG rasan tea dd he dog acd ake Salta hay sodas 109 POMOW TNES CDSN gcse doses c hans S Gone Ae ate oe Hd a a 109 Establish EtherNet IP Communication with
115. ubleshoot 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 Publication 1756 0S001D EN P February 2007 126 Troubleshoot the Controller Follow These Steps Use this diagram to troubleshoot the controller A problem exists with Troubleshoot 1 0 several devices in your Communication system communicatio with an I O module may Page 127 have failed Your entire process unexpectedly shuts down the controller may have experienced a major fault Clear a Major Fault You want to find a specific element such as a tag or instruction within a project You want to browse Browse Logic the project for a specific element such as a tag or instruction You want to override Force an I O Value input data or logic or check wiring to an output device You want to sample Create and Runa the data of one or Trend Histogram more tags over a specific period Page 137 You want to see the View Scan Time scan time of a task or program Publication 1756 QS001D EN P February 2007 Troubleshoot the Controller 127 Troubleshoot 1 0 Communication If there is a problem with several of the devices in your
116. 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 Publication 1756 QS001D EN P February 2007 74 Program a Project Offline Drag and Drop an Element To Add a rung Add an instruction Add a branch Add a level to a branch Delete an element Publication 1756 QS001D EN P February 2007 Do this Drag the button for the rung or instruction directly to the desired location 4 Hfj 4b fee lt gt ee ton for gt gt Favorites A Bit A Timer CouNer A InputlOutput Compare E A green dot shows a valid placement location drop point 1 Drag the branch button to where the branch starts A green dot shows a valid placement location drop point al H hi aE 44 C au o gt Ton cru gt 4 gt Favorites Bit 4 Timer Counter A InputiGutput A Compare 1 E p E i E I 2 Drag a branch rail to the desired E location ee 4 Right click the branch and choose Add Branch Level 1 Select click the element 2 Press Delete Use the Keyboard to Add an Element 1 Press Insert B MainProgram MainRoutine te See MS Add Ladder Element Ladder Element Pung Instruction Help gt gt E Description 0 SOR EOR 4 BS
117. version to or from SINTs or INTs occurs automatically with no extra programming But it takes extra execution time and memory Limit a tag name to 40 characters Here are the rules for a tag name e Only alphabetic characters A Z or a z numeric characters 0 9 and underscores _ e Must start with an alphabetic character or an underscore e No more than 40 characters e No consecutive or trailing underscore characters _ e Not case sensitive Although tags are not case sensitive upper case A is the same as lower case a mixed g Use mixed case case is easier to read These tags are easier to read Than these tags Tank_1 TANK_1 Tank1 TANK1 tank_1 tank1 RSLogix 5000 software displays tags of the same scope in alphabetical order To make it Consider the alphabetical order of tags 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 Tank North Tank_ South Publication 1756 QS001D EN P February 2007 North_ Tank ae lt q other tags that start with the letters o p south_Tank Chapter 4 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 Perso
118. vide Each Routine Into More Meaningful Increments 66 Assign Main Routines dune orb ed eb aana 67 Configure the Controller onnaa aaa 68 Configure I O MOdUIes 4 4 6 4 4 054o Gude od ei iieiea 69 Chapter 3 Wha ty OU NGG a put Aras ad oat keh a a 71 Follow THhESG SIDS cc e a as Oo eed a eke hore ee eee GS TA BElOLe VOUPDCOM eses ransti raa aee oad eee ee ae 72 Enter Ladder LOGIC fs i508 eke ahid E e e do 73 Diac and Drop an Element eurod 255 0 cied eeaedehads 74 Use the Keyboard to Add an Element 75 Enter Love Using ASCI Text srece uu bad dele ease 75 Enable Quick Keys derungai EE cee PEE E 76 Expor Import Ladder LOgiCiorgaw kaea n aed i D e i TA When You Import Rungs 0 000000 I7 Ex pO RUN SSos e e eh we ead RANA a ee AEE Ri 79 IpO RUN Seyans aia ES REA ES ES eS 30 Ch ck Alas TAS o iepa 64 454 eae hae a eden On eee RERA 80 Enter a Function Block Diagram 0 0 05 81 Use the Keyboard to Add an Element 82 Connec Elemen saree ka a e ee Se oe etek ae ee E 82 RESOIWe2 OOD arras eea aE NEE ee es 83 Add SWCCE aa a eis ew i a e A A 83 Use a Faceplate for a Function Block 84 SoG Wont LOG 464 oA ee ea oe oa oe ead eo 85 Add a Faceplate to Microsoft Excel Software 85 Enter smuctured Mex lamin 2 tears od beh se ae nares od 86 Document a Project Go Online to the Controller Program a Project Online Table of Contents 7 Browse For an Ins
119. y shuts down the controller may have experienced a major fault Front of the Controller Flashing Red Major fault the controller detected a fault condition that is severe enough for it to shut down 1 Go online with the controller REM 2 Choose Go To Faults Faulted Program Mode E Controller Fault E Battery Fault 10 Not Present D Mo Forces Mo Edits 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 171998 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 ACL Task MainT ask Program MainProgram Routine MamAoutine Location Rung 0 3 Use this information to correct the cause of the fault For more information about a fault code see Logix5000 Controllers System Reference publication 1756 QR107 4 After you correct the cause of the fault click Clear Majors Publication 1756 QS001D EN P February 2007 Troubleshoot the Controller 129 Search 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_l Comment description Text within t
120. your comments Location Phone ____No there is no need to contact me ___ Yes please call me ___Yes please email me at ___Yes please contact me via Return this form to Rockwell Automation Technical Communications 1 Allen Bradley Dr Mayfield Hts OH 44124 9705 Fax 440 646 3525 Email RADocumentComments ra rockwell com Publication ClG CQ521C EN P May 2003 PN953014 89957782 91 Other Comments PLEASE FASTEN HERE DO NOT STAPLE PLEASE FOLD HERE BUSINESS REPLY MAIL FIRST CLASS MAIL PERMIT NO 18235 CLEVELAND OH POSTAGE WILL BE PAID BY THE ADDRESSEE Allen Bradley RELIANCE ELECTRIC M ROCKWELL SOFTWARE DODGE Rockwell Automation 1 ALLEN BRADLEY DR MAYFIELD HEIGHTS OH 44124 9705 NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES PLEASE REMOVE Rockwell Automation Support www rockwellautomation com Rockwell Automation provides technical information on the Web to assist you in using its products At http support rockwellautomation com 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

Download Pdf Manuals

image

Related Search

Related Contents

F-101_Gasoil Basic_MetGUECA  Dayton® Centrifugal Belt-Drive Downblast Exhaust Ventilators  View the Protocols  REV COUNTER RCX User`s Manual  重要事項説明書  File  Note ADAP - 2015 - Office de Tourisme de l`Hérault  Konica Minolta A200 Digital Camera User Manual  Elo Touch Solution 15D2 Acoustic Pulse Recognition  Garland SH/IN 3500 Cooktop User Manual  

Copyright © All rights reserved.
Failed to retrieve file