Documente Academic
Documente Profesional
Documente Cultură
The variety of uses for the hardware, software and firmware (hereinafter Products) described in this Documentation, mandates
that those responsible for the application and use of those Products must satisfy themselves that all necessary steps have been
taken to ensure that each application and actual use meets all performance and safety requirements, including any applicable
laws, regulations, codes and standards in addition to any applicable technical documents.
In no event will Rockwell Automation, Inc., or any of its affiliate or subsidiary companies (hereinafter Rockwell Automation) be
responsible or liable for any indirect or consequential damages resulting from the use or application of the Products described in
this Documentation. Rockwell Automation does not assume responsibility or liability for damages of any kind based on the
alleged use of, or reliance on, this Documentation.
No patent liability is assumed by Rockwell Automation with respect to use of information, circuits, equipment, or software
described in the Documentation.
Except as specifically agreed in writing as part of a maintenance or support contract, equipment users are responsible for:
properly using, calibrating, operating, monitoring and maintaining all Products consistent with all Rockwell Automation
or third-party provided instructions, warnings, recommendations and documentation;
ensuring that only properly trained personnel use, operate and maintain the Products at all times;
staying informed of all Product updates and alerts and implementing all updates and fixes; and
all other factors affecting the Products that are outside of the direct control of Rockwell Automation.
Reproduction of the contents of the Documentation, in whole or in part, without written permission of Rockwell Automation is
prohibited.
Throughout this manual we use the following notes to make you aware of safety considerations:
Identifies information that is critical for successful application and understanding of the product.
Identifies information about practices or circumstances that can lead to personal injury or death, property
damage, or economic loss. Attentions help you:
identify a hazard
avoid a hazard
recognize the consequence
Labels may be located on or inside the drive to alert people that dangerous voltage may be present.
Labels may be located on or inside the drive to alert people that surfaces may be dangerous temperatures.
Introduction to Logix Controllers
Contents
Before you begin ......................................................................................................................................... 6
About This Lab .................................................................................................................................................................................. 6
What You Will Accomplish In This Lab ............................................................................................................................................. 6
Who Should Complete This Lab ....................................................................................................................................................... 6
Section 3: Downloading the Project from the Computer to the Controller ........................................ 61
Objective: ........................................................................................................................................................................................ 61
Downloading the Project to the Controller ...................................................................................................................................... 62
4 of 116
Section 4: Configuring I/O ........................................................................................................................ 72
Objective: ........................................................................................................................................................................................ 72
Adding ControlLogix I/O Manually .................................................................................................................................................. 73
Adding ControlLogix I/O Using Module Discovery........................................................................................................................ 77
Viewing the ControlLogix I/O Tags ................................................................................................................................................. 81
Assigning Alias Tags....................................................................................................................................................................... 84
Forcing I/O and Toggling Bits in RSLogix 5000 Software .................................................................. 101
Force Functions ............................................................................................................................................................................ 101
State of Forces.............................................................................................................................................................................. 102
Section 8: (Optional) Assigning IP Addresses Communication module with BOOTP/DHCP ....... 115
Before you begin
6 of 116
Lab Materials
For this Hands-On lab, we have provided you with the following materials that will allow you to complete the labs in this
workbook.
Software
This hands-on lab uses the following software:
RSLogix 5000 programming software
RSLinx Classic software
Files
There are no starting project files for this lab; you will be creating your own file as you go.
Document Conventions
Throughout this workbook, we have used the following conventions to help guide you through the lab materials.
ControlLogix provides modular network communications that let you purchase only what you need. Interface using ControlLogix
communication modules via a ControlLogix gateway, without the need for a processor in the gateway chassis, or interface
directly to a ControlLogix controller.
The ControlLogix solution also provides time synchronization capabilities, which is particularly useful in first fault and process
sequencing applications.
8 of 116
ControlLogix Chassis
Chassis: A hardware assembly that houses devices such a controllers, I/O, and communications modules:
ControlLogix Backplane
The ControlLogix backplane, or ControlBust backplane, is a printed circuit board at the back of the chassis that provides
electrical interconnection between modules:
ControlLogix Communications Modules
Communications Modules: Modules used for creating communications between a controller and a network:
Network Required Communication Module
Ethernet/IP 1756-ENBT, 1756-EN2T, 1756-EN2TR, 1756-EN3TR, 1756-EN2F
Controlnet 1756-CNB,1756-CNBR,1756-CN2, 1756-CN2R
Devicenet 1756-DNB
Data Highway Plus 1756-DHRIO
CompactLogix Controller
The main components of a CompactLogix controller are shown in the following graphic:
Diagnostic led
USB Port
12 of 116
CompactLogix I/O modules have the following features:
Removeable terminal blocks and module-ready cables
Status indicators
The following are the main sections in the default configuration of the RSLogix 5000 main window:
Toolbars
The following toolbars are available:
Standard toolbar
Online toolbar
Path toolbar
Language Element toolbar
Standard Toolbar: An optional toolbar with standard Microsoft options such as new, save, cut, copy, paste, and more.
Online Toolbar: A toolbar that provides controller status. Tab/drop-down lists are available for viewing related information:
Path Toolbar: A toolbar specifically used for communicating with the controller and viewing communication status:
14 of 116
Language Element Toolbar: A toolbar containing programming elements, grouped by tabs, for entry into an active routine. Each
language has its own element toolbar:
Tooltips and Status bar messages are easy ways of identifying components, such as buttons in the New Components toolbar:
Controller Organizer
The Controller Organizer is a tree structure that is used to organize an entire project.
Routine Editor/TagsWindow: A window that displays the open routine or tags collection opened through the Controller Organizer:
16 of 116
There is a routine editor to view or edit each type of routine:
Ladder Diagram (LD)
Function Block Diagram (FBD)
Structured Text (ST)
Sequential Function Chart (SFC)
Results Window: A window at the bottom of the main window that contains the following tabs:
Errors Tab: Results of a verification for errors in the project.
Search Results Tab: Results of a search for a project component.
Watch Tab: Window for viewing data in an open routine.
Help System
The Help menu contains the following options:
Contents, with the following tabs:
o Contents (to browse by category)
o Index
o Find (to search for phrases or words)
Instruction help grouped by instruction types or alphabetically
Release notes
Online books in Adobet Acrobatt format
Sample RSLogix 5000 projects from Rockwell Automation and other vendors
Quick Start interactive tutorial for new RSLogix 5000 users:
Learning Center that provides interactive access to the following topics:
o Information about new Logix5000 hardware, software, and features
o Animated tutorials on performing common tasks
o A listing of Did You Know? hints, tips, and tricks:
Resource Center, which provides links to online books, available downloads, and helpful web sites:
18 of 116
To make the best use of screen space and functionality, the following actions can be performed with toolbars:
Display/hide toolbars
Move toolbars on the screen
Customize buttons
After completing this lesson, you should be able to create and modify an RSLogix 5000 project by performing the following tasks:
Identify tasks, programs, and routines
Create a new RSLogix 5000 project file
Modify the default task, program, and routine
Create a task, program, and routine
Tasks
A task triggers the execution of its scheduled programs. The following types of tasks can be created in a project:
20 of 116
For any controller, only one task can be configured as continuous:
Programs
A program is the second level of scheduling within a project:
Each ControlLogix or SoftLogix task can contain (schedule) up to 100 programs.
Each CompactLogix or FlexLogix task can contain (schedule) up to 32 programs.
When a task is triggered, its programs execute in sequence from the first scheduled to the last scheduled.
Unscheduled Programs: Programs within a project that are not scheduled by any task; they do not execute. Programs may be
left unscheduled until needed (to add future functionality or for troubleshooting).
Routines
A routine provides the executable code, or decision-making instructions, for a project. Each routine contains a set of elements for
a specific programming language:
Ladder Logic
Function Block Diagram
Structured Text
Sequential Function Chart
A routine can be assigned as one of the following types:
Main Routine: A routine configured to execute first when the program runs. There is always one main routine in each
program.
Subroutine: A routine that is called by another routine. Subroutines are used for large or complex programs or programs
that require more than one programming language.
o A JSR (Jump to Subroutine) instruction must be programmed in the code in another routine to call, or scan, a
subroutine.
o A JSR may be conditioned or unconditioned (always active).
Fault Routine: A routine that executes if the controller finds a recoverable major fault within the executing program.
22 of 116
Creating Tags and Monitoring Data in an RSLogix 5000 Project
After completing this lesson, you should be able to create tags and monitor data in an RSLogix 5000 project by performing the
following tasks:
Create tags in the Edit Tags list
Define an alias tag
Monitor and edit data in a Logix5000t controller
Tags
Memory: A group of circuit elements in a controller where programs and data are stored.
The following are common memory sizes:
Bit: The smallest unit of data represented by the digits 0 and 1
Byte: A string of 8 bits operated on as one unit.
Word: A unit of memory in a controller composed of 16 individual bits (or two bytes) that are treated as one unit.
Tag: An area of controller memory where data from devices, calculations, faults, etc. is stored. Each area is given a unique
name:
Programmers can perform the following tasks using tags:
Organize data to mirror the process/machine
Document, through tag names and descriptions, the application as a project is developed
Data Types
Data Type: The definition of how many bits, bytes, or words of data a tag will use. The data type is based on the source of the
information.
Pre-Defined Data Types: Commonly used memory sizes that are already defined in the software.
Atomic Data Type: A simple data type made of one piece of data:
Structure: A more complex data type that is made up of several pieces of data. For example, a TIMER data type is made up of a
combination of DINTs and BOOLs.
The following table lists commonly used structures:
Data Type Definition
Counter Increasing and Decreasing total
Timer Increasing time total (ms)
Module Defined Data Types: Data types used for hardware data, such as I/O tags.
Alias Tags
Alias Tag: An additional name for a tag (or other alias tag):
The tags refer to the same area of memory.
The tags, therefore, reflect the same values and changes.
Scope
Scope: The definition of where a controller can access a tag or set of tags.
A tag must be designated as one of the following scopes:
Controller-Scoped Tag: A tag that can be used by all tasks, programs, and routines within a project and is accessible to
other devices.
Program-Scoped Tag: A tag that can be referenced only by the routines within a specific program of a project. Therefore,
the tag name may be reused in different programs.
Within a project, tags are located in different collections depending upon their scope:
24 of 116
Tags and Members
Tags of the same data type are not automatically displayed together in the Monitor Tags tab:
Tags can be displayed alphabetically (default mode).
Tags can be sorted and filtered (e.g., show DINT tags only)
Tags that are structures (TIMER, etc.) can be expanded to display members.
Display Style
The Style parameter controls how data is displayed for certain tags.
Array
Array: A numerically indexed sequence of elements of the same data type. An array tag occupies a contiguous section of
memory in the controller with each element in sequence. Arrays can have one, two, or three dimensions.
Element: A single position within an array.
26 of 116
Example: Array
A controller needs to store a piece of data for six different parts. This data can be stored in an array of 6 INTs:
Array Addressing
An instruction might examine or write to one element of an array:
To store this data, a programmer creates a user-defined data type. This data type is then available for new tags:
Tag.Member
Examples: User-Defined Data Type Addressing
Specific data can be addressed in a tag of a user-defined data type:
Input_Load.Height
Input_Location.Load_Info.Weight
Tanks.Level
Arrays and tags of user-defined data types can be mixed, providing extreme programming flexibility.
28 of 116
Example: Arrays and User-Defined Data Types
If there are 25 tanks (5 rows of 5), a programmer can make an array of tags that uses a user-defined data type:
Example: Addressing
To observe the temperature value for the tank in position [1,3], the following tag would be addressed in the ladder logic:
Tank[1,3].Temperature
To observe the preset of the timer for the tank in position [1,3], the following tag would be addressed in the ladder logic:
Tank[1,3].Time_Over_Temp.PRE
Section 1: Creating a Project
Objective:
Create a new project
Write ladder logic
Use symbolic tag names
Use the tag monitor/editor
1. Follow the instructions in the Before You Begin section of this document before proceeding.
2. Double-click on the RSLogix 5000 icon on the Desktop to launch RSLogix 5000 software.
FYI
At the bottom of the RSLogix 5000 splash screen you will see all the different versions of RSLogix 5000 software
that are currently installed on the computer.
3. Click the arrow on the Start Pages label to hide the start pages we will discuss these later in the lab.
30 of 116
Creating a New Controller Project
In this portion of the lab, you will create an offline project using a ControlLogix 1756-L7x controller.
Select the controller Type at your demo station - 1756-L7x ControlLogix 5575 Controller.
Select Revision 20.
Name the controller Controller1.
Select Slot 1.
Click OK.
Important Note! All the Logix controllers use RSLogix 5000 software. Be sure to choose the correct controller
type that matches the equipment at your lab station. If you are unsure of the equipment at your station, refer to
the pictures at the beginning of the lab to verify your hardware. The Controllers have revision 20 firmware.
32 of 116
FYI
New Controller
From the New Controller window you are defining the project.
Type: This is the type of Logix controller you will use. This could be a ControlLogix, CompactLogix, DriveLogix,
or SoftLogix controller. Only one programming software package is needed for all Logix Controllers.
Revision: Here you are selecting the firmware revision of the project that will be created. Lab computers include
revision 20.
Name: The name of the controller and project.
Chassis Type: Select the size of the chassis you will use. This is not applicable for all controller types.
Slot: The slot number where the controller will reside. Some controller types will not require a slot number. For
example, CompactLogix is fixed at slot zero.
The Controller Organizer appears on the left side of the RSLogix5000 window, with a folder called Controller
Controller1. At this time, there is no I/O, tag database, or logic associated with the controller.
Controller
Faceplate Instructions
toolbar
Controller I/O
Organizer Configuration
Programming
window
The Controller Organizer is a graphical representation of the contents of your controller file. This display
consists of a tree of folders and files that contain all of the information about the programs and data in the current
controller file. The default main folders in this tree are:
-Controller File Name
-Tasks
-Motion Groups
-Add-On Instructions
-Data Types
-Trends
-I/O Configuration: The square containing a + or - indicates whether a folder is open or closed. Click on it to
expand the tree display and display the files in the folder. The - sign indicates that the folder is already open and
its contents are visible. By default, the Add-On instructions folder is empty as none are installed.
34 of 116
Once expanded, the MainProgram will appear as shown below:
3. From the instruction toolbar, left click and hold on the Examine On (XIC) instruction.
4. Drag the XIC onto rung 0 until the green dot appears as shown above. Release the mouse button at the
location you wish to place your instruction.
5. Verify your rung appears like the figure below:
6. From the instruction toolbar left click and hold on the Examine Off (XIO) instruction.
7. Drag the XIO onto rung 0 to the right of the XIC instruction as shown above. Again a green dot will appear to
the right of the XIC instruction indicating where your new instruction will be inserted. Release the mouse
button at the location you wish to place your instruction.
36 of 116
FYI
If you place an instruction in the wrong location on a rung, simply click and hold on the instruction and drag it to
the correct location.
9. From the instruction toolbar, left click and hold on the Output Energize (OTE) instruction.
10. Drag the OTE onto rung 0 to the right of the XIO instruction as shown above. Again a green dot will appear
to the right of the XIO instruction indicating where the OTE instruction will be inserted. Release the mouse
button at the location you wish insert the instruction.
38 of 116
14. Left-click and hold on the blue highlighted part of the branch and drag your selected leg of the branch to
the left side of the XIC instruction.
15. Place the branch over the green dot and release the mouse button.
16. From the instruction toolbar, left click and hold on the XIC instruction.
17. Drag the XIC onto your newly created branch until the green dot appears.
The rung should now appear as shown below.
18. Verify that the entire rung appears like the figure below.
19. Save the program by clicking on the Save icon on the toolbar. This will save the program in the
default program directory, which is C:\RSLogix 5000\Projects\.
As you can see the free form editing in RSLogix 5000 can help speed development. You no longer have to place
an instruction and tie an address to it before you add the next instruction.
40 of 116
Creating Tags for the Ladder Code
In this section of the lab you will create the tags needed for the program. In traditional PLCs, a physical memory address
identifies each item of data, for example N7:0. In Logix controllers, there is no fixed numeric format. We use tags.
You will continue to use the project already opened.
FYI
We will create 3 tags for the program: Motor_Start, Motor_Stop, and Motor_Run.
1. First you will create the tag Motor_Start. Right click on the ? of the first XIC instruction. It will be
highlighted blue. Select New Tag.
FYI
Creating a Tag
When you create a tag there are several attributes for a tag. The main attributes we are interested in for this lab
are as follows:
Type: Defines how the tag operates within the project
Base: Stores a value or values for use by logic within a project
Alias: A tag that represents another tag
Produced: Send data to another controller
Consumed: Receive data from another controller
Alias For: Only applies when the tag type is Alias. Defines the tag which the alias tag will reference.
Data Type: Defines the type of data that the tag stores. Example: Boolean, Integer, Real, String, etc.
Scope: Defines how the data is accessed in the project. It is either controller scoped, global data
accessible throughout the controller or program scoped, data accessible for a specific program.
External Access: Defines the access external applications (HMIs) will have with the tag.
Read/Write: External application can read and write to the tag.
Read Only: External application can only read the tag.
None: External application cannot read the tag or write to the tag
Constant: If checked, that tag cannot be changed programmatically.
Open Configuration: Opens the configuration wizard for complex tags (MSGs, PIDs, etc)
42 of 116
2. Enter the parameters as shown below.
Make sure the scope of the tag is MainProgram.
4. Right click on the ? of the XIO instruction and select New Tag.
Again, the New Tag window will appear:
8. Right click on the ? of the OTE instruction and select New Tag.
44 of 116
The New Tag window will appear.
For the XIC instruction in the branch we do not have to create a tag. You will use the tag Motor_Run.
11. Left click and hold the mouse button over the tag Motor_Run on the OTE instruction.
12. Drag the tag Motor_Run tag over to the XIC instruction until a green dot appears next to the ?. Then
release the mouse button.
Your rung should now appear as shown below. Notice the es next to rung zero have disappeared. This indicates that
the rung passes auto verification and no errors are present.
RSLogix 5000 software verifies each rung automatically when you click the mouse off of it. This makes
programming easier!
46 of 116
13. Prior to verifying the project, open the error window by going to the View menu and choosing Errors.
14. Verify the program by clicking on the Verify Controller icon on the toolbar.
You will see if there are any errors in the status window.
15. Close the MainRoutine by pressing the X located at the top right corner of the screen.
16. Save the program by clicking on the Save icon on the toolbar.
The tag database of Logix versus a traditional PLCs fixed memory addresses help you create self-documenting
code. This means you do not have to use address descriptions or symbols to make code easy to read.
Monitoring/Editing Tags
In this section of the lab, we will review the Tag Monitor/Editor in RSLogix 5000. We will also discuss the concept of Controller
versus Program scoped tags.
48 of 116
The tag Monitor/Editor window appears. You notice in the lower left corner of the window two tabs labeled Monitor
Tags and Edit Tags as shown below.
FYI
Notice a field in the upper left corner of the Tag Editor window labeled Scope. Earlier in the lab we talked briefly
about Controller and Program scoped tags. Currently the selection is Controller1, which are controller scoped
tags.
50 of 116
FYI
Data Scoping
When you create a tag, you define it either as a controller tag (global data) or a program tag for a specific program
(local data).
Data at the program scope is isolated from other programs. Routines cannot access data that is at the program
scope of another program. Thus you can re-use the tag name of a program-scoped tag in multiple programs.
2. Click on the down arrow for the Scope selection box.
The Tag Editor now has switched views to the program level and you see the tags you created earlier.
4. Close the Tag Editor by pressing the X located at the top right corner of the tag editor.
52 of 116
Transferring a Project File to a Logix5000 Controller
After completing this lesson, you should be able to transfer a project file to a Logix5000 controller by performing the following
tasks:
Upload, download, and go online to a Logix5000 controller
Select and change a Logix5000 controllers operating mode
Offline: Viewing or editing a copy of a project file that is in the computer only.
Working offline allows you to perform the following tasks:
Repair a system or equipment
Develop or update project components
RSLinx Classic Software
RSLinx Classic software creates a connection between an RSLogix 5000 project and other system components. RSLinx Classic
software is used for a variety of communications tasks:
Uploading, downloading, and going online to a controller
Maintaining a connection between plant floor devices and other software applications while monitoring or editing a project
online
The RSWho window is the network browser interface for RSLinx Classic software. It allows a user to view all the active network
connections from two panels on a single screen:
The Tree Control shows networks and devices.
The List Control shows all the members of networks and devices that are bridges.
Communications Path
Communication can be initiated using several options:
Who Active dialog box
Current Path toolbar
Recent Path dialog box
54 of 116
Using the Who Active dialog box is the safest route:
The addresses (locations) of devices and networks through which data is sent are listed in the current communications path:
Correlation Errors
Various error messages may be displayed when a computer attempts to communicate with a controller.
Several errors relate to matching project files.
Matching Project File: A computer project file that matches the project file in a controller:
The file was downloaded to or uploaded from the controller.
The file is a copy.
If a matching file is not found in the default directory when attempting to communicate, the following options are available:
Browse to and Select the File: Browse to a matching file.
Create a New File: Create a new project file without documentation.
Upload: Upload from controller to update non-matching project file.
Selecting and Changing a Controllers Operating Mode
Logix5000 controllers have three keyswitch positions:
Run
Program
Remote
56 of 116
Section 2: Connecting Your Computer to the Controller
Objective:
In this lab, we will introduce you to the online operations that you will complete with the RSLogix5000 software. In this lab, you
will:
Launch RSLinx communications software
Configure your communications driver
1. Double click on the RSLinx icon on the Desktop to launch RSLinx software.
FYI
RSWho
The RSWho screen is actually RSLinx's network browser interface, which allows you to view all of your active
network connections.
The left pane of this display is the Tree Control, which shows networks and devices in a hierarchical view. When
a network or device is collapsed, as indicated by the + sign, you can click on the + sign or double click on the
network or device icon to expand the view and begin browsing. When a network or device is expanded, as
indicated by the - sign, you can click on the - sign or double click on the network or device icon to collapse the
view.
The right pane of the RSWho display is the List Control, which is a graphical representation of all of the devices
present on the network.
58 of 116
Adding the AB_ETHIP-1 (Ethernet/IP) Driver
In this section of the lab, you will add the Ethernet/IP driver that you will use to communicate with your Logix processor.
2. From the Available Driver Types pull-down menu, choose EtherNet/IP Driver then click on the Add New
button.
In RSLinx you will notice two different Ethernet drivers listed: EtherNet/IP Driver and Ethernet devices. In
general, you should use the new EtherNet/IP driver... it will automatically scan for and find any EtherNet/IP
compatible devices on the network. A few older Rockwell Ethernet products cannot be found using this driver. The
older Ethernet devices driver works with all Rockwell Ethernet products, but it will only scan for IP address that
you manually tell it to search for. You can have both types of drivers and/or multiple instances of each type active
in RSLinx at the same time if needed.
3. Click on OK to accept the default name (AB_ETHIP-1).
4. Ensure that the Browse Local Subnet radio button is enabled, click the VMWare address (this is the
address of your VMWare image) and then click OK.
60 of 116
Section 3: Downloading the Project from the Computer to the Controller
Objective:
In this lab you will open a controller project based on the lab station at which you are seated.
You will:
Determine the type of controller you are using
Open the project that corresponds to the controller you are using
Download the program to the controller
You will be using the program that was created from the steps performed in Lab 1.
Look over the images below if you are unsure of the hardware associated with your lab station demo.
ControlLogix
L7x Controller
Analog Output
62 of 116
3. Expand the view by clicking on the +s until you see your controller.
The Logix family of controllers all use RSLogix 5000 software to configure the system. But each controller is set
up slightly differently.
4. Click Download. You will be asked to verify the download.
The project will then begin to download to your controller.
If your controller was in the RUN mode prior to the download, you may be prompted to return to the RUN mode. If
asked select YES.
5. When the following prompt appears, click Yes to change the controller mode to Remote Run.
At this point you will be online with the controller and the status LEDs in your project will mimic the LEDs on your
controller.
64 of 116
Configuring Local 1756-I/O Modules
After completing this lesson, you should be able to perform the following tasks:
Add a local 1756-I/O module to an I/O configuration
Identify a local I/O tag
Removable Terminal Block (RTB): A field wiring connector for I/O modules. Field wiring is connected to an RTB
rather than directly to a module terminal block.
Interface Module (IFM): A field wiring arm that uses prewired/factory-wired cable to connect to an I/O module.
ControlBus Connector: The backplane connector interface for the ControlLogix system that connects the module to the
ControlBus backplane.
Connector Pins: Pins that create input/output, power and grounding connections to the module through an RTB or IFM.
Locking Tab: Anchors the RTB or IFM cable on the module, maintaining wiring connections.
Slots for Keying: Mechanically keys the RTB to prevent inadvertently making the wrong wire connections to the module.
Status Indicators: Display the status of communications, module health, and input/output devices. Use these indicators
to help troubleshooting errors or system faults.
Top and Bottom Guides: Provide assistance in seating the RTB or IFM cable into the module.
RIUP (Removal and Insertion Under Power)
RIUP: A ControlLogix feature that allows 1756 modules to be removed and inserted into a chassis while the backplane power is
applied.
I/O Status: The yellow status indicator shows the ON/OFF state of the field device.
Module Status: This green status indicator shows the modules communication status.
Fault Status: This display, found on some modules, indicates the presence or absence of various field-side faults.
Fuse Status: This display, found on electronically fused modules, indicates the state of the modules fuse.
66 of 116
Digital and Analog I/O Modules
1756-I/O modules process two types of data:
Digital: Information represented by a discrete value (i.e., 1 or 0).
Analog: Numeric values that represent measurable quantities, such as temperature, weight, and pressure.
Digital 1756-I/O modules provide on/off detection and control for items that utilize digital data. They have the following properties:
RIUP (Removal and Insertion Under Power)
8-, 16-, and 32-point varieties
Electronic keying
Isolated, non-isolated, and diagnostic varieties:
o Module-level fault reporting and field-side diagnostics
Electronic fusing
Analog 1756-I/O modules convert analog signals to digital values for inputs and convert digital values to analog signals for
outputs. They have the following properties:
RIUP
Scaling to engineering units calculated in the module
32-bit floating or 16-bit input and 13-16 bit output integer data format depending on the module
Alarming
Rolling time stamp of data
Diagnostic choices
I/O Configuration
All devices that communicate with a Logix5000 controller must be added to the I/O configuration of the controller project, as
shown in the following graphic:
Every I/O module that sends process/machine data to a controller must be configured by a controller.
When you add a new I/O module to a project, you are first prompted to enter general module properties in the New Module
dialog box:
Once data has been entered in the New Module dialog box, you can then continue module configuration from the Module
Properties dialog box.
68 of 116
Parameters for configuring a digital 1756-I/O module are entered on the following tabs in the Module Properties dialog box:
General
Connection
Configuration
General Tab
The following graphic shows the General tab parameters:
Electronic Keying
To avoid installation or replacement errors, keying prevents controller from communicating with the wrong module:
Exact Match: All I/O module information must match (i.e., module type, major revision, and minor revision).
Compatible Keying: All I/O module information except minor revision must match.
Disable Keying: Minimum information must match (i.e., module type only).
Requested Packet Interval (RPI): Also referred to as the multicasting rate, this is the rate at which data is simultaneously
transmitted to all nodes or modules:
The RPI specifies the time that elapses before the module multicasts the current data in the on-board memory
The RPI can vary from 200 microseconds (.2 ms) to 750 ms
Inhibit Module Connection Option: An option that allows configuration data for a module to be written but prevents the
module from communicating with the owner controller.
Major Fault Option: An option that causes a major fault on the controller if the connection to the module fails.
Configuration Tab
The following graphic shows an example of the Configuration tab
parameters:
Depending on the module, 1756 digital and analog diagnostic I/O modules can have the following diagnostic features:
Open Wire Detection: Senses removed or disconnected field wiring on an input module:
A leakage resistor must be placed across the contacts of an input device.
The modules must detect minimum leakage current or a point-level fault is sent to the controller.
70 of 116
Field Power Loss Detection: When field power to a module is lost, a point-level fault is sent to the controller.
No Load Detection: Senses the absence of field wiring or a missing load from each output point in the off state only.
Field-Side Output Verification: Indicates that the ladder logic changes are accurately represented on the power side of a
switching device (i.e., the output is on when it is commanded to be on).
Point-Level Electronic Fusing: Internal electronic fusing that prevents too much current from flowing through a module.
This feature clears fuses when an instruction in RSLogix 5000 software
resets the fuse or a power cycle resets the fuse.
Diagnostic Latching: Sets and retains a faulted state (bit) upon detection of any diagnostic faults:
The fault data is multicast to all controllers.
The I/O module LED displays a fault.
A fault bit is latched and can be examined in the tags list.
Asynchronous Updates
Asynchronous: Actions that occur independently of each other and lack a regular pattern.
In Logix5000 controllers, I/O values update asynchronously with the execution of code:
Input modules multicast their data to the backplane at the RPI rate set in the modules.
The code is scanned and the output tags are updated immediately after the execution of each output instruction.
Values are sent to the output modules at the RPI rate and at the end of each task.
We will now look at configuring I/O for our project. To communicate with I/O modules you must add modules to the I/O
Configuration folder.
Objective:
During this off-line lab we will show adding 1756 I/O using the equipment at your lab station using several methods, including the
new module discovery feature.
For this lab we will add the following I/O modules. Please note the I/O that relates to the equipment at your lab station.
72 of 116
Adding ControlLogix I/O Manually
1. In the I/O Configuration Folder, right click on 1756 Backplane, 1756-A10 and select New Module.
2. The Select Module Type window appears. Type IB in the search box.
Items that are grayed out are modules that cannot be added while online with the controller. You must be
offline to add these modules to your I/O configuration.
FYI
74 of 116
6. Enter the Name and Slot parameters as shown below. Leave all other fields set to their default values.
Click OK.
FYI
Comm Format
Determines the data structure for the tags that are associated with the module. Many I/O modules support
different formats. Each format uses a different data structure.
Electronic Keying
When you insert a module into a slot of a chassis, the controller compares the information read from the newly
inserted module with what the user configured that particular slot to be in their project.
The following data is read and compared:
Vendor, Product Type, Catalog Number, Major Revision, Minor Revision.
The user may select one of the following module keying options during the initial module configuration:
Exact Match all of the parameters described above must match or the inserted module will reject the connection.
Compatible Module The following criteria must be met, or else the inserted module will reject the connection:
Module Types, Catalog Number, and Major Revision must match and the Minor Revision of the physical module
must be equal to or greater than the one specified in the software
Disable Keying No keying used at all.
7. Select Yes when the Online Module Creation box appears.
8. Click on the Connection tab to view the Requested Packet Interval data.
FYI
76 of 116
9. Click on OK to close the wizard.
In the Controller Organizer, the I/O Configuration folder will show the digital input module in Slot 2:
10. Highlight the 1756-IB16D module in the I/O Configuration and press delete. Click Yes when prompted to
confirm.
11. In the I/O Configuration Folder, right click on 1756 Backplane, 1756-A10 and select Discover Modules.
Module Discovery automatically searches the local backplane and will determine each module type and firmware
revision. This simplifies the module creation process. Modules that cannot be created online will be grayed out, as
shown above with the 1756-M08SE module.
Note: The firmware revisions for the I/O modules in your lab may be different from the above screen shot. This will not
affect the execution of the lab since the module discovery feature will automatically set the correct firmware.
12. On the Select Module Type window, select the Create button next to the Digital Output module.
13. Enter the Name parameter as shown below. Leave all other fields set to their default values. Click OK.
78 of 116
14. Select Yes when the Online Module Creation box appears.
18. Using the Module Discovery feature, add the Analog Output module to the I/O Configuration. Name the
module Analog_OUT.
19. Using the Module Discovery feature, add the Analog Input module to the I/O Configuration. Name the
module Analog_IN.
20. When you are finished, your I/O Configuration should look like the following:
21. Once you have added all of the modules listed above, click Remote Run from the controller faceplate.
80 of 116
Viewing the ControlLogix I/O Tags
Now that we have configured I/O modules in the project, lets take a look how that information is presented in RSLogix 5000.
You notice by looking in the upper left corner of the tag editor that you are in the Controller Scope. All I/O module tags
are created in the Controller Scope.
82 of 116
2. Switch to Monitor Tags by Clicking on the Monitor Tags Tab.
The above entries are tag structures for the modules you added. They contain more tags than are actually
displayed. Note the + sign next to the tag name, this indicates that you can expand the tag structure to see more
information.
3. Expand and explore the tags for the I/O modules by clicking the +.
What you will find under the Configuration tags, for each module, is all the data, you entered and selected from the
Module Configuration Wizard.
FYI
Aliasing
An Alias tag lets you create one tag that represents another tag.
Both tags share the same value
When the value of one of the tags changes, the other tag reflects the change
Use Aliases in the following situations:
-Program logic in advance of wiring diagrams
-Assign a descriptive name to an I/O device
-Provide a simpler name for a complex tag
-Use a descriptive name for an element of an array
In the last part of the lab we added I/O modules to the project. Now its time to Alias the tags in the program to the I/O Modules.
Motor_Start will be Aliased to input point zero of the 1756-IB16D in slot two.
Motor_Stop will be Aliased to input point one of the 1756-IB16D in slot two.
Motor_Run will be Aliased to output point zero of the 1756-OB16D in slot zero.
84 of 116
2. Right click on the tag Motor_Start and select Edit Motor_Start Properties.
The Tags Properties window for Motor_Start will appear. Currently the tag is defined as a Base tag.
3. Select Alias as a type and notice that the Tag Properties window changed.
4. Click on the down arrow for Alias For.
The tag browser appears. The browser shows both Controller and Program Scope Tags. You will need to select
your address from controller scoped tags.
86 of 116
7. Click the down arrow for Local:2:I.Data as shown below.
This will open the table of data points for the 1756-IB16D module.
10. Using the previous steps, alias the remaining two tags.
Motor_Stop = Local:2:I.Data.1
Motor_Run = Local:0:O.Data.0
11. When you are finished the ladder code should appear as follows:
12. Save the program by clicking on the Save icon on the toolbar.
15. Click Yes when prompted to change the controller mode to Remote Run.
88 of 116
Section 5: Testing Your Logic Program
Objective:
FYI
I/O Mapping
For the lab there are a group of push buttons on the Demo Box. The push buttons are mapped as follows:
Motor_Start = DI0
Motor_Stop = DI1
Motor_Run = DO0
Switching the Controller into Run Mode and Testing the Program
1. If not already in run mode, click the Controller Faceplate and select Run Mode.
The controller will go into run mode. This can be verified by looking at the Run LED on the controller. It should now
illuminate green. It can also be verified through RSLogix 5000 by viewing the controller faceplate.
You will now see the ladder logic. Notice the green power rails on both sides of the ladder. This indicates you are
online and the routine is executing.
90 of 116
You notice that the XIO instruction Motor_Stop is green. This means that this instruction is in the true or on state.
This is because the Motor_Stop Pushbutton is not pressed.
6. Verify that output DO0 (Motor_Run) stays illuminated when you release pushbutton DI0 (Motor_Start).
The ladder logic you have just written is a simple 3-wire control or motor start/stop seal-in circuit.
7. Press pushbutton DI1 (Motor_Stop) and verify that output DO0 (Motor_Run) turns off.
Objective:
In this lab we will explore online editing. You will:
Add a MOV instruction
Add a timer to the logic and its execution will be based on the motor running
Add ladder logic to reset the timer when the motor is stopped.
1. In the MainRoutine, add a rung by clicking the rung button on the toolbar.
2. Using the toolbar, under the Move/Logical category tab, click and drag an MOV instruction to the new
rung.
92 of 116
3. Double click the ? by the source. Select Local:8:I.Ch0Data. You will have to scroll down to find the
Channel data tags.
4. Double click the ? by the destination. Select Local:7:O.Ch0Data. You will have to scroll down to find the
Channel data tags.
5. The rung should look like the following.
1. Select rung 0. Right click in the blue highlighted area to the left of rung zero and select Start Pending
Rung Edits.
94 of 116
2. The ladder editor will now look similar to the following:
The rung with the Is on the power rails is the rung you will perform the edits on.
4. From the Instruction Toolbar click on the Timer/Counter tab, click the Timer On (TON) icon.
A timer is inserted into the code to the right of the OTE instruction.
In RSLogix 5000 you can string output instructions together. You do not have to create branches.
5. On the timer instruction right click in the blue area next to the word Timer and select New Tag.
96 of 116
The New Tag window appears. You notice that the Data Type is already set to TIMER. This is because you are
creating a tag in a timer instruction.
7. Verify that the tag has been created in the timer instruction as shown below:
8. Double-click on the 0, in the timer instruction, next to the word Preset.
In Logix the Timer Preset is a 32-bit DINT which means the maximum value for your timers can be: 2,147,483,647
10. Press Enter. Your TON instruction should now appear as shown below.
Your Preset value is now 32767 milliseconds. Leave the accumulated value set to zero. You are now ready to verify
the edits you made.
98 of 116
12. When asked to finalize all edits click on YES.
2. Verify that DO0 (Motor_Run) illuminates and the Timer instruction starts incrementing.
100 of 116
Forcing I/O and Toggling Bits in RSLogix 5000 Software
After completing this lesson, you should be able to troubleshoot 1756 I/O module problems by performing the following tasks:
Force digital and analog I/O values
Toggle bits
Force Functions
Forcing: A software function that allows a user to enable or disable an input or output independent of the executable
programming language.
Forcing an I/O value can be used for any of the following troubleshooting situations:
Checking field wiring
Checking the functionality of field output devices
Testing a portion of executable programming language
Simulating inputs that have not been wired
Temporarily correcting mis-wired field devices
Force-On Function: Allows a user to enable an input module data point, regardless of the state of the input circuit, or an
output circuit, regardless of the state of the output module data point.
Force-Off Function: Allows a user to disable an input module data point, regardless of the state of the input circuit, or an
output circuit, regardless of the state of the output module data point.
Analog Force Function: Allows a user to set an analog I/O value regardless of the state of the input or output modules
channel data value.
Safety Precautions
All force functions can result in sudden machine movement.
Consider these factors before forcing I/O values:
Potential danger to personnel
Machine response to forced I/O
Possible effects on other portions of the machine/process
Company policy concerning forcing I/O (e.g., is authorization required?)
State of Forces
The state of forces in the controller is displayed in the RSLogix 5000 Online toolbar:
Forces can also be installed and displayed through editors, such as the Ladder editor:
A forced input or output is also installed and/or displayed in the tags collection:
102 of 116
Depending on the controller, the state of forces may also be displayed on a Force LED:
The LED status can be interpreted using the following table:
Toggling Bits
Toggling an internal bit changes the binary value of that bit. For example, if a bit with a value of 0 is toggled, it will
have a new value of 1.
Troubleshooting Logix5000 Controller Problems
After completing this lesson, you should be able to troubleshoot Logix5000 controller problems by performing the following tasks:
Identify fault types
Resolve a non-recoverable major fault
Find and clear a recoverable major or minor fault
Controller LEDs
Changes to the controller status indicators anytime after startup mayindicate a change or a problem.
When a failure in a system occurs, view the LEDs in this order:
104 of 116
Recoverable Major Fault
Recoverable Major Fault: A fault that is severe enough to shut down the controller if the condition is not cleared. A
recoverable major fault can be of two categories:
Instruction execution
Other errors:
o Power loss
o Loss of critical I/O
o Array subscript errors
Recoverable Major Fault Processing: Level 1
When a recoverable major fault first occurs, the following changes take place in the system:
A major fault bit is set in the controller.
Any user-programmed fault routines are executed:
o Program-level fault routine
o Controller-fault handler
Fault Routine
Each program can have its own fault routine:
The controller executes the programs fault routine when an instruction-related fault occurs.
If a fault is cleared, the routine continues executing at the instruction immediately after the one that caused the fault:
o The controller does not enter Fault mode.
A fault routine normally contains logic to identify a fault and sometimes clear it:
Minor Fault
Minor Fault: A fault that is not severe enough to shut down the controller:
Low battery
Serial port problems With a minor fault, the following changes take place in the system:
The program scan and normal I/O control continues.
The controller OK LED remains solid green.
A minor fault bit is set.
106 of 116
Finding and Clearing a Recoverable Major or Minor Fault
To properly address a recoverable major or minor fault, you must perform the following steps in this order:
1. Identify the cause of fault using the software.
2. Fix or remove the actual cause of the fault (e.g., correct the programming, adjust the watchdog timer value, etc.)
3. Clear the fault indication in the software.
Section 7: (Optional) Using RSLogix 5000 Help
Objective:
In this lab we will explore the extensive online Help system in RSLogix 5000.
Instruction Help
108 of 116
The following window will appear.
2. Click on an instruction to locate its description, details about its parameters, and related instructions along
with examples on how to use the instruction.
Viewing I/O Module Wiring Diagrams
4. Select a topic to display from the list such as, Wiring Diagram.
110 of 116
5. Click Display to view the wiring diagram for this module. Note you may need to maximize your screen.
6. When you are finished viewing the wiring diagram close the display window.
Using Start Pages
1. From the Help pull down menu select Quick Start which is one of the three tabs available from the
Start Page.
Organizes various resources intended to accelerate the customers ability to use the software and to locate relevant
information
Provides Getting Started and My First Project media clips and tutorials to assist new users
Provides easy navigation to RSLogix 5000 sample projects Rockwell Automation specific and those involving other vendors
112 of 116
Learning Center Tab
Targets customers wanting to learn or explore how to use the software beyond just getting started reduces learning curve
and helps increase productivity.
114 of 116
Section 8: (Optional) Assigning IP Addresses Communication module with BOOTP/DHCP
The BOOTP/DHCP Server utility is used to assign IP addresses to Compact Logix Ethernet Module. The
BOOTP/DHCP utility is installed during the RSLogix 5000 programming software
installation.
Launch BOOTP/DHCP Server utility. If running this utility for the first time, you will get a Network Setup Error message.
Click OK. You are then asked to enter the subnet mask in step 3.
116 of 116
Copyright 2011 Rockwell Automation, Inc. All rights reserved.