Professional Documents
Culture Documents
Normally Open Timed Closed Contact Normally Closed Timed Open Contact
(NTOC) (NCTO)
C t t akan
Contact k terbuka
t b k beberapa
b b saatt C t t akan
Contact k tertutup
t t t beberapa
b b saatt
kemudian (delay) ketika coil di- kemudian (delay) ketika coil di-
energized energized
Normally Open Timed Open Contact Normally Closed Timed Closed Contact
(NOTO) (NCTC)
Contact akan terbuka beberapa saat Contact akan tertutup beberapa saat
kemudian (delay) ketika coil di- kemudian (delay) ketika coil di-
deenergized deenergized
Normally
y Open
p Timed Closed Contact (NTOC)
( )
Sequence Program : L1 L2
• S1 open, TD de-energized, S1 TD1
TD1 open, L1 Off
• S1 closes, TD energized, TD1
timing period starts, TD1 still L
open L1 is still Off
open,
• After 10 s, TD1 closes, L1 is
switched On
Input
• S1 is opened,
p , TD de-
energized, TD1 opens
instantly, L1 is switched off 10 detik On
Output
p Off
Normally
y Closed Timed Open
p Contact (NCTO)
( )
Sequence Program :
L1 L2
• S1 open, TD de-energized,
S1 TD1
TD1 closes,
l L1 OOn
• S1 closes, TD energized,
timing period starts, TD1 still TD1
L
closes L1 is still On
closes,
• After 10 s, TD1 open, L1 is
switched Off
• S1 is opened,
p , TD de- Input
energized, TD1 closes
instantly, L1 is switched on
10 detik
Output On Off
Normally Open Timed Open Contact
(
(NOTO))
Sequence Program : L1 L2
• S1 open, TD de-energized, S1 TD1
TD1 open, L1 Off
• S1 closes, TD energized, TD1 TD1
closes instantly, L1 is switched L
on
• S1 is opened, TD de-
energized, timing period starts,
TD1 is still closed, L1 is still on Input
• After 10 s, TD1 opens, L1 is
switched Off 10 detik
Output On
Off
Normally
y Closed Timed Closed Contact (NCTC)
( )
Sequence Program : L1 L2
• S1 open, TD de-energized, S1 TD1
TD1 closed,
l d L1 O
On
• S1 closes, TD energized, TD1 TD1
opens instantly, L1 is switched L
off
• S1 is opened, TD de-
energized, timing period starts,
TD1 is still opens, L1 is still off Input
• After 10 s, TD1 closes, L1 is
switched On 10 detik
On
Output
Off
Mengeset
g Parameter Timer (1)
( )
Untuk memprogram instruksi timer, sediakan processor dengan
informasi berikut :
• Timer Address : T x : x x x
Besaran
esa a ya
yang
g terakumulasi
e a u u as da
dalam
a be
bentuk
u BCD
C
17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00
Timed Bit
Enable Bit
Bit ini diset 1 atau 0
Bit ini diset 1 jika
Ketika timer telah timed out
rung timer true
AC=PR
Timer Element in PLC-5 AB
Timer mempunyai 3 elemen word, yaitu :
• Word 0 : Internal Use
• Word 1 : Preset Value PRE
• Word 2 : Accumulated Value (ACC)
Addressable bit :
• EN = bit 15 enable
• TT = 14 Timer timing
• DN = bit 13 done
• PRE = Preset value
• ACC = Accumulated value
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Word
EN TT DN Internal Use 0
Preset value 1
Accumulated Value 2
Timer Element p
pada SLC 500
Tiga Word
Keakuratan Timer
Keakuratan Timer tergantung pada panjangnya waktu yang
digunakan ketika processor menjalankan timer sampai processor
menyelesaikan
l ik iinterval
t l waktunya.
kt
Keakuratan Timer tergantung pada toleransi processor clock dan
Time Base yang digunakan.
Toleransi clock processor adalah 0.02%
TON – Timer On Delay
y
TON digunakan untuk membuat output EN – Timer Done : ON selama waktu yang
telah ditentukan setelah Input TON dinyalakan
Elemen TON :
• Input : Untuk penempatan TON di Rung
• Timer Address : Pengalamatan Timer di Memori PLC ; T4:xxx
• Time Base : Basis waktu yang digunakan (1 det, 0.01 det)
• Preset : Setting waktu yang diperlukan
• Accum : Akumulasi waktu yang sedang berjalan
• EN : Node Enable Timer
• DN : Node Timer Done
Timer Enable
Input
Timer Address
Timer Done
Contoh Pemrograman
g TON
TOF – Timer Off Delay
y
TOF digunakan untuk membuat output EN – Timer Done : OFF selama waktu yang
telah ditentukan setelah Input TOF dinyalakan
Elemen TOF :
• Input
I t : Untuk
U t k penempatan
t TOF di Rung
R
• Timer Address : Pengalamatan Timer di Memori PLC ; T4:xxx
• Time Base : Basis waktu yang digunakan (1 det, 0.01 det)
• Preset : Setting waktu yang diperlukan
• Accum
A : Akumulasi
Ak l i waktu
kt yang sedang
d b
berjalan
j l
• EN : Node Enable Timer
• DN : Node Timer Done
Timer Enable
Input
Timer Address
Timer Done
Contoh Pemrograman
g TOF
Contoh Aplikasi
p TOF
Mematikan Motor dengan interval 5
detik
RTO – Retentive Timer On
RTO : digunakan untuk membuat output EN – Timer Done : ON
selama waktu yang telah ditentukan setelah Input Rung RTO
di
dinyalakan
l k (E(Enable),
bl ) kketika
tik IInputt R
Rung RTO dimatikan
di tik (di(disable)
bl )
waktu akumulasi (Acc) tidak kembali ke 0, setelah RTO kembali
dinyalakan waktu akan memulai dari nilai terakhir akumulasi
waktunya.
waktunya
Untuk menggunakan RTO dalam rung, memori RTO terlebih dahulu
harus dibersihkan dahulu dengan memakai instruksi RES dengan
alamat RTO yang dimaksud
Contoh Pemrogramman
g RTO
Cascading
g Timer
Cascading Timer adalah
pengunaan Timer lebih dari dua.
Timer dapat digunakan secara
kaskade atau interkoneksi
Prinsip
p Operasi
p Counter
Operasi counter hampir sama dengan timer, kecuali counter tidak
tergantung pada clock internal CPU tetapi tergantung pada eksternal
counting
ti atau
t program counting.
ti
Ada dua jenis counter yang sering digunakan dalam PLC yaitu :
• Counter Up, menghitung dari 0 sampai nilai yang ditentukan
• Counter Down, menghitung dari besaran yang ditentukan sampai 0
Counter Element in PLC-2 AB
Down Counter Enable Bit
Oferflow/underflow
Of fl / d fl bit
Set to 1 when CTU overflow 999 or CTD underflow 000
Besaran
esa a ya
yang
g terakumulasi
e a u u as da
dalam
a be
bentuk
u BCD
C
17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00
Set to 1
Up Counter
When AC>=PR
Enable Bit
Counter Element in PLC-5 Memory
y
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
C5:0 Control word for C5:0
CU CD DN OV UN Internal use only
Count Up Enable Bit Rung menjadi benar untuk - Rung menjadi salah
.CU (bit 15) menandakan instruksi telah - Suatu instruksi RES mereset
menambah counter CTU .DN bit
Count Up Done Bit Ketika nilai akumulasi lebih besar -Perhitungan nilai
.DN (bit 13) atau sama dengan nilai preset terakumulasi di bawah preset
-Kombinasi instruksi CTU dan
CTD
Count Up Overflow Up counter telah melebihi limit -Suatu instruksi RES, dengan
.OV (bit 12) atas dari +32.767 dan address yang sama dengan
dikembalikan ke -32.768. CTU instruksi CTU, mereset .DN
mulai mengkounter dari sana. bit
-Counting turun ke 32,767
dengan instruksi CTD
dengan address yang sama.
Mengeset
g Parameter Counter
Untuk memprogram instruksi timer, sediakan processor dengan
informasi berikut :
• Counter Address : C x : x x x
Counter Enable
Input
Counter
Address
Counter Done
Contoh Program
g CTU – Counter Up
p
DN : Enable
I:002/0
1 2 3 4 5 6 7 8 9 10
Accum : 1 s.d 10
Contoh Program
g CTU ((2))
CTD – Counter Down
CTD – Counter Down, digunakan untuk membilang input yang masuk ke
dalam memori processor sampai nilai preset yang ditentukan tercapai.
Akumulasi CTU
CTU, dimulai dari batas tertinggi Preset sampai batas 0
Elemen CTD :
• Counter : alamat file counter yang digunakan C5:xxx
• Preset : batas bilangan
• Accum : Akumulasi bilangan yang telah masuk memori processor
Counter Enable
Input
Counter
Address
Counter Done
Set/Reset Counter Up
p
This bit: Is set when: Is Reset When:
Count Down Enable Rung menjadi benar untuk -Rung menjadi salah
Bit .CD (bit 14) menandakan instruksi telah -Suatu instruksi RES mereset CTU
mengurangi counter .DN bit
Count Down Done Ketika nilai akumulasi lebih -Perhitungan nilai terakumulasi di
Bit .DN (bit 13) besar atau sama dengan nilai bawah preset
preset -Kombinasi instruksi CTU dan CTD
Count Down Down counter telah melebihi -Suatu instruksi RES, dengan
Underflow .UN (bit limit bawah dari -32.768 dan address yang sama dengan
11) dik b lik kke +32.767.
dikembalikan 32 767 i t k i CTD,
instruksi CTD meresett .DN
DN bit
CTD mulai mengkounter dari -Counting naik ke -32,768 dengan
sana. instruksi CTU dengan address
yang sama
Contoh Program
g CTD
DN : Enable
I:002/0
1 2 3 4 5 6 7 8 9 10
Accum : 1 s.d 10
Contoh Program
g CTD ((2))
Implementing Counter with Logic
Ladder
RES – Reset Counter or Timer
Instruksi RES - Reset digunakan untuk me-reset timer atau counter,
Contoh Aplikasi
p Counter
Laser Switch