You are on page 1of 126

This product was funded by a grant awarded under the Presidents Community-Based Job Training Grants as implemented by the

U.S.
Department of Labors Employment & Training Administration. The information contained in this product was created by a grantee
organization and does not necessarily reflect the official position of the U.S. Department of Labor. All references to non-governmental
companies or organizations, their services, products, or resources are offered for informational purposes and should not be construed as an

1
Topic

endorsement by the Department of Labor. This product is copyrighted by the institution that created it and is intended for individual
organizational, noncommercial use only.

Basic Concepts
OBJECTIVES:

Upon completion of this topic the student would be able

to:

List the key components of Logix5000 system


Use the key switch
Understand the Controller indicators
Remove I/O cards
Logix 5563 Controller:
Installed in any slot
Address up to 128,000 Digital I/O
Address up to 4000 Analog I/O
Allows programming in the online Program and
Run Modes
Key switch: Three-position lockable switch that
enables the selection of the controller mode.
Run pos. Controller is locked in run mode. Programs
cannot be downloaded, or edited. Some data can be
changed or modified.
Program pos. Controller is locked in program mode.
Programs and Data can be downloaded, edited, etc.
Remote pos. Controller modes can be changed from a
computer.
Rem program mode is identical to program mode.
Rem Run mode is identical to Run mode except the
program can be edited on line.
Rem test mode allows the program to be scan but outputs
are disabled.

Status indicators: Lights that display the status of operations, Communications,


and I/O devices.
1

Light

Of

Solid
Green

Run

Program /
Test
Mode
No
Project

Run
Mode

I/O

Force

No Forces

RS232
BAT

Not
Talking
Good

OK

No Power

Talking
to I/O

Flashin
g Green

Solid
Red

One or
more I/O
not
Talking

Flashing
Red

Solid
Amber

Forces
Installe
d

Forces
Enabled

No I/O
talking or
Chassis
faulted

Talking
Bad
Good

Flashi
ng
Amber

Must
reset
memory

Recoverab
le Fault

Battery: A back up lithium power source that maintains controller


Memory when the main power source is lost.
An External Allen Bradley Battery Module 1756-BATM/A
is recommended.
Serial Port (RS 232): Allows a direct serial link to remote
Devices and a connection for a computer for
programming or
Debugging.

Chassis:
The 1756 I/O chassis are available in the 4, 7, 10,
13, and 17 slots.
Slots are numbered from left to right starting with
slot 0
Power Supply:
Supplies DC Power to Logix5000 components
through the
backplane. Power Supply is not counted as a slot.
Backplane:
The backplane is the printed circuit board at the
back of the chassis. It provides connections and
communications for the inserted modules. The
backplane is also called the ControlBus.
Input/Output Modules: (I/0)
I/O modules communicate with a controller across
the backplane.
The backplane allows data to be multicast (i.e., sent
once and
received by multiple destinations.) Data is not
updated in sync
With the program scan.
Communications Modules:
3

With the exception of the RS-232 serial port,


communications with
The Logix 5000 systems require communications
modules.
The following communications interface modules
are available:
Ethernet, ControlNet, DeviceNet, and Data
Highway +
Remote I/O.

Specialty Modules:
Various specialty modules are available for Motion
Control,
High speed counting, and Programmable limit
switch.
Locking Tab:
The locking Tab anchors the RTB on to the module
maintaining
the wiring connections.
Removal and Insertion Under Power (RIUP):
Logix5000 modules can be removed and inserted
while the chassis
Backplane has power applied.
Modules can be removed by pressing the top and
bottom locking
clips at the same time and sliding the module
forward.
Caution: when inserting or removing a module an
electrical arc
may occur. Electrical arc can cause
personal injury,
property damage, an explosion in a
hazardous
environment. Also a false signal to the
field devices
may occur causing unintended machine
motion or
loss of control. Take adequate safety
precautions
when inserting or removing a module
under power.

Exercise 1-1:
In the following examples we will be configuring some of the
modules in your chassis. You will need to know the module types in
order to configure them.

Remove and Identify the module type in each slot and record
below.
Slot
Slot
Slot
Slot
Slot
Slot
Slot
Slot
Slot
Slot

0:
1:
2:
3:
4:
5:
6:
7:
8:
9:

______________________
______________________
______________________
______________________
______________________
______________________
______________________
______________________
______________________
______________________

RSLinx

OBJECTIVES:

2
Topic

Upon completion of this topic the student would be able

to:

Configure drivers in RSLinx


Use RSWho for troubleshooting

RSLinx is the Allen Bradley software used to set up the drivers for the computer to talk
to the PLC
What is a driver anyway?
A driver is the software interface to the hardware device that allows RSLinx to
communicate with your PLC. A driver is the piece of software that tells the computer
how to talk to the PLC.

Configure Drivers
Configuring a software driver is the first step in establishing a hot link.
Select Communications > Configure Drivers to display the
Configure Drivers dialog box that is used for adding, editing or
deleting drivers. The available hardware drivers are shown in the
Available Drivers list. The presently configured drivers are
displayed in the Configured Drivers list.
DF-1 RS232 Serial Driver
Every 5000 PLC has a serial port. Serial is a direct link between the
computer and the PLC; addresses are not needed. Serial is slow at
speeds up to 19k.
To configure:
7

1. Select Communications from Main Menu and then Configure


Drivers
Or Click on the configure driver button from the Toolbar
(Has a cable on it).
2. Select the RS 232 devices from the Available Driver drop
down list.
3. Click Add New button
4. Click OK to default name.
5. Select Comm. Port from drop down list.
6. Click Auto Configure Button to finish settings
7. If you do not get Auto Configuration Successful, make sure
your cable is attached.
8. Click OK.

Ethernet
Ethernet is a fast form of communicating at speeds up to 10Mb. Each
Device must have an IP, Internet Protocol, address assigned. There
are two types of Ethernet Drivers, Eth-1 and Eth-IP commonly used.
What is the diference between Eth-1 and Eth IP?
Ethernet IP drivers are easy to configure but may miss some
addresses. Devices that are not Auto-Browse will not be found.
With Ethernet Driver every address entered will be browsed, but
every address must be entered.
Eth-1

Ethernet Driver
1. Select Communications from Main Menu and then Configure
Drivers
Or Click on the configure driver button from the Toolbar
(Has a cable on it).
2. Select the Ethernet devices from the Available Driver drop
down list.
3. Click Add New button
4. Click OK to default name.
5. In the Host Name, type the addresses of all the modules you
wish to see on the driver ( 10.31.25.20 to 10.31.25.24 ) You
will need to push the add new button for each address.
6. Select Apply
7. Select OK
Eth-IP

Ethernet IP Driver
1. Select Communications from Main Menu and then Configure
Drivers
Or Click on the configure driver button from the Toolbar
(Has a cable on it).
2. Select the Ethernet/IP driver from the Available Driver drop
down list.
3. Click Add New button
4. Click OK to default name
5. Select Browse Local Subnet
6. Click OK.

RSWho
RSWho is RSLinx's main window that displays networks and devices in a style similar to
Windows Explorer. RSWho allows you to view all the active network connections from a
single screen.
RSWho display only browses one network at a time.
If the Autobrowse checkbox is enabled, RSWho continuously browses the selected
device or network (regardless of whether or not the selection is expanded or collapsed).
If Autobrowse is cleared, the Refresh button is active. Clicking Refresh instructs
RSWho to perform one browse cycle of the selected device or network. Since Refresh
only performs one browse cycle, clicking Refresh multiple times may be necessary to
discover everything on the network.
The left pane of RSWho is the tree control, which shows networks and devices. Click the
"+" sign to expand a Network to show all devices in the right pane.
A device that appears with a red X indicates that RSWho previously recognized this
device, but now it can not. The red X indicates a communication status error, such as
unplugging a recognized device. These devices can be removed from the RSWho display
by right-clicking on the device and selecting Remove.
Module Information can be found by expanding the tree to the device
level

10

To see the module revisions and faults, Right click on the device and
select Device Properties

Exercise:
1. Configure a serial driver
2. Configure an Ethernet IP Driver
3. Configure an Ethernet Driver
4. From RSWho, identify the module type and revision from
RSLinx in a few slots.

11

Processor Properties

3
Topic

OBJECTIVES:

Upon completion of this topic the student would be able

to:

Create a new project in RS Logix 5000


Access and change Processor properties

Start the RS Logix 5000 software. From the file menu select new. You
should get the screen below.

12

1. Select the correct processor type.


2. Select the correct software revision for the current version of
software.
3. Leave Redundancy Enabled unchecked. Redundancy is when there
are two processors in a system. When one processor Faults the
redundant processor will take over with the same program.
4. Name is the title of the processor. It should be meaningful and
relevant to the application.
5. Set the chassis type to the correct size
6. Select the correct slot for the controller.
7. Click ok.

The Controller properties can be viewed from right clicking on the


controller folder and selecting properties or by using the controller
properties Tool located under the Keyswitch picture in the on line
toolbar.

