Documente Academic
Documente Profesional
Documente Cultură
RSLogixt 5
Maintenance and
Troubleshooting
Student Manual
properly using, calibrating, operating, monitoring and maintaining all Products consistent with all Rockwell
Automation or third--party provided instructions, warnings, recommendations and documentation;
ensuring that only properly trained personnel use, operate and maintain the Products at all times;
staying informed of all Product updates and alerts and implementing all updates and fixes; and
all other factors affecting the Products that are outside of the direct control of Rockwell Automation.
Reproduction of the contents of the Documentation, in whole or in part, without written permission of Rockwell
Automation is prohibited.
Throughout this manual we use the following notes to make you aware of safety considerations:
Identifies information about practices or circumstances
that can cause an explosion in a hazardous environment,
which may lead to personal injury or death, property
damage, or economic loss.
Pub# GMST10-PP287A-EN-E
Optional
Understand
Maintain
4 Days
CCP412
Understand
www.rockwellautomation.com/services/training
Instructor-Led Training
4 Days
CCP410
2 Days
PLC-5/SLC 500
and RSLogix
Fundamentals
CCP122
Maintain
CCPS65
1 Day
4.5 Days
CCP409
Computer-Based
Training
4 Days
CCP411
2 Days
RSTrainer
Enterprise Edition
PLC Fundamentals
9393-RSTLINX
(9393-RSTLINXENF)
RSTrainer for
RSLinx Software
Web-Based Training
Available on Rockwell Automation University Online
9393-RSTLX5
(9393-RSTLX5ENF)
RSTrainer for
RSLogix 5 Software
CCP710
PLC-5 to ControlLogix
Transitioning
Comment Form
Email: ratps@ra.rockwell.com
or Fax:
440.646.4425
Page 1 of
Date:
Contact Information:
Name:
Company and Location:
Phone:
Email:
Page 2
Table of Contents
Introduction
Course Overview
Course Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Who Should Attend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Agenda . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Meeting Course Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Student Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Hands On Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
I
I
I
II
III
III
IV
Lessons
Identifying PLC-5 System Components
What You Will Learn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Why These Skills Are Important . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PLC-5 System Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Internal Power-Supply Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Redundant Power-Supply Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
External Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example: Enhanced PLC-5/40 Processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chassis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
I/O Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example: Discrete Input Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Signal Flow through a PLC-5 System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Distributed I/O and Network Communications Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Extended Local I/O Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example: Extended Local I/O Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
RS-232 Serial Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example: RS-232 Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Universal Remote I/O Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example: Universal Remote I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DH+ Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DeviceNet Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example: DeviceNet Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ControlNet Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example: ControlNet Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
EtherNet/IP Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1--1
1--1
1--1
1--2
1--2
1--2
1--3
1--3
1--4
1--5
1--7
1--9
1--9
1--10
1--10
1--13
1--13
1--14
1--14
1--15
1--15
1--16
1--17
1--17
1--18
1--18
1--18
ii
Table of Contents
1--19
1--19
1--20
1--21
1--23
1--26
1--28
2--1
2--1
2--1
2--2
2--2
2--6
2--6
2--7
2--7
2--9
2--11
2--13
2--14
3--1
3--1
3--1
3--3
3--4
3--7
3--8
3--9
3--11
3--12
3--14
Table of Contents
iii
4--1
4--1
4--1
4--2
4--3
4--4
4--4
4--5
4--6
4--6
4--7
4--8
4--9
4--9
4--9
4--10
4--10
4--11
4--12
4--12
4--12
4--19
4--19
4--20
4--20
4--21
4--27
4--28
4--28
4--28
4--28
5--1
5--1
5--1
5--2
5--3
5--4
5--6
5--7
iv
Table of Contents
5--11
5--12
5--14
6--1
6--1
6--1
6--2
6--2
6--3
6--3
6--4
6--4
6--4
6--5
6--5
6--6
6--6
6--6
6--6
6--7
6--11
6--12
6--12
6--13
6--14
6--14
6--14
7--1
7--1
7--1
7--1
7--2
7--2
7--3
7--3
Table of Contents
7--5
7--5
7--6
8--1
8--1
8--1
8--2
8--2
8--3
8--5
8--6
8--8
9--1
9--1
9--1
9--2
9--3
9--4
9--6
9--7
9--8
9--10
9--11
9--13
9--14
10--1
10--1
10--1
10--3
10--4
10--5
10--5
vi
Table of Contents
10--9
10--10
10--11
10--11
10--12
10--12
10--12
11--1
11--1
11--1
11--3
11--4
11--5
11--6
11--6
11--7
11--11
11--13
11--13
11--13
11--14
11--14
11--14
Integrated Practice: Searching and Interpreting Basic Ladder Logic Using RSLogix 5
Software
What You Will Learn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Why These Skills Are Important . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12--1
12--1
Exercise: Integrated Practice: Searching and Interpreting Basic Ladder Logic Using
RSLogix 5 Software
Exercise A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
How Did You Do? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12--3
12--3
12--4
13--1
13--1
13--1
Table of Contents
CMP Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
EQU Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
NEQ Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LES Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LEQ Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
GRT Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
GEQ Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
MEQ Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LIM Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Heres How . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
vii
13--2
13--2
13--3
13--3
13--4
13--4
13--5
13--5
13--6
13--7
13--13
13--14
13--14
13--14
13--16
13--16
13--16
14--1
14--1
14--1
14--2
14--2
14--3
14--4
14--5
14--6
14--7
14--8
14--8
14--9
14--13
14--15
14--16
14--16
14--18
14--18
14--19
viii
Table of Contents
15--1
15--1
15--1
15--1
15--2
15--2
15--3
15--5
15--6
15--6
15--7
15--11
15--15
15--16
15--17
15--18
15--18
15--19
16--1
16--1
16--1
16--2
16--2
16--3
16--4
16--5
16--5
16--7
16--8
16--10
17--1
17--1
Table of Contents
ix
17--1
17--1
17--2
17--3
17--3
17--4
18--1
18--1
18--1
18--2
18--3
18--4
18--6
19--1
19--1
19--1
19--2
19--3
19--5
19--5
19--6
20--1
20--1
20--1
20--1
20--2
20--2
20--2
20--3
20--4
20--4
20--4
Table of Contents
20--5
20--5
20--5
20--6
20--6
20--7
20--8
20--10
21--1
21--1
21--1
21--2
21--3
21--4
21--5
21--5
21--7
21--7
21--8
21--15
21--16
21--16
21--16
22--1
22--1
22--1
22--4
22--5
22--6
22--7
22--7
22--8
22--9
22--9
Table of Contents
xi
22--11
22--15
22--16
23--1
23--1
23--1
23--3
23--4
23--4
23--4
23--5
23--5
Exercise: Troubleshooting I/O Channel and Chassis Problems Using RSLogix 5 Software
Exercise A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
How Did You Do? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
23--7
23--11
23--12
24--1
24--1
24--1
24--2
24--2
24--3
24--3
24--3
24--4
24--4
24--5
24--5
24--7
24--9
24--10
25--1
25--1
xii
Table of Contents
25--3
25--4
25--6
Appendices
Application Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A- 1
Cable Selection for PLC-5 Processors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B- 1
Block Transfer Error Codes for Enhanced PLC-5 Processors . . . . . . . . . . . . . . . . . C- 1
Course Overview
Opening Comments:
Course Overview
Welcome students.
Give administrative details:
1. Class hours
2. Break times
3. Cafeteria information
4. Telephones
5. Restroom locations
Ask each student to share:
1. Name and title
2. Company and location
3. How they use the PLC-5 systems on
the job
4. Experience with controllers and
programming languages
Course Purpose
Stress that this course covers basic
maintenance and troubleshooting skills.
Advanced troubleshooting skills are not
covered in this course.
Prerequisites
II
Course Overview
Agenda
Course Overview
Identifying PLC--5 System Components
Getting Started with RSLogix 5 Software
Communicating with a PLC--5 Processor
Identifying Memory Layout in an RSLogix 5 Project
Day 2
70 minutes
55 minutes
45 minutes
55 minutes
60 minutes
55 minutes
60 minutes
Day 3
45 minutes
65 minutes
Logic
Interpreting and Editing Compare Instructions
Interpreting and Editing Data Manipulation Instructions
80 minutes
40 minutes
60 minutes
20 minutes
50 minutes
Day 4
40 minutes
55 minutes
90 minutes
90 minutes
90 minutes
90 minutes
65 minutes
Course Overview
III
Student Materials
Show and briefly review the course
materials.
IV
Course Overview
Hands On Exercises
Explain how the application will be used
in the course. Mention that this section
can be used as a reference for the
application during the exercises.
The paint factory uses a patented mixing process that begins with
pumping the primary colors into a mixing tank. The ingredients are
then thoroughly mixed. After mixing, the paint is loaded into
3.78-liter (1-gallon) cans, 4 or 6 cans per case, and shipped to the
retail locations for sale to customers.
A PLC-5 project file contains the ladder logic for the entire
manufacturing process, which includes sections of the paint
processing line. The paint mixing, filling, and packaging process is
shown in the following graphic:
Mixing Tank
Filling Station
Lid Installation
Inspection
Packaging Station
Palletizing Station
Lesson
1--2
PLC-5 Processor
Chassis
Power Supply
Refer students to power supply
specifications found in either the 1785
PLC-5 Programmable Controllers Quick
Reference or the PLC-5 Processors
Troubleshooting Guide (page 1-11).
Tip "
Explain that two power supplies can be
used in the same chassis to produce
more power by connecting them with a
power-supply paralleling cable
(1771-CT) via the parallel connector. If
one power supply has to shut down, the
second supply will continue to operate
until its DC output limits are exceeded.
Power Indicator
Parallel Connector for
Communication Between
a Second Power Supply
Power Switch
Fuse
Power Connection
1--3
Redundancy Cable
Connections for
Load-Sharing
Information
Power Source 1
Power Source 2
Relay Contacts
Fuse
1--4
Power Connection
Power Switch
Fuse
Voltage Selector Switch
Power Indicator
Processor
Processor: A component that controls a process or machine by
following a set of logical instructions based on information received
by its I/O system.
Mention that PLC-5 processors are
designed for large sequential and
regulatory control applications.
Point out that, unless otherwise
specified, enhanced PLC-5 processors
include Ethernet, ControlNet, protected,
and VME PLC-5 processors.
Tip "
Processor Representation
Standard (Classic)
Enhanced
Ethernetr
ControlNett
PLC-5/20C25t PLC-5/40C25t
PLC-5/60C25t PLC-5/80C25t
I/O capacity
Communications options
Refer to the 1785 PLC-5 Programmable Controllers Quick
Reference Guide for a comparison chart of PLC-5 processors.
1--5
Indicators
Keyswitch
Channel 2 (A/B)
Status Indicators
Channel 2 Extended-Local
I/O Communication Port
Channel 2
Status
Indicator
Channel 2A
Channel 2A
Communication
Port
Channel 0
On-Board
Serial Port
Channel 2B
Communication
Port
Channel 1B (A/B)
Status Indicators
Channel 1A
(DH+ Default)
Channel 1B (A/B)
Communication
Ports
Battery Holder
PLC-5/40
Processor Module
PLC-5/40L
Processor Module
1--6
Top of Processor
1--7
EEPROM Module
Memory Module
Installation Slot
Chassis
Explain the basic source and destination
functions of a 1770 I/O chassis without
covering addressing in detail.
Addressing will be covered in the
Identifying Memory Layout lesson.
Slots
Card
Guides
4-Slot
Chassis
8-Slot
Chassis
12-Slot
Chassis
16-Slot
Chassis
1--8
4-Slot
Chassis
Addressing Mode
Chassis
Backplane
Switches
The chassis backplane jumper is used to configure the system for the
type of power supply being used (internal or external). The
backplane jumper setting for an internal power supply is shown in
the following graphic:
Chassis
Backplane
Jumper
Tip "
1--9
I/O Modules
I/O Modules: Electronic plug-in units used to interface with the
input and output devices in the machine or process being controlled:
Input modules receive data from input devices and send it to the
processor.
Output modules receive data from the processor and send it to
output devices.
Briefly describe the discrete I/O
modules, highlighting the number of I/O
points, indicators, and swing arms.
The type of I/O module used will vary depending on the application,
as shown in the following table:
Type of I/O Module
Function
Digital/discrete
Pushbuttons, indicators,
photo eyes, starters
Analog
Temperature, voltage,
speed current devices
Process
Temperature, weighing
devices
Servo positioning
Specialized
Flowmeters, clutch/brake
systems
Not Used
Not Used
Not Used
Not Used
Input 00
Input 01
Input 02
Input 03
Input 04
Input 05
Input 06
Input 07
Input 10
Input 11
Input 12
Input 13
Input 14
Input 15
Input 16
Input 17
L2
A
B
C
D
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
E
Terminals A through D
are not used.
L1
Module Active
Indicator
(Green)
00 to 17 Status
Indicators (Red)
Status Indicator Lights
L2 (Common)
AC/DC Low
Actual wiring runs in this direction.
(Field Wiring Arm, 1771-WH)
E 2007 Rockwell Automation, Inc. All rights reserved.
RH1sb85r
1--10
Input
Image Table
I:000/06
Output Devices
Data Files
Output
Image Table
I:000/06
O:003/07
I:001/04
O:004/05
O:003/07
Program Files
I:000/06
O:003/07
][
I:001/04
( )
I:001/04
O:004/05
]/[
( )
O:004/05
Computer
1--11
DH+t network
DeviceNett network
ControlNet network
EtherNet/IPt network
The following terms are associated with distributed I/O and network
communications:
Network: A series of stations (nodes) physically connected
together.
information.
Link: The path or physical means established for transmitting
data between two or more locations.
Modem: A device that connects data terminal equipment to a
communication line (modulator/demodulator).
Tip "
equal to the number of signal events per second (bits per second).
1--12
Status Indicators
1771-ASB Remote
I/O Adapter Module
Cable Connector
Tip "
1--13
Speed is critical.
Local I/O
PLC-5/40L
Processor
1771-ALX
Extended
Local I/O
Adapter
Module
1--14
Tip "
Computer
RS-232 Serial Port
1--15
1771-ASB
Remote I/O
Adapter
PanelViewt
Terminal
Remote I/O
57.6 kbit/s
115.2 kbit/s
230.4 kbit/s
1--16
DH+ Network
Mention that a DH+ network can be
used for data transfer to other PLC-5
processors or high-level computers and
as a link for programming multiple
PLC-5 processors.
Node 76
Node 77
PLC-5/40
Processor
Node 5
57.6 kbit/s
115.2 kbit/s
230.4 kbit/s
1--17
DeviceNet Network
Mention that a DeviceNet network is a
flexible, open network that works with
devices from multiple vendors.
Allows up to 64 nodes
Has a maximum cable trunk length of 500 m (1,640 ft)
at 125 kbit/s
PLC-5/40 Processor
1771-SDN/B
Scanner
Module
DeviceNet Network
RediSTATIONt
Operator Interface
Photoelectric Sensors
RS- 232
Cable
125 kbit/s
250 kbit/s
500 kbit/s
1--18
ControlNet Network
Point out that a ControlNet network is
well-suited for applications that include
high-speed digital I/O and/or remote
analog I/O.
Allows up to 99 nodes
Allows data transfer distances of up to 30 km (18.6 miles) using
fiber optic media
PLC-5/80C15 Processor
PanelView
Terminal
1336 PLUS II
AC Drive
ControlNet
Network
Segment
1786-RG6
Cable
1747-ACN15 ControlNet
1746 I/O Adapter
PLC-5/40C15 Processor
EtherNet/IP Network
Note that EtherNet/IP is an open
industrial network that emerged due to
the high demand for using the Ethernet
for control applications.
1--19
EtherNet/IP
Network
10BaseT Cable
Ethernet
Switch
RJ45 Connector
PanelView Terminal
To Next
Ethernet
Switch
Heres How
Review the main components and
functions of the PLC-5 system.
Demonstrate how to remove modules
from the chassis.
Use the graphic or a workstation to
demonstrate signal flow through the
system.
PLC-5/40E Processor
1--20
Example
PLC-5
Processor
Communications
System
Power Supply
Input Module
Output Module
Example
1--21
PLC-5
Processor 1
Channel
Configured
as Remote I/O
Scanner
Slave to Processor 1
Slave to Processor 1
Channel
Configured as
Remote I/O
Adapter
Channel
Configured
as Remote I/O
Scanner
Channel
Configured as
Remote I/O
Adapter
PLC-5 Processor 3
Secondary Chassis to
Processor 3
PLC-5 Processor 2
Remote I/O
Adapter
Module
1--22
1--23
2. Raise the latch holding the PLC-5 processor in the chassis and
slide the processor out of its slot.
3. Write down the processor type (e.g., PLC-5/40E):
1--24
10. Replace all components that you have removed and reapply
power.
11. Define the function(s) for each component:
A. Power supply:
B. Processor:
C. Chassis:
D. I/O modules:
12. Describe signal flow through the system using the the following
graphic and the corresponding letters:
A. Place the letters in sequential order to represent the sequence
of signal flow if input A is a pushbutton that, when pressed,
controls output device H.
Programming System
G
C
Communications
System
1--25
Power Supply
Processor
Input Module
Output Module
Information to
Output Devices
Chassis
Remote I/O
Adapter Module
I/O
I/O
I/O
I/O
Remote I/O
Adapter Module
Remote I/O
Adapter Module
Chassis
Chassis
Chassis
Serial Link
14. In the spaces that follow, write the name of the network that is
best suited to meet the application requirements described:
A. The application requires the connection of low-level devices
directly to plant-floor controllers over an open network
without the need to interface them through I/O modules.
1--26
1--27
1--28
Answers
Exercise A
11.
A. The power supply provides power to the chassis and the I/O
modules.
B. The processor acts as the brain of the system and provides
memory capacity for the data and program files.
C. The 1771 chassis houses the processor, the power supply, and
I/O modules
D. Input modules receive data from input devices and send that
data to the processor. Output modules receive data from the
processor and send it to output devices.
12.
A. The signal flow starts when the pushbutton (A) is pressed.
Then the signal continues to input module (B), to the PLC-5
processor (C), to the output module (F) and finally to the
output device (H).
B. Nothing would happen, as the computer and communications
system have nothing to do with the signal flow between the
processor and the I/O components.
13. The PLC-5 system configuration is labeled as follows:
Local
PLC-5 Processor
Resident I/O
Remote
I/O
Chassis
Remote
I/O
Remote I/O
Adapter Module
I/O
Remote I/O
Adapter Module
Remote I/O
Chassis
Remote I/O
Chassis
Remote
Remote I/O
Adapter Module
I/O
14.
A. A DeviceNet network provides the connection of low-level
devices directly to plant-floor controllers over an open
network without the need to interface them through I/O
modules.
B. An EtherNet/IP network provides a local area network for
communications between devices at 10 Mbit/s.
Lesson
After completing this lesson, you should be able to get started with
RSLogix 5 software by performing the following tasks:
Open an RSLogix 5 project
Navigate through the RSLogix 5 software
2--2
RSLogix 5 Project
RSLogix 5 Project: The complete set of files associated with ladder
logic for the purpose of controlling a machine or process.
Stress that detailed information
concerning program files, data table
files, and database files will be covered
in later lessons.
PLC-5
Instruction
Toolbar
Project Window
Project Tree
Ladder Window
2--3
Standard Toolbar: The toolbar that contains icons for the functions
used repeatedly in developing and testing ladder logic.
The following graphic shows a standard toolbar:
Active Network
Instruction Mnemonics
Instruction Category
2--4
Processor Files
Database Files
Copy files
Open files
Rename files
Tip "
2--5
Ladder Window: The window that contains any open program files.
Program files contain the following information:
User-defined ladder logic
Mention that documenting a project will
be discussed in detail in the
Documenting an RSLogix 5 Project
lesson.
Ladder
Window
Documentation
Ladder
Logic
Rung
Open
Program
File
Tip "
2--6
Display Configuration
Indicate to the students that some color
selections, such as white text against a
white background, should be avoided.
Option Tabs
Selection Boxes
2--7
Revision Notes
Point out that revision notes can be a
valuable tool when troubleshooting a
project.
Revision Note
Program Backup
Settings
Enable
Secondary
Save Option
Secondary
Save Path
2--8
Secondary Save Option: Enable this checkbox to have the file also
saved to a secondary location specified in the Secondary Save Path
field each time you save the file.
Mention that a compressed backup file
includes the .RSP and all database files
for a particular project.
Compressed
Backup File
Auto-Backup
Files
File Type
Heres How
Demonstrate each of these tasks offline
with the CCP412_1785r_DEM1.rsp
project:
1. Point out the processor and
database files in the project tree.
2. Open multiple program files.
" To open a program file in a separate
window, in the project tree, right-click
the file and select New Window.
3. Maximize, restore, and size
windows, and then return windows
to the default size and orientation.
" To return the windows to the default
settings, from the Windows menu,
select Arrange...
2--9
2--10
2--11
Tip "
2--12
8. Display the View Properties dialog box, then use the Comments
Display tab to set the following options:
9. Select the Address Display tab of the View Properties dialog box
to set the following options:
10. Change the text and background colors for several ladder logic
elements and then return the display to the default colors.
11. In the System Options dialog box, perform the following actions:
A. Verify that the prompt for revision note option is selected.
E 2007 Rockwell Automation, Inc. All rights reserved.
2--13
2--14
Answers
Exercise A
5. The split bar can be accessed as shown in the following
graphic:
Step A
Step C
Step B
Your
number
of
backups
may be
different
than
shown
here.
Lesson
3--2
Computer
Online
Computer
PLC-5 Processor
Computer
Tip "
PLC-5 Processor
3--3
Database Files
Processor Files
3--4
Active DH+
Network
Previously
Recognized
Devices
3--5
Drop-Down Menu
A PLC-5 Processor
Currently Connected
to the DH+ Network
(Node 50)
Tip "
3--6
Driver To Be
Added
Display of
Drivers
Currently
Configured
for Use with
RSLinx and
the Status of
Each
Property
Specifications
Refer to the
notes section
for information
on each
property.
Select a
property and
edit it in the
value list.
3--7
Tip "
DH+ Selection
3--8
Processor Modes
The extent and type of communications that can occur between a
computer and a PLC-5 are dependent on the mode of the processor.
PLC-5 processors have three basic modes:
Run
Program
Remote
Review where the keyswitch is on the
processor using a workstation, then
demonstrate changing the processor
mode using the keyswitch.
Point out the processor LED, which
gives a quick visual indication of the
processor mode.
Point out that in Remote mode,
processor modes can be switched using
RSLogix 5 software.
Program
Function
Run mode is used to run a project to
control a process or machine.
Remote
WARNING!
Heres How
Demonstrate the following tasks:
1. Upload the
CCP412_1785r_DEM1.rsp project
and go online.
2. Configure a DH+ communications
driver in RSLinx software.
3. Go offline, make a few edits and
then download the program.
4. Change the processor operating
mode.
5. Save the project.
3--9
Upload a project
Go online to a PLC-5 processor
Configure a DH+t communications driver in RSLinxt software
Configure a channel for DH+ communications
Select and change the processor operating mode
3--10
3--11
3--12
3--13
3--14
Answers
Exercise A
2. Use the following guidelines to determine if you connected
your system correctly:
-- If you are using an RS-232 serial port, use cat. no. 1784-CP10
-- Otherwise, use the following table to select an appropriate
cable:
If you have
this processor . . .
PLC-5/10t, -5/12t,
-5/15t, -5/25t
PLC-5/11t, -5/20t,
-5/26t, -5/30t, -5/40t,
-5/46t, -5/40Lt, -5/60t,
-5/60Lt, -5/80t, -5/86t
1784-KTK1
1784-PCMK
1784-KTX, -KTXD
PLC-5/20Ct, -40Ct,
-80Ct
1784-KTC, -KTCX
Lesson
...
...
...
...
999
Program
Files
999
Data
Files
4--2
Program Files
Mention that some PLC-5 processors,
such as series E, allow up to 2000
program files.
Program Files
4--3
Data Files
Explain that all of the data a PLC-5
processor examines or changes is
stored in the data files.
Data files contain the status information associated with I/O and all
other instructions used in the main and subroutine ladder logic
program files. Data files are located in the Data Files folder of the
RSLogix 5 project tree, as shown in the following graphic:
Data Files
File R6 stores the length, pointer position, and status bits for
4--4
File Type
N 9 : 2/5
Give some examples of the mnemonics
used in counter and control files (e.g.,
.PRE, .ACC, .POS, etc.).
Element Number
(0- 999)
Word
Address
File Type
T 14 : 2 . PRE
4--5
Tip "
I : 0 1 4 / 12
4--6
The addressing mode for each I/O chassis is defined by setting the
chassis backplane DIP (dual inline package) switch assembly.
Tip "
I/O Groups
8 Bits
Input
8 Bits
Output
R2
G 0G G 0 G
4--7
I/O Rack 2
I/O Groups 0
I/O Rack 3
5
R2
G 0G
G 1G
If a chassis has more than eight I/O groups (as in the above example)
and therefore more than one I/O rack, then the following actions
should be taken:
1. Increment the I/O rack number.
2. Reset the I/O group number to 0 (zero).
3. Continue numbering with the new I/O rack number.
4--8
I/O Groups
I/O Rack 3
I/O Rack 4
I/O Rack 5
0/1 2/3 4/5 6/7 0/1 2/3 4/5 6/7 0/1 2/3 4/5 6/7 0/1 2/3 4/5 6/7
R2
G 0G 1 G 2G 3
If a chassis has more than eight I/O groups (as in the above example)
and therefore more than one I/O rack, then the following actions
should be taken:
1. Increment the I/O rack number.
2. Reset the I/O group number to 0 (zero).
3. Continue numbering with the new I/O rack number.
4--9
Input Module
I/O Rack 1
I/O Group 4
Input Device
Word in Input
Image Table
12
I:014/12
Output
Device
Word in Output
Image Table
7
O:015/7
4--10
Tip "
Electrical drawings
I/O module labels
DIP switch settings
When determining I/O addressing from DIP switch settings, refer to
either of these publications: PLC-5 Processors Troubleshooting
Guide for Use with RSLogix 5t Software or 1785 PLC-5
Programmable Controllers Quick Reference.
Example: I/O Module Labels
G G
I/O Group
Number
Written Here
G G
Solenoid
A
0
1
2
3
4
5
6
7
B
A
10
11
12
13
14
15
16
17
B
R5
G 2G
G 2G
Color in Square
Indicates Terminal
Numbers Used
Label with I/O Rack, I/O Group,
and Terminals Identified
From inspecting the module and module label, the I/O address is
O:052/10.
4--11
Module
Type
Pressed in at Bottom:
Open (off)
Input
T erminals
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
Input
T erminals
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
4--12
Heres How
From the project tree, review the
processor memory division.
Refer students to the Addressing tab of
the 1785 PLC-5 Programmable
Controllers Quick Reference.
Heres How
Example
For the PLC-5 logical address,
demonstrate how the address can be
written, given the necessary information.
Point out the delimiters and the
sequence of the address.
Bit Number
(0- 15)
B 15 : 3 / 2
Heres How
4--13
Example
Answer: O:013/11
A
0
1
2
3
4
5
6
7
B
A
10
11
12
13
14
15
16
17
B
Solenoid
4--14
Example
Answer: I:054/13
Example
Answer: I:054/17
4--15
4--16
Example
From inspecting the module and chassis and from determining the
DIP switch settings, the following information is obtained:
The I/O rack number is 13.
The first I/O group number is 0, so the I/O group number is 5.
example?
Answer: I:145/15
Pressed in at Bottom:
Open (off)
Input Terminals
Input Terminals
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
Example
4--17
Answer: I:061/17
From inspecting the module and chassis and from determining the
DIP switch settings, the following information is obtained:
The I/O rack number is 6.
The I/O group number is 1.
Pressed in at Bottom:
Open (off)
A
0
1
2
3
4
5
6
7
B
A
0
1
2
3
4
5
6
7
B
4--18
4--19
Tip "
Data File Type
_______ 1. C -- Counter
There may be more than one data file usage for each data file type.
_______ 2. N -- Integer
_______ 3. B -- Binary
_______ 5. T -- Timer
4--20
Exercise B
Tip "
Exercise C
4--21
R7
G4 G
A
0
1
2
3
4
5
6
7
B
A
0
1
2
3
4
5
6
7
B
G4 G
Motor
4--22
2. Address = ____________________
R 11
G2 G
A
B
C
D
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
E
A
B
C
D
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
E
G3 G
Solenoid
4--23
3. Address = ____________________
Chassis Backplane DIP Switch
Pressed in at Top:
Closed (on)
Pressed in at Bottom:
Open (off)
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
4--24
4. Address = ____________________
Addressing Mode
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
Pilot Light
4--25
5. Address = ____________________
Chassis Backplane DIP Switch
Pressed in at Top:
Closed (on)
Pressed in at Bottom:
Open (off)
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
Solenoid
4--26
6. Address = ____________________
Chassis Backplane DIP Switch
Pressed in at Top:
Closed (on)
Pressed in at Bottom
Open (off)
A
0
1
2
3
4
5
6
7
B
A
0
1
2
3
4
5
6
7
B
4--27
7. Address = ____________________
Chassis Backplane DIP Switch
Pressed in at Top:
Closed (on)
Pressed in at Bottom:
Open (off)
4--28
Answers
Exercise A
1. D, I, J
2. C, J
3. B, E, J
4. A, G, J
5. F, H, J
Exercise B
1. B3:2/5
2. N7:4/9
3. N9:2
4. The file type is floating point and the file number is 8.
5. The file type is timer and the file number is 4.
Exercise C
1. O:074/15 or O:74/15. The output is wired to terminal 15 of an
output module in I/O group number 4 of I/O rack 7.
2. O:112/07 or O:112/7. The output is wired to terminal 7 of an
output module in I/O group number 2 of I/O rack 11.
3. I:133/01 or I:133/1. One-slot addressing is indicated from the
chassis backplane switch. The 1771-ASB module switch
indicates that the I/O rack is 13 and the starting I/O group
number is 0.
4. O:013/12 or O:13/12. One-slot addressing is indicated from the
Status file; therefore, the I/O rack is 1 and the I/O group for the
output module is 3.
5. O:045/15 or O:45/15. One-slot addressing is indicated from the
chassis backplane switch. The 1771-ASB module switch
indicates that the I/O rack is 4 and the starting I/O group
number is 4.
6. I:062/03 or I:62/3. Two-slot addressing is indicated from the
chassis backplane switch. The 1771-ASB module switch
indicates that the I/O rack is 6 and the starting I/O group
number is 0.
7. I:164/17. Half-slot addressing is indicated from the chassis
backplane switch. The 1771-ASB module switch indicates that
the I/O rack is 16 and the starting I/O group number is 0. The
module label indicates that terminal 18 functions as input 17.
E 2007 Rockwell Automation, Inc. All rights reserved.
Lesson
File Type
File Number
(Reserved)
Data Stored
O--Output
I--Input
S--Status
B--Binary
T--Timer
C--Counter
R--Control
N--Integer
F--Floating Point*
A--ASCII*
ST--ASCII Strings*
D--BCD*
None
Alphanumeric characters
Binary coded decimal
5--2
Processor Status
Point out that the type of processor used
in your application will affect what can be
viewed and written to in the Processor
Status file.
The Processor Status file monitors the operating system and allows
for new status parameters to be entered. The Processor Status file can
be used to accomplish the following actions:
Monitor communications channels
Control loading memory from memory modules
Read/Write Field
I/O Status
From the Main status tab, information can be gathered on how the
operating system works. An I/O status file can be used to store the
reset and fault bits for each remote I/O rack.
Interrogate the Errors tab of the status file when the processor faults
to determine the cause of the error:
Errors Tab
Watchdog Timer
Error Code
Information
5--3
Examples:
Bar codes are typically in the binary
radix.
We usually count in the decimal system.
Computer memory addresses use
hexadecimal.
Available Characters
Example
Binary
0 or 1
Octal
0 to 7
1735
Decimal
0 to 9
989
Hexadecimal
0 to F
3DD
0 to 9
8739
ASCII
\03\DD
Radix
Radix
5--4
5--5
Addressing Information
Descriptive Information
for Specific I/O Module
5--6
A CDM is a list of bit and word addresses within a project. The list
can be used as a central reference for values and descriptions of the
entered addresses.
The following specifications apply to a CDM:
CDM lists can contain bit addresses, element addresses, and
sub-element addresses.
CDM lists can contain ASCII comments to help clarify bit
listings. (ASCII comments are shown in yellow in the CDM list.)
ASCII Comment
Heres How
Demonstrate the following actions:
1. Open the Processor Status file (Data
File S2 -- STATUS).
5--7
Heres How
Demonstrate the following procedures:
1. Go online to the
CCP412_1785r_DEM1.rsp project.
Example
Demonstrate the following actions:
1. Display the Input image file and the
Output image file dialog boxes.
2. Turn on pushbutton 16, which
latches on light 17, and correlate the
change in data values in the image
files.
3. Turn on pushbutton 17, which
unlatches light 17, and correlate the
change in data values in the image
files.
5--8
Example
Demonstrate the following actions:
1. Determine the address of analog
input 1.
2. In RSLogix 5 software, display the
Input data file in the decimal radix.
3. Turn the input and point out the
change in data.
4. Repeat for analog output 1. The
output can be varied using analog
input 1.
The data table address for the potentiometer is N24:4; the data
5--9
5--10
Heres How
Demonstrate the following actions:
Heres How
To demonstrate:
1. Explain that this procedure will work
only if the programmer of the project
has documented the relevant I/O
module.
5--11
In this exercise, you will practice monitoring and entering data using
RSLogix 5 software.
Context:
A PLC-5 processor is showing a fault at powerup. You have the
responsibility to determine the processor status and to clear the error.
In addition, you must change the presets on some timers and
counters and create a CDM that will provide easy monitoring of the
data.
Finally, you have noticed an I/O point that you suspect is faulty. You
feel that, while the system is down, this is a good time to verify that
the signal from the device is being detected by the processor.
For help performing steps in this exercise, see the associated job
aid(s).
Directions:
1. Open the MON_1785r_A1.rsp project.
2. Download the project to the PLC-5 processor
3. Go online to the PLC-5 processor, and set the PLC-5 processor in
Run mode.
4. Examine the processor status file:
A. Which tab of the processor status file presents information
about DH+ Station number and addressing mode?
C. Under the Errors tab, what value is given for the watchdog
set point?
5--12
5. Within the appropriate data files, change the following timer and
counter presets to the values specified in the table:
Timer/Counter
Preset
T4:0
200
T4:2
400
T4:4
200
C5:3
300
6. Close the data files and verify that any two of the changes you
made appear in the instructions of the ladder logic program.
7. Create a CDM named Timer/Counter Edits that includes all of the
timer and counter addresses that appear in the above table.
Tip "
5--13
5--14
Answers
Exercise A
4. After examining the processor status file, you should see the
following results:
A. The Switches tab of the processor status file presents
information about DH+ Station number and addressing
mode.
B. The Errors tab presents information about faults and major
errors.
C. The watchdog set point is set at 500 ms.
11. After entering a description in the CDM, you should notice the
change in the ladder logic:
Lesson
Input Scan:
Input modules are read.
Logic Scan:
Program file 2 is executed.
Output Scan:
Output data is sent to
output modules.
6--2
executed.
Editing programs while online affects housekeeping times.
Rung size and the number of branches also can cause scan time to
fluctuate.
Ladder Logic
Instructions
Branches
Rungs
Point out that although ladder logic looks
like an electrical diagram, it depicts the
flow of logic not electricity.
0000
0001
0002
6--3
Input Instructions
Output Instructions
A rung does not need to contain any input instructions, but it must
contain at least one output instruction.
Input instructions examine the state of data in the data files.
Because of this, it is possible to use the same piece of data
multiple times in one program. Thus, the state of one input device
may affect several outputs.
Tip "
If there is a path of true input instructions, the rung is true and the
output occurs.
Last Rung Wins
6--4
( )
] [
] [
Tip "
] [
] [
( )
AND logic is used when all conditions that make the rung true are on
the same level in a side-by-side series.
Branches
Branches are used in ladder logic to create different paths that direct
the reading of the conditional inputs and outputs, as shown in the
following graphic:
Branch
Parallel Branch
] [
] [
] [
] [
] [
] [
] [
Mention that OR logic is used when
more than one condition can make a
rung true.
Nested Branch
] [
] [
] [
] [
A parallel branch has the same start and same end point as the
branch it is below.
A nested branch starts and ends inside the same branch
(maximum of 4 nested branches).
Tip "
E 2007 Rockwell Automation, Inc. All rights reserved.
OR logic is used when any one of the conditions that may make the
rung true are on separate branches of a rung.
Rev. February 2007
BI1sb85r
6--5
] [
] [
( )
] [
Tip "
Logic Continuity
As the processor scans a rung, it looks at each input instruction to
determine which are true and which are false:
If there is . . .
Logic Continuity
No Logic Continuity
6--6
Bit Instructions
Function
Name
Mnemonic
Symbol
Examine If Closed
XIC
] [
Examine If Open
XIO
]/[
One-Shot
ONS
[ONS]
Mnemonic
Symbol
OTE
( )
Function
If the rung is true, turns on a bit.
When the rung goes false or a
power cycle occurs, the bit turns
off.
Output Latch
Output Unlatch
Mnemonic
OTL
OTU
Symbol
Function
(L)
(U)
Heres How
Demonstrate the following procedures:
1. Go online to the
CCP412_1785r_DEM1.rsp project.
2. To activate program file 3, in N10:0,
enter a 3.
6--7
Example
Go online with the
CCP412_1785r_DEM1.rsp, project, and
display rung 0. Discuss the behavior of
the two instructions.
Example
In the CCP412_1785r_DEM1.rsp
project display rung 1. Discuss the
behavior of the two instructions.
6--8
Example
Display rung 2 and discuss logical
continuity in regard to an OTE on a rung
by itself.
Example
Add an ONS instruction to a rung.
Discuss the effect this has on the rung.
Make the XIC instruction in the rung a
pushbutton to show a common
application.
Example
Go to rungs 3 and 4 and review the OTL
and OTU instructions.
Point out that OTL and OTU instructions
typically do not control real-world
devices.
Because of the Last Rung Wins rule, if both I:002/1 and I:002/4
are 1, O:003/3 is 0.
Example
Go to rung 7 and review the seal-in
logic.
Example
In the CCP412_1785r_DEM1.rsp
project, go to rung 8 and review the
branching, the AND and OR logic, and
the different instructions.
6--9
Interpreting Branching
The following graphic shows an example of how branching can be
used. In this example, note the following conditions:
When rung 8 is true, O:003/15, and O:003/7 are set to 1.
6--10
6--11
6--12
Exercise B
Tip "
2. If rung 1 goes true, what will happen to the output B3:0/0 when
input I:002/04 is allowed to go false and all other conditions
remain true?
6--13
6--14
Answers
Exercise A
1. O:003/10 will be true (on) when I:002/11 is on and I:002/00 is
off.
2. No. I:002/00 is off for O:003/10 and I:002/00 is on for
O:003/12.
3. Using O:003/12 on the input side of rung 2 demonstrates the
ability to examine the output of one rung in order to control
another rung of logic.
Tip "
Exercise B
1. Rung 1 -- output B3/0 will be true (on) when I:002/04 and
I:002/07 are on and O:003/16 is off.
2. Output B3/0 will remain on.
3. Input instruction B3/0 is being used as a holding (seal-in)
contact.
4. MACHINE_RUN must be off and MANUAL_LOAD must be
closed.
5. Either MACHINE_RUN has to turn on and then off, or
MANUAL_LOAD must open and then close.
6. No, input I:002/10 is examined off for rung 31 and examined on
for rung 32.
Lesson
After completing this lesson, you should be able to edit ladder logic
by performing the following tasks:
Enter and edit ladder logic instructions
Verify ladder logic
7--2
Safety Precaution
Entering and editing ladder logic while online can cause dangerous
situations:
Use extreme caution when entering or editing
ladder logic or data, forcing I/O bits, toggling I/O
bits, or making other changes online that will affect
the control of devices. Mistakes can cause
unintended machine motion or loss of process
control, injuring personnel and damaging
equipment. Before performing procedures online,
complete these safety precautions:
Determine if the changes must be made online.
Verify that your company permits online entering
and editing.
Assess how machinery will respond to changes.
Check the proposed changes for accuracy.
Notify all personnel of the changes.
Verify that you are online to the correct processor.
Tip "
Entering or editing
7--3
After ladder logic has been entered or edited, the edits can be
validated using the verification process in RSLogix 5 software. In
this process, RSLogix 5 software identifies any of the following
entry errors:
Improper instruction placement
Improper or incomplete addressing
Empty rungs
Shorted branches
Parsed symbols
A program that contains errors will not download.
Heres How
Demonstrate the following procedures:
Offline
Make edits
Verify
Save
1. Open CCP412_1785r_DEM1.rsp
project offline.
7--4
7--5
7--6
Answers
Exercise A
After completing the edits, the ladder logic should appear as shown
in the following graphic:
Lesson
Documentation Options
Page Title
Rung Comment
Address
Description or
Instruction
Comment Area
Symbol
(Address Symbol)
8--2
Then enter a . . .
Page title
Rung comment
Address description
Instruction comment
Symbol
Tip "
Tip "
Example: Symbol
In the following example, an instruction is labeled with an
address and a symbol of not more than 20 characters:
Mention that symbol names are
determined subjectively. There are no
right or wrong choices.
Symbol
PUSH_BUTTON_5
I:003/3
] [
Address
( )
Address/Symbol Editor
Addresses and symbols can be created, assigned, and edited by using
the Address/Symbol Editor dialog box located in the Database folder
of the Project tree.
8--3
Tip "
Heres How
8--4
8--5
Exercise: Documenting an
RSLogix 5 Project
Exercise A
Tip "
Page Title
2:5
2:29
2:33
PALLET SECTION
Rung Comment
2:26
2:27
2:32
Address
Description
2:26
T4:6
2:30
C5:1
Reject CTR
8--6
Address
Instruction
2:13
N16:0
EQU
Recipe Transfer
2:29
C5:1/DN
XIO
Reject Counter
Comment
Address
2:15
B3:0/0
COLOR_DONE
2:24
B3:0/3
MACHINE_RUN
2:29
I:002/10
CAN_FULL
Symbol
Description
C5:1
Counts Rejects
I:002/6
Reject
8--7
8--8
Answers
Exercise A
7. After you edit the description of the instruction in the
Address/Symbol Editor, you will see the change take effect in
the ladder logic:
Repeat for
I:002/6
Lesson
Search Options
To:
Find
Replace
Advanced Diagnostics
Go To
Right-click an address or
symbol in the Ladder window
E 2007 Rockwell Automation, Inc. All rights reserved.
SL1sb85r
9--2
Find Options
Tip "
A quick search for a symbol can be performed by typing the first few
characters of a symbol in the Find What text box.
The following options and buttons are used with the Find dialog box:
Find: Used to enter or select the address, symbol, or instruction
for which you are searching.
Rung Zones: Used to to search for edit zones within the ladder
logic.
Scope: Used to specify the search parameters, either globally or
locally within the project.
Direction: Used to specify the search direction within the ladder
logic.
Wrap: Used to wrap from the search point to the beginning of
the file and back to the search point.
9--3
Replace
Options
Tip "
Mention that additional information on
replace search options can be found
using online Help.
9--4
Specific rung
The following example shows the three levels of the Advanced
Diagnostic window:
Page Title
Target Rung
Program File To
Be Selected
Tip "
9--5
Project Tree
This feature allows you to select a page title from the advanced
diagnostic list and go directly to that rung in the ladder logic.
9--6
Go To Search Option
Explain that this search option is useful
in searching the data files.
Search Options
Example Text
Tip "
Program file
Data file
A cross-reference report
Cross-reference
Address/Symbol
9--7
Cross-Reference Report
Explain that this search option is useful
in searching the data files.
Access to Cross-Reference
from Project Tree
Tip "
Rev. February 2007
9--8
With the Cross Reference Display option, you can set the display
attributes of the ladder logic window to show inputs and outputs with
their related cross reference information directly under the
instruction:
The Display Output Cross Reference for Inputs on Rung check
box will show you the file and rung location of any outputs using
the input address.
The Display Cross Reference for Outputs on Rung will show you
wherever the output addresses occur on the rungs in your
program.
9--9
The logic trace arrows on the toolbar allow you to move through
ladder logic history:
Your navigation history is built as you move your cursor through the
ladder logic. When no back or forward history is available, the logic
trace arrows are disabled (grayed out).
9--10
When you click the left arrow, the cursor will move to the previous
location in the navigation history. Once you have moved backward in
the navigation history, clicking the right arrow will move the cursor
forward through your navigation history.
You can also move through the navigation history using the logic
trace arrow drop-down menus:
Clicking
Tip "
Heres How
Demonstrate the following procedures:
1. Open the
CCP412_1785r_DEM1.rsp project
and select the search button from
the menu bar.
2. Use the Find option and search for
instructions, addresses, symbols,
and rungs.
3. Use the Replace option and search
for and replace instructions,
addresses, and symbols.
9--11
9--12
Directions:
1. Open the SL1_1785r_A1.rsp project and go online.
2. Search using the Find Next feature to list all the occurrences of
the following instructions, symbols, or addresses.
Mnemonic and/or Address
Example: O:003/12
WHITE_COLOR
BTD
B3:0/3
O:003/16
O:003/10
3. Search using the Find All feature to verify your answers to step 2.
4. Offline, search for and replace the following addresses:
Find Address
Replace Address
I:002/2
I:002/12
I:002/3
I:002/13
9--13
9. Trace the output cross references for inputs on rung in file Lad 2
and fill in the following table:
Description
Input Bit
Machine Run
B3:0
Reject Alarm
O:003/16
9--14
Answers
Exercise A
2. If you searched correctly, your table should look like the
following:
Mnemonic and/or Address
Example: O:003/12
WHITE_COLOR
BTD
B3:0/3
O:003/16
O:003/10
9--15
Rung Number
JSR
U:3
OTE
B3/0
TON
T4:4
OTE
O:003/17
9--16
B.
C.
9--17
D.
Instruction Type
TON
2:18
XIC
MOV
2:16
Description
Input Bit
Machine Run
B3:0
2:1
Reject Alarm
O:003/16
2:34
9--18
Lesson
10
After completing this lesson, you should be able to interpret and edit
counter instructions.
Counter Instructions
Counters are used in the following situations:
Count parts coming off of a production line
Monitor the number of units in inventory
Initiate a packaging subroutine when a specific number of units
has been produced
Counter instructions have the following control functions:
To . . .
Counter Status Bits: Bits that are set or reset, thereby indicating
the status of an instruction.
10--2
An example of a counter data file showing the counter status bits for
counters C5:0, C5:1, and C5:2 is shown in the following graphic:
- 32,768
32,767
.UN set
.OV set
If the count value is greater than +32,767, the counter will continue
counting and the counter status overflow bit (.OV) is set.
If the count value is less than --32,768, the counter will continue
counting and the counter status underflow bit (.UN) is set.
10--3
CTU Instructions
Mention that rung transitions might be
triggered by a limit switch or by parts
traveling past a detector.
Explain that the ability of the counter to
detect false-to-true transitions depends
on the frequency of the incoming signal
(i.e., it must not be faster than the scan
time).
Each count is retained when the rung conditions again become false,
permitting counting to continue beyond the preset value.
Each time the rung containing the CTU instruction changes from
false to true, the accumulated value increments by one. The
following conditions affect a CTU instruction:
When the
rung is . . .
False
Toggled
True
True
.CU
.DN
.OV
.ACC Value
Reset/Disabled
Counting
Incremented by 1
for each
false-to-true rung
transition
>= preset
Done
> 32767
Overflowed
10--4
CTD Instructions
Explain that CTU and CTD instructions
are often used in pairs.
Example: An amusement park wants to
keep track of how many people go into
the park and how many leave, so as to
have an accurate count of the people
actually inside the park at any given
time.
Each time the rung containing the CTD instruction changes from
false to true, the accumulated value decrements by one. The count is
retained until either one of the following conditions is true:
An RES instruction with the same address as the counter is
enabled
Another instruction in the program overwrites the value
The following conditions affect a CTD instruction:
When the
rung is . . .
False
Toggled
True
True
.CD
.DN
.UN
.ACC Value
Reset/Disabled
>= preset
Preloaded
Counting
Decremented by 1
for each
false-to-true rung
transition
< preset
Finished
< --32768
Underflowed
10--5
Counter C5:0 is
reset when the
RES instruction
executes.
Heres How
Demonstrate the following procedures:
1. Go online to the
CCP412_1785r_DEM1.rsp project.
10--6
Example
Highlight how the CTU instruction will
keep counting past the preset value.
Example
Use this instruction to decrease the
accumulated value in the C5:0 counter.
Example
10--7
10--8
10--9
10--10
Exercise B
10--11
Tip "
10--12
Answers
Exercise A
1.
A. Output O:003/4 is on while the CTU (C5:0) rung is true.
B. Output O:003/5 is on when the accumulator of the CTU
(C5:0) instruction is equal to or greater than the preset value
(5)
C. Output O:003/6 is on when the accumulated value exceeds
+32,767.
2. After I:002/06 has toggled nine times or is under-range. The
.UN bit is set because the accumulated value has wrapped from
--32,768 to + 32,767.
3. Input I:002/12 causes the down counter to subtract one from the
shared accumulative value each time it comes on.
Tip "
Exercise B
3. Input I:002/06 (REJECT) has to be turned on two times before
output O:003/16 (REJECT_ALARM) turns on (assuming that
the .ACC is still equal to zero).
Lesson
11
After completing this lesson, you should be able to interpret and edit
timer instructions.
Timer Instructions
11--2
intervals.
Preset Value (.PRE): The number of intervals to be timed.
Timebase: The interval at which the timer instruction increments.
Timer Status Bits: Bits that are set or reset, thereby indicating
the status of an instruction.
The specific functions of the timer status bits are outlined in the
following table:
Timer Status Bit
Description
.EN (enable)
.DN (done)
An example of a timer data file showing the timer status bits for
timers T4:0, T4:1, and T4:2 is shown in the following graphic:
T4:0.EN
T4:0.TT
T4:0.DN
T4:0.PRE
T4:0.ACC
11--3
TON Instructions
Mention that when power loss or
processor mode changes occur while
the timer is timing, the .EN and .TT bits
remain set and the .ACC remains
unchanged.
A TON begins timing when its ladder logic rung is true. The
following conditions affect TON instructions:
When the rung
is . . .
False
True
.EN
.TT
.DN
.ACC Value
Reset
Increasing
Timing
> = preset
Timed Out
11--4
TOF Instructions
TOF (Timer Off-Delay): An output instruction used to turn an
output on or off after its rung has been false for a preset time
interval.
The following graphic shows a TOF instruction:
.EN
.TT
.DN
.ACC Value
Reset
Increasing
Timing
> = preset
Timed Out
11--5
RTO Instructions
Mention that the RTO instruction holds
its count of time even in the case of a
fault, mode change, or power failure.
When rung continuity returns (rung goes true again), an RTO begins
timing from the accumulated time that was held when rung
continuity was lost.
The following conditions affect RTO instructions:
When the rung
is . . .
.EN
.TT
.DN
.ACC Value
False
0
(reset)
Reset
True
Increasing
Timing
False
Suspended at
current count
Disabled
True
> = preset
Timed Out
11--6
When conditions preceding an RES in the rung are true, the RES
instruction resets the accumulated value and status bits of the timer.
Mention that using the RES instruction
with the TOF instruction could result in
unpredictable machine operation or
injury to personnel.
Heres How
Demonstrate the following actions:
1. Go online to the
CCP412_1785r_DEM1.rsp project.
Example
Display rungs 0 through 3. Turn on SW0.
Discuss the activation of the .EN, .TT,
.DN bits.
11--7
11--8
Example
Emphasize the fact that a TOF timer will
begin timing when the rung makes a
true-to-false transition.
Show students how the ladder logic in
this example can be modified to have
the fan run while the motor is active and
continue running for 5 seconds after the
motor is turned off (to do this change the
timing status bit in rung 5 to a .DN bit).
Example
11--9
The RTO instruction is not reset with the RES instruction until
rung 9 becomes true.
11--10
11--11
11--12
2. Review the following ladder logic and answer the questions in the
space provided:
3. Review the following ladder logic and answer the questions in the
space provided:
11--13
Exercise B
Tip "
4. Change the preset on the TON (T4:5) timer to 1000 using the data
file.
11--14
Answers
Exercise A
1.
A. When TON instruction (T4:0) is enabled or true (I:002/02 is
on), then output O:003/17 is on.
B. When TON instruction (T4:0) is done timing or when the
accumulator is equal to preset (I:002/02 is on and remains on
for 10 seconds), then output O:003/16 is on.
C. Output O:003/15 is on as the TON instruction (T4:0) is
timing.
D. No, because the timer rung goes false every 5 seconds,
thereby resetting the timer. Therefore, the accumulated value
can never reach the preset to turn on the .DN bit.
2.
A. Output O:003/14 will be on as long as PRE > ACC..
B. Output O:003/14 will be off 5 seconds after the input
I:002/03 has been turned off.
3.
A. 60 seconds or 1 minute is the time that must elapse before
output O:003/00 comes on.(The RTO has been enabled for a
total elapsed time of 60 seconds and the timer is not reset or
I;002/04 remains false.)
B. Input I:002/4 has to be enabled before the RTO will reset.
Tip "
Exercise B
3. After the change to the preset and to the time base, 7 seconds
must pass before timer mix timer T4:5 starts timing.
Lesson
12
12--2
Integrated Practice: Searching and Interpreting Basic Ladder Logic Using RSLogix 5 Software
Exercise: Integrated Practice: Searching and Interpreting Basic Ladder Logic Using RSLogix 5
12--3
Tip "
Tip "
Once a light has been energized in the proper sequence, the output
need not remain energized. Leave the pushbuttons on the on position
after they are energized.
5. Repeat Steps 2. through 4. for each of the remaining output lights.
12--4
Exercise: Integrated Practice: Searching and Interpreting Basic Ladder Logic Using RSLogix 5
Answers
Exercise A
Use the search and find functions in RSLogix 5 software to locate
the input instructions in the ladder logic that turn on each output
light, LT0 through LT17.
Lesson
13
After completing this lesson, you should be able to interpret and edit
compare instructions.
To . . .
CMP (Compare)
EQU (Equal)
13--2
Tip "
When the comparison is logically true, the rung goes true and the
output is energized (provided no other instructions affect the rungs
status).
CMP Instructions
Mention that a CMP instruction can
complete the functions of other
comparison instructions, but it takes
more scan time.
EQU Instructions
Mention that for EQU instructions,
Source A must be a word address and
Source B can be either a program
constant or a word address.
If the values are equal, the instruction is logically true. If the two
values are not equal, the instruction is logically false.
13--3
NEQ Instructions
Mention that for NEQ instructions,
Source A must be a word address and
Source B can be ether a word address
or a program constant.
LES Instructions
Mention that LES instructions require a
word address for Source A and either a
word address or a constant for Source
B.
LES (Less Than): An input instruction that tests whether one value
is less than a second value.
The following graphic shows an example of an LES instruction:
13--4
LEQ Instructions
Mention that the LEQ, GRT, and GEQ
instructions require a word address for
Source A and Source B can be either a
constant or word address.
GRT Instructions
GRT (Greater Than): An input instruction that tests whether one
value is greater than a second value.
The following graphic shows an example of a GRT instruction:
13--5
GEQ Instructions
GEQ (Greater Than or Equal): An input instruction that tests
whether one value is greater than or equal to a second value.
The following graphic shows an example of a GEQ instruction:
MEQ Instructions
Mention that this instruction can be used
when entering the mask parameter as
an encoded value rather than an
address or a file address.
13--6
LIM Instructions
LIM (Limit Test): An input instruction that tests whether a value is
within or outside of defined limits.
Limit test instruction uses the following limits:
If the test value is a constant, the limits are word addresses.
If the test value is a word address, the limits are either word
addresses or constants.
The following graphic shows an example of an LIM instruction:
Heres How
Demonstrate the following actions:
1. Go online to the
CCP412_1785r_DEM1.rsp project.
13--7
Example
Show how the output is de-energized or
energized by using thumbwheel input 1
to change the value in N11:0.
When the value in N11:0 is less than the value in F8:0, the rung is
false.
Source
B
GEQ
GRT
LEQ
LES
NEQ
10
10
True
True
False
True
False
False
False
False
False
True
True
True
21
20
False
True
True
False
False
True
--30
--31
False
False
False
False
False
True
--15
--14
False
False
False
True
True
True
13--8
Example
Show how the output is de-energized by
using thumbwheel input 1 to change the
value in N11:0.
Example
Use the thumbwheel 1 input to alter the
value in N11:0.
When the value in N11:0 is equal to the value in N11:30, the rung
is false.
Example
Use the thumbwheel1 input to energize
and de-energize output O:003/3.
Example
Use thumbwheel input 1 to enter the
value of 5 in N11:0. Show that output
O:003/4 is energized when N11:0 is less
than or equal to 5.
13--9
When the value in N11:0 is greater than the value in N11:40, the
rung is false.
13--10
Example
Use thumbwheel input 1 to energize and
de-energize O:003/5.
Example
Use thumbwheel input 1 to enter a value
of 6 in N11:0. Show that output O:003/6
is energized when N11:0 contains a
value of 5 or more.
When the value in N11:0 is less than the value in N11:40, the
rung is false.
Example
Remind students that a mask is a type of
filter. Show students that a mask value
can also be entered in binary or decimal.
13--11
Example
Point out that making the low limit higher
than the high limit can be used to
energize an output when the test value
is outside of a particular numerical
range.
Change the value in N11:1 to make the
test value higher than the low limit.
13--12
13--13
13--14
Exercise B
Tip "
13--15
13--16
Answers
Exercise A
1.
A. O:003/17 is on when the value stored in N15:0 is greater than
the value stored in N15:1.
B. O:003/16 is on when the value stored in N15:0 is less than or
equal to 200.
C. O:003/15 is on when the value stored in N15:1 is not equal to
50.
D. O:003/14 is on when the value stored in N15:0 is greater than
or equal to 100 and less than or equal to 500.
Tip "
Tip "
Exercise B
3. O:003/17 will turn on when B3:0/0 has a logic value of 1 and
when the value stored in T4:0.ACC is greater than or equal to
50 and less than or equal to 150.
5. O:003/17 will turn on when B3:0/0 has a logic value of 1 and
when the value that is stored in T4:0.ACC is less than or equal
to 150.
Lesson
14
After completing this lesson, you should be able to interpret and edit
data manipulation instructions using RSLogix 5 software.
To . . .
PT (Bit Distribute)
MOV (Move)
14--2
FRD Instructions
Mention that FRD and TOD are
examples of conversion instructions.
TOD Instructions
TOD (Convert to BCD): An output instruction that converts an
integer value to BCD.
An example of a TOD instruction is shown in the following graphic:
14--3
BTD Instructions
State that this instruction allows
information to be shared and updated
between two distinct words or the initial
word itself.
Specified Length of
Moved Bits
Tip "
On each scan, when the rung that contains the BTD instruction is
true, the bit field is moved from the source word to the destination
word. The instruction writes over the destination with the specified
bits.
Bits are lost if they extend beyond the end of the destination word;
the bits are not wrapped to the next word.
For movement of data within a word, the same address is used for
both the source and destination, as shown in the following graphic:
Destination Bit N70:22/10
08 07
15
1 0 1 1 0 1
N70:22
1 0 1 1 0 1
15
08 07
N7:20
0 1 1 1 0 1 1 1 0 1
08 07
0 1 1 1 0 1 1 1 0 1
00
N7:22
14--4
MOV Instructions
Mention that MOV and MVM are move
and logical instructions that perform
move and logical operations on
individual words.
When rung conditions preceding this instruction are true, the MOV
instruction moves a copy of the source to the destination each scan.
The original value remains intact and unchanged in its source
location.
The following graphic shows how the data from source N7:0 is
copied to destination N7:8 in one processor scan:
Data Table
1 0 1 1 0 0 1 0 1 1 1 1 0 1 0 0 N7:0
Source
Moves (Copies) Data
1 0 1 1 0 0 1 0 1 1 1 1 0 1 0 0 N7:8
Destination
14--5
MVM Instructions
Mention that the MVM instruction
operates in a similar fashion as the MEQ
comparison instruction (discussed in the
previous lesson).
When rung conditions are true, data at the source address passes
through the mask to the destination address. As long as the rung
remains true, the instruction moves the data each scan.
Explain that the mask acts as a filter,
with the patterns of the characters in the
mask determining which bits will be
passed from the source to the
destination. Bits in the mask word mask
data when reset and they pass data
when set.
Only bits in the mask that are set (1) will pass data to the destination,
as shown in the following graphic:
1010101010101010
1111000011110000
0000000011111111
1010101011110000
The following table outlines the function of the mask in the MVM
instruction:
If a bit in the mask is. . .
14--6
Tip "
COP Instructions
COP (Copy File): An output instruction that copies a block of data
from one location into another.
An example of a COP instruction is shown in the following graphic:
10 11 00 00 111100 00
1 0 1 1 0 0 0 0 1 1 1 1 0 0 0 0 N7:10
N7:11
N7:12
N7:5
10 11 00 10 111101 00
1 0 1 1 0 0 1 0 1 1 1 1 0 1 0 0 N7:13
14--7
FLL Instructions
FLL (Fill File): An output instruction that fills the words of a file
with a source value.
An example of an FLL instruction is shown in the following graphic:
Destination File
N15:5
Source Value
1011000011110000
1 0 1 1 0 0 0 0 1 1 1 1 0 0 0 0 N40:1
N40:2
N40:3
N40:4
N40:5
1 0 1 1 0 0 0 0 1 1 1 1 0 0 0 0 N40:6
14--8
FAL Instructions
Explain how a file arithmetic and logic
instruction can do all of the functions
discussed previously in this lesson. Also
explain that an FAL instruction can do
comparisons, mathematics, logics, and
conversions.
Done Bit (.DN): Set after the instruction has completed its operation.
Usually the .DN bit will be examined later in the program to allow
further action. (i.e., --] [-- of R22:14/DN)
Error Bit (.ER): Set when the operation generates an overflow.
"
Heres How
Demonstrate the following actions:
1. Go online to the
CCP412_1785r_DEM1.rsp project.
2. To activate program file 7, in N10:0,
enter a 7.
14--9
Example
For the FRD instruction, demonstrate
the conversion steps in the operation.
Use thumbwheel input 1 to change the
source.
Point out that the value of an address is
displayed below the address.
Example
For the TOD instruction, demonstrate
the conversion steps in the operation.
Point out that the value of an address is
displayed below the address.
14--10
Example
Display rung 7:2, open the binary file,
and toggle the first bit from 1 to 0. Then
close I:002/2 to show the bit transfer.
Example
Example
Example
For the COP and FLL instructions,
display data file N7 in the decimal radix
and manipulate the data in N7 to show
how the elements are copied or filled.
Example
14--11
Example
Edit this instruction to demonstrate how
it works using the incremental, all, and
numeric modes.
14--12
Exercise: Interpreting and Editing Data Manipulation Instructions Using RSLogix 5 Software
14--13
14--14
Exercise: Interpreting and Editing Data Manipulation Instructions Using RSLogix 5 Software
Exercise: Interpreting and Editing Data Manipulation Instructions Using RSLogix 5 Software
14--15
2. Review the following ladder logic and answer the questions in the
space provided:
The source
address is . . .
And is converted
to . . .
Then moved to
this
destination . . .
First Time
Second Time
Third Time
Fourth Time
Fifth Time
Sixth Time
Seventh Time
Eighth Time
Ninth Time
14--16
Exercise: Interpreting and Editing Data Manipulation Instructions Using RSLogix 5 Software
Exercise B
Control: R6:9
Length: 2
Position: 0
Mode: ALL
Destination: #N14:0
Expression: #N26:0
Exercise: Interpreting and Editing Data Manipulation Instructions Using RSLogix 5 Software
14--17
14--18
Exercise: Interpreting and Editing Data Manipulation Instructions Using RSLogix 5 Software
Answers
Exercise A
1.
A. When I:002/00 is on, the BCD values stored in N15:0 are
converted to an integer value and the result is stored in
N20:0.
B. When I:002/01 is on, the integer values stored in N15:0 are
converted to BCD and stored in N20:0.
C. When I:002/2 is on, the processor copies 5 bits, starting with
bit 5 of the source,B3:2, and moves the copied values to the
destination, B3:5, starting with the destination bit, 10.
D. When I:002/03 is on, the data value stored in N15:0 is copied
into N20:0.
E. Due to the mask value, only the upper 8 bits of the data value
stored in N15:1 are copied into N20:1.
F. When I:002/12 is on, the data values stored in N22:0 through
N22:4 will be replaced by the value stored in N15:0.
G. Nothing happens to the data, the source values remain
unchanged in a copy operation.
2.
A. The range of words is from N12:20 to N12:28.
B. O:003/00 is true when I:002/14 is true and causes the FAL
(R6:0) to be done. (.DN is on.)
C. The following table shows the operation of the FAL
instruction each time I:002/06 goes from false to true:
During this
increment
The source
address Is . . .
And is converted
to . . .
Then moved to
this
destination . . .
First Time
N12:20
BCD
O:001
Second Time
N12:21
BCD
O:001
Third Time
N12:22
BCD
O:001
Fourth Time
N12:23
BCD
O:001
Fifth Time
N12:24
BCD
O:001
Sixth Time
N12:25
BCD
O:001
Seventh Time
N12:26
BCD
O:001
Eighth Time
N12:27
BCD
O:001
Ninth Time
N12:28
BCD
Tip "
Tip "
Exercise: Interpreting and Editing Data Manipulation Instructions Using RSLogix 5 Software
14--19
Exercise B
3. When rung 15 is true, the data values stored in N26:0 and
N26:1 will be copied into N14:0 and N14:1.
14--20
Exercise: Interpreting and Editing Data Manipulation Instructions Using RSLogix 5 Software
Lesson
15
After completing this lesson, you should be able to interpret and edit
program control instructions using RSLogix 5 software.
Input Scan
Communications
Program Scan
Output Scan
15--2
To . . .
Disable a rung
JMP and LBL instructions are used in pairs to skip portions (zones)
of the ladder logic program, which reduces scan time.
Zone: A section of ladder logic.
The following graphic shows examples of single and multiple JMP
instructions:
] [ ] [
(JMP)
] [ ] [
(JMP)
] [ ] [
] [
-( )-
] [ ] [
] [
-( )-
] [ ] [ ] [
-( )-
] [ ] [ ] [
(JMP)
] [ ] [
] [ ] [
-( )-
] [ ] [
] [
[LBL}
] [ -( )] [ -( )-
Skips These
Rungs When
JMP Rung Is
True
[LBL}
] [ -( )] [ -( )-
15--3
Cleaning a vat
Purging a system
Emptying a tank
Packing and sealing a carton
Program Scan
Communications
Output Scan
Subroutine
Scan
Program Scan
Continues
15--4
Subroutine File 6
SBR
6
JSR
RET
Level 2
Subroutine File 6
SBR
SBR
Level 3
Subroutine File 7
SBR
6
JSR
7
JSR
RET
RET
RET
Rev. February 2007
PC1sb85r
15--5
MCR Instructions
MCR (Master Control Reset): An output instruction that, when
used in pairs, defines program zones where all non-retentive outputs
may be disabled at the same time for the same length of time.
Reinforce the idea that TON, TOF, and
OTE instructions represent all of the
non-retentive instructions.
(EN)
(DN)
(EN)
(DN)
O:4
( )
2
True
False
TOF timers will activate when placed inside of false MCR zone.
If an unmatched MCR instruction exists in the project, the END
instruction is used to mark the end of the MCR zone.
15--6
When the logic preceding the TND is true, then the following
operations are completed:
The processor is stopped from scanning the rest of the program
If this instruction rung is false, the processor continues the scan until
the next TND instruction or the END statement.
AFI Instruction
Explain how an AFI can be used to
temporarily disable a rung or branch of
ladder logic.
AFI (Always False): An input instruction that makes the rung false
when inserted in the condition side of the rung.
The following graphic shows an AFI instruction as the first input
instruction on a rung:
Heres How
Demonstrate the following actions using
CCP412_1785r_DEM1.rsp:
1. Place processor in Remote Run
mode.
15--7
Example
15--8
Example
Jump to Subroutine
(File 3)
Jump to Nested
Subroutine (File 4)
Return to File 2
Return to File 3
Example
Demonstrate the following actions:
1. Turn on Pushbuttons 0, 5, and 1.
2. Using I:002/7, demonstrate the MCR
instruction.
3. Point out which outputs are retentive
and which are non-retentive.
4. Press Pushbutton 6 to show that
O:003/6 does not unlatch in the
MCR zone.
15--9
? In an MCR zone, do
15--10
Example
Demonstrate the following actions:
1. Point out the execution of the
free-running counter in rung 8:11.
(Its only a demonstration.)
2. Demonstrate that the counter is not
executed when Pushbutton 10 is off.
(The TND instruction is executed.)
Example
Demonstrate the following actions:
1. Point out that the rung is disabled
with the AFI instruction in place.
2. Demonstrate that the run is disabled
by pressing Pushbutton 3 and
displaying B3:0/6 in the
data table.
Exercise: Interpreting and Editing Program Control Instructions Using RSLogix 5 Software
15--11
15--12
Exercise: Interpreting and Editing Program Control Instructions Using RSLogix 5 Software
Directions:
1. Review the following ladder logic and answer the questions in the
space provided:
Exercise: Interpreting and Editing Program Control Instructions Using RSLogix 5 Software
15--13
2. Review the following ladder logic and answer the questions in the
space provided:
A. When are the rungs within the MCR zone executed false?
15--14
Exercise: Interpreting and Editing Program Control Instructions Using RSLogix 5 Software
Exercise: Interpreting and Editing Program Control Instructions Using RSLogix 5 Software
15--15
4. In the following ladder logic, when does the program return to the
main program?
15--16
Exercise: Interpreting and Editing Program Control Instructions Using RSLogix 5 Software
Exercise B
Exercise: Interpreting and Editing Program Control Instructions Using RSLogix 5 Software
15--17
15--18
Exercise: Interpreting and Editing Program Control Instructions Using RSLogix 5 Software
Answers
Exercise A
1.
A. The JMP instruction is true when input instruction (I:002/07)
is true.
B. When the JMP instruction is true, the second, third, and
fourth rungs will not execute (freeze in last state).
C. The CPT is not affected because it is outside of the
JMP--LBL zone.
2.
A. The rungs within the MCR zone are executed false when
input instruction (I:002/05) is false.
B. O:003/04 remains in its last state (on remains on, off remains
off).
C. The last MCR instruction signifies the end of the zone.
3. Subroutine file 4 is executed while input instruction (I:002/17)
is true.
4. The program returns to the main program after one program
scan of the subroutine.
Tip "
Exercise: Interpreting and Editing Program Control Instructions Using RSLogix 5 Software
15--19
Exercise B
2. The result of the edits are shown below:
Skipped
Rungs.
3. The rungs within the JMP and LBL zone, rungs 1 through 3
will be skipped as shown in the above graphic; therefore, the
CTU instructions on those rungs will be skipped.
15--20
Exercise: Interpreting and Editing Program Control Instructions Using RSLogix 5 Software
Lesson
16
After completing this lesson, you should be able to force inputs and
outputs using RSLogix 5 software by performing the following
tasks:
Force an I/O bit using the Ladder window or the force files
Remove or disable forces from I/O bits using the Ladder window
or the force files
Force Functions
Force: A software function that allows a user to energize or
de-energize an input or output independent of the ladder logic.
Forcing an I/O bit can be used for any of the following
troubleshooting situations:
Checking the field wiring
16--2
Tip "
Forcing has priority over ladder logic and ladder logic has priority
over toggling a bit.
Safety Precautions
All force functions can result in sudden machine movement.
Consider these factors before forcing:
Potential danger to personnel
Machine response to forced I/O
Possible effects on other portions of the machine/process
16--3
Force Files
Force Files: Tables used to monitor forces, install forces, or enable
or disable an installed force.
The force files for both inputs and outputs are accessed from the
project tree:
Location of
Force Files in
the Project Tree
A forced input, displayed in both the Ladder window and the force
file, is shown in the following graphic:
Force Value
Displayed in
Grid
16--4
Input
Force
Table
I
N
P
U
T
S
An input force file modifies the data that is received from the input
modules, and an output force file modifies the data that is being sent
to the output modules, as shown in the following graphic:
Input
Image
Table
Program
Files
Output
Image
Table
1110000000
- - ] [- - - - - - - - - - - - - - - - - - - - - - ( )-
1110000111
0011000000
- - ] [- - - - - - - - - - - - - - - - - - - - - - ( )-
0011000100
0000000000
- - ] [- - - ] [- - - - - - - - - - - - - - - - - ( )-
0000010100
1111111001
- - ] [- - - - - - - - - - - - - - - - - - - - - - ( )-
1101111001
Output
Force
Table
R
E
A
L
O
U
T
P
U
T
S
CR
Forced Bit
16--5
Forcing outputs influences the output device but does not affect the
output image table bit.
A forced output, displayed in both the Ladder window and the output
image table, is shown in the following graphic:
Ladder logic
output is
forced on.
Force Value
Displays 0 (Off)
Heres How
Demonstrate the following actions:
1. Go online to the
CCP412_1785r_DEM1.rsp project.
2. To activate program file 3, in N10:0,
enter a 3.
" The project contains a CDM for easy
access to N10:0.
Remove or disable forces from I/O bits using the Ladder window
or the project tree
16--6
16--7
In this exercise, you will practice forcing inputs and outputs using
RSLogix 5 software.
Context:
You are setting up a new lid-installation station on the paint line. You
need to check out the output devices and the wiring to them. To do
this, you decide to turn on the outputs temporarily by forcing them.
Tip "
16--8
And . . .
Then light 7 is . . .
Turn on button 10
Turn off button 10
Turn on button 10
Turn off button 10
6. From the project tree, force the I/O device either on or off using
the information in the table below as a guide. Push the buttons as
indicated. Record the results in the third column and then remove
or disable the forces:
If you force O:003/05 . . .
On
Off
And . . .
Then light 5 is . . .
Turn on button 2
Turn off button 2
Turn on button 2
Turn off button 2
16--9
16--10
Answers
Exercise
1. The following situations might determine when forcing is used:
6.
If you force I:002/10 . . .
On
Off
And . . .
Then light 7 is . . .
Turn on Switch 10
Turn off Switch 10
Turn on Switch 10
Turn off Switch 10
On
On
Off
Off
And . . .
Then light 5 is . . .
Turn on Switch 2
Turn off Switch 2
Turn on Switch 2
Turn off Switch 2
On
On
Off
Off
7.
If you force O:003/05 . . .
On
Off
Lesson
17
Print Options
RSLogix 5 software provides two options for creating printouts:
Print View: Used to print the ladder logic of a program file.
Print Report: Used to print multiple program files or additional
information such as the database or data files.
Printing is only accomplished offline.
Report Options
The report options can be activated from the File pull down menu:
Report Options
17--2
Report Options Dialog Box: A dialog box that allows for a variety
of printing options.
The Report Options dialog box, as shown in the following graphic, is
used to select the report(s) to be previewed or printed:
Mention that the Procedures Guide lists
all of the procedures for configuring and
printing a report.
Report Selection
Layout Selection
Heres How
Demonstrate the following actions:
1. Open the CCP412_1785r_DEM1
project offline.
17--3
17--4
Answers
Exercise A
2. If you configured your report options correctly, they should
appear like the following graphics:
17--5
17--6
Lesson
18
Histogram
Histogram: A function of RSLogix 5 software that graphs the on
and off status or data changes of one specified word or bit address
over time.
The histogram function is used to capture data changes that are either
fast moving or infrequent.
18--2
Elapsed
Time
Data Log
Bit 6 On
Bit 6 Off
Data that are collected for a histogram are subject to the following
performance limitations:
Speed of the computer
Speed of the communications link to the processor
Number of views active
For data changing faster than one change per second, every change
may not be represented on the histogram view.
Heres How
Demonstrate how to create, save, and
modify a histogram using file
CCP412_1785r_DEM1.rsp.
--
18--3
Tip "
18--4
18--5
18--6
Answers
Exercise
1. Histograms are created to capture data changes that are
fast-moving or infrequent.
6. Your histogram should look similar to the following graphic:
18--7
10. The histogram data should be saved in a text file called hist.log
as shown:
18--8
Lesson
19
Trend Overview
RSTrendt software is a flexible and powerful Microsoftr
Windowsr-based software program for collecting and displaying
process data. RSTrendX ActiveX control is a standard feature of
RSLogix 5 software. RSTrendX software can log data based on time
or event and acquires data from the data table.
The trend function should be used in the following situations:
Data acquisition
Historical analysis
Process monitoring
Maintenance and troubleshooting
Reporting
19--2
Trend Chart
Mention that a trend chart should not be
confused with a histogram. A trend chart
logs data for more than one address
over a period of time.
Pens
Data Log
Tip "
Heres How
19--3
1. In the project tree, right-click the Trends folder and select New.
The Add Trend dialog box opens.
2. In the trend name field, type a name for the trend chart.
3. To create an empty chart, click OK.
An icon for the new chart appears under the trends folder in the
project tree.
4. To add pens to the chart, perform the following actions:
A. Double-click the trend icon, to open it.
B. Drag addresses from the ladder logic window or data tables
to the open trend chart. An address does not need to have live
data.
5. To modify the trend chart, right-click within the grid and then
select Chart Properties.
The RXTrend Properties dialog box opens.
6. Configure the trend charts display properties by choosing the
appropriate option(s).
Then select this
tab . . .
To . . .
Tip "
General
Display
Change pen attributes, including tag name, color, width, and style
Pens
X-Axis
Y-Axis
Overlays
Template
19--4
19--5
19--6
Answers
Exercise A
1. A trend chart can be created when the following situations
exist: data acquisition, historical analysis, process monitoring,
maintenance and troubleshooting, and reporting.
3. The configuration of your trend should look similar to the
following graphic:
19--7
19--8
Lesson
20
Troubleshooting Noise-Related
Problems Using RSLogix 5
Software
What You Will Learn
20--2
Noise Diagnosis
Discuss the system areas where
noise-related problems can occur.
Point out that tabs 1 and 10 of the
troubleshooting guide provide the initial
diagnoses that a problem is related to
noise.
Noise-Related Problems
A good chassis and main bus ground system include the following
specifications:
Ground paths are permanent and continuous.
to the chassis.
20--3
Ground Bus
I/O Chassis Wall
I/O Chassis
Ground Stud
Ground Lug
Nut
Star Washer
Ground Lug
20--4
Ground Bus
To Grounding
Electrode System
(Single Point
Only)
Extended
Local I/O
Cables
20--5
network?
Are communications cables not running in wireways with power
wires?
Do communications cables cross power wires at 90_angles?
Example: Remote I/O Cable Connections
Standard remote I/O cable connections are shown in the
following graphic:
1771-ASB
PLC-5r Processor
Terminals on the
Processor Module
Blue
Shield
Clear
1771-ASB
Two-Conductor
Shielded Cable
Blue
Shield
Clear
Blue
Shield
Clear
Blue
Shield
Clear
Resistor:
(Switch Selectable on Standard Processor;
External on Enhanced Processor)
20--6
Heres How
Demonstrate the following actions:
1. Read through the examples below
with the class.
2. Walk through the tabs of the
troubleshooting guide for each of the
examples.
Example
20--7
Exercise: Troubleshooting
Noise-Related Problems Using
RSLogix 5 Software
Exercise A
No ______
20--8
No ______
20--9
20--10
Answers
Exercise A
1. This is probably not a noise-related problem because exactly the
same error occurs every time. A noise-related problem would
probably cause the conveyor to randomly change speeds.
2. This is probably a noise-related problem because it is random and
not related to the operator.
You should concentrate on the particular chassis and look for
tightness and continuity of earth grounds to the cabinet and
chassis ground buses. Also check incoming and outgoing remote
I/O cables for appropriate clearances from the AC power cables.
3. This is not a noise-related problem. The output point energized
every time as it should. The plunger is probably starting to stick
or jam.
4. This is probably a noise-related problem because it is random and
not related to the operator.
Verify that the output wires controlling motor starters are not
placed in the same raceway and bundled with the proximity
switch wires.
Lesson
21
Motor starters
Solenoids
Valves
Rev. February 2007
21--2
Input
Input
Filtering
Optical
Isolation
Module
Logic Circuit
Backplane
LED
Not Used
Not Used
Not Used
Not Used
Input 00
Input 01
Input 02
Input 03
Input 04
Input 05
Input 06
Input 07
Input 10
Input 11
Input 12
Input 13
Input 14
Input 15
Input 16
Input 17
L2
A
B
C
D
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
E
Terminals A through D
are not used.
L1
AC/DC High
L2 (Common)
AC/DC Low
Actual wiring runs in this direction.
21--3
Module
Logic Circuit
Optical
Isolation
Output
Filtering
Output
LED
L1
L1
L1
L1
Output 00
Output 01
Output 02
Output 03
Output 04
Output 05
Output 06
Output 07
Output 10
Output 11
Output 12
Output 13
Output 14
Output 15
Output 16
Output 17
L2
A
B
C
D
00
01
02
03
04
05
06
07
10
11
12
13
14
15
16
17
E
L1
AC High
Output
Device
L2 (Common)
AC Low
Actual wiring runs in this direction.
21--4
Yes
Status LEDs and fuse indicators are used to troubleshoot discrete I/O
modules. Status LEDs provide information about the following
components:
Field devices
Wiring
I/O modules
Mention that if fuse replacement does
not correct the problem, the module
should be replaced.
Tip "
Point out that in Program mode the
indicator will not come on, even if the
fuse is blown.
Module Active
Indicator
(Green)
Module Active
Indicator
(Green)
00 to 17 Status
Indicators (Red)
00 to 17 Status
Indicators (Red)
1771-IAD Input Module
Fuse Blown
Indicator (Red)
Heres How
Provide troubleshooting situations and
demonstrate how you would identify
failed I/O as connected to a discrete
device. The following are possible
examples:
21--5
Heres How
Using your workstation and the
CCP412_1785r_DEM2.rsp project,
simulate troubleshooting the following
malfunctions:
21--6
21--7
Is it a discrete device?
1771--IA
1771--OFE2
1771--IBD
1771--E4
1771--IG
21--8
Exercise B
R5
G2 G
1771--OBD
G3 G
D
C 1
0
O TO
U 6
T 0
P V
U
T
Tip "
ACTIVE
00 10
01 11
02 12
03 13
04 14
05 15
06 16
07 17
FUSE
R5
G2 G
21--9
1771--OAD
G3 G
A
C 1
2
O TO
U 1
T 2
P O
U V
T
ACTIVE
00 10
01 11
02 12
03 13
04 14
05 15
06 16
07 17
FUSE
SOL- 12
Tip "
21--10
R 26 1771--OBN
I:074
] [
11
G4 G5 G6 G7
D
C 1
0
O TO
U 6
T 0
P V
U
T
00 10 00 10
01 11 01 11
02 12 02 12
03 13 03 13
04 14 04 14
05 15 05 15
06 16 06 16
07 17 07 17
FUSE
O:267
( )
10
Note: There are no MCR, JMP, or JSR
instructions in this program.
Note: The rung agrees with program
documentation.
R7
G4 G
1771--IA
G4 G
AC INPUT
120V
Tip "
R3
G6 G
1771--OBD
G7 G
D
C 1
0
O TO
U 6
T 0
P V
U
T
Tip "
21--11
ACTIVE
00 10
01 11
02 12
03 13
04 14
05 15
06 16
07 17
FUSE
21--12
R7
G6 G
1771--OA
G6 G
AC OUTPUT
120V
FUSE
BLOWN
Tip "
R3
G4 G
1771--OBD
G5 G
D
C 1
0
O TO
U 6
T 0
P V
U
T
Tip "
21--13
ACTIVE
00 10
01 11
02 12
03 13
04 14
05 15
06 16
07 17
FUSE
Motor
Motor will not turn on.
21--14
R4
G4 G
1771--OAD
I:023
] [
00
G5 G
B3
] [
19
I:021
] [
11
O:045
( )
11
ACTIVE
00 10
01 11
02 12
03 13
04 14
05 15
06 16
07 17
FUSE
Supply
Pump
R2
G1 G
1771--IA
G1 G
AC INPUT
120V
O:045/11
Tip "
R7
G6 G
21--15
1771--OA
G6 G
AC OUTPUT
120V
Fuse Blown
Tip "
21--16
Answers
Exercise A
The problem device is connected to a . . .
Is it a discrete device?
1771--IA
Yes
1771--OFE2
No
1771--IBD
Yes
1771--E4
No
1771--IG
Yes
Exercise B
1. Perform the following actions:
A. Determine the cause of the blown fuse.
B. Repair the problem.
C. Replace the fuse.
D. Reapply power.
2. One of the following situations exist:
Output device
Swing arm/swing arm wiring
Output module
I/O chassis
21--17
21--18
Lesson
22
Potentiometers
Pressure transducers
Vibration transducers
Temperature transducers
22--2
Analog
Input
Module
Continuous Signal from
Analog Input Device
+
Analog Source
-
Analog Source
+
-
Source Ground
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Channel 1+
Channel 1Channel 2+
Channel 2Not Used
Channel 3+
Channel 3Channel 4+
Channel 4Not Used
Channel 5+
Channel 5Channel 6+
Channel 6Not Used
Channel 7+
Channel 7Channel 8+
Channel 8Module Common
Module Common
1771-WG
Field Wiring Arm
22--3
Actuators
Chart recorders
Electric motor drives
Analog meters
PLC-5
Register/Word
Memory
Location
Analog
Output
Module
Digital Data Converted to
Analog Signal
Continuous Signal to
Analog Output Device
User
Analog
Device
Ground
A
0
1
2
3
4
5
6
7
B
22--4
Tip "
For review, PLC-5 processors transfer discrete I/O data and status
data using discrete data transfers. Discrete transfers allow the
processor to transfer up to eight words per rack, and they occur
automatically during the processors input and output scans.
Block transfers are a special type of data transfer that require ladder
logic instructions. Block transfers allow processors to transfer up to
64 words of data between themselves and analog modules.
Block transfers also allow a processor in scanner mode to transfer
large blocks of data to and from a processor in adapter mode.
The following graphic shows a representation of discrete and block
transfers:
Programming
System
Communications
System (Network)
Processor 1
Discrete Modules
Key
Discrete Transfers
Block Transfers
Data from
Input Devices
Analog Modules
Control
Outputs
Machine/Process 1
There are two block transfer instructions: BTR (block transfer read)
and BTW (block transfer write). The processor uses BTR and BTW
instructions as follows:
BTW: When the rung goes true, the BTW instruction tells the
processor to write data stored in the data file to the specified
address.
BTR: When the rung goes true, the BTR instruction tells the
22--5
22--6
Rack
Group
Module
Control Block
Data File
Length
Continuous
Description
Module Type
The following status bits of BTR and BTW instructions are used in
troubleshooting analog I/O problems:
This Status Bit . . .
Is Set . . .
When the rung goes true.
.EN -- Bit 15
.DN -- Bit 13
The .DN bit is reset the next time the associated rung
goes from false to true.
When the processor detects that the block transfer has
failed.
.ER -- Bit 12
The .ER bit is reset the next time the associated rung
goes from false to true.
Tip "
22--7
Yes
No
Yes
Troubleshooting
Analog I/O
+
Analog Source
-
Analog Source
+
-
Source Ground
Variable
External
Power
Source
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Channel 1+
Channel 1Channel 2+
Channel 2Not Used
Channel 3+
Channel 3Channel 4+
Channel 4Not Used
Channel 5+
Channel 5Channel 6+
Channel 6Not Used
Channel 7+
Channel 7Channel 8+
Channel 8Module Common
Module Common
1771-WG
Field Wiring Arm
22--8
User
Analog
Device
Voltmeter
Ground
-
A
0
1
2
3
4
5
6
7
B
User
Analog
Device
Ammeter
Ground
Load
A
0
1
2
3
4
5
6
7
B
Heres How
22--9
1. Cycle power.
2. Reset/restore program.
3. Replace the module.
Example
R2
1771-OFE1
G6 G
G7 G
I:074
] [
11
BTW
BLOCK TRANSFER WRITE
2
Rack
7
Group
0
Module
N20:0
Control block
N21:8
Data file
13
Length
N
Continuous
(EN)
(DN)
(ER)
RUN
Valve appears to be stuck closed.
FLT
Tip "
22--10
22--11
22--12
R5
G2 G
1771-OFE2
G3 G
I:074
] [
11
BTW
BLOCK TRANSFER WRITE
5
Rack
3
Group
0
Module
N20:0
Control block
N21:8
Data file
13
Length
N
Continuous
(EN)
(DN)
(ER)
RUN
Flow valve is not functioning properly.
FLT
Tip "
R2
22--13
1771-OFE3
G6 G
G7 G
I:074
] [
11
BTW
BLOCK TRANSFER WRITE
2
Rack
7
Group
0
Module
N20:0
Control block
N21:8
Data file
13
Length
N
Continuous
(EN)
(DN)
(ER)
RUN
Level meter always reads empty.
FLT
Tip "
22--14
R7
G0 G
1771-OFE1
G1 G
BTW
BLOCK TRANSFER WRITE
7
Rack
1
Group
0
Module
N20:0
Control block
N21:8
Data file
13
Length
N
Continuous
LIM
LIMIT TEST (CIRC)
Low lim
100
Test
High lim
N22:4
0
180
I:074
] [
11
RUN
R7
FLT
G0 G
1771-IFE
BTR
BLOCK TRANSFER READ
7
Rack
0
Group
0
Module
N20:5
Control block
N22:0
Data file
20
Length
N
Continuous
(EN)
(DN)
(ER)
(EN)
(DN)
(ER)
G1 G
Note: There are no MCR, JMP, or JSR
instructions in this program.
Note: The rung agrees with program
documentation.
RUN
FLT
Tip "
R5
1771-OFE2
G2 G
G3 G
22--15
I:074
] [
11
(EN)
(DN)
(ER)
RUN
Meter is always reading zero.
FLT
Tip "
Tip "
22--16
Answers
Exercise A
1. Possible solutions include cycling power or replacing the failed
module.
2. It is possible that either there is no power to the module or the
power source fuse failed.
3. The possible solutions include cycling power or replace the
failed module:
4. It is possible that the field wiring, the analog device, or the
device power supply has failed.
Lesson
23
1771- ASB
1771- ASB
1771- ASB
1771- ASB
23--2
1771- ASB
1771- ASB
1771- ASB
1771- ASB
1771- ASB
1771- ASB
1771- ALX
1771- ASB
1771- ALX
1771- ASB
1771- ALX
1771- ASB
23--3
No Faults Indicated
23--4
Rack
2
All Active
Lights Are
Green
I/O
LINK
ACTIVE
Rack
3
ACTIVE
Rack
4
ACTIVE
Rack
5
ACTIVE
ADAPTER
FAULT
ADAPTER
FAULT
ADAPTER
FAULT
ADAPTER
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
Rack
4
Rack
5
ACTIVE
ACTIVE
ACTIVE
ADAPTER
FAULT
ADAPTER
FAULT
ADAPTER
FAULT
ADAPTER
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
ACTIVE
I/O
LINK
Rack
3
A series of
active
lights are
off.
23--5
ACTIVE
Rack
3
ACTIVE
Rack
4
Rack
5
ACTIVE
ACTIVE
ADAPTER
FAULT
ADAPTER
FAULT
ADAPTER
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
Heres How
Using your workstation and the
CCP412_1785r_DEM2.rsp project,
demonstrate the following procedures
and troubleshooting simulations:
One Adapter
with I/O Rack
Fault Light
Indicated
ADAPTER
FAULT
I/O RACK
FAULT
I/O
LINK
REMOTE I/O
ADAPTER
23--6
Exercise: Troubleshooting I/O Channel and Chassis Problems Using RSLogix 5 Software
23--7
23--8
Exercise: Troubleshooting I/O Channel and Chassis Problems Using RSLogix 5 Software
Exercise: Troubleshooting I/O Channel and Chassis Problems Using RSLogix 5 Software
23--9
Exercise: Troubleshooting I/O Channel and Chassis Problems Using RSLogix 5 Software
23--10
Rack
2
Rack
3
Rack
4
Rack
5
R = Red
= Off
I/O
LINK
ACTIVE
ACTIVE
ACTIVE
ACTIVE
ADAPTER
FAULT
ADAPTER
FAULT
ADAPTER
FAULT
ADAPTER
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
Rack
2
Rack
3
Rack
4
Rack
5
ACTIVE
ACTIVE
ADAPTER
FAULT
R = Red
= Off
I/O
LINK
ACTIVE
ACTIVE
ADAPTER
FAULT
ADAPTER
FAULT
ADAPTER
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
I/O RACK
FAULT
REMOTE I/O
ADAPTER
Exercise: Troubleshooting I/O Channel and Chassis Problems Using RSLogix 5 Software
23--11
Rack
3
Rack
4
Rack
5
Key:
G = Green
R = Red
= Off
I/O
LINK
ACTIVE
ACTIVE
ACTIVE
G
R
Alternately
Blinking
ACTIVE
ADAPTER
FAULT
ADAPTER
FAULT
ADAPTER
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
I/O RACK
FAULT
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
REMOTE I/O
ADAPTER
ADAPTER
FAULT
23--12
Exercise: Troubleshooting I/O Channel and Chassis Problems Using RSLogix 5 Software
Answers
Exercise A
1.
A. From the information given, more than one faulted chassis,
this is a channel problem.
B. Racks 3, 4, and 5 on channel 1B have failed.
2.
A. From the information given, one faulted chassis, this is a
chassis problem.
B. Rack 4 on channel 1B has failed.
3.
A. From the information given, one faulted chassis, this is a
chassis problem.
B. Rack 2 has failed.
4. Possible solutions include the following situations:
high noise.
Reseat adapter module.
Remove and replace all I/O modules one at a time.
Replace adapter module.
Replace I/O chassis.
Lesson
24
Communications
24--2
LED Display
The probable
cause is . . .
Red
Battery low
Replace battery
Off
Normal operation
No action required
Processor LEDs
Emphasize the use of the processor as
a troubleshooting tool.
The probable
cause is . . .
Green (steady)
Normal operation
No action required
Green (blinking)
Normal operation
(EEPROM transfer)
No action required
Red (blinking)
Red (steady)
Off
Processor is in
Program mode, or Test
mode, or is not
receiving power
24--3
Force LEDs
Mention that the 1785 PLC-5
Programmable Controllers Quick
Reference lists all the possible status
indicators under the troubleshooting tab.
Amber (steady)
Normal operation
(forces enabled)
No action required
Amber (blinking)
Normal operation
(forces present but not
enabled)
No action required
Communications LEDs
Interpretation of communications LED can be summarized as
follows:
If the
communications
LED color is . . .
Off
No transmission on
channel 0 (normal
operation if channel is
not being used)
No action required
Green (blinking)
Transmission on
channel 0 (normal
operation if channel is
being used)
No action required
Battery Backup
Explain that lithium batteries are primary
(non-rechargeable) cells that give
extended memory support to the
processor.
24--4
points are connected and used to select the input voltage to the
power supply.
Cover
Printed Circuit
Board
Jumpers
Fault
Mention that a watchdog timer monitors
a cyclical process and is cleared at the
conclusion of each cycle, but a fault is
caused when the watchdog runs past its
programmed time period.
24--5
Heres How
Using your workstation and the
CCP412_1785r_DEM1.rsp project,
simulate troubleshooting processor
problems that are covered by Tab 2 and
2A of the Troubleshooting Guide.
Demonstrate how to use the
troubleshooting guide to isolate power
supply problems.
Use the Procedures Guide to
demonstrate how to clear a fault code.
To create a fault:
1. Place the processor in Run mode.
2. To activate program file 10, in N10:0,
enter a 10.
" The project contains a custom data
monitor for easy access to N10:0.
24--6
Exercise: Troubleshooting Processor and Power Supply Problems Using RSLogix 5 Software
24--7
Exercise: Troubleshooting
Processor and Power Supply
Problems Using RSLogix 5
Software
Exercise A
24--8
Exercise: Troubleshooting Processor and Power Supply Problems Using RSLogix 5 Software
Tip "
Change the radix in the input data table to Hexidecimal to be sure the
proper number was entered through the thumbwheel.
C. Press START (I:002/04).
Exercise: Troubleshooting Processor and Power Supply Problems Using RSLogix 5 Software
24--9
-----
24--10
Exercise: Troubleshooting Processor and Power Supply Problems Using RSLogix 5 Software
Answers
Exercise A
1. Based on the information provided, and starting on tab 2A of
the Troubleshooting Guide, you should have gone to tab 2I. The
instruction boxes on tab 2I instruct you to check the errors tab
of the Processor Status file for error definition and problem file
location. Then the following should be performed: (1) Call
plant engineering to correct program errors, (2) Clear fault
bit(s) by entering a zero in the faulted bit(s), or click Clear
Major Error, (3) Return processor to the Run mode.
2. Based on the information provided, and starting on tab 2A of
the Troubleshooting Guide, you should have gone to tabs 2K
and 3. Tab 3 instructs you to inspect the power switch and the
P/S ACTIVE indicator.
3. Based on the information provided, and starting on tab 2A of
the Troubleshooting Guide, you should have gone to tabs 2K.
Tab 2K instructs you to check power supply cable, replace the
processor, and then restore the program and put the processor in
Run mode.
6. You should see the following graphics when you produce and
clear the fault:
Lesson
25
25--2
25--3
Tip "
Change the radix in the input data table to Hexidecimal to be sure the
proper number was entered through the thumbwheel.
C. Press START (I:002/04) and verify that the RUN_LIGHT
(O:003/17) is flashing.
Tip "
The project was saved with CAN_FILLER forced off, so you may
have to remove the force to complete step C.
D. Load the paint recipe by pressing I:002/00.
E. Load the colors by pressing LOAD_COLORS (I:002/01).
F. Verify that the color mixer is turned on for 15 seconds.
G. Momentarily turn off (then on) the mixer tank drain valve
(O:003/05) by pressing I:002/2.
25--4
25--5
25--6
Answers
Exercise A
Step through the code to be sure that everything is working as
expected. The following tools are useful for troubleshooting this
project:
To find addresses and symbols in the ladder logic, use Goto and
Find functions.
To assist in determining the addresses of symbols, display the
cross-reference report and sort by symbols.
Appendix
Application Overview
Explain how the application will be used
in the course. Mention that this section
can be used as a reference for the
application during the exercises.
The paint factory uses a patented mixing process that begins with
pumping the primary colors into a mixing vat. The ingredients are
then thoroughly mixed. After mixing, the paint is loaded into
3.78-liter (1-gallon) cans, 4 or 6 cans per case, and shipped to the
retail locations for sale to customers.
The paint mixing, filling, and packaging system is shown in the
following graphic:
Mixing Tank
Filling Station
Lid Installation
Inspection
Packaging Station
Palletizing Station
A--2
Application Overview
A PLC-5 project file contains the ladder logic for the entire
manufacturing process. The following functional sections of the
paint processing line and their relation to the classroom workstation
are provided:
1. Start-Stop Section: The process is started by pressing START
(I:002/04). The process is stopped by pressing STOP (I:002/07).
A run light (O:003/17) indicates that the system is in operation.
2. Order Section:
A manual order is loaded by pressing MANUAL_LOAD
(I:002/05).
An order is entered via the thumbwheels (digital input 1).
The left-most digit (0 to 8) is the paint color recipe number.
The right-most three digits (000 to 999) are quantity in
gallons.
An order must be entered into the system before the system is
started.
3. Recipe Loading Section: A paint color recipe is loaded by
pressing LOAD_RECIPE (I:002/00).
4. Color Loading Section: The percentages of each color are
loaded into the mixing tank according to an amount of time
specified by the recipe. The operation is initiated by pressing
LOAD_COLORS (I:002/01).
5. Color Mixer Section: After the pumps for the color loading have
been off for 5 seconds, the mixer motor is turned on for 15
seconds.
6. Lid Installation Section: After the mixer is done, the tank drain
valve is opened (O:003/05). A 3.78-liter (1-gallon) can is then
filled (O:003/06), and a lid is installed (O:003/07).
7. Lid Installation Inspection Section: If a lid is not installed
properly, it is rejected and an alarm is set (O:003/16).
8. Packaging Section: Cans are packaged in cases of either 4 or 6
cans per case (I:002/17). A maximum of 16 cases can be loaded
on a pallet.
Application Overview
The following symbolic and I/O image addresses are used in the
project file. Use alternate addresses only if they are assigned by your
instructor.
Logical Address
Symbolic Name
Description
O:003/00
WHITE_LOAD
O:003/01
RED_LOAD
O:003/02
BLUE_LOAD
O:003/03
YELLOW_LOAD
O:003/04
COLOR_MIXER
O:003/05
MIXER_DRAIN
O:003/06
CAN_FILLER
O:003/07
LID_INSTALL
O:003/10
CASE_SEALER
O:003/12
LOAD_PUMP
O:003/15
ORDER_COMPLETE
O:003/16
REJECT_ALARM
O:003/17
RUN_LIGHT
I:000
ORDER_ENTRY
I:002/00
LOAD_RECIPE
I:002/01
LOAD_COLORS
I:002/02
MIX_TANK_FS1
I:002/03
EMPTY_CAN
I:002/04
START
I:002/05
MANUAL_LOAD
I:002/06
INSPECTION_STATION
I:002/07
STOP
I:002/10
CAN_FULL
I:002/11
SEALER_DONE
B3:0/0
MACHINE_RUN
Controls RUN_LIGHT
B3:0/1
B3:0/2
B3:0/3
COLOR_DONE
B3:0/4
R6:0 to R6:8
Rev. February 2007
A--3
Controls PUMP_OFF_DELAY
Indicates end of recipe transfer
XFER_RECIPE_X
A--4
Application Overview
Logical Address
Symbolic Name
Description
T4:0
T4:1
T4:2
T4:3
T4:4
RUN_STROBE
T4:5
MIX_TIMER
T4:6
PUMP_OFF_DELAY
C5:0
CANS_PER_CASE
C5:1
REJECT_COUNTER
C5:2
CANS_PER_PALLET
C5:3
ORDER_COUNTER
Counts number
C5:4
4_PER_CASE
Appendix
PLC-5/10t, -5/12t,
-5/15t, -5/25t
PLC-5/11t, -5/20t,
-5/26t, -5/30t, -5/40t,
-5/46t, -5/40Lt, -5/60t,
-5/60Lt, -5/80t, -5/86t
1784-KTK1
1784-PCMK/B
1784-KTX, -KTXD
B--2
Appendix
Description
-1, -2
Not used
-3
The size of the block transfer plus the size of the index in the block
transfer data table was greater than the size of the block transfer
data table file.
-4
-5
-6
-7
-8
--9
The block transfer timeout, set in the instruction, timed out before
completion.
-10
-11
-12
-13
C--2
1336 IMPACT
CompactLogix
ControlLogix
DH+
FactoryTalk
FlexLogix
Logix5550
PanelView
PHOTOSWITCH
RediSTATION
RSLogix
RSNetWorx
SLC
Ultra
PowerPoint
Windows NT