You are on page 1of 53

1

INTRODUCTION TO PLC

PLC ?

Programmable
Logic
Controller

3

PC : Programmable Controller
()
PLC : Programmable Logic Controller
()
PBS : Programmable Binary System
)

(
4

PLC

PLC

PLC COMPUTER
1. PLC

2. PLC
PLC

3. PLC


6

PLC

.. 1969
PLC Bedford
Associates Modular Digital Controller
(Modicon)
General Motors Hydramatic Division
Allen-Bradley
PLC

.. 1970-1979
PLC
Micro-processor
PLC
PLC Modbus Modicon
/ Analog

.. 1980-1989

PLC General Motor


manufacturing automation protocal (MAP)
PLC
PLC symbolic
personal computer
handheld programing terminal

10

.. 1990-
PLC
IEC1131-3
PLC
- IL (Instruction List)
- LD (Ladder Diagrams)
- FBD (Function Block Diagrams)
- SFC (Sequential Function Chart)
- ST (Structured Text)
11

PLC

12

PLC
PERIPHERAL
DEVICE

INPUT DEVICE

PUSH BUTTON
LIMIT SWITCH
SENSOR
:
:

PROGRAM
MEMORY

DATA
MEMORY

CPU
INPUT
UNIT

OUTPUT
UNIT

OUTPUT DEVICE

RELAY
CONTACTOR
SOLENOID
LAMP

POWER
SUPPLY

13

(CPU Unit)


14

(Memory Unit)

1. Program Memory
2. Data Memory

15

- (Input-Output Unit)

16

(Peripheral Devices)

PROGRAMMING CONSOLE
EPROM WRITER
PRINTER
GRAPHIC PROGRAMMING
CRT MONITOR
HANDHELD
etc
17

(Power Supply Unit)


18

-
(Input-Output Unit)
19

- (Input-Output Unit)

DISCRETE INPUT
DISCRETE OUTPUT
ANALOG I/O
ADVANCE I/O
REMOTE I/O
20

DISCRETE INPUT UNIT


PERIPHERAL
DEVICE

INPUT DEVICE

PUSH BUTTON
LIMIT SWITCH
SENSOR
:
:

PROGRAM
MEMORY

DATA
MEMORY

CPU
INPUT
UNIT

OUTPUT
UNIT

POWER
SUPPLY

OUTPUT DEVICE

RELAY
CONTACTOR
SOLENOID
LAMP

21

From field writing

DISCRETE INPUT UNIT

Detection
Bridge

Signal
Conditioning

Threshold
Decision

Logic
status
light

Optical
Isolation
Logic

To CPU/memory
22

DISCRETE INPUT CIRCUIT


R1
R3
AC Input
signal

Z1

Opto-coupler

R2
C

R4

D1

23

Typical connection diagram for AC/DC input


AC supply
L1

L2

DC supply

4
C

4
C

24

DISCRETE INPUT DEVICE

Push buttons
Selector switches
Limit switches
Motor starter contacts
Relay contacts

Proximity switches
Photoelectric eyes
Thumb wheel switches
Circuit breakers

25

Standard Discrete Input Interface Rating

24 V AC/DC
48 V AC/DC
120 V AC/DC
220 V AC/DC
TTL Level

26

PUSH BUTTON

27

PUSH BUTTON

28

LIMIT SWITCH

29

LIMIT SWITCH

30

SENSOR

31

DISCRETE OUTPUT UNIT


PERIPHERAL
DEVICE

INPUT DEVICE

PUSH BUTTON
LIMIT SWITCH
SENSOR
:
:

PROGRAM
MEMORY

DATA
MEMORY

CPU
INPUT
UNIT

OUTPUT
UNIT

POWER
SUPPLY

OUTPUT DEVICE

RELAY
CONTACTOR
SOLENOID
LAMP

32

DISCRETE OUTPUT UNIT


From CPU/memory
Logic
status light

Logic

Optical
Isolation
Switching
Circuitry

Protection
Circuitry

To field wiring
33

DISCRETE OUTPUT CIRCUIT (DC)


D2

+Vcc

D1
MOV

From
logic

C
Return

34

DISCRETE OUTPUT CIRCUIT (AC)


Triac

Line

Rs

From
logic

MOV
Cs

Load

35

Typical connection diagram for AC/DC output


DC power
L2

L1
L1

+V

-V

36

DISCRETE OUTPUT DEVICE

Control relays
Alarms
Valves
Motor starters

Solenoids
Fans
Lights

37

Standard Discrete Output Interface Rating

24 V AC/DC
48 V AC/DC
120 V AC/DC
220 V AC/DC
TTL Level

38

RELAY

39

CONTACTOR

40

LAMP

41

MOTOR

42

ANALOG I/O UNIT


ANALOG INPUT UNIT ( Analog)

ANALOG OUTPUT UNIT




43

Standard Analog I/O Interface Rating


Analog Input

4 to 20 mA
1 to 5 V DC
0 to 10 V DC
0 to +10 or -10 V DC

Analog Output

4 to 20 mA
1 to 5 V DC
0 to 10 V DC
0 to +10 or -10 V DC
44

ADVANCE I/O UNIT

HIGH-SPEED COUNTER MODULE


MOTION CONTROL MODULE
PID MODULE
TEMPERATURE INPUT MODULE
Etc.

45

REMOTE I/O
Serial Communication Link

CPU I/O I/O I/O

Serial Interface Module

I/O I/O I/O

Remote I/O Adapter


Module

46

Daisy Chain Configuration


Serial
Interface
Module

CPU

Remote
I/O

Remote
I/O

Remote
I/O

Remote
I/O

Remote
I/O

Remote Serial Interface

47

Star Configuration
Serial
Interface
Module

CPU

Remote
I/O

Remote
I/O

Remote
I/O

Remote
I/O

Remote
I/O

Remote Serial Interface

48

PLC ?
CHECK INPUT STATUS

EXECUTE PROGRAM

UPDATE OUTPUT STATUS

1.
2.
3.

49

PLC RESPONSE TIME


INPUT RESPONSE TIME

+
PROGRAM EXECUTION TIME

= TOTAL RESPONSE TIME

+
OUTPUT RESPONSE TIME

50

ON

OFF
OUT

IN

PROG
EXEC

SCAN 1

OUT

IN

PROG
EXEC

SCAN 2

OUT

IN

PROG
EXEC

OUT

SCAN 3

51

SCAN

OUT

IN

PROG
EXEC

OUT

IN

PULSE STRETCH
52

INTERRUPT

OUT

IN

PROG
EXEC

OUT

IN

SCAN
53