Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ITS SURABAYA
2014
23/05/2014
Instrument 2
MATERI :
Konsep dasar Programmable Logic Control
Sequential Process
Safety Instrument System (SIS)
SCADA
23/05/2014
Instrument 2
National Electrical
Manufacturing Association (NEMA)
Instrument 2
Komponen PLC
CPU
Input
Input
Module
Flag
System
Output
Output
Module
User Ladder
Diagram
Working
memory
registers
23/05/2014
Instrument 2
Allan-Bradley PLC-3
Instrument 2
SWITCHES
No n -lo c kin g
Lo c kin g
No rm a lly O p e n
No rm a lly C lo s e d
DPST
P1
SPDT
P2
23/05/2014
Mu ltip le Th ro w
Mu ltip le P o le
Bre a k- b e fo re -m a ke
Ma ke -b e fo re -b re a k
Instrument 2
TERMS
Throw - number of states
Pole - number of connecting moving parts (number of individual
circuits).
SPDT
B
Output
DPST
Input
Knob
How is this switch classified?
23/05/2014
Instrument 2
TYPES OF SWITCHES
Selector switches
Pushbutton switches
Photoelectric
switches
Limit Switches
Proximity switches
Level switches
Thumbwheel
switches
Slide switches
23/05/2014
Instrument 2
RATING:
24 Volts AC/DC
48 Volts AC/DC
120 Volts AC/DC
230 Volts AC/DC
TTL level
(Transistor-to-transistor
5V)
Isolated Input
RELAYS
A switch whose operation is activated by an electromagnet is called a "relay"
contact
coil
input
Relay coil
R1
Output contact
23/05/2014
R1
Instrument 2
COUNTER
Digital counters output in the form of a relay contact when a preassigned count value is
reached.
input
Re giste r
Accumulator
re se t
conta ct
output
Input
Re se t
Output
Count
23/05/2014
Instrument 2
12
10
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
re se t
Re giste r
conta
Contact
ct
output
Clock
Reset
Output
Count
Time 5 seconds.
23/05/2014
Instrument 2
11
PB1
LS2
R1
R1
R1
TIMER
R2
PR=5
PB1
LS1
LS2
TIMER
5
23/05/2014
Instrument 2
R1
Motor
R2
12
PLC ARCHITECTURE
Programmable controllers replace most of the relay panel wiring by software programming.
Progr am
Loade r
PC
Switche s
Printe r
Proce ssor
I/O
M odule s
M emory
Powe r
Supply
M achine s
Casse tte
Loade r
EPROM
Loade r
Pe riphe rals
A typical PLC
23/05/2014
Instrument 2
13
PLC COMPONENTS
1. Processor
2. Memory
Measured in words.
ROM (Read Only Memory),
RAM (Random Access Memory),
PROM (Programmable Read Only Memory),
EEPROM (Electric Erasable Programmable ROM),
EPROM (Erasable Programmable Read Only Memory),
EAPROM (Electronically Alterable Programmable
Read Only Memory), and
Bubble Memory.
23/05/2014
Instrument 2
14
PLC COMPONENTS
3. I/O
23/05/2014
15
Discrete I/O
AC Voltage I/O
DC Voltage I/O
numerical input and output
special-purpose modules, for example,
high-speed timers, and stepping motor
controllers
23/05/2014
Instrument 2
16
Analog I/O
Analog inputs:
Flow sensors
Humidity sensors
Potentiometers
Pressure sensors
Temperature sensors
Analog outputs:
Analog meters
Analog valves and actuators
DC and AC motor drives
23/05/2014
Instrument 2
17
Thermocouple input
Fast input
ASCII I/O
Servo interface
PID control
Network module
23/05/2014
Instrument 2
18
23/05/2014
Instrument 2
19
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
PB1
emergency stop
PB2
R1
Rung
R1
R1
A
23/05/2014
Instrument 2
20
Input
01
02
Output
PLC
01
02
20
11
12
20
03
11
20
External
switches
Stored program
23/05/2014
Instrument 2
21
Input Connections
AC
23/05/2014
DC
TTL
Instrument 2
22
Output Connections
AC
23/05/2014
DC
TTL
Instrument 2
23
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. In some controllers the idle state is eliminated. In this case, the scan time
varies depends on the program length.
Output
Input
begin
Idle
Scan cycle
Resolve
logic
23/05/2014
Instrument 2
24
PLC Programming
23/05/2014
Instrument 2
25
Instrument 2
26
LOGIC STATES
ON : TRUE, contact closure, energize, etc.
OFF: FALSE, contact open , de-energize, etc.
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.
(In the notes we use the symbol "~" to represent negation. AND
and OR are logic operators. )
23/05/2014
Instrument 2
27
PB2
R1
R1 = PB1.AND.PB2
AND
PB3
PB4
R2
R2 = PB2.AND.~PB4
PB1
R1
R1 = PB1 .OR. PB2
OR
23/05/2014
PB2
Instrument 2
28
R1
PB1
PB2
23/05/2014
pb3
Instrument 2
29
RELAY
A Relay consists of two parts, the coil and the contact(s).
Contacts:
a. Normally open
-| |-
b. Normally closed
-|/|-
Coil:
a. Coil
-( )-
b. negative coil
-(/)-
c. Set Coil
-(S)-
d. Reset Coil
-(R)-
23/05/2014
Instrument 2
30
Relay (continue)
Coil:
e. Retentive memory Coil
-(M)-
-(SM)-
-(RM)-
-(P)-
-(N)-
(set coil latches the state, reset coil deenergize the set coil. retentive
coil retain the state after power failure.)
23/05/2014
Instrument 2
31
True
a. Retentive on delay
-(RTO)-
-(RTF)-
c. Reset
-(RST)-
stop
True
counting
resume
counting stop
Counter:
a. Counter up
-(CTU)-
b. Counter down
-(CTD)-
c. Counter reset
-(CTR)-
23/05/2014
False
Instrument 2
32
SEQUENCER
Sequencers are used with machines or processes involving repeating
operating cycles which can be segmented into steps.
Output
Step
Dwell time
ON
OFF OFF
5 sec.
ON
ON OFF
10 sec.
OFF OFF ON
3 sec.
OFF
9 sec.
23/05/2014
ON OFF
Instrument 2
33
A-B PLC
I/O points are numbered, they correspond to the I/O slot on the PLC.
For A-B controller used in our lab
I/O uses 1-32
Internal relays use 033 - 098
Internal timers/counters/sequencers use 901-932
Status 951-982
23/05/2014
Instrument 2
34
PROGRAMMING EXAMPLE 1
Bar code re ader
microswitch
Stopper
Conveyor
Part
Robot
Machine
id
description
MSI
microswitch
R1
output to bar code reader
C1
input from bar code reader
R2
output robot
R3
output robot
C2 input from robot
R4
output to stopper
C3 input from machine
C4
input from machine
23/05/2014
Instrument 2
state
1
1
1
1
1
1
1
1
1
explanation
part arrive
scan the part
right part
loading cycle
unloading cycle
robot busy
stopper up
machine busy
task complete
35
SOLUTION
Input
MS1
Outpu t
01
11
C1
C2
02
12
03
13
C3
04
14
C4
05
01
Pro grammable
Controlle r
PLC
23/05/2014
14
02
14
04
05
03
03
R4
15
11
14
R1
R2
R3
12
13
Instrument 2
36
23/05/2014
Instrument 2
37