Programmable Logic Controllers 2 · PLC MS1 C1 C2 C3 C4 R1 R2 R3 R4 Rung 1. Jikaproduktibadan...

Post on 30-Oct-2020

0 views 0 download

transcript

Programmable Logic

Controllers 2

MekatronikaMekatronika

STT Mandala Bandung

Ladder Logic

Ladder Diagram

R1

PB1 PB2

start emergency stop

Rail

A

R1

R1

Rung

Representasi Ladder

Logika AND dan ORPB1 R1PB2

R2

R1 = PB1.AND.PB2 R2 = PB2.AND.~PB4

PB3 PB4

PB1 R1

R1 = PB1 .OR. PB2

AND

PB2

R1 = PB1 .OR. PB2

OR

R1 = PB1 .OR. (PB2 .AND. PB3)

PB1 R1

PB2 pb3

Kombinasi AND dan OR

Contoh Logika Relay

L1

LS1 PB1 LS2 R1

R1

Dalam sebuah kontrol proses, diinginkan suatu proses dimulai (dgn menjalankanmotor) dalam waktu lima detik setelah suatu produk menyentuh limit switch. Prosesberakhir secara otomatis jika produk tersebut menyentuh limit switch kedua. Sebuahemergency switch akan mengakhiri proses kapan saja jika ditekan.

R1TIMER

R2

PR=5

LS1

PB1LS2

R1

TIMER

5Motor R2

PLC Wiring Diagram

01 02 20

20

20 11

01

02

03

11

12

A

PLCInput Output

Externalswitches

Stored program

Scanning

Output akan diupdate

berdasarkan status

input

Scan terus akan

dilakukan untuk

menentukan status

input dan mengupdate

register

Instruksi PLC

1) Relay,

2) Timer dan counter,

3) Program control,

4) Arithmetic,4) Arithmetic,

5) Data manipulation,

6) Data transfer, dan

7) Lain2, contohnya sequencer.

Logic States

ON : TRUE, contact closure, energize, etc.

OFF: FALSE, contact open , de-energize,

etc.

RELAYRelay terdiri dari 2 bagian, coil dan kontak.

Contacts:

a. Normally open -| |-

b. Normally closed -|/|-

c. Off-on transitional -|↑|-c. Off-on transitional -|↑|-

d. On-off transitional -|↓ |-

Coil:

a. Energize Coil -( )-

b. De-energize -(/)-

c. Latch -(L)-

d. Unlatch -(U)-

( )

Kode Instruksi PLC

Input Seri dan Paralel

NAND dan NOR

Latching

R1

PB1 PB2

R1

start emergency stop

A

R1

PB1 ditekan akan menjalankan coil R1, selama coil R1 masih

energized maka control relay R1 tetap on R1 tetap jalan

walaupun PB1 dilepas. Jika PB2 ditekan baru R1 akan off

Contoh Boolean Logic ke PLC

Relay dan Timer

Relay Timer

Latihan

Buatlah ladder diagram yang menyebabkan output, sebuah

lampu pilot PL2, menyala jika sebuah switch selector SS2

close, push button PB4 closed dan limit switch LS3 open

Solusi

LatihanBuatlah ladder diagram dari diagram logika di bawah ini

SolusiY adalah output

A, B dan C untuk gated AND terhubung seri

D, E untuk gate OR terhubung paralel dengan output dari AND

Contoh Pemrograman 1

Part

microswitch

Bar code reader

Stopper

Conveyor

MachineRobot

id description state explanation

MSI microswitch 1 part arrive

R1 output to bar code reader 1 scan the part

C1 input from bar code reader 1 right part

R2 output robot 1 loading cycle

R3 output robot 1 unloading cycle

C2 input from robot 1 robot busy

R4 output to stopper 1 stopper up

C3 input from machine 1 machine busy

C4 input from machine 1 task complete

SOLUSI01

02

03

04

05

11

12

13

14

15

InputOutput

Programmable Controller PLC

MS1

C1

C2

C3

C4

R1

R2

R3

R4

Rung 1. Jika produk tiba dantidak ada produk ygdihentikan, aktifkan pembaca

01 14 11

02

14 04 03

14

12

1305 03

dihentikan, aktifkan pembacabar code.

Rung 2. Jika produk tsb benaraktifkan stopper.

Rung 3. Jika stopper aktif,mesin tidak sibuk dan robot juga tidak sibuk, makaangkat produk ke mesin.

Rung 4. jika tugas selesai danrobot tidak sibuk, kosongkanmesin.