Documente Academic
Documente Profesional
Documente Cultură
PLC Definition
• PLC is a
• user friendly,
• microprocessor
based,
• specialized computer
• that carries out
control functions
• of many types
• and levels of
complexity
1
PLC Architecture Industrial Automation
2
PLC Architecture Industrial Automation
I/O modules
CPU
VCC VCC
General
E124.0 A124.0
Run
PLC
E124.1 A124.1 Motor relay
Temper BTemper
E124.2 A124.2
GND GND
3
PLC Architecture Industrial Automation
Modular architecture
• The PLCs are expandable. Expansion modules contain
additional inputs and outputs. These are connected to the
base unit using a ribbon connector or a rack.
4
PLC Architecture Industrial Automation
Logic
Input Optoisolator Converter
5
PLC Architecture Industrial Automation
Other modules
• Analog Input/Output modules
– ± 10 volts
– 0...10 volts
– 0...20 mA
– 4...20 mA
– Important point: speed acquisition / precision
• PID module
• Network module
• ASCII module
TIMERS
NETWORK Processor ROM RAM
COUNTERS
6
PLC Architecture Industrial Automation
7
PLC Architecture Industrial Automation
while (1) {
VCC Read Inputs; VCC
E124.0 A124.0
Input1
E124.1 A124.1
Input2 Execute user program;
E124.2 A124.2
}
}
• Like a computer:
– Keyboard is the input signals for plant
– Screen is the output signals to the plant
main() {
PLC
int i1, i2, f;
while (1) {
VCC i1=Read(Input1); VCC
}
} User Control Program
8
PLC Architecture Industrial Automation
Example running
Event Loss
Scan time
Input1
Input2
Output1
i1
i2
CPU
SCAN CYCLE
INPUT OUTPUT
INPUT USER OUTPUT
STATUS STATUS
TERMINALS PROGRAM TERMINALS
TABLE TABLE
PROGRAM SCAN:
INPUT SCAN: OUTPUT SCAN:
During program scan,
Input terminals Data associated
data in input table is
are read and with output
applied to user program,
inputs status status table is
program is executed and
table is updated transferred to
output table is updated
accordingly output terminals
accordingly
9
PLC Architecture Industrial Automation
IMPORTANT
• ANY changes in the status of input devices during the
program or output scan are not recognized until the next
input scan
• Data changes in the output table are not transferred to the
output terminal during the input and program scans. The
transfer affecting the output devices takes place only
during the output scan.
Do you understand?
• Output?
– 0 permanent
– 1 permanent
– 0101010… main() {
int i1, i2, f; PLC
while (1) {
i1=Read(Input1);
VCC VCC
i2=Read(Input2);
E124.0 A124.0
Input1
E124.1 f=i1&&i2; %AND A124.1
Input2
E124.2 f=i1||i2; %OR A124.2
GND GND
Write(f,Output1)
}
}
Prof. José A. Rodríguez Mondéjar UPCO ICAI Departamento de Electrónica y Automática 20
10
PLC Architecture Industrial Automation
2 Fill
Function Block Diagram Full Ladder Diagram
3 Heat
AND A B C
Hot
A C -| |--|/|----------------( )
4 Empty out
B Empty
11
PLC Architecture Industrial Automation
Memory model
• Components of the PLC
program: 15
14
– Instructions MD12
13
– Data: Memory 12
• Matrix 11
10
– 8 bits x Address number
9 MW8
– 16 bits x Address number 8
• Accessing methods 7
6
– Bit M0.3
5 MB5 M3.2
• Work with logical variables
4
– Byte: MB0 3
– Word: MW0, MW2. 2 MD0
1
– Long word: MD0, MD4 MW0
0 7 6 5 4 3 2 1 0 MB0
• Telemecanique uses 8 bit
– %MW0 8x16 Memory
12
PLC Architecture Industrial Automation
Symbol definition
increases program
readable
VCC VCC
General
E124.0 A124.0
Run
PLC
E124.1 A124.1 Motor
Térmico BTérmico
E124.2 A124.2
GND GND
by instruction: in sequence
– The brain of a PLC if a E124.1
microprocessor
2
5 E124.2
6
E124.3
13
PLC Architecture Industrial Automation
Choose a PLC
• Memory size
• Scan Time/Maximum
number of instructions
• Integrated functions (PID)
• I/O Capability
– Different interfaces with real
world
• Flexibility/expandability
– Maximum number of IO
Signals that PLC can
control
• Networking
– Non standard protocol
– Vs standard protocol
• Cost
• Serviceability/support
• Training/Documentation
14