Sei sulla pagina 1di 7

HASIL LD DIAGRAM

LD DIAGRAM DITULIS OLEH ARIP W (http://lekarip.blogspot.com/)

1. LATIHAN 1 APLIKASI PENGUNCIAN

LDmicro export text no MCU assigned, 4.000000 MHz crystal, 10.0 ms cycle time

LADDER DIAGRAM:

||

||

||

Xreset

R1

||

1 ||-------]/[-----------------------------------------------------------------( )-------||

||

||

||

||

||

||

||

||

||

X1

Y2

Y3

Y1

||

2 ||-------] [-----------------------+-------]/[--------------]/[--------------( )-------||

||

|

||

||

R1

Y1

|

||

||-------] [--------------] [------+

 

||

||

||

||

||

||

||

||

||

||

X2

Y1

Y3

Y2

||

3 ||-------] [-----------------------+-------]/[--------------]/[--------------( )-------||

||

|

||

||

R1

Y2

|

||

||-------] [--------------] [------+

 

||

||

||

||

||

||

||

||

||

||

X3

Y2

Y1

Y3

||

4 ||-------] [-----------------------+-------]/[--------------]/[--------------( )-------||

||

|

||

||

R1

Y3

|

||

||-------] [--------------] [------+

||

||

||

||

||

||

||

||------[END]--------------------------------------------------------------------------||

||

||

||

||

I/O ASSIGNMENT:

Name

| Type

| Pin

----------------------------+--------------------+------

X1

| digital in

| (not assigned)

X2

| digital in

| (not assigned)

X3

| digital in

| (not assigned)

Xreset

| digital in

| (not assigned)

Y1

| digital out

| 15

Y2

| digital out

| (not assigned)

Y3

| digital out

| (not assigned)

R1

| int. relay

|

2. LATIHAN 2 APLIKASI TIMER TUNDA ON

LDmicro export text no MCU assigned, 4.000000 MHz crystal, 10.0 ms cycle time

LADDER DIAGRAM:

||

||

||

Xstart

Xrestart

R1

||

1 ||-------] [------+-------]/[--------------( )-------||

||

|

||

||

R1

|

||

||-------] [------+

 

||

||

||

||

||

||

||

||

||

||

R1

Y1

||

2 ||-------] [-------------------------------( )-------||

||

||

||

||

||

||

||

||

||

R1

T1

Y2

||

3 ||-------] [---------[TON 5.000 s]---------( )-------||

||

||

||

||

||

||

||------[END]----------------------------------------||

||

||

||

||

I/O ASSIGNMENT:

Page 1

Name

| Type

HASIL LD DIAGRAM

| Pin

----------------------------+--------------------+------

Xstart

| digital in

| 17

Xrestart

| digital in

| (not assigned)

Y1

| digital out

| 15

Y2

| digital out

| 16

R1

| int. relay

|

T1

| turn-on delay

|

3. APLIKASI TIMER TUNDA OFF

LDmicro export text no MCU assigned, 4.000000 MHz crystal, 10.0 ms cycle time

LADDER DIAGRAM:

||

||

||

Xstart

R2

R1

||

1 ||-------] [------+-------]/[--------------( )-------||

||

|

||

||

R1

|

||

||-------] [------+

 

||

||

||

||

||

||

||

||

||

||

R1

YK1

||

2 ||-------] [------+------------------------( )-------||

||

|

||

||

|

YK2

||

||

+------------------------( )-------||

||

||

||

||

||

||

||

||

||

XS1

R2

YMP

||

3 ||-------] [--------------]/[--------------( )-------||

||

||

||

||

||

||

||

||

||

XS2

R2

||

4 ||-------] [-------------------------------( )-------||

||

||

||

||

||

||

||

||

||

R2

R3

YK3

||

5 ||-------] [--------------]/[--------------( )-------||

||

||

||

||

||

||

||

||

||

XS1

XS2

R3

||

6 ||-------]/[--------------]/[--------------( )-------||

||

||

||

||

||

||

||------[END]----------------------------------------||

||

||

||

||

I/O ASSIGNMENT:

Name

| Type

| Pin

----------------------------+--------------------+------

Xstart

| digital in

| 17

XS1

| digital in

| (not assigned)

XS2

| digital in

| (not assigned)

YK1

| digital out

| (not assigned)

YK2

| digital out

| (not assigned)

YK3

| digital out

| (not assigned)

YMP

| digital out

| (not assigned)

R1

| int. relay

|

R2

| int. relay

|

R3

| int. relay

|

4. APLIKASI TIMER TUNDA ON DAN OFF

LDmicro export text no MCU assigned, 4.000000 MHz crystal, 10.0 ms cycle time

LADDER DIAGRAM:

||

||

|| Xstart

Ycuci

T1

Ycuci

||

1 ||-------] [--------------]/[---------[TOF 5.000 s]--------------------------( )-------||

||

||

||

||

||

||

||

||

||

Ycuci

Ykering

T2

T3

Ykering

||

2 ||-------] [--------------]/[---------[TON 5.000 s]----[TOF 3.000 s]---------( )-------||

Page 2

HASIL LD DIAGRAM

||

||

||

||

||

||

||

||

|| Ykering

Yalarm

T4

T5

Yalarm

||

3 ||-------] [--------------]/[---------[TON 3.000 s]----[TOF 2.000 s]---------( )-------||

||

||

||

||

||

||

||------[END]--------------------------------------------------------------------------||

 

||

||

||

||

I/O ASSIGNMENT:

 
 

Name

| Type

| Pin

----------------------------+--------------------+------

 
 

Xstart

| digital in

| 17

Yalarm

| digital out

| (not assigned)

Ycuci

| digital out

| (not assigned)

Ykering

| digital out

| (not assigned)

T2

| turn-on delay

|

T4

| turn-on delay

|

T1

| turn-off delay

|

T3

| turn-off delay

|

T5

| turn-off delay

|

5.

PEMBANGKIT PULSA

 

LDmicro export text for 'Microchip PIC16F877 40-PDIP', 4.000000 MHz crystal, 10.0 ms cycle time

 

LADDER DIAGRAM:

 
 

||

||

||

Xsensor1

Xsensor2

Ra

||

1 ||-------] [------+-------]/[------------------------------------------------( )-------||

||

|

||

||

Ra

|

||

||-------] [------+

 

||

||

||

||

||

||

||

||

||

||

Ra

Y1

T1

T2

Y1

||

2 ||-------] [--------------]/[---------[TON 1.000 s]----[TOF 1.000 s]---------( )-------||

||

||

||

||

||

||

||

||

||

Y1

Y2

T3

T4

Y2

||

3 ||-------] [--------------]/[---------[TOF 1.000 s]----[TON 1.000 s]---------( )-------||

||

||

||

||

||

||

||

||

||

Ra

Ysirine

||

4 ||-------] [-----------------------------------------------------------------( )-------||

||

||

||

||

||

||

||------[END]--------------------------------------------------------------------------||

 

||

||

||

||

I/O ASSIGNMENT:

 
 

Name

| Type

| Pin

----------------------------+--------------------+------

 
 

Xsensor1

| digital in

| (not assigned)

Xsensor2

| digital in

| (not assigned)

Y1

| digital out

| 15

Y2

| digital out

| 16

Ysirine

| digital out

| (not assigned)

Ra

| int. relay

|

T1

| turn-on delay

|

T4

| turn-on delay

|

T2

| turn-off delay

|

T3

| turn-off delay

|

6.

RETENTIVE TIMER

 

LDmicro export text no MCU assigned, 4.000000 MHz crystal, 10.0 ms cycle time

 

LADDER DIAGRAM:

 
 

||

||

||

R1

R2

T1

T2

R2

||

1 ||-------]/[--------------]/[---------[TOF 1.000 s]----[TON 1.000 s]---------( )-------||

||

||

||

||

||

||

Page 3

HASIL LD DIAGRAM

||

||

||

Xstop

Xstart

R4

||

2 ||-------] [------+-------]/[------------------------------------------------( )-------||

||

|

||

||

R4

|

||

||-------] [------+

 

||

||

||

||

||

||

||

||

||

||

R2

R4

Cnew

R3

||

3 ||-------] [--------------]/[-----------[CTU >=1]----------------------------( )-------||

||

||

||

||

||

||

||

||

||

R3

R1

R4

Y1

||

4 ||-------] [--------------]/[--------------]/[-------------------------------( )-------||

||

||

||

||

||

||

||

||

||

R3

Cnew

R1

||

5 ||-------] [----------[CTU >=10]---------------------------------------------( )-------||

||

||

||

||

||

||

||------[END]--------------------------------------------------------------------------||

||

||

||

||

I/O ASSIGNMENT:

Name

| Type

| Pin

----------------------------+--------------------+------

Xstart

| digital in

| 17

Xstop

| digital in

| (not assigned)

Y1

| digital out

| 15

R1

| int. relay

|

R2

| int. relay

|

R3

| int. relay

|

R4

| int. relay

|

T2

| turn-on delay

|

T1

| turn-off delay

|

Cnew

| counter

|

7. APLIKASI TIMER TUNDA OFF

LDmicro export text no MCU assigned, 4.000000 MHz crystal, 10.0 ms cycle time

LADDER DIAGRAM:

||

||

||

Xstart

R2

R1

||

1 ||-------] [------+-------]/[--------------( )-------||

||

|

||

||

R1

|

||

||-------] [------+

 

||

||

||

||

||

||

||

||

||

||

R1

YK1

||

2 ||-------] [------+------------------------( )-------||

||

|

||

||

|

YK2

||

||

+------------------------( )-------||

||

||

||

||

||

||

||

||

||

XS1

R2

YMP

||

3 ||-------] [--------------]/[--------------( )-------||

||

||

||

||

||

||

||

||

||

XS2

R2

||

4 ||-------] [-------------------------------( )-------||

||

||

||

||

||

||

||

||

||

R2

R3

YK3

||

5 ||-------] [--------------]/[--------------( )-------||

||

||

||

||

||

||

||

||

||

XS1

XS2

R3

||

6 ||-------]/[--------------]/[--------------( )-------||

||

||

||

||

||

||

Page 4

HASIL LD DIAGRAM ||------[END]----------------------------------------||

||

||

||

||

I/O ASSIGNMENT:

Name

| Type

| Pin

----------------------------+--------------------+------

Xstart

| digital in

| 17

XS1

| digital in

| (not assigned)

XS2

| digital in

| (not assigned)

YK1

| digital out

| (not assigned)

YK2

| digital out

| (not assigned)

YK3

| digital out

| (not assigned)

YMP

| digital out

| (not assigned)

R1

| int. relay

|

R2

| int. relay

|

R3

| int. relay

|

8. APLIKASI ONE SHOT RISING (PRINTER)

LDmicro export text no MCU assigned, 4.000000 MHz crystal, 10.0 ms cycle time

LADDER DIAGRAM:

||

||

||

XOF

C1

||

1 ||-------] [----------------------------{CTC 0:1}----||

||

||

||

||

||

||

||

||

||

R1

C1

YLed

||

2 ||-------] [-----------[CTU >=1]-----------( )-------||

||

||

||

||

||

||

||------[END]----------------------------------------||

||

||

||

||

I/O ASSIGNMENT:

Name

| Type

| Pin

----------------------------+--------------------+------

XOF

| digital in

| (not assigned)

YLed

| digital out

| (not assigned)

R1

| int. relay

|

C1

| counter

|

9. APLIKASI COUNTER UP

LDmicro export text no MCU assigned, 4.000000 MHz crystal, 10.0 ms cycle time

LADDER DIAGRAM:

||

||

||

Xstart

XStop

R1

||

1 ||-------] [------+-------]/[------------------------------------------------( )-------||

||

|

||

||

R1

|

||

||-------] [------+

 

||

||

||

||

||

||

||

||

||

||

R1

YM1

||

2 ||-------] [-----------------------------------------------------------------( )-------||

||

||

||

||

||

||

||

||

||

R1

Rs1

T1

T2

Rs1

||

3 ||-------] [--------------]/[---------[TOF 1.000 s]----[TON 1.000 s]---------( )-------||

||

||

||

||

||

||

||

||

||

Rs1

C1

||

4 ||-------] [------+------------------------------------------------------{CTC 0:10}----||

||

|

||

||

|

C2

||

||

+------------------------------------------------------{CTC 0:10}----||

||

||

||

||

||

||

||

||

||

C1

R2

||

5 ||----[CTU >=5]--------------------------------------------------------------( )-------||

||

||

||

||

Page 5

HASIL LD DIAGRAM

||

||

||

||

||

C2

R3

||

6 ||---[CTU >=10]--------------------------------------------------------------( )-------||

||

||

||

||

||

||

||

||

||

R1

R2

R3

YP1

||

7 ||-------] [--------------] [--------------]/[-------------------------------( )-------||

||

||

||

||

||

||

||

||

||

R3

C1

||

8 ||-------] [------+---------------------------------------------------------{RES}------||

||

|

||

||

|

C2

||

||

+---------------------------------------------------------{RES}------||

||

||

||

||

||

||

||------[END]--------------------------------------------------------------------------||

||

||

||

||

I/O ASSIGNMENT:

 

Name

| Type

| Pin

----------------------------+--------------------+------

 

Xstart

| digital in

| 17

XStop

| digital in

| (not assigned)

YM1

| digital out

| (not assigned)

YP1

| digital out

| (not assigned)

R1

| int. relay

|

R2

| int. relay

|

R3

| int. relay

|

Rs1

| int. relay

|

T2

| turn-on delay

|

T1

| turn-off delay

|

C1

| counter

|

C2

| counter

|

10 .APLIKASI COUNTER CIRKULAR

 

LDmicro export text no MCU assigned, 4.000000 MHz crystal, 10.0 ms cycle time

 

LADDER DIAGRAM:

 

||

||

||

R1

R2

T1

T2

R2

||

1 ||-------]/[--------------]/[---------[TON 1.000 s]----[TOF 1.000 s]---------( )-------||

||

||

||

||

||

||

||

||

||

R2

C1

||

2 ||-------] [------+------------------------------------------------------{CTC 0:15}----||

||

|

||

||

|

C2

||

||

+------------------------------------------------------{CTC 0:15}----||

||

|

||

||

|

C3

||

||

+------------------------------------------------------{CTC 0:15}----||

||

||

||

||

||

||

||

||

||

C1

Ykuning

Yhijau

Ymerah

||

3 ||----[CTU >=0]-----------]/[--------------]/[-------------------------------( )-------||

||

||

||

||

||

||

||

||

||

C2

Yhijau

Ykuning

||

4 ||----[CTU >=6]-----------]/[------------------------------------------------( )-------||

||

||

||

||

||

||

||

||

||

C3

Yhijau

||

5 ||----[CTU >=9]--------------------------------------------------------------( )-------||

||

||

||

||

||

||

||------[END]--------------------------------------------------------------------------||

||

||

||

||

I/O ASSIGNMENT:

Name

| Type

| Pin

----------------------------+--------------------+------

Page 6

Yhijau

| digital out

HASIL LD DIAGRAM | (not assigned)

Ykuning

| digital out

| (not assigned)

Ymerah

| digital out

| (not assigned)

R1

| int. relay

|

R2

| int. relay

|

T1

| turn-on delay

|

T2

| turn-off delay

|

C1

| counter

|

C2

| counter

|

C3

| counter

|