13

Exercise: Start a New program and configure the controller for your

4
Topic

trainer.

Configure I/O
OBJECTIVES:

Upon completion of this topic the student would be able

to:
Configure Input and Output cards
Find I/O data in controller memory
Understand Control Logix addressing scheme
Use module indicators for troubleshooting
Control Logix is very flexible about ownership of I/O. I/O can be owned
by controllers in the same Chassis or by a remote chassis with a
communications path. Also, there can be more than one controller in a
chassis. This flexibility creates a need to configure I/O for each program
individually.
Ownership: Every I/O module must be owned by a Logix5000
Controller.
This ownership is established in the I/O configuration. Input modules
can have more than one owner but output modules can have only one
owner.
1. From the project tree select, Right Click on I/O configuration
folder.
2. Select new module. You should get a screen with all the modules
listed.

14

3. Select the module number or enter the number in the Type box at
top.
4. Click Ok.
5. The Major revision dialog box pops up. Select the Major Revision
number which is the first numbering the firmware revision
number. For example, firmware 2.6 has a Major revision of 2 and a
minor revision of 6.

6. Click ok. You should see screen below.

15

1. Enter name of the module. Some type of standard format is


desireable. The following could be used:
I16_00_01
I is for Input
16 is for how many
00 is for Rack or Unit Number
01 is for Slot Number
2. Select correct slot
3. Select Comm. Format:
Full Diagnostic Owner of Card
Listen Only Could read inputs but not configure
4. Select Electronic Keying if lower number then always OK
Compatible Module less than or equal to revision number will
work.
Disable- Do not cause a fault if no match
Exact Match must match firmware exactly
5. Click Next
6. Requested Packet Interval (RPI):
The interval rate at which a
module multicast its data.
7. Inhibit Module if checked module will not work and OK light on
module will flash green.
8. Major Fault on Controller - if checked will cause a major fault if
lost communications.
9. Click Next.
16

10.
Module Info screen only works when connected Online
11.
Click Next
12.
CHANGE OF STATE (COS): The parameter instructs the
module to transfer data whenever a specified input point transition
form ON to OFF or OFF to ON. COS selection occurs on a perpoint basis, but all module data is multicast when any point
enabled for COS changes state.
13.
Filter For Switch Debounce and Noise can change online
14.
Click Next
15.
Backplane Information only available online
16.
Click Finish
The following memory locations were assigned to the Input module in
the controller tags

The real inputs are listed under


Local:1:I.Data
Exercise: Repeat above steps for the Output Module.
Note Differences in Configuration for Output card:
Under configuration, the output state can be set to On, Off or Hold
during Program Mode and Fault Mode. You can also choose which
state to leave the outputs in if communication fails during program
mode.

17

Module Indicators
Use the Indicators on the front of the module to trouble shoot problems.
Monitor the OK and channel lights to determine Problems
Indicator

Display

Description

Action

OK

Solid Green

Normal

None

OK

Flashing Green

Not Talking or Check to


Inhibited
whether
Inhibited
RSLogix

see
in

OK

Flashing Red

Communications Check
has timed out
Controller and
Chassis
Communication

OK

Solid Red

Bad Module

REPLACE

I/O Status

Yellow

On

None

I/O Fault

Red

A Fault

Check Points

18

Ladder Program

5
Topic

OBJECTIVES:

Upon completion of this topic the student would be able

to:

Write a program to use an input to energize an output


Use Module Local Addresses
Download and test a program
The following example demonstrates how to assign base memory
location to program bit type instructions. Enter the following program
as you would in RSLogix5, by dragging the instructions from the
Favorites Tab of the instruction toolbar.

To assign real inputs and outputs to the instruction below do the


following steps.
Double click on the ? above the XIO input instruction and select the
pull down menu

19

For this example your input card is in slot 1. Expand the Local:1:I
selection.
Click the pull down menu for Local:1:I.Data and select bit 2. See
diagram
below.

20

Exercise: Using same procedures, assign the OTE instruction Bit 1 of


the Local:3:O Data word

6
Topic

(Bit 1 of the output module.)


When you are finished your program should be as below.
Local:1:I.Data.2

Local:3:O.Data.1

Down load and run your program.


1.
2.
3.
4.
5.
6.

From the communication pull down menu select Who Active


Select the Ethernet driver
Expand the Ethernet address of your trainer.
Expand the back plane.
Select your processor and click the down load button.
Place your processor in run mode with either the key or from the
online toolbar.
7. When input 2 is pressed output 1 should come on.
The above example demonstrates how instructions are assigned to real
inputs and real outputs. In the next topic we will learn how to use tags
to make programs easier to understand and analyze.

Alias Tag Names


OBJECTIVES:

to:

Upon completion of this topic the student would be able

Create Alias tags using the New Tag Dialog Box


Create Alias tags from the controller tags
Apply Alias tags
Alias Tags give meaningful names to other tags such as Local
addresses. For example, Cycle_Start_PB makes more sense than
Local:1:I.Data.2.
An alias tag may refer to another alias tag or a base tag. An alias tag
may also refer to memory within another tag by referencing a
member of a structure tag, or a bit within an integer tag or member.
For example, Run_Time_Complete could be a more meaningful
reference to timers done bit.
There are several ways to create Alias Tags. Here is one Method:
1. From the File Tree, Right click on the controller tags

22
22

2. Select New Tag which will bring up the new tag dialog box.

3. Enter the Alias in the Name box. Names can have up to 40


characters including Underscores but NO spaces. Names must
start with a letter or underscore.
4. Under Tag type select Alias.
5. In the Alias for box enter the base address. The Data type will
automatically adjust to fit the Base tag.
6. Leave scope set to controller.
7. Style can be adjusted later if needed
8. Click OK
9. Next select the alias tag for the XIC in the Ladder by double
clicking on the address:

23
23

10.

Press Enter to see the Alias applied.

Another way to create a tag name is from a New instruction in


Ladder Logic. While offline:
1. In the ladder, right click on the question mark over a new
instruction.

2. Select New Tag


3. Fill in the New Tag Dialog box as above in steps 3 8.

24
24

Alias Tags can be created from the Controller Tags in Edit Tags. This
method is good for adding many tags.
1. Right Click on Controller tags from the file tree and select edit
tags.
2. At the bottom of the tag listing is a *. Click in the tag name by the
* and start typing.

3. The * changes to a pencil to indicate editing mode. Enter AutoSS


for the Auto Selector Switch.

4. Pick the address of the Auto Selector switch under the Alias for
Column. The data type will adjust to match the base type.
5. Click below the tag when finished.

Exercise:
Add Alias Tag Names from the Input wiring diagram.

26

Base Tag Usage

7
Topic

OBJECTIVES:

Upon completion of this topic the student would be able

to:
Understand the key components of a Base Tag
Contrast a Base Tag and an Alias Tag
Create a program to operate a motor in manual
Key Terms:
Tag:

is a text-based name for a specific area of memory that


stores data

Two Types of Tags:


Base tag:
a tag that actually defines the memory where a data
element is stored
Alias tag:

a tag that references memory defined by another tag.

A base tag refers to a normal tag (selected by default); this type of tag
allows you to create your own internal data storage.
Tag Parameters
Scope:
Controller Scoped Tags are available to every task and
program within a project.
Program Scoped Tags are only available to the program to
which they are associated.
Name:
27

Can be up to 40 characters long, must begin with an


alphabetic character or an underscore, can contain any
combination of alphabetic and numeric characters and
underscores, cannot contain consecutive underscores or
end with an underscore.
Data Type:
Tags can be created using the following data types:
a. Any pre-defined data type
b. Any user-defined data type.
Style:
Style is the display radix for each data type: For certain
data types, the style can be change to different display
radix: EX. The default style for the Int. tags is decimal
but can be changed to binary, octal, or hexadecimal.

28

Example: Create a base tag named AutoMode of data type Bool in the
Controller tags. Add the logic as follows to your program.

8
Topic

Lab 1:
Given Input and Output diagrams for your trainer,
1. Add logic to have ME-F1 advance in Manual when ME-F1 Advance
Push button is pressed.
2. Download and test your program
3. Go offline
4. Add logic to have ME-F1 return in Manual when ME-F1 Return
Push button is pressed
5. Download and test your program.

Using the Software


OBJECTIVES:

Upon completion of this topic the student would be able

to:
29

Download and Upload a program


Save a program
Use Keyboard Shortcuts
Download:
Transfer a copy of a project from a computer to a controller.
Downloading overwrites the current project in the controller.

Logix 5000
Controller

Upload:
Transfer a copy of a project from a controller into temporary memory
(RAM) of the computer.

Logix 5000
Controller

Save:
Write a copy of a project to the computer hard drive. If the project
already exists in the computer, saving will
overwrite it.
You cannot save to a floppy disk from
RSLogix5000!!!
Copy the project from the hard drive then to the floppy.
Exercise: Given a floppy with a sample program on it, download it to
the Trainer.
Change the program to turn on the blue light when in program mode.
Download and Test.
Save updated program to Floppy.

