Osp07 Programmable Logic Controller
Osp07 Programmable Logic Controller
Hasil Pembelajaran
• Umum
Mahasiwa mampu untuk melakukan proses perancangan
sistem otomasi, sistem mesin NC, serta merancang dan
mengimplementasikan sistem kontrol logika.
• Khusus
Memahami fungsi PLC serta komponen-komponen PLC
1
Departemen Teknik Industri FTI-ITB
PURPOSE OF Programmable
Logic Controllers (PLCs)
PURPOSE OF Programmable
Logic Controllers (PLCs)
2
Departemen Teknik Industri FTI-ITB
FUNCTIONS OF CONTROLLERS
• 1) on-off control,
• 2) sequential control,
• 3) feedback control, and
• 4) motion control.
CONTROL DEVICES
3
Departemen Teknik Industri FTI-ITB
PROGRAMMABLE LOGIC
CONTROLLER
Invented in 1968 as a substitute for hardwired relay panels.
VENDORS
• Rockwell
• GE/Fanuc
• Schnieder
• MODICOM - GOULD
• ALLEN-BRADLEY
• Honeywell
• SQUARE-D
etc.
4
Departemen Teknik Industri FTI-ITB
PLC
Input
CPU Input
Module
Flag
System
Output
Output Module
User Ladder
Diagram
Working
memory
registers
PLC Configuration
5
Departemen Teknik Industri FTI-ITB
6
Departemen Teknik Industri FTI-ITB
SWITCHES
Non-locking Locking
P1
SPDT DPST
P2
Break-before-make Make-before-break
TERMS
Throw - number of states
Pole - number of connecting moving parts (number of
individual circuits).
Output
Input
DPST
Knob
How is this switch classified?
7
Departemen Teknik Industri FTI-ITB
TYPES OF SWITCHES
RELAYS
A switch whose operation is activated by an electromagnet is called a "relay"
contact
coil
input
8
Departemen Teknik Industri FTI-ITB
COUNTER
Digital counters output in the form of a relay contact when a
preassigned count value is reached.
input
Register 5
Accumulator
reset
contact
output
Input
Reset
Output
Count 0 12 3 4 5 0 1
TI-3222: Otomasi Sistem Produksi - 7 17
TIMER
A timer consists of an internal clock, a count value register, and an
accumulator. It is used for or some timing purpose.
Clock
Accumulator
reset
Register
Clock
contact
Contact
Reset
output
Output
Count 0 1 2 3 4 5
Time 5 seconds.
TI-3222: Otomasi Sistem Produksi - 7 18
9
Departemen Teknik Industri FTI-ITB
R1
TIMER
R1 R2
PB1
LS1 LS2
PR=5
TIMER
5
Motor
R2
R1
TI-3222: Otomasi Sistem Produksi - 7 19
PLC ARCHITECTURE
Programmable controllers replace most of the relay panel wiring by
software programming.
PC
Program
Loader
Switches
Printer
I/O
Processor
Modules Machines
Cassette
Loader
Power
EPROM Memory Supply
Loader
A typical PLC
TI-3222: Otomasi Sistem Produksi - 7 20
10
Departemen Teknik Industri FTI-ITB
PLC COMPONENTS
1. Processor Microprocessor based, may allow arithmetic
operations, logic operators, block memory moves,
computer interface, local area network, functions, etc.
PLC COMPONENTS
3. I/O Modular plug-in periphery
AC voltage input and output,
DC voltage input and output,
Low level analog input,
High level analog input and output,
Special purpose modules, e.g.., high speed timers,
Stepping motor controllers, etc. PID, Motion
4. Power supply AC power
5. Peripheral Hand held programmer (loader),
CRT programmer,
Operator console,
Printer,
Simulator,
EPROM loader,
Cassette loader,
Graphics processor, and
Network communication interface. MAP, LAN
11
Departemen Teknik Industri FTI-ITB
LADDER DIAGRAM
A ladder diagram (also called contact symbology) is a means of
graphically representing the logic required in a relay logic
system.
Rail
start emergency stop
PB1 PB2
R1
Rung R1
R1
Ladder Representation
12
Departemen Teknik Industri FTI-ITB
01 01 02 20 11 A
12
02
20
03
20 11
External
switches
Stored program
SCAN
A PLC resolves the logic of a ladder diagram (program) rung by rung, from
the top to the bottom. Usually, all the outputs are updated based on the
status of the internal registers. Then the input states are checked and the
corresponding input registers are updated. Only after the I/Os have been
resolved, is the program then executed. This process is run in a endless
cycle. The time it takes to finish one cycle is called the scan time.
Output
Input
begin
Idle
Scan cycle
Resolve
logic
13
Departemen Teknik Industri FTI-ITB
PLC INSTRUCTIONS
1) Relay,
2) Timer and counter,
3) Program control,
4) Arithmetic,
5) Data manipulation,
6) Data transfer, and
7) Others, such as sequencers.
LOGIC STATES
Do not confuse the internal relay and program with the external
switch and relay. Internal symbols are used for programming.
External devices provide actual interface.
14
Departemen Teknik Industri FTI-ITB
PB1 PB2 R1
R1 = PB1.AND.PB2
PB1 R1
OR PB2
PB1 R1
PB2 pb3
15
Departemen Teknik Industri FTI-ITB
16
Departemen Teknik Industri FTI-ITB
RELAY
A Relay consists of two parts, the coil and the contact(s).
Contacts:
a. Normally open -| |-
b. Normally closed -|/|-
c. Off-on transitional -|↑|-
d. On-off transitional -|↓ |-
Coil:
a. Energize Coil -( )-
()
b. De-energize -(/)-
c. Latch -(L)-
d. Unlatch -(U)-
17
Departemen Teknik Industri FTI-ITB
SEQUENCER
Output
2 ON ON OFF 10 sec
A-B PLC
18
Departemen Teknik Industri FTI-ITB
Programming a PLC
19
Departemen Teknik Industri FTI-ITB
20
Departemen Teknik Industri FTI-ITB
PROGRAMMING EXAMPLE 1
Bar code reader
microswitch Stopper
Part Conveyor
Robot
Machine
Input
SOLUTION
Output
MS1
01 11 R1 • Rung 1. If part
C1 02 12
R2
R3
arrives and no part is
C2
C3
03 13
R4 stopped, trigger the
04 14
C4 05
Programmable
15
bar code reader.
•
Controller
PLC Rung 2. If it is a
right part, activate the
stopper.
• Rung 3. If the
01 14 11 stopper is up, the
machine is not busy
02 14 and the robot is not
busy, load the part
12
onto the machine.
14 04 03
• Rung 4. If the task is
05 03 13 completed and the
robot is not busy,
unload the machine.
21
Departemen Teknik Industri FTI-ITB
Jefferson street
Main street
Cycle time
Street Red Yellow Green
Main 3 1 4
Jefferson 5 1 2
WIRING DIAGRAM
input output
64 Jefferson Red
65 Jefferson Yellow
Programmable
Controller
66 Jefferson Green
67 Main Red
70 Main Yellow
71 Main Green
22
Departemen Teknik Industri FTI-ITB
PROGRAM (1)
901
RUNG1 RTO
80
901 901
RUNG2 RST
901 902
RUNG3 67 M. Red
902
RUNG4 67
RTO
30
RUNG5 901 902
RST
901 903
RUNG6 66 J. Green
903
RUNG7 66
RTO
901 903 20
RUNG8 RST
902 904 M. Green
RUNG9 71
904
71
RUNG10 RTO
901 904 40
RUNG11 RST
904 905
RUNG12 70 M. Yellow
PROGRAM (2)
905
70
RUNG13 RTO
901 905 10
RUNG14 RST
903 906
RUNG15 65 J. Yellow
906
65
RUNG16 RTO
901 906 10
RUNG17 RST
902 907
RUNG18 64 J. Red
907
RUNG19 64
RTO
901 907 50
RUNG 20 RST
23