Professional Documents
Culture Documents
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:
to:
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
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
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
to:
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
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:
to:
Start the RS Logix 5000 software. From the file menu select new. You
should get the screen below.
12
13
Exercise: Start a New program and configure the controller for your
4
Topic
trainer.
Configure I/O
OBJECTIVES:
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.
15
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
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
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:
to:
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
6
Topic
Local:3:O.Data.1
to:
22
22
2. Select New Tag which will bring up the new tag dialog box.
23
23
10.
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.
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
7
Topic
OBJECTIVES:
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:
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
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.
to:
29
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.
Ctrl + Home
Move to top
Ctrl + End
Move to bottom
Ctrl + Tab
Alt + Tab
Toggles between
Applications
Tab
Shift + Tab
31
open
Window
Ctrl + Page Up
F1
9
Topic
Online Edits
OBJECTIVES:
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
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:
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)
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
11
Topic
Arrays
OBJECTIVES:
to:
36
37
38
Make sure you are in the Edit Tag Mode and enter in the
following information.
39
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
12
Topic
OBJECTIVES:
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
11.
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:
to:
Memory
Cycle
Start
PB
ME F1
2
sec
2
sec
2
sec
ME
F2
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:
to:
46
Tasks
15
Topic
to:
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
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
OBJECTIVES:
16
Topic
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
Instance name
name
Attribute name
name
Destination
(GSV)
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
Exercise:
Add a new Tag called Picture of type DINT[7] in controller tags
Enter the following rung.
PLCTime[0
]
17
Topic
Panel View
OBJECTIVES:
to:
4.
For
Upload
Destination,
Choose
Upload
Application to
disk and Open
in
PanelBuilder32
5.
6.
For Select Source, Expand the path to the Panel view.
Expand by clicking on the plus sign.
7.
8.
9.
10.
18
Topic
OBJECTIVES:
to:
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
19
Topic
Exercise:
Add Alarms for Limit Switch faults to file from previous example.
OBJECTIVES:
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.
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
20
Topic
OBJECTIVES:
to:
Cross Reference
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
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!
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:
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.
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.
To Find Forces
From the Search Pulldown Menu, Select Find. Choose All Forces, and
then click Find Next.
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:
to:
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:
to:
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.
4. Click Next
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
to:
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.
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
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.
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
Messaging
OBJECTIVES:
to:
To Configure a MSG:
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:
to:
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
***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
Drain Wire
18 AWG
Tinned copper
Wire Size
Comment
Signal Pair
24 AWG
Tinned copper
Power Pair
22 AWG
Drain Wire
22 AWG
Tinned copper
Signal Description
Blue
CAN High
White
CAN Low
Bare
Shield
Red
+24 Volts DC
Black
250 kbps
500 kbps
125 kbps
Drop length
20 feet maximum
20 feet maximum
20 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
99
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.
101
Definition:
Status:
0-7
Pushwheel changed
Run/idle
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
11.
Click on properties tool
found above the Module type list
12.
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
105
106
107
Click here to
add to scan list
Click here to
remove from
scan list
108
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:
to:
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
115
RSLogix
5000
RSNetworx for
NUT (Network
by rescheduling
116
117
118
10.
119
Save to Network.
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
122
123
Exercise:
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
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.
126