30

Keyboard Shortcuts
Keyboard Shortcuts speed up the editing/troubleshooting process. A list
of shortcuts is available from the Help Pull down menu under Keyboard.
Shortcuts are also listed from the pull down menus to the right of the
commands.
For example, Ctrl + z will undo the
previous action.

Here is a useful list of shortcuts:


Ctrl + G

Go to Ladder #, tag name

Ctrl + Home

Move to top

Ctrl + End

Move to bottom

Ctrl + Tab

Toggles between RSLogix Views


(Ladder, controller tags, )

Alt + Tab

Toggles between
Applications

Tab

Moves through field boxes

Shift + Tab

Moves backwards through field


boxes.

Ctrl + Page Down

Toggles between Edit tags and


Monitor Tags

31

open

Window

Ctrl + Page Up

Same as Ctrl + Page Down in


reverse order

F1

Help on current topic

9
Topic

Online Edits

OBJECTIVES:

Upon completion of this topic the student would be able

to:
Step through Online Edits
Finalize edits
Delete or Add a Rung
Online:
To continuously communicate with the controller to monitor or modify
a program or data.
Click to see
status of
forces

32

Online Toolbar:
Green = good
Red = bad
Flashing green=
problem.

Status of
Controlle
r

Controller
Properties

The Online Tool Bar shows the status of the controller, forces and
edits. By clicking on the Words on the left, applicable indicators show
in the right pane. The Mode of the
controller
can be changed by clicking on the down
arrow.
Online Edits
To edit an existing Rung:
1. Double Click on the rung number you want to edit.
2. Make changes in the inserted new rung (has an i by rung
number)
3. Note: i changes to e after edits made.
4. Verify rung by clicking accept edits button (Green Check)
5. Test Edits (Yellow Lighting Bolt) switches from replaced rung
to inserted rung.
6. Assemble Edits (Green Check) makes Inserted changes
permanent.
Note: All The steps above can be reversed by clicking the
button with a Red X.
To Finalize All Edits in a Program
To do steps 3 through6 above in one step,
Choose Finalize Edits (Arrow) and choose Yes.
Note: This operation cannot be undone. When you choose to
finalize all edits:
If an error occurs in any Pending Edit Zone, none of the
pending edits will be committed to the controller and the
finalize process will stop.

33

10
Topic

To insert a new Rung:


1. Click the Rung Number above where you want the rung to
appear.
2. Rt Click and select Add New rung.
3. Make changes as in steps 3-6 above.
To Delete a Rung:
1. Click on the rung Number you wish to delete.
2. Press the delete key, or rt click and select delete.
3. A D appears by the rung number.
4. When edits are accepted, tested, and assembled as above, the
Deleted rung will disappear.

Lab 2
Using online edits,
1. Add logic to have ME-F2 advance in Manual when ME-F2 Advance
Push button is pressed.
2. Add logic to have ME-F2 return in Manual when ME-F2 Return
Push button is pressed
3. Add Holding circuits so that Pushbuttons can be pressed and
released.

Data Types

OBJECTIVES:

Upon completion of this topic the student would be able

to:

Recognize the different data types and memory usage


Build Tags of different Data Types

Data type: Bool


Sint

a single bit of memory 1= on 0= off


Short integer (8 bits byte) values between (128 to +127)
A integer (16 bits) values between (-32768 to

Int
+32767)
Dint
Double word (32 bits) values between
2,147,483,648 to
+2,147,483,647)
Real
a 32-bit value that contains a mantissa and an
exponent
Counter
accumulated (Dint)
Timer
accumulated (Dint)

They can be very large or very small.


Structure that contains a preset (Dint),
And Status (5-bool) CU, CD, DN, UN, OV
Structure that contains a preset (Dint),
And Status (7-bool) EN, TT, DN, FS, LS, OV, ER

Memory Allocation:
The minimum memory allocation for any tag is a DINT (32
bits)
When data is assigned by the user, the control assigns the
next available
Dint(s) of memory to any data types.
When data types such as Bool, Sint, and Int are assigned
to a tag, the
Controller still uses a Dint but only fills part of it.
Ex. Bool uses 1 bit of 32.
Sint uses 8 bits of 32
Int uses 16 bits of 32.
To efficiently use memory for Bools, Sint, Int, create an
array or a userDefine data type.
Exercise:
Tag Name
Timer_1
Coil_1
B3
Counter_1

Create the following Tags and expand to see


Type
Timer
Bool
Dint
Counter
35

11
Topic

Arrays
OBJECTIVES:

Upon completion of this topic the student would be able

to:

Create Arrays to group Base Tags


Dimension Arrays
Arrays let you refer to a group of data (of the same data type)
by the same name and to use a number (index) to identify an
individual element.
You specify an element in an array by its subscript(s). Enter the
array tag name followed by the subscript(s) in square brackets.
The subscript(s) must specify a value for each dimension of the
array. Dimensions are zero-based
For this array:
Specify:
one dimension
array name[subscript_0]
two dimension
array name[subscript_0, subscript_1]
three dimension array name[subscript_0, subscript_1,
subscript_2]
An array can have as many as three dimensions. The total
number of elements in an array is the product of each
dimensions size.

36

Unlike PLC5 or SLC500 controllers Logix5000 controllers do


not have pre-defined data tables files or address. Therefore,
tags or memory locations must be created to program ladder
logic. A controller stores tags as they are created and as they
fit into controller memory; therefore tags of the same data type
are not necessarily stored together in memory.
The following is an example how to create a one-dimensional
array for dummy coils. This will make Fault Recording similar
to the PLC5.
Click the controller tag tab and you should get a screen similar
to the following.

37

38

Make sure you are in the Edit Tag Mode and enter in the
following information.

You have now created a data file of 10 16bit words of dummy


coils.
AVI_B file is very similar to a B3 file in the PLC5.
The following is an example of creating a one-dimensional array
for 10 timers.
Click on the controller tag tab and enter the edit tag mode. You
should get the following screen.

39

Enter in the following information:

You have now created a timer file very similar to the PLC5
Exercise: Create the following Tags in controller Tags.
Tag Name
T4
Model
Color

Type
TIMER[10]
DINT[10,10]
DINT[1,5,2]

40

User Defined Data Types (UDT)

12
Topic

OBJECTIVES:

Upon completion of this topic the student would be able

to:
Create an UDT
Use an UDT
A User Defined Data Type stores members of different Data types
together, just like the Timer Data type stores DINTs for the Preset and
Bools for the Enable bit together. If you want a Timer you want Two
DINTs (PRE and ACC) and several Bools (EN, DN) every instance.
Note: If a UDT is to be produced on the ControlNet it must be less than
500 Bytes (125 Dints).
To Create a UDT:
1. Go Offline.
2. Right Click on the USER-Defined Folder in the Data Types
folder of the
Controller File
Tree.
3. Select New
Data Type.
4. Type a Name
for the UDT
(No Spaces)
5. In the row
marked with a
* click in the
Name Cell.
6. Enter a name for the Data Member (This name will appear
after the dot like PRE for timer Presets)
41

7. Choose the Data Type.( can NOT be Axis, Message or


Motion_Group but everything else is ok)
8. To set Array Dimensions, click on the (three dots). UDTs can
ONLY be Single Dimension Arrays.
9. Click OK
10.

To Add another Member, repeat above steps.

11.

Click Apply, OK and save File

To Use a UDT:
1. Access the Tag
Properties Box by right
clicking on the Tag or rt.
Clicking on the
controller tag folder and
selecting NEW TAG.
2. Under Data Type, Type
in the UDT Name or
select it from the list by
clicking on the three
dots.
3. The Tag will be created with the format you specified.

Exercise:
1. Create a UDT called Paint_Robot with the following types
PaintTime TIMER, Vehicle COUNTER, Error DINT, Start Bool,
and Stop Bool.
2. Create a new tag in the controller tags named Robot21 of type
Paint_Robot.

42

13
Topic

Static Inputs

OBJECTIVES:

Upon completion of this topic the student would be able

to:

Understand the updating of the ControlLogix Memory


Understand the importance of static inputs
Implement the Static Inputs in Motor Sequencing Lab

Memory

Since Input cards update at RPI rate or if COS independently


of program scan, an Input could change more than once
during a scan. To keep inputs static during a program scan,
43

inputs should be copied at the beginning of the program scan


to a memory location.
Lab 3 Motor Sequence Lab
Given an example Motor Program with the following Sequence

Cycle
Start
PB

ME F1

2
sec

2
sec
2
sec

ME
F2

1. Download and Test Program


2. Change Sequence as follows after each change, have
Instructor verify the new sequence:
Sequence A:

Cycle
Start
PB

ME F1

ME
F2

2
sec

2
sec

2
sec
2
sec

2
sec

2
sec
2
sec

44

14
Topic

Sequence B:

Cycle
Start
PB

ME F1

