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
Automation sales office or online at http://www.rockwellautomation.com/literature/
between solid state equipment and hard-wired electromechanical devices. Because of this difference, and also because of the
wide variety of uses for solid state equipment, all persons responsible for applying this equipment must satisfy themselves that
each intended application of this equipment is acceptable.
In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from the use
or application of this equipment.
The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and
requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or liability for
actual use based on the examples and diagrams.
No patent 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.
available from your local Rockwell
) describes some important differences
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.
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, and recognize the consequence
Labels may be on or inside the equipment, for example, a drive or motor, to alert people that dangerous voltage may
be present.
Labels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may reach
dangerous temperatures.
Allen-Bradley, Rockwell Automation, CompactLogix, ControlLogix, DriveLogix, FactoryTalk Batch, FactoryTalk View SE, PhaseManager, PowerFlex, RSLinx, RSLinx Classic, RSLogix 5000, SoftLogix, and
TechConnect are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
This version of the quick start corresponds to revision 18 of the Logix5000
controller firmware.
ChangePage
Descriptions of controller modes32
Language switching108
Additional information for finalizing edits in larger projects124
• 1768 CompactLogix Controller Quick Start and User Manual,
publication 1768-UM001
• 1769 CompactLogix System User Manual, publication
1769-UM007
• ControlLogix System User Manual, publication 1756-UM001
• DriveLogix Controller User Manual, publication 20D-UM002
• GuardLogix Controllers User Manual, publication
1756-UM020
• 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
Look up abbreviated information and procedures regarding
programming languages, instructions, communications, and status
Design and optimize a controller application.
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
Integrate a specific Logix5000 controller within a system of
controllers, I/O modules, and other devices
Control devices over an EtherNet/IP network
Control devices over a ControlNet network
Control devices over a DeviceNet network
You can view or download publications a http://www.rockwellautomation.com/literature. To order paper
copies of technical documentation, contact your local Rockwell Automation distributor or sales
representative.
10Publication 1756-QS001E-EN-P - October 2009
Chapter
Program and Test a Simple Project
This chapter introduces the basic programming sequence for a Logix5000 controller.
• It covers the steps required to develop and test a ladder or function block diagram.
• The examples in the chapter show how to control a digital or analog output based on the state of a
digital or analog input.
What You Need
You need these items to complete the tasks in this manual:
• Personal computer running RSLogix 5000 software, version 16 or later
• A layout of the system for which you are creating a project
1
11Publication 1756-QS001E-EN-P - October 200911
Chapter 1 Program and Test a Simple Project
A
B
C
Before You Begin
To configure and program a Logix5000 controller, you use RSLogix 5000 software to create and manage a
project for the controller. A project is the file on your workstation (or server) that stores the logic,
configuration, data, and documentation for a controller.
• The file for the project has an .ACD extension.
• When you create a project, the project name is the same as the name of the controller.
• The controller name is independent of the project name. You can rename either the project name or
the controller name.
In an open project, there is this information:
ItemDescription
AName of the project. If you rename the project or controller, both names are shown.
BName of the controller.
CThe controller organizer is a graphical overview of the project. Use the controller organizer
to navigate to the various components of a project.
To open a folder and show its contents, either:
• double-click the folder.
• click the + sign.
12Publication 1756-QS001E-EN-P - October 2009
Follow These Steps
1. Create a project for the controller (page 14).
2. Add I/O modules (page 15).
3. Look at I/O data (page 17).
4. Enter ladder logic (page 19).
5. Enter a function block diagram (page 21).
6. Assign alias tags for your devices (page 25).
7. Establish a serial connection to the controller (page 28).
8. Download a project to the controller (page 30).
Program and Test a Simple Project Chapter 1
9. Select the operating mode of the controller (page 32).
Publication 1756-QS001E-EN-P - October 200913
Chapter 1 Program and Test a Simple Project
Create a Project for the Controller
1. Start RSLogix 5000 software.
2. Click New.
3. Specify the general configuration for the controller.
Specify these items (some items apply to only certain controllers):
• Type of controller.
• Major revision of firmware for the controller.
• Name for the controller.
• Chassis type for the controller.
• Slot number of the controller.
• The path where the project will be stored.
4. Click OK.
14Publication 1756-QS001E-EN-P - October 2009
Program and Test a Simple Project Chapter 1
TIP
CompactLogix
Controller
ControlLogix
Controller
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.
• Only letters, numbers, and underscores (_)
• Must start with a letter or an underscore
•≤ 40 characters
• No consecutive or trailing underscores
• Not case sensitive
Add Your I/O 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.
The screens shown are representative of three types of controllers; other types are available, but are not
shown here.
1. Right-click the I/O Configuration folder and choose New Module.
Publication 1756-QS001E-EN-P - October 200915
Chapter 1 Program and Test a Simple Project
2. Select the module and click OK.
3. From the Major Revision pull-down menu, choose the revision of the module.
4. Define the module and click OK.
16Publication 1756-QS001E-EN-P - October 2009
Look at Your I/O Data
When you add a module to the I/O
Configuration folder…
…the software automatically creates
controller-scoped tags for the module.
I/O information is presented as a set of tags.
An I/O address follows this format.
Location:Slot:Type.Member.SubMember.Bit
Program and Test a Simple Project Chapter 1
= Optional
WhereIs
LocationNetwork location
LOCAL = same chassis or DIN rail as the controller
ADAPTER_NAME = identifies remote communication adapter or bridge module
SlotSlot number of I/O module in its chassis or DIN rail
TypeType of data
I = input
O = output
C = configuration
S = status
MemberSpecific data from the I/O module; depends on what type of data the module can store.
• For a digital module, a Data member usually stores the input or output bit values.
• For an analog module, a Channel member (CH#) usually stores the data for a channel.
SubMemberSpecific data related to a Member.
BitSpecific point on a digital I/O module; depends on the size of the I/O module (0-31 for a 32-point module)
Publication 1756-QS001E-EN-P - October 200917
Chapter 1 Program and Test a Simple Project
1. Right-click Controller Tags and choose Monitor Tags.
A blue arrow indicates that when you change the value, it immediately takes effect.
2. To see a value in a different style, select the desired style.
3. To change a value, click the Value cell, type the new value, and click Enter.
4. To expand a tag and show its members, click the + sign.
18Publication 1756-QS001E-EN-P - October 2009
Ladder Logic
A
B
C
For a Logix5000 controller, you enter your logic in routines.
Program and Test a Simple Project Chapter 1
ItemDescription
AA routine provides the executable code (logic) for a program (similar to a program file in a
PLC or SLC controller).
BThere is one main routine you assign for each program.
• When the program executes, its main routine automatically executes.
• Use the main routine to control the execution of the other routines in the program.
• To call (execute) another routine (subroutine) within the program, use a Jump to
Subroutine (JSR) instruction.
CA subroutine is any routine other than the main routine or fault routine. To execute a
subroutine, use a Jump to Subroutine (JSR) instruction in another routine, such as the main
routine.
When you create a project, the software automatically creates a main routine that uses the ladder diagram
programming language.
Publication 1756-QS001E-EN-P - October 200919
Chapter 1 Program and Test a Simple Project
EXAMPLE
A green dot shows a valid placement location
(drop point).
XIC
If this bit is on…
OTE
…turn on this bit. Otherwise,
turn off this bit.
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 rung or instruction directly to the desired location. You can enter
your logic and leave the operands undefined. After you enter a section of logic, go back and assign the
operands.
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.
20Publication 1756-QS001E-EN-P - October 2009
Program and Test a Simple Project Chapter 1
Enter a Function Block Diagram
Follow these steps to add a function block diagram to your project.
Create a Routine
Each routine in your project uses a specific programming language. To program in a different language, such
as function block diagram, create a new routine.
1. Right-click MainProgram and choose New Routine.
2. Type a name for the routine.
3. Choose the programming language.
4. Click OK.
Publication 1756-QS001E-EN-P - October 200921
Chapter 1 Program and Test a Simple Project
Call the Routine
To execute a routine other than the main routine, use a Jump to Subroutine (JSR) instruction to call the
routine.
1. Add a rung.
2. On the Program Control tab, add a JSR instruction.
3. In the Routine Name field of the JSR instruction, type the name of the routine that you want to
execute.
4. 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.
22Publication 1756-QS001E-EN-P - October 2009
Enter a Function Block Diagram
EXAMPLE
Enter function block diagram instructions in a function block routine.
In the following example, an Input Reference (IREF) reads the value of an analog input and sends the value
to a Scale (SCL) instruction. The SCL instruction converts the value to engineering uses and sends it to an
Output Reference (OREF). The OREF writes the value to an analog output.
Publication 1756-QS001E-EN-P - October 200923
Chapter 1 Program and Test a Simple Project
Configure a Function Block Instruction
Assign specific values (parameters) to configure a function block instruction.
1. Click the configuration button.
2. To change the value of a parameter, click the value cell, type the new value, and click Enter.
24Publication 1756-QS001E-EN-P - October 2009
Program and Test a Simple Project Chapter 1
For example, in the SCL instruction, specify the following parameters:
• InRawMax – maximum input value
• InRawMin – minimum input value
• InEUMax – maximum engineering value
• InEUMin – minimum engineering value
3. Click OK.
Assign Alias Tags for Your Devices
While you can use the input and output tags of a module directly in your logic, it is easier to use alias tags. An
alias tag is a tag that represents another tag.
• Both tags share the same data.
• When the data changes, both tags change.
• An alias tag provides a descriptive name for data, such as DeviceNet input or output data.
• If the location of the data changes, simply point the alias tag goes to the new location without editing
your logic.
As an option, create tags that describe each device without pointing them to the actual addresses of the
devices. Later, convert the tags to aliases for the data of the devices.
1. Enter the logic.
2. Type a descriptive tag name for the device.
3. Right-click the tag name and choose New…
Publication 1756-QS001E-EN-P - October 200925
Chapter 1 Program and Test a Simple Project
4. Select Alias from the menu.
5. Select the tag that this alias tag represents.
6. Select the scope for the alias tag.
7. Click OK.
8. Select the address of the data.
To select a bit, click the b button.
26Publication 1756-QS001E-EN-P - October 2009
Show or Hide Alias Information
Show or hide alias information for a tag.
1. From the Tools menu, choose Options.
2. Select the Ladder Editor Display category.
Program and Test a Simple Project Chapter 1
3. Check or uncheck Show Tag Alias Information.
4. Click OK.
Publication 1756-QS001E-EN-P - October 200927
Chapter 1 Program and Test a Simple Project
WARNING
Logix5000 Controller
RSLinx Classic Software
RSLogix 5000 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.
Logix5000
Controller
1756-CP3 or 1747-CP3 serial cable
Establish a Serial Connection to the Controller
RSLinx Classic software handles communication between Logix5000 controllers and your software
programs, such as RSLogix 5000 software. To communicate with a controller (for example, download,
monitor data), configure RSLinx Classic software for the required communication.
Use a serial cable to establish a point-to-point connection between the serial ports on your computer and
controller.
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
installations.
Be sure that power is removed or the area is nonhazardous before proceeding.
1. Connect a serial cable to your controller and computer.
28Publication 1756-QS001E-EN-P - October 2009
Program and Test a Simple Project Chapter 1
2. Start RSLinx Classic software.
3. Click .
4. Select RS-232 DF1 devices and click .
5. From the Comm Port pull-down menu, choose the COM port of your computer.
6. From the Device pull-down menu, choose Logix 5550/CompactLogix.
7. Click .
8. When the auto-configuration completes, click OK.
The driver is successfully configured and running.
Publication 1756-QS001E-EN-P - October 200929
Chapter 1 Program and Test a Simple Project
ATTENTION
IMPORTANT
Logix5000
Controller
Project
Download
Download a Project to the Controller
To execute a project in a controller, download the project to the controller to transfer a project from your
computer to the controller so you can run the project. When you download a project, you lose the project
and data that is currently in the controller, if any. If the revision of the controller does not match the revision
of the project, you are prompted to update the firmware of the controller. RSLogix 5000 software lets you
update the firmware of the controller as part of the download sequence.
When you download a project or update firmware, all active servo axes are turned off. Before you
download a project or update firmware, make sure that this will not cause any unexpected movement of an
axis.
To update the firmware of a controller, first install a firmware upgrade kit.
• An upgrade kit ships on a supplemental CD along with RSLogix 5000 software.
• To download an upgrade kit, go to http://www.ab.com