4 PLC
4 PLC
- Low forces
1. Pneumatic circuits
- Discrete, fixed travel distances
- Rotational or reciprocating motion
1 10
8 2
4 3
6
5
9
7
Supply Side
Usage Side
5
6
4
1
3 2
double -acting
spring-return
• air supply
valve actuation
START, A+, A-
- A +
A- A+ Start
•
VA
•
•
Pure Pneumatic control design: Cascade method
Functions of A, B, C ?
air supply: initially to GRP 1 (manifold 1), when pilot line 1 is active.
line 1: activated by c2 (transition from GRP 2 GRP 1)
line 2: activated by b2
- Connect air supply of each cylinders valve, and supply + and – ports of each cylinder
- A + - B + - C +
a1 a2 b1 b2 c1 c2
- VA + - VB + - VC +
•
•
Start 1
1 2
•
- Less versatile than electronic control (e.g. no counters, poor timer control)
6
ut
i np
u t5
inp
t4
PLC Basics: data communication wire u
inp
t3
s in pu
computer + relays O
ut
p ut
ut
1 i np
ut
2
in p
u t0
inp
C
A/ 0V
22
Box with
Computer
(controller)
to PLC Output: 1
warning bulb robot
Sensor output,
connected to
PLC Input: 1
STEP 1:
Write this logic into a PROGRAM
STEP 2:
Load program into PLC
STEP 3:
Connect the sensor output to External Input terminal.
STEP 4:
Connect the PLC External Output Terminal to Warning Light
STEP 5:
EXECUTE the logic program on the PLC.
PLC: example 1
I:0/1 O:0/1
PLC: example 1
I:0/1 O:0/1
IF THEN
to PLC Output: 1
PLC: example 2 warning bulb robot
Sensor output,
connected to
PLC Input: 1
Sensor output,
connected to
PLC Input: 2
inner pressure
sensitive mat
to PLC Output: 2
outer pressure
sensitive mat
I:0/1 O:0/1
I:0/2
I:0/1 O:0/1
I:0/2 O:0/2
PROBLEM ?
PLC: example 2
Solution: LATCH
I:0/2 O:0/3
latch
Incomplete
O:0/3
O:0/3 O:0/2
I:0/1 O:0/1
Legend:
I:0/2
I:0/1 connected to Outer Mat Switch
A xor B:
DN Legend:
I:0/2
I:0/1 Number Pad Signal to open door
DN
Base: 0.01
Preset: 500
Accum: 0
Ladder Logic: Timers -- reset
I:0/2 T4: 1
O:0/1 solenoid
O:0/2 light indicator RESET
Ladder Logic: counters
Examples:
I:0/1
Legend:
Count Up
CU
Counter: C5: 1 I:0/0 Conveyor ON
DN
I:0/1 Photo switch
Preset: 4
Accum: 0 I:0/2 Operator controlled Push
Button to restart conveyor
C5:1 O:0/2
DN
O:0/1 Conveyor belt
O:0/2 O:0/1
I:0/0
O:0/2 Light Indicator
I:0/2 C5: 1
RESET
Ladder Logic: car wash
Washer ON:
(i) Soapy water SPRAY ON (30 secs)
(ii) Rinse: clean water SPRAY ON (30 secs)
(iii) Automatic scrubber brushes car (15 secs)
(iv) After washing 50 cars, the scrubber brush Auto-change
I:0/1 I:0/2 B1
B1
T4: 0
I:0/1 : System On
EN
Base: 0 .01 I:0/2 : Em ergency Stop
Preset: 3000
I:0/3 : Limit Switch
Accum : 0
B1
O:0/0 : Soap Water On
T4: 1
O:0/1 : Rinse On
EN
Base : 0.01 O:0/2 : Scrubber On
Pre set: 6000
O:0/3 : Activate Scrubber Change
Accum : 0
B1
Notice how B1 and the timer outputs are
T4: 2
used to control the logic
EN
according to the required timing.
Base: 0.01
Pre set: 7 500
Accum : 0
DN DN DN
B1 T4:0 T4:1 T4:2 O:0/1
DN DN DN
B1 T4:0 T4:1 T4:2 O:0/2
DN DN DN
O:0/2
CTU C5 : 0
EN
Preset: 50
Car arrives limit switch ON
Accum : 0
O:0/3 C5:0
RES
Programming a PLC
(2) Computer-interface:
(i) Complete the program on a computer
(ii) Test the program on PC
(iii) Upload the program to the PLC processor memory (persistent)
(iv) Connect external Inputs and Outputs
(v) Run the program on PLC
Operation cycle of PLC
Phase 2
Phase 1
Phase 3
00 00
01
Program
30 30
02 Memory
03 31
04 32
05 33
Processor
06 34
07 35
08 36
Accumulator
09
37 37
10
output output
11 11 register
input input
register