2
sec

2
sec

2
sec

2
sec
2
sec

ME
F2

2
sec

Sequence C:

Cycle
Start
PB

ME F1

ME
F2

2
sec

4
sec

3
sec

2
sec

45

2
sec

2
sec

Subroutines
OBJECTIVES:

Upon completion of this topic the student would be able

to:

Know how a subroutine executes


Use a subroutine
Create a subroutine.
A subroutine is a ladder routine called from another ladder
program.
The JSR (Jump to Subroutine) Instruction determines when a
subroutine is executed.
SBR and RET instructions are not required for the RSLogix5000
processors and only used for passing parameters.
JSR, SBR, and RET are found under Program Controls in the
Instruction Toolbar.
The Program automatically returns to the next rung after a
subroutine.
For Example, The following program Starts at Rung 0, always
executing Static_Input subroutine. After the Subroutine rungs
are completed the program returns to Rung 1. If a machine
fault has occurred, the program executes the Faults subroutine,
other wise the program moves to Rung 2.

Exercise: Using Online edits, move Static Input rungs to a separate


subroutine. Add JSR command in Main Routine at the beginning of
the program.

46

Tasks

15
Topic

Tasks, Programs, Routines


OBJECTIVES:

Upon completion of this topic the student would be able

to:

Understand the properties of Tasks


Understand the how a routine works within a program
Configure a routine, program and task

Tasks can be scheduled, edited, and controlled. Each task can


contain multiple programs, status information, and configuration
information.
The controller supports 32 separate tasks (either 32 periodic tasks,
or 31 periodic plus 1 continuous).
When you create a project, the Main Task is already defined as a
continuous task.
Once you create a task, there are other properties that you must
configure, such as how the programs within the task execute, how
often the task will be triggered, and in which priority the task will
run. You can prioritize the tasks up to 15 levels:

the continuous task has the lowest priority


a task at a higher priority pre-empts one at a lower priority
tasks at the same priority execute on a time-slice basis at 1 ms
intervals

If the controller detects that a periodic task trigger occurs for a


task that is already operating, a major fault occurs.

Routines
Routines are the basic unit of logic, similar to program files in
the PLC-5 and SLC.
Every routine is contained in a program. A program always
contains one routine that has to be designated the main routine
and several subroutines called from the main routine (or
another subroutine) by using the JSR instruction.
You can also define a routine in a program as the fault routine
to handle program faults. All the routines in a program can
access the data in the program's tag collection (program scope).
Those routines can also access tags defined as controller scope.
However, routines in another program cannot access the tags in
this program or call its subroutines.
In order to execute, a program must to be scheduled in a task.
However, a program can be placed in the unscheduled
programs folder in the Controller Organizer. .
A task defines when and which programs will execute. They
start to run in sequence in the order they appear in the
Controller Organizer. After that they are performed as defined
within periodic attributes. Up to 32 programs can be scheduled
in a single task, and up to 32 tasks can be configured in the
controller. A watchdog can be set in each task to trigger a
controller fault if the task runs too long. You can look at the
scan times for each task and program to see how long they take
to run.
The screen below shows the Task, programs, and routines for
PROG5_1

The Screen below shows the task properties for Task


(tskFaultRecording)

The Screen Below shows how the Main routine of a program is


assigned.

Exercise:
1. To Create a New Task, Rt Click on Tasks
2. Select New
3. Type in a name for the task such as New Task
4. Click OK
5. Rt Click on New Task to Add New Program
6. Select New
7. Type in a name for the program such as New Program
8. Click OK
9. Expand New Program to see program Tags but no
routines
10.
Rt click on Program Folder to add new Routine
11.
Select New
12.
Type in a name
13.
Click OK
14.
dbl Click on the new routine to edit ladder
15.
Enter the following Rung checking to see if
addresses are correct:

Cycle_Start
_PB
Local:1:I.Da
ta.2

Blue Light
Local
3:O:Data.3
Blue

Blue Light
Local 3:O:Data.3

16.
To Assign your Program as Main, Rt Click on
Program Properties
17.
Assign your program as Main
18.
Rt Click on Tasks
19.
Set the following Configuration Rate of 500ms
20.
Scheduled - make sure in scheduled list
21.
Download
22.
Hold in Cycle Start Button and watch Flash
23.
Now Unscheduled
24.
Rt Click on Task
25.
Program Schedule Tab
26.
Remove
27.
See in Unscheduled

Get System Values


(GSV)

OBJECTIVES:

16
Topic

Upon completion of this topic the student would be able

to:
Understand how to retrieve status of the system into Ladder logic
List the system values available
Program a GSV to get current time and date of the system
The Controller status data is not readily available in the RSLogix 5000.
There is no status file as in the PLC 5 or SLC processors.
In order to retrieve the data that is stored in objects, a Get System Value
(GSV) instruction must be used. The following is specified depending on
what you want to know.

Operand

Format

Description

Class name

name

name of object class

Instance name

name

name of specific object, when


object requires name

Attribute name

name

attribute of object data type


depends on the attribute you
select

Destination
(GSV)

SINT INT DINT destination for attribute data


REAL

