following tasks:
• Enter and edit ladder logic components
• Assign tags to instructions
• Verify a project or a routine
Why These Skills Are Important Why These Skills Are Important
These skills are important for the following reasons:
• Entering instructions into RS Logix 5000 ladder logi c routines is important for creating and maintaining simple projects that evaluate inputs and control outputs.
• Assigning the proper tags to instruct ions and verifying a projec t or a routine will assist in ensuring that the ladder logic project functions properly according to the identified specifications .
Entering and Editing Ladder Logic Components Entering and Editing Ladder Logic Components
RSLogix 5000 software offers the ability to enter and edit ladder logic using any combination of the following basic methods:
• Windowsr-based methods (dragging)
• Insert key
• Right-click menu
Other more advanced methods of entering ladder logic, such as ASCII editing and neutral text, are available.
Explain that in this lesson, students will Explain that in this lesson, students will be inserting basic instructions into rungs be inserting basic instructions into rungs of ladder logic.
of ladder logic.
What You Will Learn What You Will Learn
Explain that results will be incorrect Explain that results will be incorrect when the incorrect instructions or related when the incorrect instructions or related parameters are entered into ladder parameters are entered into ladder logiclogic routines.
routines.
Before You Begin Before You Begin
Point out that the two of the more Point out that the two of the more common methods of entering ladder common methods of entering ladder logic will be discussed here. A logic will be discussed here. A demonstration will be presented later in demonstration will be presented later in the Here’s How section. Other more the Here’s How section. Other more advanced methods such as advanced methods such as ASCIIASCII editing will not be reviewed
9--2
9--2 Entering Ladder Logic Components in an RSLogix 5000 Routine
E 2007 Rockwell Automation, Inc. All rights reserved.2007 Rockwell Automation, Inc. All rights reserved. Rev. Rev. February February 20072007 LADsb56r Windows-Based Methods (Dragging)
Windows-Based Methods (Dragging)
Ladder logic elements can be dragged from the RSLogix 5000 Language Element toolbar to a valid placement location (target):
Valid
Tab Language Element Language Element ToolbarToolbar
When dragging ladder logic elements from this toolbar, keep in mind the following tips:
• Target squares indicate where an instruction can be placed.
• A green target circle indic ates where a ladder logic elem ent will be inserted when the mouse button is released.
• An empty or completed rung can be s elected and dragged to another valid placement location.
• The software supports other common Windows-based features including:
Ladder logic can be entered using the [Insert] [Insert] key on a keyboard.
T
To use the o use the visual, point out the selectedvisual, point out the selected OTE instruction in the Favorites tab.
OTE instruction in the Favorites tab.
Indicate that it has been dragged to rung Indicate that it has been dragged to rung 2. Point out the
2. Point out the valid placementvalid placement locations.
locations.
Remind students that the Language Remind students that the Language Elements toolbar can be moved, hidden, Elements toolbar can be moved, hidden, and customized. Note that there are and customized. Note that there are procedures for the tasks in the procedures for the tasks in the procedures guide.
procedures guide.
Mention that RSLogix 5000 software has Mention that RSLogix 5000 software has a [CTRL] + drag feature that allows you a [CTRL] + drag feature that allows you to copy an entire rung to any valid to copy an entire rung to any valid location (whereas dragging will only location (whereas dragging will only move the rung).
move the rung).
Note that many of
Note that many of these Windows-basedthese Windows-based features are available in the right-click features are available in the right-click menu of a selected item.
menu of a selected item.
9 9 ---- 33 Entering Ladder Logic Components in an RSLogix 5000 Routine
E 2007 Rockwell Automation, Inc. All rights reserved.2007 Rockwell Automation, Inc. All rights reserved.
Rev. February 2007 Rev. February 2007
LADsb56r
The placement of the ladder logic depends on the current editing mode, as indicated in the bottom right of the main window:
Current Editing Mode Current Editing Mode
The following modes are available:
• APP APP (Append):(Append): A mode that places a new element to the right of the current instruction.
• INS INS (Insert):(Insert): A mode that places the new element to the left of the current instruction.
The three-letter mnemonic of the element can then be typed or selected from the correct folder of the component tree:
Mnemonic Text Mnemonic Text Box Box
Selection Tree Selection Tree
Grouping Option Grouping Option
Assigning a Tag to an Instruction Assigning a Tag to an Instruction
An operand is the tag upon which a ladder logic instruction will operate.
Notethatthetreeisnavigatedinamanner Notethatthetreeisnavigatedinamanner similar to the
similar to the Controller Organizer.Controller Organizer.
In the graphic, point out the main In the graphic, point out the main options, including the grouping option.
options, including the grouping option.
9--4
9--4 Entering Ladder Logic Components in an RSLogix 5000 Routine
E 2007 Rockwell Automation, Inc. All rights reserved.2007 Rockwell Automation, Inc. All rights reserved. Rev. Rev. February February 20072007 LADsb56r
Created tags can be entered as operands using the following methods:
• Created tag names can be typed:
---- As each letter is type d, the software displays the clos est tag match.
• Created tags can be selected from a drop- down list in the operand text box:
A member of a structure or a bit can be selected when the structure is expanded:
If a tag is not already created, it can be created from the operand text box in an instruction: In the graphic, point out the main
In the graphic, point out the main options. If you are using the software, options. If you are using the software, change the scope, then select a change the scope, then select a program tag.
program tag.
Note that to have the next closest match Note that to have the next closest match displayed, the Look Ahead option must displayed, the Look Ahead option must be enabled in the Application Options.
be enabled in the Application Options.
In the graphic, point out the main In the graphic, point out the main options. If you are using the software, options. If you are using the software, expand different tags such as timers, expand different tags such as timers, and I/O tags. Show the available and I/O tags. Show the available members.
members.
Note that for an I/O point you would Note that for an I/O point you would select a point from the grid in the Data select a point from the grid in the Data member.
member.
In
In thethe gragraphiphic,c, poipointnt outout themainthemain opeoperanrandd and the create option.
and the create option.
Add that if a tag is created from the Add that if a tag is created from the right-click menu, spaces (underscores) cannot click menu, spaces (underscores) cannot be entered.
be entered.
9 9 ---- 55 Entering Ladder Logic Components in an RSLogix 5000 Routine
E 2007 Rockwell Automation, Inc. All rights reserved.2007 Rockwell Automation, Inc. All rights reserved.
Rev. February 2007 Rev. February 2007
LADsb56r
Verifying Projects and Routines Verifying Projects and Routines
Before running a project in RSLogix 5000 software, all ladder logic must be verified.
Verification checks ladder logic routines for the following types of errors:
• Improper instruction placement
• Improper or incomplete tags
• Tags with data types that are not valid for the inst ruction
• Empty rungs
Projects with errors will not download to the controller.
Verification can be performed on single routines or on the whole project by using the following buttons:
Verify Open
The auto rung verification option is available for users who want errors to be displayed in the Results window as rungs are entered.
To enter ladder logic components in an RSLogix 5000 routine by performing the following tasks:
• Enter and edit ladder logic components
• Assign tags to instructions
• Verify a project or a routine
As your instructor demonstrates these procedures, follow along in the associated job aid(s).
Mention that projects and routines Mention that projects and routines cannot run until data is verified and cannot run until data is verified and errors are corrected.
errors are corrected.
Explain that this option is available Explain that this option is available through the Tools --> Options dialog box.
through the Tools --> Options dialog box.
"
Open the CCP146_1756r_CCP146_1756r_DEM1.acdDEM1.acd file. Create a new ladder logic routine to file. Create a new ladder logic routine to enter ladder logic.
enter ladder logic. While demonstratingWhile demonstrating the procedures, point out the the procedures, point out the followingfollowing elements:
elements:
S Language Language Element Element toolbartoolbar S VerifiVerification cation buttonsbuttons
9--6
9--6 Entering Ladder Logic Components in an RSLogix 5000 Routine
E 2007 Rockwell Automation, Inc. All rights reserved.2007 Rockwell Automation, Inc. All rights reserved. Rev. Rev. February February 20072007 LADsb56r
9 9 ---- 77