AB 820 PLC v2019 Student Workbook
AB 820 PLC v2019 Student Workbook
Logic Controllers
Getting Started Student Workbook
2
Course Objectives
3
Notes
4
Part 1: History
What Is A PLC?
A
Programmable Logic Controller
is a computer
that is specially designed
to make industrial
equipment and processes
easier to control
5
Notes
6
Part 1: History
8
Part 1: History
Control
9
Notes
10
Part 1: History
Ungrounded Grounded
Conductor Conductor
Rungs
Power Grounded
Rail Rail
11
Notes
12
Part 1: History
Disadvantages of relays:
• Size
• Speed (20 to 60 milliseconds)
• Not easy to make changes
(must re-wire to make
changes)
13
Notes
14
Part 1: History
15
Notes
16
Part 1: History
until.....
17
Notes
18
Part 1: History
1968
Bedford Associates (Bedford, MA) developed
the first PLC known as the Model 084, It was
there 84th project.
They named it the MODICON 084
“We had some real problems convincing people that this box of
software and cast iron could do the same thing as 50 feet of
cabinets with associated relays and wiring.”
Richard “Dick” Morley
Credited with inventing the first PLC but Allen-Bradley
copyrighted the letters “PLC”
19
Notes
20
Part 2: PLC Fundamentals
Current PLCs
21
Notes
22
Part 2: PLC Fundamentals
23
Notes
24
Part 2: PLC Fundamentals
L2 07 07 07 07 07 07
GND
Advantages:
Disadvantages:
• Repairable with modular
• More expensive
replacement
up front.
• Can be reconfigured with
• Larger in size,
system modifications
may not always fit.
• Flexible I/O
• Easily expandable
25
Notes
26
Part 2: PLC Fundamentals
A B C
X0 X1 X2 X3 COM X4 X5 X6 X7 COM X10 X11 COM
POWER INPUTS
RUN
L1 FAULT OUTPUTS
Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7
L2 D E
COM COM
GND
Advantages: Disadvantages:
• Less expensive • Not usually considered
repairable
• Smaller in size
• Cannot reconfigure with
system modifications
• I/O is not as flexible
• Limited types of input and
output modules 27
Notes
28
Part 2: PLC Fundamentals
MS
CR
29
Notes
30
Part 2: PLC Fundamentals
Input Output
Modules Processor Modules
Digital 1 2 3 Digital
Inputs Outputs
Analog Analog
Inputs Outputs
Power Programming
4 Supply Device
5 Parts to PLC
5
POWER
SUPPLY
POWER PROGRAMMING
ON
DEVICE
INCOMING
POWER
L1
INPUT CPU OUTPUT L2
00 RUN 00 M1
01 CPU 01 G
FAULT
I/O CR
02 FORCE 02
03 BATTERY 03 R
LOW
04 04 CR
05 05
06 06
07 07
32
Part 2: PLC Fundamentals
33
Notes
34
Part 2: PLC Fundamentals
Input Modules
• The input module interfaces with inputs from the
machinery or process that is being controlled.
L1
INPUT
00
01
02
TO CPU
03
04
05
06
07
N
Termination
Indication Isolation
35
Notes
36
Part 2: PLC Fundamentals
Why Isolation?
• The module acts as a messenger for the CPU
• The CPU is operating on a low voltage DC
• There must be isolation between the real world
and the CPU
37
Notes
38
Part 2: PLC Fundamentals
Output Modules
The output module interfaces with the outputs of the
machinery or process that is being controlled.
L1 OUTPUT
00 M1
01 G
02 CR
03 R
04 CR
FROM CPU
05
06
07
Isolation Termination
N
Indication 39
Notes
40
Part 2: PLC Fundamentals
41
Notes
42
Part 2: PLC Fundamentals
43
Notes
44
Part 2: PLC Fundamentals
46
Part 2: PLC Fundamentals
47
Notes
48
Part 2: PLC Fundamentals
49
Notes
50
Part 2: PLC Fundamentals
Programming Devices
The programming device allows the PLC programmers
and/or technicians the ability to develop, monitor, and edit
the operating program.
PC (Laptop)
Computer
51
Notes
52
Part 3: PLC Programming
Basics
Logic Instructions
Even though they look like relay contacts and coils,
they are not.
3 Main Instructions
53
Notes
54
Part 3: PLC Programming
Basics
Logic Instructions
When the PLC scans the program, it looks at the
ON/OFF state of the instructions to verify if the rung
is true.
X3 X1 X4 Y0
55
Notes
56
Part 3: PLC Programming
Basics
Logic Instructions
Boolean Math
AND- The only time the Result is true (=1) is when both
operators A AND B are true (=1).
The AND instruction is useful when the plc doesn't have a
masking function.
See the truth table below to figure out what we mean. (1 AND
1 = 1, 0 AND 0= 0)
57
Notes
58
Part 3: PLC Programming
Basics
Logic Instructions
Boolean Math
59
Notes
60
Part 3: PLC Programming
Basics
Logic Instructions
Boolean Math
61
Notes
62
Part 3: PLC Programming
Basics
Logic Instructions
Boolean Math
AND symbol
The instructions above typically have a symbol that looks
like that shown here. Of course, the word AND would be
replaced by OR or XOR.
63
Notes
64
Part 3: PLC Programming
Basics
Logic Instructions
Boolean Math
The dual instruction method would use a symbol similar to
that shown above. In this method, we give this symbol only
the Source B location. The Source A location is given by the
LDA instruction. The Destination would be included in the
STA instruction.
65
Notes
66
Part 3: PLC Programming
Basics
PLC Programs
Most PLC's present their program in ladder logic.
Rails
Addresses
X1 X3 Y1
X2
Conditional Output
Instructions Rungs
Instructions
X2 Y2
**NOT DEVICES**
67
Notes
68
Part 3: PLC Programming
Basics
PLC Programs
Some PLC's use a format called statement list.
Instructions Addresses
STR X1
OR X2
AND X3
OUT Y1
STR NOT X2
OUT Y2
69
Notes
70
Part 3: PLC Programming
Basics
A B C
X0 X1 X2 X3 COM X4 X5 X6 X7 COM X10 X11COM
POWER INPUTS
RUN
L1 FAULT OUTPUTS
Y0 Y1 Y2 Y3 E Y4 Y5 Y6 Y7
L2 D
COM COM
GND
71
Notes
72
Part 3: PLC Programming
Basics
GND
73
Notes
74
Part 3: PLC Programming
Basics
Rack System Addressing
2nd digit
1ST digit identifies
input or output identifies the
I = In slot in the rack
O = Out
Siemens Uses:
The remaining
E = In digits identify
A = Out the terminal on
the module in
GE, Siemens, the slot
and others use:
I = In I:1/ I:1/ O:4/
Q = Out
00 01 03
06 07
75
Notes
76
Part 3: PLC Programming
Basics
Modular Addressing
2nd digit
1ST digit identifies identifies the
input or output Terminal block/strip
I = In
O = Out
The remaining
I:0/05 digits identify
the terminal on
block/strip
77
Notes
78
Part 3: PLC Programming
Basics
LOGIC INSTRUCTIONS
I
CNT OR TMR N CNT
P
U OR
Relay TMR
T Output
Type S
( ) Function Block
Type
LOTS OF OTHER INSTRUCTIONS
SEQUENCERS
COMPARISON; <, >, = MATH: +, -, *, /
CONVERSION FUNCTIONS
COMMUNICATIONS 79
Notes
80
Part 3: PLC Programming
Basics
Internal Relay Instructions work the same as Output Instructions.
These instructions do not use your real I/O points.
Rung 4
23 Rungs Later
Rung 27
82
Part 3: PLC Programming
Basics
Remember!
3 Main Instructions
X3 X1 X4 Y0
83
Notes
84
Part 3: PLC Programming
Basics
1. Housekeeping
Housekeeping Allows the CPU to organize and
manage file information.
2. Read Inputs
Read The CPU looks at the input
Inputs modules and writes the status of those
modules to the input module storage
area.
86
Part 4: Troubleshooting PLCs
Multimeters
Review
Auto Ranging: Manual Range: The
The meter Ranging: highest value
automatically Range is set that the meter
determines the by the operator can measure on
scale. of the meter a particular
They usually can setting
operate in
manual mode.
Digital meters
are available
in Manual or
Auto ranging.
87
Notes
88
Part 4: Troubleshooting PLCs
Display: - 0.L -
OL Dial on 2K __________
Autoranging
Display will indicate range
What is the value of the following?
90
Part 4: Troubleshooting PLCs
OL Manual Ranging
Selector Dial will indicate range
Display: 135.8
Dial on 200 __________
Display: 2.36
Dial on 20 __________
Display: OL
Dial on 20 __________
Autoranging
Display will indicate range
What is the value of the following?
91
Notes
92
Part 4: Troubleshooting PLCs
00
01
02
03
04
05
06
07 N
L1 N
PROBLEM -
when pressing NO pushbutton
terminated at 00: What would the meter read set on VAC?
93
Notes
94
Part 4: Troubleshooting PLCs
02 CR
03 R
VAC2
04 CR
05
06
07
120VAC
L1 N
Problem - M1, hooked up
to output 00, is not energized
and the PLC is telling it to
come on. What would the meter read set on VAC?
Open in field wiring to **Terminal 00 - Neutral on Terminal strip = ____VAC
M1 Would indicating light be on or off?
96
Part 4: Troubleshooting PLCs
Input 00
- BLUE
Common Terminal
-
+ -
24VDC
Sinking Sourcing
Proximity Input Module
Switch
BLUE - BLACK
Input 00
+ BROWN
Common Terminal
+
97
- +
24VDC
Notes
98
Part 4: Troubleshooting PLCs
YES NO
CHECK FOR
FAULTY DEVICE
CHECK FOR
FAULTY WIRING
CHECK FOR
FAULTY WIRING
CHECK FOR
FAULTY DEVICE
99
Notes
100
Part 4: Troubleshooting PLCs
E-Stop Circuits
• A hard wired MCR provides a means for
emergency shutdown of machines.
• NEVER wire an e-stop to a PLC output!
• Place MCR contacts in series with power supply
to inputs/outputs – this way PLC stays on, but
machines are off.
101
Notes
102
Part 5: Micro820
103
Notes
104
Part 5: Micro820
105
Notes
106
Part 5: Micro820
107
Notes
108
Part 5: Micro820
110
Part 5: Micro820
The outputs
are powered
by the 24Vac
supply built
into the
111
trainer.
Notes
112
Part 5: Micro820
113
Notes
114
Part 6: Application
Hands-On Labs
The student will complete one or
more of the following using the
information provided:
• wire input & output devices to
the PLC
• Create the program in the PLC
software
• Set up communications
between the PLC & PC
• Download the program to the
PLC
• Demonstrate circuit operation
• Troubleshoot PLC and circuit
operation
115
Notes
116
Part 6: Application
117
Notes
118
Part 6: Application
Setting Up Communications
Prior to beginning any of the labs in this workbook, you
will need to set up communications between the PLC
and your computer.
119
Notes
120
Part 6: Application
Setting Up Communications
Launch Connected Components Workbench software
121
Notes
122
Part 6: Application
Setting Up Communications
The “New Project” window pops-up. Give your project a
name, and designate a location to save it on your
computer.
123
Notes
124
Part 6: Application
Setting Up Communications
The software will then prompt you to select a device
125
Notes
126
Part 6: Application
Setting Up Communications
The software will then prompt you to select a device
127
Notes
128
Part 6: Application
Setting Up Communications
129
Notes
130
Part 6: Application
Setting Up Communications
The screen should look like this
131
Notes
132
Part 6: Application
Setting Up Communications
The right side of the screen will display the configuration
set up for Ethernet
Under “Internet
Ensure the checkbox
Protocol (IP) Settings
“Detect duplicate IP
make sure the
address” is selected
“Obtain IP address
automatically using
DHCP” choice is
selected.
133
Notes
134
Part 6: Application
Setting Up Communications
135
Notes
136
Part 6: Application
Setting Up Communications
137
Notes
138
Part 6: Application
Lab #1:
140
Part 6: Application
Lab #2:
You will need to construct the PLC Program below to make the CR1
relay energize and stay energized when the Start PB is momentarily
pressed. The relay should de-energize when the red Stop PB is
pressed. 141
Notes
142
Part 6: Application
Lab #2:
Right-click “Programs”
in the Project Organizer
area, then move the
mouse over “Add”, then
select “New LD:
Ladder Diagram”
143
Notes
144
Part 6: Application
Lab #2:
145
Notes
146
Part 6: Application
Lab #2:
147
Notes
148
Part 6: Application
Lab #2:
The green Start PB is wired to Input #4, so you will need to
assign this address to your instruction.
149
Notes
150
Part 6: Application
Lab #2:
Select the “I/O Micro820” tab
Next,
choose
Input 4 by
selecting Then, assign a
“IO_EM_DI name to the
_04”. instruction by
clicking in the
“Alias” area, and
then type
“START”
To save, 151
click “OK”.
Notes
152
Part 6: Application
Lab #2:
The instruction should now appear in the rung with the correct
address and name.
154
Part 6: Application
Lab #2:
Now we are going to use the address from the CR1 output
instruction to control an input instruction in order to form an
interlock in the program to keep CR1 true (=1).
155
Notes
156
Part 6: Application
Lab #2:
Click and drag a “Direct Contact” instruction to the branch, and
then select “IO_EM_DO_00 CR1” as the address.
157
Notes
158
Part 6: Application
Lab #2:
Save your project by selecting “File”, then “Save Project As”
from the top menu. The Save Project As pop-up window
appears.
Choose a name and location for your project.
Once saved, the software will return to the “Micro820” tab. This is
because the software anticipates the downloading the project to the PLC
159
Notes
160
Part 6: Application
Lab #2:
Click “Download”, and the software should show a message
“Building” along the top of the screen
161
162
Part 6: Application
Lab #2:
The Download Confirmation pop-up window appears. You will
select “Download with Project Values”
164
Part 6: Application
Lab #2:
Your project is now running in the PLC.
165
Test your program. If it is working properly, notify your instructor.
Notes
166
Part 6: Application
Lab #2:
To monitor the inputs and outputs double-click the “Global Variables” in
the Project Organizer
167
Notes
168
Part 6: Application
Lab #3
For this lab you will add instructions to the program to make the lights that
are connected to the PLC outputs energize.
169
Notes
170
Part 6: Application
171
Notes
172
Part 6: Application
Lab #3
You will need to “Disconnect” the communication link in order to modify the
program
174
Part 6: Application
Lab #4
176
Programming
Part 6: Application
Lab #4
Once you have completed wiring the diagram on the previous page you will
modify the logic instructions in the project to reflect what is shown in the
program on the next page.
177
Notes
178
Programming
Part 6: Application
Lab #4
This program uses Timers to make the outputs alternate. You will need to
assign the addresses and variables in the Connected Components
Workbench software. Follow the instructions on the following pages.
179
Notes
180
Part 6: Application
Lab #4
Alternating Lights Program
This alternating lights uses the same stop/start circuit seen on the last lab, but
in addition we have added two timer instructions. Each are set at a short
time interval so as to switch back and forth. We are also using a control bit or
virtual coil “C1” in this program.
Virtual Coil C1
“BOOL” data type
DIRECT
CONTACT
REVERSE CONTACT
Timers set at .5
seconds each
(500ms)
Looking at the
condition
of TMR 1
Looking at
the
condition
of TMR 0
Real World
Outputs
181
Notes
182
Programming
Part 6: Application
Lab #4
C1 is an internal memory location – not a physical output.
To input this type of instruction and address into the PLC program, click
and drag a “Direct Coil” into the program from the Toolbox.
When the Variable Selector pop-up window appears:
1. Ensure that you are in the “Local Variables” tab
2. Type “C1” in the Name field
3. Ensure that the Type is “BOOL”
4. Then click “OK” to save.
3
184
Programming
Part 6: Application
Lab #4
In order to use a timer in the Connected Components Workbench software,
you must create two variables:
1. A variable named “Red_Light_Timer” with a “TIME” data type
2. A variable named “Red_Light_Preset” with an “INT” data type
Use a similar sequence of steps that you took to create the “C1” variable.
1. Double click the “Local Variables” in the Project Organizer
2. Click the “Name” field in the bottom row containing the “*” symbol
3. Type “Red_Light_Timer” in the Name field
4. Ensure that the Type is “TIME”
5. Then hit “Enter” to save the variable. Another “blank” row will appear
3 4
5
185
Notes
186
Programming
Part 6: Application
Lab #4
Type the number 500 into the “Initial Value” for both the
Red and Green Light Preset values. This is 500ms, or .5
seconds. You can change this value at any time.
187
Notes
188
Programming
Part 6: Application
Lab #4
TMR1 & TMR 2 are timer instructions.
To input this into the PLC program, click and drag an “Instruction Box”
instruction into the program.
189
Notes
190
Programming
Part 6: Application
Lab #4
When the Variable Selector pop-up window appears scroll down and select
TON (on delay timing).
191
Notes
192
Programming
Part 6: Application
Lab #4
TON_1 should now appear in your program
Move the mouse into the rectangle near the PT parameter (it should
turn blue) and click the box. A drop down menu appears. Scroll down
and select “Red_Light_Timer”
193
Notes
194
Programming
Part 6: Application
Lab #4
In order to control the preset time, an INT variable must be used. The
number placed in this variable will be transferred to the preset value of the
timer using an ANY_TO_TIME Instruction Block.
1. Click and drag another rung into your program, and then click and drag
another Instruction Block. This time choose the ANY_TO_TIME type.
195
Notes
196
Programming
Part 6: Application
Lab #4
Now you must specify:
198
Programming
Part 6: Application
Lab #4
Your completed program should look similar to this:
200
Programming
Part 6: Application
Lab #4
The sequence of the program begins:
201
Notes
202
Programming
Part 6: Application
Lab #4
The sequence of the program continues:
203
Notes
204
Programming
Part 6: Application
Lab #4
The sequence of the program continues:
1. When TON_1 times out, TON_1.Q becomes true (=1), this triggers:
1. TON_2 starts timing
2. Relay 1 becomes false (=0), and CR1 deenergizes, then Red
Light off
3. Relay 2 becomes true (=1), and CR2 energizes, then Green
Light on
205
Notes
206
Programming
Part 6: Application
Lab #4
The sequence of the program continues:
1. When TON_2 times out, TON_2.Q becomes true (=1), this triggers:
1. TON_1 rung becomes false, resets TON_1
2. TON_1.Q becomes false (=0), resets TON_2, RELAY 2
becomes false, CR2 deenergizes, Green Light off
3. TON_2.Q becomes false (=0), this makes rung 2 true, and
the cycle begins again
This bit
creates a
“domino
effect” in
the
program,
and sets
off a chain
of events
that resets
the
sequence
208
Programming
Part 6: Application
Lab #5
X4 X5 CNT0 C1
C1
C1 T1
TMR 0 This lab
incorporates a
T0 Counter
TMR 1 Instruction
Block
T0 Y2
C1 T0 Y3
T0
X4 CTR 0
END
210
Programming
Part 6: Application
Lab #5
X4 X5 CNT0 C1
C1
Stops the
sequence when
T1 the Counter
C1
reaches its
TMR 0 preset value.
T0
TMR 1
T0 Y2
C1 Counter preset to
T0 Y3
10 increments.
T0
X4 CTR 0
Resets the
counter to
zero.
END
211
Notes
212
Programming
Part 6: Application
Lab #5
Challenge: Use the knowledge you have gained from Labs #1-4
and apply to this application.
Program Considerations:
213
Notes
214
Programming
Part 6: Application
Lab #5
Your finished program should look similar to this:
215
Notes
216
Part 6: Application
Program Description:
If either limit switch is OPENED, the process will stop, but only pause
until both limit switches are closed again (hint: counter does not reset).
This will simulate a safety precaution logic situation that if either door
switch is opened, the machine will stop.
217
Notes
218
Part 6: Application
219
Notes
220
Part 6: Application
Real World
Examples of PLC
Operated
Machines
221
Part 6: Application
Let’s look at an actual machine used to bend Lawn Chair Legs. This
machine uses an Allen Bradley PLC and the program is included. Look
step by step through the program and see if you recognize the
statements.
HYD CYLINDER
GUARD
HYDRAULIC PUMP
MANUAL POWER
START PUMP
RETRACT ON
ON
Note:
STOP READY E-STOP
The hydraulic pump,
solenoid valves, and
Control Cabinet pressure switch are
located underneath.
222
Part 6: Application
HYD CYLINDER
GUARD
HYDRAULIC PUMP
MANUAL POWER
START PUMP
RETRACT ON
ON
Control Cabinet
Sequence of Operation
1. Insert Metal
2. Close Guard
3. Hydraulic cylinder extends until it engages
and activates the pressure switch.
4. Cylinder retracts
5. Open Guard
6. Repeat 223
Notes
224
Part 6: Application
L1 L2 L3
01
02
03 1030FU
05
1060FU
1060
06 201
1070
07 202
08
09 1090FU
10
4030 MS
11
T1 T2 T3
13
14 HYDRAULIC
1140M PUMP MOTOR
15
1 4
225
Notes
226
Part 6: Application
1060
01 106
1070
02 107
2030T
03 1KVA
2040 X4 X2 X3 X1 2041
04
07
08
2090 PLC
SLOT 0 SLOT 1 SLOT 2 SLOT 3
09
CPU 120 120
VAC VAC
POWER IN OUT E
10
SUPPLY M
P
T
11 H
Y
N
12
13 2060 ESR-2
2130
14
2130 2041
15
301 301
228
Part 6: Application
215 215
01 2130 2041
11 AC COM
12 AC COM
13
14
15 2130 2041
401 401
229
3 4
Notes
230
Part 6: Application
01 2130 2041
02 VAC 1
4030 MS 4030 OL
HYD PUMP MS
03 4030 111,
O:2/0 OUT0 305
07 VAC 2
4080 LT
4080
READY LT
08 O:2/4 OUT4 G
09 O:2/5 OUT5
10 O:2/6 OUT6
11 O:2/7 OUT7
12
13
14
2130 2041
15
301 301
232
Part 6: Application
+--------------------------------------------------+
| |
| |
| Allen-Bradley Co. |
| 1747 Series Software |
| APS Release 4.01 |
| Documentation Utility |
| Program Listing |
| |
| SUNBEAM |
| |
| Processor File: SUNBEAM.ACH |
| March 09, 2000 - 21:24 |
| |
+--------------------------------------------------+
233
Notes
234
Part 6: Application
SUNBEAM March 09, 2000 Page 1
Program Listing Processor File: SUNBEAM.ACH Rung 2:0
Rung 2:0
| HYD PUMP HYD PUMP | HYD PUMP |
| START PB STOP PB | MS |
| I:1 I:1 O:2 |
|-+----] [-----+----] [------------------------------------------------( )-----|
| | 0 | 1 0 |
| | HYD PUMP | |
| | MS AUX | |
| | I:1 | |
| +----] [-----+ |
| 2 |
Rung 2:1
| HYD PUMP | HYD PUMP |
| MS | ON LIGHT |
| O:2 O:2 |
|----] [---------------------------------------------------------------( )-----|
| 0 3 |
Rung 2:2
| HYD CYL |GUARD HYD PUMP | READY |
| RET PROX |OPEN PROX MS | LIGHT |
| I:1 I:1 O:2 O:2 |
|-+----] [--------] [-----+----] [-------------------------------------( )-----|
| | 5 3 | 0 4 |
| | READY | |
| | LIGHT | |
| | O:2 | |
| +----] [----------------+ |
| 4 |
Rung 2:3
| HYD CYL |HYD CYL READY |CYCLE | ADVANCE |
| EXT PRESS |ADV SV LIGHT |COMPLETE | COMPLETE |
| SW | |
| I:1 O:2 O:2 B3 B3 |
|-+----] [--------] [-----+----] [--------]/[--------------------------( )-----|
| | 7 1 | 4 2 0 |
| | ADVANCE | |
| | COMPLETE | |
| | B3 | |
| +----] [----------------+ |
| 0 |
Rung 2:4
| GUARD |READY |ADVANCE | HYD CYL |
| CLOSED |LIGHT |COMPLETE | ADV SV |
| PROX | |
| I:1 O:2 B3 O:2 |
|----] [--------] [--------]/[-----------------------------------------( )-----|
235
| 4 4 0 1 |
Notes
236
Part 6: Application
Rung 2:5
| HYD CYL |HYD CYL READY |CYCLE | RETRACT |
| RET PROX |RET SV LIGHT |COMPLETE | COMPLETE |
| I:1 O:2 O:2 B3 B3 |
|-+----] [--------] [-----+----] [--------]/[--------------------------( )-----|
| | 5 2 | 4 2 1 |
| | RETRACT | |
| | COMPLETE | |
| | B3 | |
| +----] [----------------+ |
| 1 |
Rung 2:6
| READY |ADVANCE |RETRACT GUARD |HYD CYL | HYD CYL |
| LIGHT |COMPLETE |COMPLETE CLOSED |RET PROX | RET SV |
| PROX | |
| O:2 B3 B3 I:1 I:1 O:2 |
|-+----] [--------] [--------]/[-----+----] [--------]/[---------------( )-----|
| | 4 0 1 | 4 5 2 |
| | MANUAL |READY | |
| | RET PB |LIGHT | |
| | I:1 O:2 | |
| +----] [--------]/[----------------+ |
| 6 4 |
Rung 2:7
| GUARD |RETRACT | CYCLE |
| OPEN PROX |COMPLETE | COMPLETE |
| I:1 B3 B3 |
|----] [--------] [----------------------------------------------------( )-----|
| 3 1 2 |
Rung 2:8
| |
|-------------------------------------+END+------------------------------------|
| |
237
Notes
238
Part 6: Application
+--------------------------------------------------+
| |
| |
| Allen-Bradley Co. |
| 1747 Series Software |
| APS Release 4.01 |
| Documentation Utility |
| Cross Reference |
| |
| SUNBEAM |
| |
| Processor File: SUNBEAM.ACH |
| March 09, 2000 - 21:24 |
| |
+--------------------------------------------------+
239
Part 6: Application
SUNBEAM March 09, 2000 Page 1
Cross Reference Processor File: SUNBEAM.ACH
Address Symbol / Comment /
Instruction File Number:Rung Number
241
Glossary
A
•AC input module: This is a module that converts a real-world AC input signal to the
logic level required by the PLC processor.
•AC output module: Module that converts the processor logic level to an AC output
signal to control a real-world device.
•Accumulated value: Applies to the use of timers and counters. The accumulated value
is the present count or time.
•Accuracy: The deviation between the actual position and the theoretical position.
•Actuator: Output device normally connected to an output module. An example would
be an air valve and cylinder.
•Address: Number used to specify a storage location in memory.
•Ambient temperature: Temperature that naturally exists in the environment. For
example, the ambient temperature of a PLC in a cabinet near a steel furnace is very
high.
•Analog: Signal with a smooth range of possible values. For example, a temperature
that could vary between 60 and 300 degrees would be analog in nature.
•ANSI: American National Standards Institute.
•ASCII: American Standard Code for Information Interchange. A coding system used to
represent letters and characters. Seven-bit ASCII can represent 128 different
combinations. Eight-bit ASCII (extended ASCII) can represent 256 different
combinations.
•Asynchronous communications: Method of communications that uses a series of bits
to send data between devices. There is a start bit, data bits (7 or 8), a parity bit (odd,
even none, mark, or space), and stop bits (1, 1.5, or 2). One character is transmitted at
a time. RS-232 is the most common.
242
Glossary
B
•Backplane: Bus in the back of a PLC chassis. It is a printed circuit board with sockets
that accept various modules.
•Baud rate: Speed of serial communications. The number of bits per second
transmitted. For example, RS-232 is normally used with a baud rate of 9600. This
would be about 9600 bits per second. It takes about 10 bits in serial to send an ASCII
character so that a baud rate of 9600 would transmit about 960 characters per second.
•BEUG (BITBUS European Users Group): BEUG is a nonprofit organization devoted to
spreading the BITBUS technology and organizing a basic platform where people using
BITBUS can share application experiences.
•Binary: Base two number system. Binary is a system in which ones and zeros are
used to represent numbers.
•Binary-coded decimal (BCD): A number system. Each decimal number is represented
by four binary bits. For example, the decimal number 967 would be represented by
1001 0110 0111 in BCD.
•Bit: Binary digit. The smallest element of binary data. A bit will be either a zero or a
one.
•BITBUS: It is one of the most widely used fieldbuses. It was promoted as a standard
in 1990 by a special committee of the IEEE (standard IEEE-1118 1990).
•Boolean: Logic system that uses operators such as AND, OR, NOR, and NAND. This
is the system that is utilized by PLCs, although it is usually made invisible by the
programming software for the ease of the programmer.
•Bounce: This is an undesirable effect. It is the erratic make and break of electrical
contacts.
•Branch: Parallel logic path in a ladder diagram.
•Byte: Eight bits or two nibbles. (A nibble is 4 bits.)
243
Glossary
• C
• Cascade: Programming technique that is used to extend the range of timers and
counters.
• CENELEC: European Committee for Electrotechnical Standardization. It develops
standards which cover dimensional and operating characteristics of control
components.
• Central processing unit (CPU): Microprocessor portion of the PLC. It is the portion of
the PLC that handles the logic.
• Color mark sensor: Sensor that was designed to differentiate between two different
colors. They actually differentiate on the basis of contrast between the two colors.
• Complement: The complement is the inverse of a digital signal.
• CMOS (complementary metal-oxide semiconductor): Integrated circuits that
consume very little power and also have good noise immunity.
• Compare instruction: PLC instruction that is used to test numerical values for equal,
greater than, or less than relationships.
• Contact: Symbol used in programming PLCs. Used to represent inputs. There are
normally open and normally closed contacts. Contacts are also the conductors in
electrical devices such as starters.
• Contactor: Special-purpose relay that is used to control large electrical current.
• CSA (Canadian Standards Organization): Develops standards, tests products and
provides certification for a wide variety of products.
• Current sinking: Refers to an output device (typically an NPN transistor) that allows
current flow from the load through the output to ground.
• Current sourcing: Output device (typically a PNP transistor) that allows current flow
from the output through the load and then to ground.
• Cyclic Redundancy Check (CRC): A calculated value, based on the content of a
communication frame. It is inserted in the frame to enable a check of data accuracy
after receiving the frame across a network. BITBUS uses the standard SDLC CRC.
244
Glossary
• D
• Dark-on: Refers to a photosensor's output. If the sensor output is on when no object
is sensed, it is called a dark-on sensor.
• Data highway: This is a communications network that allows devices such as PLCs
to communicate. They are normally proprietary, which means that only like devices
of the same brand can communicate over the highway.
• Data table: A consecutive group of user references (data) of the same size that can
be accessed with table read/write functions.
• Debugging: Process of finding problems (bugs) in any system.
• Diagnostics: Devices normally have software routines that aid in identifying and
finding problems in the device. They identify fault conditions in a system.
• Digital output: An output that can have two states: on or off. These are also called
discrete outputs.
• Distributed processing: The concept of distributed processing allows individual
discrete devices to control their area and still communicate to the others via a
network. The distributed control takes the processing load off the "host" system.
• Documentation: Documentation is descriptive paperwork that explains a system or
program. It describes the system so that the technician can understand, install,
troubleshoot, maintain, or change the system.
• Downtime:The time a system is not available for production or operation is called
downtime. Downtime can be caused by breakdowns in systems.
• E
• EEPROM: Electrically erasable programmable read only memory.
• Energize: Instruction that causes a bit to be a one. This turns an output on.
• Examine-off: Contact used in ladder logic. It is a normally closed contact. The
contact is true (or closed) if the real-world input associated with it is off.
• Examine-on: Contact used in ladder logic programming. Called a normally open
contact. This type of contact is true (or closed) if the real-world input associated with
it is on.
• Expansion rack: A rack added to a PLC system when the application requires more
modules than the main rack can contain. A remote rack is sometimes used to permit
I/O to be remotely located from the main rack.
245
Glossary
• F
• False: Disabled logic state (off).
• Fault: Failure in a system that prevents normal operation of a system.
• Firmware: A series of instructions contained in read-only memory (ROM) that are used
for the operating system functions. Some manufacturers offer upgrades for PLCs. This
is often done by replacing a ROM chip. Thus the combination of software and
hardware lead to it being called firmware.
• Flowchart: Used to make program design easier.
• Force: Refers to changing the state of actual I/O by changing the bit status in the PLC.
In other words, a person can force an output on by changing the bit associated with
the real-world output to a 1. Forcing is normally used to troubleshoot a system.
• Frame: Packet of bits that will be transmitted across a network. A frame contains a
header, user data and an end of frame. The frame must contain all the necessary
information to enable the sender and receiver(s) of the communication to decode the
user's data and to ensure that this data is right.
• Full duplex: Communication scheme where data flows in both directions
simultaneously.
• G
• Ground: Direct connection between equipment (chassis) and earth ground.
• H
• Half duplex: Communication scheme where data flows in both directions but in only
one direction at a time.
• Hard contacts: Physical switch connections.
• Hard copy: Printed copy of computer information.
• HDLC (High-level Data Link Control): Standard protocol of communication oriented in
message transmission (frames). The user's data field in an HDLC-frame can be of a
free number of bits. The SLDC is a subset of the HDLC that defines the whole protocol
in more detail and is byte-oriented.
• Hexadecimal: Numbering system that utilizes base 16.
• Host computer: One to which devices communicate. The host may download or
upload programs, or the host might be used to program the device. An example would
be a PLC connected to a microcomputer. The host (microcomputer) "controls" the PLC
by sending programs, variables, and commands. The PLC controls the actual process
but at the direction and to the specifications of the host.
• Hysteresis: A dead band that is purposely introduced to eliminate false reads in the
case of a sensor. In an encoder hysteresis would be introduced in the electronics to
prevent ambiguities if the system happens to dither on a transition.
246
Glossary
• I
• IEC (International Electrotechnical Commission): Develops and distributes
recommended safety and performance standards.
• IEEE: Institute of Electrical and Electronic Engineers.
• Image table: Area used to store the status of input and output bits.
• Incremental: This term typically refers to encoders. Encoders provide logic states of 0
and 1 for each successive cycle of resolution.
• Instruction set: Instructions that are available to program the PLC.
• Intelligent I/O: PLC modules that have a microprocessor built in. An example would be
a module that would control closed-loop positioning.
• Interfacing: Connection of a PLC to external devices.
• I/O (input/output): Used to speak about the number of inputs and outputs that are
needed for a system, or the number of inputs and outputs that a particular
programmable logic controller can handle.
• IP rating: Rating system established by the IEC that defines the protection offered by
electrical enclosures. It is similar to the NEMA rating system.
• Isolation: Used to segregate real-world inputs and outputs from the central processing
unit. Isolation assures that even if there is a major problem with real-world inputs or
outputs (such as a short), the CPU will be protected. This isolation is normally
provided by optical isolation.
• K
• Abbreviation for the number 1000. In computer language it is equal to two to the tenth,
or 1024.
• Keying: Technique to ensure that modules are not put in the wrong slots of a PLC. The
user sets up the system with modules in the desired slots. The user then keys the
slots to assure that only a module of the correct type can be physically installed.
247
Glossary
• L
• Ladder diagram: Programmable controller language that uses contacts and
coils to define a control sequence.
• LAN: See Local area network.
• Latch: An instruction used in ladder diagram programming to represent an
element that retains its state during controlled toggle and power outage.
• Leakage current: Small amount of current that flows through load-powered
sensors. The small current is necessary for the operation of the sensor. The
small amount of current flow is normally not sensed by the PLC input. If the
leakage is too great a bleeder resistor must be used to avoid false inputs at
the PLC.
• LED (light-emitting diode): A solid-state semiconductor that emits red, green,
or yellow light or invisible infrared radiation.
• Light-on sensor: This refers to a photosensor's output. If the output is on
when an object is sensed, the sensor is a light-on sensor.
• Linear output: Analog output.
• Line driver: A line driver is a differential output driver intended for use with a
differential receiver. These are usually used where long lines and high
frequency are required and noise may be a problem.
• Line-powered sensor: Normally, three-wire sensors, although four-wire
sensors also exist. The line-powered sensor is powered from the power
supply. A separate wire (the third) is used for the output line.
• Load: Any device that current flows through and produces a voltage drop.
• Load-powered sensor: A load-powered sensor has two wires. A small leakage
current flows through the sensor even when the output is off. The current is
required to operate the sensor electronics.
• Load resistor: A resistor connected in parallel with a high-impedance load to
enable the output circuit to output enough current to ensure proper operation.
• Local area network (LAN): A system of hardware and software designed to
allow a group of intelligent devices to communicate within a fairly close
proximity.
• Lockout: The placement of a lockout device on an energy isolating device, in
accordance with an established procedure, to ensure that the energy isolating
device and the equipment being controlled cannot be operated until the
lockout device is removed.
• Lockout device: A device that utilizes a positive means such as a lock, either
key or combination type, to hold an energy isolating device in the safe
position and prevent the energizing of a machine or equipment.
• LSB: Least significant bit.
248
Glossary
• M
• Machine language: Control program reduced to binary form.
• MAP (manufacturing automation protocol): "Standard" developed to make
industrial devices communicate more easily. Based on a seven-layer model of
communications.
• Master: The master on a network is the device that controls communication
traffic. The master of a network usually polls every slave to check if it has
something to transmit. In a master-slave configuration, only the active master
can place a message on the bus. The slave can reply only if it receives a
frame from the master that contains a logical token that explicitly enables the
slave to reply.
• Master control relay (MCR): Hardwired relay that can be deenergized by any
hardwired series-connected switch. Used to deenergize all devices. If one
emergency switch is hit it must cause the master control relay to drop power
to all devices. There is also a master control relay available in most PLCs.
The master control relay in the PLC is not sufficient to meet safety
requirements.
• Memory map: Drawing showing the areas, sizes, and uses of memory in a
particular PLC.
• Microsecond: A microsecond is one millionth (0.000001) of a second.
• Millisecond: A millisecond is one thousandth (.001) of a second.
• Mnemonic codes: Symbols designated to represent a specific set of
instructions for use in a control program. An abbreviation given to an
instruction: usually an acronym that is made by combining the initial letters or
parts of words.
• MSB: Most significant bit.
249
Glossary
• N
• NEMA (National Electrical Manufacturers Association): Develops standards that
define a product, process, or procedure. The standards consider construction,
dimensions, tolerances, safety, operating characteristics, electrical rating and so on.
They are probably best known for their rating system for electrical cabinets.
• Network: System that is connected to devices or computers for communication
purposes.
• Node: Point on the network that allows access.
• Noise: Unwanted electrical interference in a programmable controller or network. It
can be caused by motors, coils, high voltages, welders, and so on. It can disrupt
communications and control.
• Nonretentive coil: A coil that will turn off upon removal of applied power to the CPU.
• Nonretentive timer: Timer that loses the time if the input enable signal is lost.
• Nonvolatile memory: Memory in a controller that does not require power to retain its
contents.
• NOR: The logic gate that results in zero unless both inputs are zero.
• NOT: The logic gate that results in the complement of the input.
• O
• Octal: Number system based on the number 8, utilizing numbers 0 through 7.
• Off-delay timer: This is a type of timer that is on immediately when it receives its
input enable. It turns off after it reaches its preset time.
• Off-line programming: Programming that is done while not attached to the actual
device. For example, a PLC program can be written for a PLC without being
attached. The program can then be downloaded to the PLC.
• On-delay timer: Timer that does not turn on until its time has reached the preset time
value.
• One-shot contact: Contact that is only on for one scan when activated.
• Operating system: The fundamental software for a system that defines how it will
store and transmit information.
• Optical isolation: Technique used in I/O module design that provides logic separation
from field levels.
• OR: Logic gate that results in 1 unless both inputs are 0.
250
Glossary
• P
• Parallel communication: A method of communications where data is transferred on
several wires simultaneously.
• Parity: Bit used to help check for data integrity during a data communication.
• Peer-to-peer: This is communication that occurs between similar devices. For
example, two PLCs communicating would be peer-to-peer. A PLC communicating to
a computer would be device-to-host.
• PID (Proportional, integral, derivative) control: Control algorithm that is used to
closely control processes such as temperature, mixture, position, and velocity. The
proportional portion takes care of the magnitude of the error. The integral takes care
of small errors over time. The derivative compensates for the rate of error change.
• PLC: Programmable logic controller.
• Programmable controller: A special-purpose computer. Programmed in ladder logic.
It was also designed so that devices could be easily interfaced with it.
• Pulse modulated: Turning a light source on and off at a very high frequency. In
sensors the sending unit pulse modulates the light source. The receiver only
responds to that frequency. This helps make photo-sensors immune to ambient
lighting.
• PPR (Pulses per revolution): This refers to the number of pulses an encoder
produces in one revolution.
• Q
• Quadrature: Two output channels out of phase with each other by 90 degrees.
• R
• Rack: PLC chassis. Modules are installed in the rack to meet the user's need.
• Radio frequency (RF): Communications technology in which there is a
transmitter/receiver and tags. The transmitter/ receiver can read or write to the tags.
There are active and passive tags available. Active tags are battery powered.
Passive tags are powered from the RF emitted from the transmitter. Active tags have
a much wider range of communication. Either tag can have several K of memory.
251
Glossary
• R
• RAM (random access memory): Normally considered user memory.
• Register: Storage area. It is typically used to store bit states or values of items such
as timers and counters.
• Repeatability: The ability to repeat movements or readings. For a robot it would be
how accurately it would return to a position time after time. Repeatability is unrelated
to resolution and is usually 3 to 10 times better than accuracy.
• Resolution: A measure of how closely a device can measure or divide a quantity. For
example, in an encoder resolution would be defined as counts per turn. For an analog
to digital card it would be the number of bits of resolution. For example, for a 12-bit
card the resolution would be 4096.
• Retentive coil: A coil that will remain in its last state, even though power was
removed.
• Retentive timer: Timer that retains the present count even if the input enable signal is
lost. When the input enable is active again, the timer begins to count again from
where it left off.
• Retroreflective: Photosensor that sends out a light which is reflected from a reflector
back to the receiver (the receiver and emitter are in the same housing). When an
object passes through it breaks the beam.
• RF (radio frequency): See radio frequency.
• ROM (read-only memory): This is operating system memory. ROM is nonvolatile. It is
not lost when the power is turned off.
• RS-232: Common serial communications standard. This standard specifies the
purpose of each of 25 pins. It does not specify connectors or which pins must be
used.
• RS-422 and RS-423: Standards for two types of serial communication. RS-422 is a
balanced serial mode. This means that the transmit and receive lines have their own
common instead of sharing one like RS-232. Balanced mode is more noise immune.
This allows for higher data transmission rates and longer transmission distances. RS-
423 uses the unbalanced mode. Its speeds and transmission distances are much
greater than RS-232 but less than RS-422.
• RS-449: Electrical standard for RS-422/RS-423. It is a more complete standard than
the RS-232. It specifies the connectors to be used also. RS-485: Similar to the RS-
422 standard. Receivers have additional sensitivity which allows for longer distances
and more communication drops. Includes some extra protection for receiver circuits.
• Rung: Group of contacts that control one or more outputs. In a ladder diagram it is the
horizontal lines on the diagram.
252
Glossary
• S
• Scan time: Amount of time it takes a programmable controller to evaluate a ladder
diagram. The PLC continuously scans the ladder diagram. The time it takes to
evaluate it once is the scan time. It is typically in the low-millisecond range.
• SDLC: Serial Data Link Control, subset of the HDLC used in a large number of
communication systems like Ethernet, ISDN, BITBUS, and others. This protocol
defines the structure of the frames and the values of a number of specific fields in
these frames.
• Sensitivity: Refers to a device's ability to discriminate between levels. If it's a sensor it
would relate to the finest difference it could detect. If it were an analog module for a
PLC, it would be the smallest change it could detect.
• Sensor: Device used to detect change. Normally it is a digital device. The outputs of
sensors change state when they detect the correct change. Sensors can be analog or
digital in nature. They can also be purchased with normally closed or normally open
outputs.
• Sequencer: Instruction type that is used to program a sequential operation.
• Serial communication: Sending of data one bit at a time. The data is represented by a
coding system such as ASCII.
• Slave: On a master-slave configured network, there is usually one master and several
slaves. The slaves are nodes of the network that can transmit informations to the
master only when they are polled (called) from it. The rest of the time a slave never
transmits anything.
• Speech modules: Used by a PLC to output spoken messages to operators. The
sound is typically digitized human speech stored in the module's memory. The PLC
requests the message number to play it.
• T
• Tagout: The placement of a tagout device on an energy isolating device, in
accordance with an established procedure, to indicate that the energy isolating device
and the equipment being controlled may not be operated until the tagout device is
removed.
• Tagout device: A prominent warning device, such as a tag and a means of
attachment, which can be securely fastened to an energy isolating device in
accordance with an established procedure, to indicate that the energy isolating device
and the equipment being controlled may not be operated until the tagout device is
removed.
• Thermocouple: A thermocouple is a sensing transducer. It changes a temperature to a
current. The current can then be measured and converted to a binary equivalent that
the PLC can understand.
253
Glossary
• T cont’d
• Thumbwheel: Device used by an operator to enter a number between 0 and 9.
Thumbwheels are combined to enter larger numbers. Thumbwheels typically output
BCD numbers to a device.
• Timer: Instruction used to accumulate time until a certain value is achieved. The timer
then changes its output state.
• TOP (technical and office protocol): Communication standard that was developed by
Boeing. Based on the contention access method. The MAP standard is meant for the
factory floor and TOP is meant for the office and technical areas.
• Transitional contact: Contact that changes state for one scan when activated.
• True: This is the enabling logic state. Generally associated with a "one" or "high" state.
• U
• UL (Underwriters Laboratory): Organization that operates laboratories to investigate
systems with respect to safety.
• User memory: Memory used to store user information. The user's program,
timer/counter values, input/output status, and so on, are all stored in user memory.
• V
• Volatile memory: Memory that is lost when power is lost.
• W
• Watchdog timer: Timer that can be used for safety. For example, if there is an event or
sequence that must occur within a certain amount of time, a watchdog timer can be set
to shut the system down in case the time is exceeded.
• Word: Length of data in bits that a microprocessor can handle. For example, a word for
a 16-bit computer would be 16 bits long, or two bytes. A 32-bit computer would have a
32-bit word.
254
VISIT OUR WEBSITE
www.goitu.com
FREE SAFETY DOWNLOADS!
Contact us at:
Phone: 800.381.4389
Fax: 812-961-8811
Email: [email protected]
255