GSV
To get the status of the I/O
light on the front of the
processor.
0= Off (no I/O configured)
1= Flashing Red (No I/O
running)
2= Flashing Green (at least
1 configured I/O not running
3= Solid green (I/O ok)

Examples

To See the date and


time in a readable
format.
Use a DINT [7] for
Destination
To See the Fault
Code from an Input
module.
Fault Codes listed in
Hex (16#0000_0000)
Fault Code for an
Output Module

To See the Watchdog


Timer of the
MainTask.

List of Class Name Objects:


Axis Status about servo modules
Controller to see % of CPU assigned to communications
Controller Device to see status of physical controller (Revision #, Serial
#...)
CST Coordinated System Time
DF1 access to the configured driver on the serial port
FaultLog Fault information about the controller
Message an interface to configure peer to peer communications
Module Status of a module
MotionGroup Status of a group of servo module
Program status of a program ( scan times, major/minor faults)
Routine shows routine number
SerialPort Serial port information (baudrate, databits.)
Task- Task Status( watchdog, scan times, rates)
Wallclocktime- Time

Set System Values (SSV)


This instruction uses the same format as a GSV but Write the system
values instead of reading them. Use SSV to set and GSV to monitor
system values.
SSV Example: Sets the watchdog Timer of the Main Task to 5000 ms

Exercise:
Add a new Tag called Picture of type DINT[7] in controller tags
Enter the following rung.

PLCTime[0
]

Download and monitor PLCTime in Controller Tags.


Year = PLCTime[0]
Month = PLCTime[1]
Day
= PLCTime[2]
Hour
= PLCTime[3]
Minute = PLCTime[4]
Seconds = PLCTime[5]
To change time, RT. Click on the controller and select properties.
Under the Time/date tab enter the new time and press SET.

17
Topic

Panel View
OBJECTIVES:

Upon completion of this topic the student would be able

to:

Reset a Panel View


Upload/ Download Panel View Programs
Understand how Panel View objects are configured
Format a Panel View Object

Resetting a Panel View


Troubleshooting occasionally requires resetting the panel View.
There is a reset button on the back of the panel on the upper left side. It
is recessed and a small long handled tool, like a small Allen Wrench, is
required to push the button.
When the Panel view is booting up it flashes blue screens. In the lower
right hand corner, a small white square will appear. If you Touch this
square, the Panel will boot directly to the configuration screen.
The Panel view can also be reset from the configuration screens. Access
the Config screen from specialized screen selectors in the program.
Reset can be found under communication setup.

Upload existing programs


1. Open PanelBuilder32
software
2. Select Up load from the
Upload is also found
under the file pulldown
menu
3. Click OK

4.

For
Upload
Destination,
Choose
Upload
Application to
disk and Open
in

PanelBuilder32
5.

For Transfer type, Choose RSLinx Network

6.
For Select Source, Expand the path to the Panel view.
Expand by clicking on the plus sign.
7.
8.

Click on the Panel


Then click OK (near the top)

9.

10.

A screen should appear showing the Panel uploading.

If prompted, assign a filename.

Note : Direct connection from Computer to Panel View


Requires a Null Modem serial cable ( pins 2 and 3 are crossed).

Download existing Program


1. Open
PanelBuilder32
software
2. Select Download
from the File
pulldown menu
3. For Transfer
Type, Select
RSLinx Network
4. Expand the path
to the Panel
view. Expand by
clicking on the
plus sign.
5. Click on the
Panel View
6. Click OK in the
upper right
corner.

7. You should see


the following
progress

Panel View Objects


Everything is an Object in Panel View. To add anything to a screen:
1. Click on Screen to activate Object Pulldown Menu
2. Choose what you want to add from Object Pulldown Menu
3. Draw outline of object
4. Right Click to set properties
5. Left Click to Format
Note: To Add a Screen, Rt. Click on Screens from Application Tree,
select New.
Format Objects

Format> Inner Text or


The Text Editor Toolbar will now be active. Type the text that you
want to appear on the screen i.e. Screen #1. If the Text Editor
Toolbar is not active select the text box with a left click of your
mouse and select Format on the Main the Menu Bar and select the
Inner Text from the list this will make the Text Editor Toolbar
active. Note: if you press enter key, /*R*/ code shows in Text editor
toolbar but will not appear in Text box.

Format> Inner Graphic or


The Graphic Editor will now be active
. In the toolbar select the
down arrow to open the list of predefined graphics available with
the software. If the graphic you want is not in the list select the
icon to the left of the edit bar
and the import menu will come
up. Select the import button on the dialog box and the search
your computer for .bmp files to import.
To Import from the Allen Bradley library, browse to
c:/Allen-Bradley/PanelBuilder32/Bitmap Library
Note: To Change color
1. Click on what you want to change.
2. Left Click on color from Color Toolbar to change
Foreground ( Text, lines)
3. Right Click on color to change background
Exercise
Add Text to a screen in Panel Builder.
Add Time and Date to a Screen in Panel Builder.

Panel View Alarms

18
Topic

OBJECTIVES:

Upon completion of this topic the student would be able

to:

Understand how to configure an Alarm Banner


Add an Alarm to an existing panel View program
Program a MSG instruction to Read/Write blocks of data over the
Ethernet
Overview of Alarms
Alarms provide an operator with a visual or printed notification that a
trigger value has been met or exceeded. This trigger value may be linked
through a controller to a variety of production control sensors or
monitoring programs.
Caution
Do not rely on the PanelView terminal as a primary warning device in
applications that could result in physical injury, product damage, or
significant process down time. All critical alarm indications and any
critical logic controller responses must employ redundant and hardwired / mechanical interlocks.
Alarm Banner
Defines an area on a screen in which alarm messages and controls can
be viewed and accessed by the operator.
Pops up when an alarm occurs regardless of which screen is
active.
Appears on every screen until cleared.
Only one alarm at a time.
Objects either All disabled or just ones

Alarm
Set Up Tab
1. Banner Pop Up - Choose between
a. Covered Objects Disabled - Be careful where you put
banner; think about what will be covered and disabled by
the banner.
All Objects Disabled - Must press Clear before any buttons
will work.
2. Print Items what will print if there is an alarm configured to print
3. Alarm Lists -Check if you want Lists cleared on Power up
Size determines how many alarms to keep in the list
4. Time Values - used to complete I/O scans when alarms are
triggered and to ensure the controller has time to acknowledge an
alarm (if required).
5. Remote Tags - used by the logic controller to clear or acknowledge
all alarms or to receive the alarm text for all triggered alarms.
These tags are not activated unless you select the Use Optional
Fields check box.
6.
Edit Tag button - To edit the definition of each tag

Alarm Triggers Tab


Each alarm is associated with a trigger.
Trigger tag - defines the logic controller address the terminal monitors
for an alarm trigger
value or bit.
1. Double Click on white space of Triggers Tag To get Tag Form
2. For our example, enter a Tag name of Alarm1 of type Bool and
unscheduled with the Node name.
3. Trigger Type can be Bit, LSB or Value. Select Bit for this Example.
4. To add more Triggers press the Insert Key on the keyboard or
Right click and select Insert.

Many trigger operations are performed by selecting a command on a


shortcut menu. For example, to add a trigger, right click (or press
Ctrl+M) and select Append Trigger from the menu. To edit the tag
definition for a trigger tag, select the Trigger Tag field, right-click and
select Edit Tag.
Alarm Messages Tab
For each alarm message, you can define the following attributes:
1. Alarm message (maximum of 255 characters)
2. Value or bit that triggers the alarm to appear in the Alarm Banner
or Alarm List. The logic controller writes this bit or value to the
trigger tag address. For the Bit or LSBit trigger type, you actually
enter a bit offset from the trigger tag address.
3. Trigger tag associated with the alarm (defined on the Alarm
Triggers tab)
4. ACK - whether the alarm must be acknowledged by the operator
or logic controller.
5. Print - whether the alarm is printed on occurrence when triggered
6. Displays - whether the alarm displays in the Alarm Banner when
triggered
7. Background/foreground colors of alarm text
8. Message to Remote whether to send the alarm message to the
remote device when triggered.

All PanelView terminals support a maximum of 2,000 alarms except for


the PanelView 300, 300
Micro and 550, which support 1,000 alarms.

19
Topic

Exercise:
Add Alarms for Limit Switch faults to file from previous example.

Panel View Indicators

OBJECTIVES:

Upon completion of this topic the student would be able

to:
Add a Multistate Indicator
View the different states inPanelBuilder32 software
Multistate Indicators
Multistate indicators can display up to 2,000 different states. Each state
can display a unique numeric value or graphic. States can be triggered
by a bit, least significant bit or value.
Example: To Add 2 State Indicators
1.
2.
3.
4.

From Objects menu, select Multistate or click


Draw box for object
Right click
Select properties

5. Click on the States Tab


6. Defaults to 4 states
7. Delete states 2 & 3 by highlighting whole row and pressing delete.
Note: To add one Back, press insert key on keyboard.
8. Label the first state Off in the Message Text
9. Label the second state On in the Message Text
10.
Change Colors as follows:
Object
Background
Black
White
Lt Red
11.
12.

Object
Foreground
White
White
Lt Red

Text
Background
Black
White
Lt Red

Text
Foreground
White
Chalk Blue
White

No graphic so skip
Go to Properties Tab

13.
Select Single Bit
14.
Trigger State 0 when Bit = 0
15.
Read Tag
16.
Click Edit Tag
17.
Name: CpuRunRelay Panel View
18.
Type : BOOL
RSLogix 5000
19.
Message Type: Unscheduled
20.
Node: current node name
21.
Description does not get saved in Panel View so usually skip
22.
Tag Address: CpuRunRelay must match RSLogix5000
Program
23.
Click OK.
To View States of Indicators:
Select Format>Next State
Or select from State toolbar

Note: Each State has to be formatted separately.


Exercise: Add a 2 state multistate indicator for the MEF1 Advance End Limit Switch.

Searching Tools in RSLogix


5000

20
Topic

OBJECTIVES:

Upon completion of this topic the student would be able

to:

Cross Reference tags, I/O cards,


Find Tags and Edits
Know when to Cross Reference and when to Find All

Cross Reference

Cross Reference function searches the entire project to find every


occurrence of the selected element address. Cross Reference can be
used either online or offline. Cross Reference takes you to the Rung
Number where the element is used in Ladder Logic.
To Cross Reference:
Right Click on Tag (not on instruction, but on the words), Select Cross
Reference.

With the By Logic Tab selected, Click on the ladder Instructions to go to


rung where tag is used.
With the By Tag Tab selected, Click on the tag name to go tag list.

To see which elements of an array are used, Right click on Array,


Select Cross Reference and view By Tag.

To see where I/O elements are used, RT Click and Cross Reference
from the I/O Card in the file Tree. Then click on By Tag

To Cross Reference from Input Card


With the Toyota Input Static Standard, Inputs are not addressed by the
local slot number. Too find the inputs in the program when all you know
is the slot number:
1. Rt Click on the Card under I/O configuration folder
2. Select Cross Reference
3. Select by Tag at the bottom of the cross reference window
4. Double Click on Tag to go to controller Tags
5. Select Tag by clicking on arrow in first column.
6. Rt click
7. Select Cross reference
8. Click on Rung to find static tag name
9. Rt click on static tag name in Destination of Mov or cop
instruction
10.

Click By Tag to see where used.

Find
The Find Tool takes you to the element that is being searched in Ladder
Logic.
To Find:
Click on Tag (not on instruction, but on the words), from the Search Pull
Down menu, select Find.
Steps
through
Ladder

List of all
occurrence
s.

Only works
Offline

The Find Tool can also be used from the Standard Toolbar by typing in
tag names.
Caution: Toolbar Find ONLY finds in Current Routine!

Find Next Down


Find Next Up
Find All

Folder List
Zoom In
Zoom Out

Find Edits
To Find Edits, From the search Pull Down Menu, select Find. Under
Find What choose All Edit Zones. Make sure Rung Types is checked
from Find Within.

Note: Make Sure Find Where is for All Routines in Current Program.
Find All can also be accessed from a Right Click.

Forcing in RSLogix5000

21
Topic

OBJECTIVES:

Upon completion of this topic the student would be able

to:
Force from controller tags or ladder Logic
Find Forces
Use Bookmarks for troubleshooting
Forcing in RSLogix is a two step Process
1. Install the Force
2. Enable the Force from the Online Toolbar.
Forces are installed from a right click on Local Addresses or from the
Controller Tags.

Forcing In Controller Tags

1. The Monitor Tag Tab needs to be active.


2. In the Force Mask Column, type a 1 to force on or 0 to force off.
Press Enter or click somewhere else to install the force.
3. Then Enable the Forces from the Online Toolbar.

Only I/O modules can be forced. To see which tags can be force,
From Controller Tags, Choose Can be forced from the show menu.

Note: All Forces are enabled at the same time.


On the controller, there is a force indicator. The amber Force light
Blinks when forces are installed and is solid when Forces are enabled.

To Find Forces
From the Search Pulldown Menu, Select Find. Choose All Forces, and
then click Find Next.

Note: Make Sure Find Where is set to All Routines.


Exercise:
Force the Auto Running Light ON and enable the forces.

Find the Force in the Ladder Logic.


Remove all forces.

Book Marks (Flags)


Use Flags to Mark Rungs so they can be returned to easily.

To find the Flag Tool Bar:


1. Click on the View pulldown Menu
2. Select Toolbars
3. Check Language Editor Editing,

Inserts a Flag on selected Rung


Number
Removes all Flags
To Remove 1 flag, select flag and
press DEL on your keyboard
Go to Previous Flag
Go to Next Flag
View all Book Marks

Exercise: Bookmark Rung 2. Scroll to the end of the program and book
mark the fault rung. Use the Bookmark toolbar to move between the

22
Topic

rungs.

Fault Recording
OBJECTIVES:

Upon completion of this topic the student would be able

to:

Understand how a fault recording


Implement a fault recording

The Toyota Fault Recording procedure captures the system exactly as it


was when the fault occurred. Time is frozen by replacing system
variables with saved fault values while allowing the equipment to be
reset and run.

Fault Recording Steps


After Fault occurs, if the Fault subroutine is included in the program
Reset Fault
1. Bring equipment home
2. Restart Cycle

3.
4.
5.
6.

Save
Upload Tag Values.
Go offline
Save AS a different file name
with Fault name and Date
(File>Save As)
7. Look at Fault Copy Commands (COP)
to see which tags to rename. Note Source and Dest (destination)
names are different only by the word fault.

8. Go to Controller Tags.
9. Click on Edit Tag Tab
10.
Delete Source Tag
11.
Rename Dest tag to original source tag name by deleting the
word Fault.
12.
Go to Main Ladder Logic to see system as it was when the
fault happened.
13.
DO NOT SAVE as Original File Name.
Exercise: Create a limit switch fault by pushing both the advance
and end limit switches at the same time. Do a Fault recording as
above.

Trends

23
Topic

OBJECTIVES:

Upon completion of this topic the student would be able

to:

Understand Trends as a troubleshooting tool


Create a Trend
Adjust Trend properties

Basic Trending in RSLogix 5000 allows you to view data sampled over a time period in
a graphical display for a set of up to eight data elements. Data is sampled at a periodic
rate that is configurable from 10 milliseconds to 30 minutes. RSLogix 5000 will allow
you to create a trend, configure the data elements and display attributes, and save it as
part of your project file. Basic Trending has these constraints: you can trend data
elements of type BOOL, SINT, INT, DINT, and REAL, you are limited to sampling eight
unique data elements, and you will be limited to activating data collection for one trend
at a time.
To Create a Trend:
Create a trend to graphically plot sampled data onto a chart for up to eight tags.
The trend appears in the Trends folder in Controller Organizer tree.

1. Rt Click on the Trends Folder.


2. Select New Trend

3. Enter a name for the trend and a sample period.

4. Click Next

5. Double Click on the tags you want to trend.


6. Click Finish
7. Click Run to start Trend

To Adjust Chart Properties


8. With your cursor in the chart window, right click
9. Choose Chart Properties. The RSTrendX Properties dialog appears.

10. Click on the Pens Tab

11. Click on Add/configure Tags to choose what is displayed. Tags can also be
displayed by Dragging and Dropping

12. Select Tag from List and click Add. You can have up to 8 Tags per
Trend.
13. Click OK
14. Format Tags and set properties as needed
15. Click OK

24
Topic

16. Under the Y- Axis Tag Set the custom settings as you expect the
data to range
17. Click OK
18. Click Run to start Trend. Trends can be left running, limited only
by storage space on your computer.
Exercise: Create a trend for MEF1 Advance and Return outputs

Peer to Peer Communications


OBJECTIVES:

Upon completion of this topic the student would be able

to:

Compare the properties of Networks


Configure a path to a remote Processor

The ControlLogix family of processors was designed for communications.


A complex system integrates various Inputs and Outputs over several
different communications paths.

Comparison of Communications

Ethernet
Control
Net
Device

Descriptio
n
Computer
s
For
controllers
For

Nodes

Speed

Scheduling

232

10Mb

100

5Mb

64

125k,

First INUnscheduled
Controlled
Schedule
Power &

Addresse
d
IP
Node
Node

Net

Devices
like
switches

250k,
500k

Communications
wiring

Control Net and Device Net are Open Architecture systems which means
they have open specifications.

Configuring Communications
To configure a system using these types of communications, four
software programs are used:
RS Logix 5000 for controller, I/O cards, communications cards, and
Ladder Logic.
RS Linx for communication path between computer and Rockwell
device; to set up drivers.
RS Network for Control Net to schedule network
RS Network for Device Net to map Network and commission
(address) nodes.

Example: Configure an Ethernet path in RSLogix5000


1.
2.
3.
4.

Go offline
Right click on the I/O configuration folder, select New Module
Select correct Ethernet card from list and choose major revision.
Set properties for the local Ethernet card, for example:

5. Click Finish

25
Topic

6. RT click on this Ethernet card in the I/O configuration, and select


New Module.
7. Configure the Ethernet card of the remote ControlBus using the
address of the remote location.
8. Choose a higher RPI (40 works well).
9. Click finish.
10.
Rt click on the remote Ethernet card and select new module.
11.
Configure the processor at the remote location to gain
access to the controller tags.
12.
Down load and test.

Produced and Consumed Tags


OBJECTIVES:

Upon completion of this topic the student would be able

to:
Understand properties of Produced tags
Configure a Produced Tag
Produce and consume a block of data over the Ethernet
When a tag is produced it is Broadcast on the backplane.
A consumed Tag receives the produced tag across a network
connection to the backplane.
Produced Tags must be:
Controller Tag Scope
DINT, Real, Axis, cam, counter, timer, pid, Motion_Instruction, or
UDT
Base, Alias or consumed tags
Single or Arrays
Less than 500 Byte of Data (125 Dints or Real)
Scheduled if on ControlNet; Note: The control net must be
rescheduled if a produced tag is created.

A will appear in the P column of the Controller Tags in Edit Tags if a


tag meets the requirements to be produced.

To produce a
Tag:
1. Go Offline
2. Access the Tag
properties box
by right
clicking on the
Tag or rt.
Clicking on the
controller tag
folder and
selecting NEW
TAG.
3. Select Produce
for Tag Type
4. Type in number of consumers(receivers)
5. Save and Download the file. If this is done on the Control Net you
must reschedule the network.

To Consume a
Tag:
1. Go Offline
2. Access the Tag
Properties Box
by right
clicking on the
Tag or rt.
Clicking on the
controller tag
folder and
selecting NEW
TAG.
3. Select
Consume for
Tag Type

26
Topic

4. Select the Producer from the IO List.


The Producer must be configured first.
5. Type the RPI to set the rate that the tag will be updated. Note:
The RPI must be greater than the Network Update Time (NUT) on
the ControlNet. The RPI defaults to 2 ms which is usually less
than the NUT so it must be changed.
6. The Remote Tag name must match the produce tag name exactly.
Copy and paste the tag from the producing program if possible.
7. The Data Type must be the same as the produced tag.
8. The Style sets how the tag will be displayed and can be changed
online later if needed.
9. Save and Download the file.
Note: If this is done on the Control Net you must reschedule the
network
Exercise: Produce a tag for 3 consumers. Consume a tag from one
of the other trainers. Remember to configure the producers
controller under the Ethernet first as in the previous chapter.

Messaging
OBJECTIVES:

Upon completion of this topic the student would be able

to:

Understand how to Pulse a Message


Configure a Message
Program a MSG instruction to Read/Write blocks of data over the
Ethernet

Messages Read or write blocks of data to another module on a network.


The MSG instruction in the Ladder Logic is found under the
Input/Output tab in the instruction toolbar.

Messages can be written to other 5000 controllers, PLC 5 or SLC 500.


The Data Message size is limited to 500 Bytes (125 DINTS).
The Message works once unless pulsed as above.
The Message can also be pulse by using the Enable bit of the message
on a normally closed operand.

To Configure a MSG:

1. Add the MSG instruction to the ladder Logic by typing MSG or


dragging from the Instruction Menu in the Input/Output File.
2. Type in a name for the message.
3. Rt click on the Name and select New Tag Name to get the New
Tag Box.

4. Check to make sure the tag is a Message Data type and in the
controller tags.
5. Click OK.
6. Click on the three dots in the block to the side of the Message tag
to configure the Message tag.
7. Choose a message Type:
a. CIP Table Read/Write for 5000
b. PLC5 Typed read/Write for PLC 5
c. SLC Typed Read/Write for 500 or Micrologix
8. Set the Source and Destinations remember that the Data size is
limited to 500 BYTES( 125 DINTS)
9. To set the Communications Path:
a. Pick the other module from the I/O list if configured (use
Browse button)
b. Or type in the path
i. Ethernet
EthernetCardName, 2,IPAddress of
OtherModule,1,Slot#of Other Module
Where 2 is to go out and 1 is to go in. Include the
commas.
Example: ENBT_00_09, 2,10.10.10.40, 1, 0
ii. ControlNet
CNBCardName,2,NodeAddressOfOtherModule
Where 2 is to go out and 1 is to go in. Include the
commas.
Example: CNB_00_08, 2,7
Exercise:
Configure a message to read B3 [0] from your partners trainer.

27
Topic

Device Net

OBJECTIVES:

Upon completion of this topic the student would be able

to:

Explain how DeviceNet maps the remote Device I/O to Processor


(Logix5563) Memory

Understand the topology of DeviceNet Network

Configure Device Flex I/O

RS 5000

DNB
Scanner
I/O Map

128 Words
32 bits

0
Devices I/O
Local:1:I.Dat
a[0]

124
62
Have to Set up:
Unique Node Address
Speed
# I/O

RSNetWorx for DeviceNet

***Local:7:O.CommandRegister.Run must be
set to 1 in RSLogix 5000 for outputs to run.
CommandRegister.Run Must be set to 0 in
RSLogix 5000 to avoid changing to Program
Mode when Downloading from RSNetworx for
DeviceNet ***

DeviceNet Overview
The advantages of DeviceNet network are:
Signal and the power wires are in the same cable
Made for Remote Devices
64 nodes
Open Network
I/O devices connected through scanners to processors rather than
directly to PC
Data rate and node address are user-configurable
Open Architecture
The DeviceNet specification is maintained by the Open DeviceNet
Vendor Association (ODVA), Inc. ODVA is an independent organization of
product suppliers. For more information about ODVA products and
services, visit their web site at http://www.odva.org.
Topology of a DeviceNet
The topology of a DeviceNet network can be:
a drop line configuration (devices are connected to the network by
a drop lines and network taps)
a trunk line configuration (devices are connected in a daisy chain
fashion)
or any combination of these configurations.
For example, several devices could be daisy-chained together and then
connected to the network via a network tap.
Trunk Line
Drop to Node is 20 ft Max
Has Terminating resistors on each end
Any Cable type can be used for trunk

Cables
The DeviceNet cables are available in:
3 Sizes:
Flat
Round
o Thick = 0.480-inches in diameter
o Thin = 0.270-inches in diameter
Two jacket colors:
Gray
Yellow
(Color of the cable jacket has no bearing on cable size.)
Characteristics of thick DeviceNet cable.
Function

Wire Size

Comment

Signal Pair

18 AWG

Tinned copper

Power Pair

15 AWG

Tinned copper, 8 A maximum

Drain Wire

18 AWG

Tinned copper

Characteristics of thin DeviceNet cable


Function

Wire Size

Comment

Signal Pair

24 AWG

Tinned copper

Power Pair

22 AWG

Tinned copper, 3 A maximum

Drain Wire

22 AWG

Tinned copper

Wire Colors (regardless of cable size)


Wire Color

Signal Description

Blue

CAN High

White

CAN Low

Bare

Shield

Red

+24 Volts DC

Black

Power Supply Return

Where CAN = control area network


To minimize the possibility of ground loops, the power supply return and
the shield should be connected together only at the power supply.
Physical network limitations associated with each data rate.
Cable Type

250 kbps

500 kbps

Thick trunk distribution 1640 feet maximum

125 kbps

820 feet maximum

328 feet maximum

Thin trunk distribution

328 feet maximum

328 feet maximum

328 feet maximum

Drop length

20 feet maximum

20 feet maximum

20 feet maximum

Cumulative drop length

512 feet maximum

256 feet maximum

128 feet maximum

97

Data Rate
Data transfer among devices connected to a DeviceNet network occurs
at one and only one data rate.
The data rate must be the same for all the devices connected to the
network.
The data rates available are
125 kbps (kilobits per second)
250 kbps
500 kbps
Every device on a DeviceNet network must have:
a unique node address
same data rate
Node Addressing
A DeviceNet network can have as many as 64 devices connected ranging
from 0 to 63.
Each device, or node, must have a unique address.
Although there is no advantage to be had by assigning node addresses in
any particular way, there are some rules of thumb that you can follow:
unique node address
node address 0 = DeviceNet scanner
node address 62 = personal computer that hosts the RSNetWorx
for DeviceNet

98

Device Net Bridge (DNB)


Only have to configure one card, the device net
bridge (DNB), in RSLogix 5000, unlike multiple
I/O configurations for ControlNet.
Device Commissioning
Device commissioning, or node commissioning,
is assigning:
1. a node address
2. data rate
3. Default Values:
4. node address, default address = 63
5. data rate = fastest one that the device
will support.
As long as the factory default parameters do
not conflict with those of other devices already
on the network, you can connect the new device
to the network.
Then use RSNetWorx for DeviceNet software to
edit the node address and data rate.
Do Not USE address 63 so New Devices can be
connected!
When it is not possible to do this, the device will
have to be commissioned manually:
Connect the new device directly to the
computer with RSNetWorx for DeviceNet and
Edit the node address and data rate.
Then connect the device to a network.

99

Online with DeviceNet


In RSNetworx for DeviceNet, most basic operations are done from the
Network Pulldown menu.

To Go online with the network, Select Online from the Network


pulldown menu,
Or, click on the Online symbol from the tool bar. Click OK when asked.

Node
Type

Node
Address

Make sure
graph is
selected to
see pictures
of devices.

Messages:
Remember to
check here.

100

Green
Bar if
online

Expand the File tree by clicking on the plus signs until you see the
DeviceNet.
The OK button will be grayed out until you expand far enough.

Once Online in RSNetworx for DeviceNet, Properties of any device


can be see by double clicking on the device. Choose UPLOAD when
prompted to get current values from device.

101

Adapter Device Net for Flex I/O


The Adapter Device Net (ADN) provides a communication link over DeviceNet for
Remote Input and output modules called flex I/O modules.
1794-ADN adapter status information
The 1794-ADN adapter produces one word of input data and consumes no output data.
Word 1 is a 16-bit input word is used to convey status information. The status bits are as
follows:
Bit:

Definition:

Status:

0-7

Module status (one bit per


module slot 1-8)

A bit is set when a module in a slot is missing or


has an error.

Pushwheel changed

The bit is set when the pushwheel was changed.

Run/idle

The bit is set when the channel is in Run mode.

10-15

Unused

Unused

On the Flex Configuration Settings property page, you can view the configuration data
(for example, field wiring or voltage settings) associated with a Flex module that has an
Electronic Data Sheet (EDS) file registered in the EDS library. In addition, you can also
edit this default data to indicate configuration information specific to your Flex module
and/or network implementation.
Setting up an ADN Module
To Set up an ADNSet the Node Address manually with
Switches
on the front between the lights
and the Device Net connector.
1. Open RSNetWorx for
DeviceNet
2. Connect to the network
3. Go on line with the Network
4. The ADN device should be
found
5. Right Click on the ADN device
6. Select properties
7. Click on the Module
Configuration
8. Upload

102

9. The Flex I/O modules connected


to the ADN modules should be
shown in the Module
Configuration on the left.
The hardware list on the right
shows available types.
10.

Click on the Slot 0 tab

11.
Click on properties tool
found above the Module type list

12.

Set the proper Input and

Output size.
13.
Selecting for I/O only
14.
Repeat Steps for Each Slot as needed
15.
Click OK
16.
Click apply

103

17.
Click OK, You should be asked to download the changes to
the device.

104

DeviceNet Bridge (Scanner) Properties


Set the Node Address with the button inside the door on the front
of the card. This is not a module reset button, only an address
setting tool. The front display of the cad scrolls valuable
information.
Run/Idle = displays which mode the DNB is in. The DNB will
be in run mode if the processor is in Run AND the command
register run bit is set.
Address = displays the letter A followed by the address of the
DNB, for example A #02 for address 2 on the device net
Error codes = Error Codes: Alternatively Flash Node # and
Error #
See later in this chapter for a chart of the error codes.
DNB Status Indicators

105

106

107

Scanlist - The scanlist determines which devices of all those available


on the DeviceNet network the scanner may communicate with. The
scanner itself and the host PC are not included in the scanlist, only I/O
devices.

Click here to
add to scan list

Click here to
remove from
scan list

Edit I/O Parameters - The I/O messaging parameters determine


how the scanner communicates with each I/O device that appears in
the scanlist. The parameters you specify here must match those of
each particular I/O device. Recall: 2 bytes = 1 word

108

Map the I/O in the Device Net Bridge


1. Open RSNetWorx for
DeviceNet
2. Connect to the network
3. Go on line with the
Network
4. The DNB device should
be found
5. Right Click on the DNB
device.
6. Select properties
7. Click on the Module Tab
8. Select Upload
9. Change the slot number
to the correct slot.

10. Click on the Scanlist


Tab
11. Double click on the
ADN to move the device
to the scanlist
or use the arrows
.
A single arrow moves
only the selected device.
A double arrow moves all
devices.

109

12.
Click on the Input
Tab
13. The data was
mapped in at
Local:7:O.Data[0]in
RSLogix 5000
14. To move the data,
click Unmap
15. Enter the array
number for the new
location in the Start
Dword.
16. Click Automap
17. Click Apply and
OK
18. You should be
asked to download
the changes to the
device.

Exercise:
Configure an ADN with an input module.
Map the Input date into array 4 in the DNB
Configure the DNB in RSLogix
Set Command Register run bit to 1
Local:7:O.CommandRegister.Run = 1
Add logic to set a coil from input 1 on the flex I/O
Note: Flex Input has one 16 bit word of status information that is
reported before the data.
The input data starts at bit 16.

110

111

112

113

28
Topic

Control Net

OBJECTIVES:

Upon completion of this topic the student would be able

to:

Understand the Terminology of ControlNet


Schedule a Network
Configure ControlNet Flex I/O
Produce/consume a tag on ControlNet

Control Net is a token ring network that allows repeatable data rates
and priority settings. ControlNet is explained more thoroughly in
Appendix A.
The ControlNet communications modules:
support messaging, produced/consumed tags and distributed
I/O
share a common application layer with DeviceNet and
Ethernet/IP
interface via RG-6 coaxial cable or 200/230 micron HCS (hardclad silica) fiber optic cable
require no routing tables
support the use of coax and fiber repeaters for isolation and
increased distance
A Keeper:
- tells whos turn it is to talk
- tells who has the token
- tells know when devices want to talk
Note Address
ACN_02:0:I
Points to same input as
ACN_02:I:Data[0]

114

RSNetworx for ControlNet


What does this software actually do?
Look at what is connected and how often they are talking.
Software will ask if you want to change modes, it will take every
processor out of Run mode. To put back in run mode have go to
each processor; RSNetworx will not ask you to go back to run
mode.

115

How do RPI and NUI work together?


NUT < RPI
1. RPI (Requested Packet Interval) is set in
under I/O properties
2. NUI (Network Update Interval) is set in
ControlNet under Network Properties =
Update Time).
3. RPI can be changed online; NUT is changed
network.
To See Online:
From ACN rt click, Properties, Connection Tab
AP = Actual Packet
RPI = Requested Packet Interval

RSLogix

5000

RSNetworx for
NUT (Network
by rescheduling

What does Optimizing do?


Arrange the network for the least amount of traffic for each NUI.
(Network Update Time).
What are Maximum Scheduled and Unscheduled Addresses?
Maximum Scheduled Address
This is the node with the highest network address that can use scheduled time on a
ControlNet link.
To specify and/or change the maximum scheduled node, select Network >
Properties in RSNetWorx for ControlNet.
Maximum Unscheduled Address
This is the node with the highest network address that can use unscheduled time
on a ControlNet link.
To specify and/or change the maximum unscheduled node, select Network >
Properties in RSNetWorx for ControlNet.
Nodes set at addresses higher than the maximum unscheduled node do not
communicate on the network; for example, they will not display in RSLinx.

116

Network Segment Length

Single Segment Range:


2 addresses at 1000 m to 48 addresses at 250 m
99 addresses per subnet
No complex formulas for the maximum segment length

Schedule the Network


Four

Settings to schedule Network:


NUT
Max Scheduled Address
Max Unscheduled Address
Cable Length

Overview steps to schedule Network:


1. Open RSNetworx for Control Net
2. Go Online with the network from the Network Pulldown
Menu
3. Enable Edits from the network pulldown menu
4. Change the properties of the Network listed above
5. Save the file
6. Download the file to the Network

117

Detailed Steps to Schedule Network:


1. Open RSNetWorx for Control Net
2. Click on File Pulldown menu
3. Select New to start new configuration
4. In the New File Dialog box, select ControlNet
Configuration
5. Click on OK.
6. The Network can be set up by dragging and dropping
from the Hardware list, but easier if you read the
network. Close Hardware List. (Hardware List might not
be opened).
7. Click Network Pulldown Menu, Select
Online
8. or click Online button from tool bar
9. Expand down to
Control Net on
your trainer then
click OK (if OK
button is grayed
out, keep
expanding)
Expand by
Clicking the Plus
sign.

118

10.

Network Devices should be shown as below

If get message, failed to send message. Click Retry.


Sometimes it takes several retries.
Next, Set Network Properties:
11. Enable Edits from Network pulldown menu or check
Enable Edits box in Network usage box.
12. The following message box appears. Click OK.

119

13. The Change Mode Dialog Box appears if controller is


not in program mode. Click Change Mode.

14. If get the following message, Click Retry. It may take


several retries.

15. From the Network pulldown menu, select Properties.


Schedule the network. There are four settings(see pg 97
if needed).
16.

Save to Network.

17. Verify that the yellow exclamation mark in the tree is


no longer there.

120

Exercise
This example uses Flex I/O and an Adapter Control Net.
Setup: Start with the motors program with the Input and out
puts configured
Steps:
1. Configure the CNB
a. Rt Click on I/O configuration folder.
b. Select New Module
c. Pick CNB/D from list
d. Name :CNB_00_08
e. Slot = 8
f. Leave minor revision Low so compatible
g. Click Next
h. RPI cant change controlled by Keeper
i. Click Next
j. Must be on line to see Module Info
k. Click Next
l. Must be on line to see
m. Click Finish
2. Configure ACN card under CNB in Slot 8.
1. Rt click on the CNB, select New Module
2. Type: 1794-ACN
3. Name: ACN_02
4. Node address found on front of ACN unit on
DIN Rail under PLC Rack.
5. Chassis size of 8 is fine but we really have
1.
6. Comm. Format = Rack Optimization
3. Configure Output module under ACN
7. Type 1794-OW8/A
8. Name:o08_02_01
9. Slot 0
10. Click through Options noting Fault/Idle
settings.
Note Address
ACN_02:0:O.Data.0
Points to same input as
ACN_02:0:O.Data.0

121

4. Download program and get error because not


scheduled. Rt click on CNB to see Fault on
connection Tab.
5. SAVE
6. Schedule Network as before in chapter in
RSNetworx for Control Net
11. Max Scheduled address 03
ACN
Address
12. Max Unscheduled address 04
13. 100 meters RG6 Coax cable

122

Now create a program in RSLogix 5000 to turn


on Output 0

123

Exercise:

Remote ControlNet chassis

Setup:
1. Connect two trainers together with ControlNet Cables.
2. Change one CNB Address to 5
3. Change one ACN address to 6
4. The Motors Program loaded in the controllers
1. Configure Local CNB
a. Rt Click on I/O configuration folder.
b. Select New Module
c. Pick CNB/D from list
d. Name :CNB_00_08
e. Slot = 8
f. Leave minor revision Low so compatible
g. Click Next
h. RPI cant change controlled by Keeper
i. Click Next
j. Must be on line to see Module Info
k. Click Next
l. Must be on line to see
m. Click Finish
2. Configure Remote CNB
a. Rt click on Local CNB
b. Select New Module
c. Pick 1756-CNB/D from list
d. Name: CNB_02_08
e. Node = 2 or 5 (Check front of your CNB)
f. 10 slot chassis
g. Slot 8
h. Revision keep low
i. Click Next
j. RPI = how fast to talk to Keeper = 10 ms
means network update will have to be set to less
than or equal to 10ms
k. Click Next
l. Must be on line to see Module Info
m. Click Next
n. Must be on line to see
o. Click Finish

124

3. Configure the remote Processor


a. Rt. Click on the remote CNB
b. Select new module
c. Choose L63 controller from the list
d. Choose version 13
e. Name the module your partners name_Control
(Mike_controller)
f. Select Slot 0
g. Click Finish
4. Produce a Tag
a. Create a New Tag by Rt clicking on Controller Tag
and selecting New Tag
b. Configure as follows using your real name for the
name

125

5. Consume a tag
a. Create a New Tag by Rt clicking on Controller Tag
and selecting New Tag
b. Configure as follows using your partners real name
for the name
Note: The Remote tag name must be spelled EXACTLY
the same as your partners produced tag.
Note: If we had not configured the remote cnb and
processor this list would be blank.

6. Download the program


7. Notice the I/O light flashing on the controller
8. Notice the Fault warning light on the CNB
9. Notice the fault message of control Net not scheduled
10.
Schedule the Network follow the procedures
outline previously in this chapter.
11.
Go to controller tags and type in a number in your
produced tag.
your partner should see the number in his controller tags.
12.
If you change the style of the tags to ASCHII, you
can send four letter words to each other. (32 bits in a
DINT , ASCHII code requires 8 bits per letter)

126

You might also like