Académique Documents
Professionnel Documents
Culture Documents
A solid state device that controls output devices based on input status and a user developed program. Originally developed to directly replace relays used for discrete control.
Inputs Outputs
Programmable Controller
C R
maintenance/reliability mechanical devices wear out, create and are affected by vibration expensive to program time consuming, difficult to document, hard to pass on logic difficult to troubleshoot requires skilled technician race problems are common and difficult to deal with
PLC performs relay equivalent functions PLC performs ON/OFF control Ladder diagram program representation Designed for industrial environment Designed for ease of use and maintenance
PLC Advantages
Ease of programming Ease of maintenance Designed for industrial environment Quick installation Adaptable to change
Data Comparison
Word Manipulation Master Control Relay Instructions Program Skip Capability Sequencing Matrix Data Manipulation Proportional, Integral, Differential (PID) Control
Strapping machinery / trash compactors Palletizers Compressor control Replace hard-wired relay panels or SBCs Many, many more
Inside A PLC
Communications
I n p u t
C i r c u i t s
Central Processor
O u t p u t
C i r c u i t s
CR
High Voltage
Isolation Barrier
MEMORY
program
Low Voltage AC Power Supply 85-264 VAC, 50/60Hz
Isolation Barrier
High Voltage
data
or
Input Devices
Pushbuttons Selector Switches Limit Switches Level Switches 120/230 VAC 24 VDC
Sourcing Sinking
Photoelectric Sensors
Proximity Sensors Motor Starter Contacts Relay Contacts Thumbwheel Switches
Output Devices
Valves Motor Starters Solenoids Control Relays Alarms Lights Fans Horns Relays
120 VAC/VDC 240 VAC 24 VAC/VDC
Triac
120/230 VAC
Transistor MOSFET
24 VDC
Functions required
Instruction set
Messaging PID PTO, PWM
Number of
10, 16, 20, 32, 156
Memory
Type
Flash or Battery backed
Arithmetic Communications
DeviceNet, Ethernet Remote I/O, DH+
Size
1k, 6k, 12k, 16k, 64k
Report generation
Micro
Typically less than 32 I/O
Small
Typically less than 128 I/O
Medium
Typically less than 1024 I/O
Large
Typically greater than 1024 I/O
Distributed
SLC 500 and PLC5
Packaged PLC
Power supply, inputs, outputs and communication port are enclosed in a single package. Input and output devices are wired individually to the packaged controller.
+
Processor Base Unit
+
Compact I/O
Modular PLCs
Mix N Match Components
Processors, Power Supplies and I/O are plugged into a rack or chassis Available in Small, Medium, and Large platforms Flexibility results in higher costs when compared to packaged
Distributed
Rely on communications for EVERYTHING All I/O is connected to the processor through a High Speed data link. Typically found on larger (medium and large) PLCs. For certain applications this type of form factor is very advantageous. Usually higher cost for hardware, but much lower cost for system integration. RIO (Remote I/O), DeviceNet are examples of distributed control.
Reliability
Designed to meet existing industrial design standards
UL, CSA, CE Designed & manufactured in ISO9000 facilities
International Focus
Standard product available throughout the world
Input Wiring
Terminal Block Isolation Barrier
Input Devices
1 2 3 4 5 6 7 8
L1 L1
P L C
L2
10 COM
Output Wiring
Isolation Barrier Terminal Block
Output Devices L1 L2
CR
P L C
L1 L2
OUT 4
OUT 4 OUT 5 OUT 5 OUT 6 OUT 6
Housekeeping
Internal checks on memory, speed and operation. Service any communication requests, etc.
Input Scan
The status of external inputs (terminal block voltage) is written to the Input image (Input file).
Output Scan
The Output Image data is transferred to the external output circuits, turning the output devices ON or OFF.
Program Scan
Each ladder rung is scanned using the data in the Input file. The resulting status (Logic being solved) is written to the Output file (Output Image).
Memory Organization
Integer Files Control File Counter File Timer File Bit File Status File Input File Output File
DATA FILES
MicroLogix MEMORY
DATA
Octal 0-7 BCD 0-9 HEX 0-F (15) Integer (signed) -32768 to +32767 Unsigned Integer 65,535 (32767 + 32767) Floating Point
IEEE +/- 3.45x1038 to +/1.17x10-38
Data Structure
15 14 13 12 11 10 9 8 11 10 9 8 7 6 5 4 7 6 5 4 3 2 1 0 3 2 1 0
BCD Data :
HEX Data :
7 6 5 4
3 2 1 0
O0:0/0
File Number
Word 0
11
000000000000
File #1
1 Inputs
File contains
File Type
I1:0/0
File Number
Word 1
15
Word 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0000 19 16
10 or 20 Inputs
Status File
File #2
General purpose file that consists of 32 registers (words). These registers are mixed in word and bit formats depending on the function they represent. The Status file is primarily used for:
Setting system operating features, Displaying system status and faults
Bit File
File #3 (32 registers or words)
15 14 13 12 15 14 13 12 11 10 9 8 11 10 9 8 7 6 5 4 7 6 5 4 3 2 1 0 3 2 1 0
Word 0:
B3:1/0 (RSLogix,APS)
OR
Word 1:
Word 2:
B/16 (HHP)
Word 31:
Timers
Timer Operation
The timer times as long as its rung is TRUE. When the timer times up to a specified value, it alerts the rest of the program by setting a bit. When the rung becomes FALSE, the timer stops timing and resets itself to zero.
I:0.0
||
Timers
File #4
40 Timers (MicroLogix 1000 only) TON, TOF, and RTO
Timer On Delay Timer Off Delay Retentive Timer On
Timers
File Number
T4:0
Timers
File Type
Timers
File Number
T4:0
15 14 13 Word 0 EN TT DN Word 1 Word 2
How long the timer should time for. How long the timer has timed for already. Set to 1 when accumulated value > preset value. Set to 1 when accumulated value < preset value. Set to 1 when the rung containing the timer is true.
Timers
The Timers done bit turns the motor off after a 10 second time delay
Stop Start Timer Done
Motor
I:0/1
I:0/0
T4:0/DN
O:0/3
]/[
][
O:0/3
M1
]/[
( )
][
O:0/3
M1
TON
TIMER ON DELAY Timer T4:0 Time Base 1.0 Preset 10 Accum 0
][
(EN) (DN)
Counters
Counter Operation
The counter counts (by one) every time its rung goes from FALSE to TRUE. When a specified number of counts has been reached, the counter alerts the rest of the program by setting a bit. The program must reset the counter to start counting from zero again.
I:0.0
||
Counters
File #5
32 Counters (MicroLogix 1000 only) Up, Down, Up/Down
File Type
Counters
C5:0
File Number
File contains
32 counters
Counters
File Type
Counters
C5:0
File Number C5:0.PRE C5:0.ACC
Word 0 CU CD DN OV UN
Word 1 Word 2
How many the counter should count up to How many the counter has counted already.
Done
Count Up Count Down Over/Underflow
C5:0/DN
C5:0/CU C5:0/CD
Counters
The Counters done bit stops the motor from running, after 10 operations.
Stop
Start
Counter Done
Motor
I:0/1
I:0/0
C5:0/DN
O:0/3
]/[
][
O:0/3
M1
]/[
( )
][
O:0/3
M1
CTU
Count Up Counter Preset Accum C5:0 10 0
][
(CU) (DN)
C5:0
Reset
I:0/4
][
(RES)
Control
File #6
Used for higher level application specific commands.
FIFO/LIFO Stacks Sequencers Bit Shifts etc..
Required to allow the PLC to manage/control the application instruction. 16 Registers (words) in MicroLogix 1000
Integer
File #7
General purpose data registers (words) Primarily used for:
Comparison instructions Math instructions Sequencers FIFO and LIFO stacks
What is Relay Ladder Logic? Is the primary programming language for PLCs A graphical representation of the program designed to look like relay logic
() () () ()
||
L1
|/|
()
L2
||
True
||
False
() False
No Logical Continuity
|| True
||
True
()
True
Logical Continuity
are true
I/4
||
I/5
||
O/0
L2
()
True
True
Logical Continuity
True
Logical OR Construction
True
I/4
O/0 On
L2
||
F I/5
()
||
L1
False
I/4
O/0
On
L2
||
I/5
()
||
True
Complex Construction
I/4
I/0
I/1
||
I/5
|/|
I/1
||
I/7
|| |/|
|| ()
I/8
||
|/|
I/2
|/|
I/3 I/11
|| ||
I/1
|/|
||
Read Instructions
Open
Closed
-| |XIC
Logic 0 Logic 1
False
True
Write Instruction
|| |/| ()
Output Bit ON
Motor Running
L2
Supply Voltage
L1
||
LS2 PB2 CR3 I/7 I/5
|| ||
I/8
()
CR3
|| ||
CR3
()
LS3
CR3 |/|
LS4
M1
|/|
I/9
O/1
||
()
INPUT Address Assignment: PB1- I/4 PB2- I/5 LS1- I/6 LS2- I/7 LS3- I/8 LS4- I/9 OUTPUT Address Assignment: SOL2- O/0 M1- O/1 CR3 Boolean Tag
Troubleshooting
Controller LED Status I/O Checking PLC Side I/O Checking Field Side Logic Check
ADD
22406
22406
N7:3 0 N7:12
0
Description
When rung conditions are true, this output instruction adds Source A to Source B and stores the result at the destination address. Source A and Source B can either be values or addresses that contain values, however Source A and Source B cannot both be constants
Description
When rung conditions are true, the SUB output instruction subtracts Source B from Source A and stores the result in the destination. Source A and Source B can either be values or addresses that contain values, however Source A and Source B cannot both be constants.
Description 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.