Documente Academic
Documente Profesional
Documente Cultură
What is a PLC?
PLC performs relay equivalent functions PLC performs ON/OFF control Ladder diagram programming Designed for industrial environment
SOL2
Inputs
Outputs
LS1
PB2
CR3
||
CR3 |/| LS4
||
I/5
()
B/0
M1
I/7
||
I/8
|| ||
()
B/0
|/|
I/9
O/1
||
()
Input Wiring: PLC input is the load in the circuit, sensing if voltage is present
Terminal Block Isolation Barrier
Input Devices
1 2 3 4 5 6
L1 L1
7
8 9 10 COM
P L C
L2
Input Devices
Pushbuttons Selector Switches
Limit Switches
Level Switches Photoelectric Sensors
Proximity Sensors
Motor Starter Contacts Relay Contacts Thumbwheel Switches
Output Wiring: PLC output is the switch, controlling current flow to load
Isolation Barrier Terminal Block
Output Devices L1 L2
CR
P L C
L1 L2
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
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
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).
Programmable Controller
C R
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
+ +
DC Power Supply DC Power Supply
DC COM
SOURCING (PNP)
Field Device
SINKING (NPN)
+VDC IN1
+
DC Power Supply
+
DC Power Supply
DC Input Module
DC COM
Field Device
DC Input Module
IN1
Rules
RULES
Field devices on the positive side (+VDC) of the field power supply are sourcing field devices. Field devices on the negative side (DC COM) of the field power supply are sinking field devices. Sourcing field devices must be connected to sinking I/O cards and vice versa. Sinking field devices must be connected to sourcing I/O cards and vice versa.
PLC Applications
Solenoid 1
Ingredient A
Motor
Solenoid 2
Ingredient B
Sensor 1
Sensor 2
Solenoid 3
Solenoid 3
On = Sol 1 is off, and Sol 2 is off, and Motor has run for 30 sec. Off = Solenoid 3 has been on for 60 sec.
Solenoid 1
Ingredient A
Solenoid 2
On = Sol 3 is off, and Motor is off, and Sensor 2 is on Off = Sol 3 is on, or Motor is on, or Sensor 1 is on
Motor
Solenoid 2
Ingredient B
Motor
On = Sensor 1 is on, and Solenoid 2 is off, and Solenoid 1 is off Off = Solenoid 3 on
Sensor 1
Sensor 2
Solenoid 3
PLC Programming
Programming PLCs
The purpose of a PLC Program is to control the state of PLC outputs based on the current condition of PLC Inputs Different PLCs support different languages, but the most popular PLC language is know as Ladder Logic. PLC Ladder Logic purposely resembles Relay Logic
() () () ()
||
|/|
()
|/|
T
||
F
()
F
No Logical Continuity
|/|
T
|/|
T
Logical Continuity
()
T
On
||
T
||
T
()
T
Logical Continuity
Logical OR Construction
T
Logical Continuity
O/0 On
||
F I/5
()
||
I/4
F
Logical Continuity
O/0
On
||
T I/5
()
||
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
Supply Voltage
LS 1
Unused
Unused
COM
I/0
I/1
I/2
I/3
I/4
COM
I/5
I/6
I/7
I/8
I/9
The instruction is: If the input device is The input bit is Examine ON Examine OFF
Logic 0 Logic 1
Write Instruction
|| |/| ()
Output Bit ON
L1
L2/N
GND
VAC VDC
O/0
VAC VDC
O/1
VAC VDC
O/2
VAC VDC
O/3
VAC VDC
O/4
O/5
Supply Voltage
Putting it Together
Supply Voltage
PB1
Unused
Unused
COM
I/0
I/1
I/2
I/3
I/4
COM
I/5
I/6
I/7
I/8
I/9
L1
L2/N
GND
VAC VDC
O/0
VAC VDC
O/1
VAC VDC
O/2
VAC VDC
O/3
VAC VDC
O/4
O/5
Supply Voltage
I/8
O/0
||
()
Addressing Example
L2
I/5 I/6 I/7 O/0
||
||
||
()
ADDRESS HHP Logix I/5 I:0/5 I/6 I/7 O/0 I:0/6 I:0/7 O:0/0
SOL6
||
LS1 PB2 CR3
||
I/5
()
B/0
I/7
||
I/8
||
()
LS3
B/0 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
Advanced Instructions
SUBROUTINES
Advantages of a PLC
Ease of programming Ease of maintenance Designed for industrial environment Quick installation Adaptable to change