Вы находитесь на странице: 1из 12

CP1E

BAB 1
Intruksi Counter, Timer

Akhmad Fahruzi, ST.MSi

1 PLC - A. Fahruzi, ST, MSi


1. Instruksi Counter
 Digunakan utk menghitung jumlah input yg masuk
ke dalam counter.
 No. Counter (Addres)= 0-255
 No. Timer (Addres) = 0-255
 Membuat addres Counter dan Timer tidak boleh
sama, misal program memakai 2 counter dan 2
timer, maka bisa memakai no counter 0-1 dan
timernya memakai 2-3.

2 PLC - A. Fahruzi, ST, MSi


3 PLC - A. Fahruzi, ST, MSi
1

2
3

4 PLC - A. Fahruzi, ST, MSi


4

Addrees Counter

Set Value (SV), harus


diawali dg tanda #

5 PLC - A. Fahruzi, ST, MSi


2. Instruksi Timer

6 PLC - A. Fahruzi, ST, MSi


1

Addrees Timer

Set Value (SV), harus


diawali dg tanda #,
(#10 = 10x100ms)

7 PLC - A. Fahruzi, ST, MSi


8 PLC - A. Fahruzi, ST, MSi
LED FLIP FLOP

9 PLC - A. Fahruzi, ST, MSi


Soal
1
 NO start dan NC stop
 Ketika tombol start ditekan, Selenoid A
energized dan memulai proses filling.
 Ketika tanki penuh, full level sensor
switch menjadi closes dan selenoid A de-
energized, motor start automatis ON
selama 3 menit utk mengaduk cairan.
 Motor stop dan selenoid B energized utk
mengosongkan tanki.

Kondisi:
Low level  empty Sensor Switch = Open (‘0’)
Full level  Full Sensor Switch = Closed(‘1’)
Dikerjakan no Absen 21-40
2
Design a PLC program and prepare a typical I/O connection diagram and ladder logic
program that will correctly execute the industrial control process in Figure 8-40 . The
sequence of operation is as follows:
• Product in position (limit switch LS1 contacts close).
• The start button is pressed and the conveyor motor starts to move the product forward
toward position A (limit switch LS1 contacts open when the actuating arm returns to
its normal position).
• The conveyor moves the product forward to position A and stops (position detected
by 8 off-to-on output pulses from the encoder, which are counted by an up-counter).
• A time delay of 10 s occurs, after which the con-veyor starts to move the product to
limit switch LS2 and stops (LS2 contacts close when the actu-ating arm is hit by the
product).

Dikerjakan no Absen 1-20


11 PLC - A. Fahruzi, ST, MSi
3

Write a program to operate a light according to the following


sequence:
• A momentary pushbutton is pressed to start the sequence.
• The light is switched on and remains on for 2 s.
• The light is then switched off and remains off for 2 s.
• A counter is incremented by 1 after this sequence.
• The sequence then repeats for a total of 4 counts.
• After the fourth count, the sequence will stop and the counter
will be reset to zero.

12 PLC - A. Fahruzi, ST, MSi

Вам также может понравиться