0% found this document useful (0 votes)
32 views6 pages

Kontrol Konveyor Pemilah Barang 1.1 Data (Control Word) : Output

The document describes a control system for sorting items on a conveyor belt using sensors and actuators. The system uses a microcontroller with input and output ports to control a conveyor motor, two pneumatic devices, and receive signals from various sensors including a photodiode, two infrared sensors, and two limit switches. The microcontroller is programmed using assembly language to activate the appropriate outputs based on the sensor inputs to sort items by size. The program logic and a simulation in Proteus are presented to demonstrate the sorting process.

Uploaded by

Wawan Wawan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views6 pages

Kontrol Konveyor Pemilah Barang 1.1 Data (Control Word) : Output

The document describes a control system for sorting items on a conveyor belt using sensors and actuators. The system uses a microcontroller with input and output ports to control a conveyor motor, two pneumatic devices, and receive signals from various sensors including a photodiode, two infrared sensors, and two limit switches. The microcontroller is programmed using assembly language to activate the appropriate outputs based on the sensor inputs to sort items by size. The program logic and a simulation in Proteus are presented to demonstrate the sorting process.

Uploaded by

Wawan Wawan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Kontrol Konveyor Pemilah Barang

1.1 Data (Control Word)

Data (Control Word)


PA0 Motor Konveyor
Port A PA1 Pneumatic 1 Output
PA2 Pneumatic 2
PB0 Sensor Photodiode
PB1 Sensor Infrared 1
Port B PB2 Sensor Infrared 2
Input
PB3 Limit switch 1
PB4 Limit Switch 2
PC lower -
Port C
PC upper - Output

Dimana :

PB PA

PC PC

Port A = Output
Port B = Input
Port C lower = Input
Port C Upper = Output

D7 D6 D5 D4 D3 D2 D1 D0

1 0 0 0 0 0 1 1

Mode set mode selection PA PCupper mode selection PB PClower


Control Word = 8 3 H
1.2 Pengkondisian Sinyal

1. Input

Sensor Sensor
PB0 Photodiode PB1 Infrared 1
00000000 b Off 00000000 b Off
00000001 b On 00000010 b On

Sensor
PB2 Infrared 2 PB3 Limit Switch 1

00000000 b Off 00000000 b Off


00000100 b On 00001000 b On

PB4 Limit Switch 2


00000000 b Off
00010000 b On

2. Output

PA0 Motor Konveyor PA1 Pneumatic 1


00000000 b Off 00000000 b Off
00000001 b On 00000010 b On

PA2 Pneumatic 2
00000000 b Off
00000100 b On
1.3 Bahasa Assembler
Script Program :
ORG 0H
Clr P2.0 //(PB.0)
Clr P2.1 //(PB.1)
Clr P2.2 //(PB.2)
Clr P2.3 //(PB.3)
Clr P2.4 //(PB.4)
Mov P1, #00000000b //(PA)
Jb P2.0, Sensor_Photodiode
Jb P2.1, Sensor_Infrared1
Jb P2.2, Sensor_Infrared2
Jb P2.3, Limit_Switch1
Jb P2.4, Limit_Switch2
Jmp akhir
Sensor_photodiode:
Mov P1, #00000001b
Jnb P2.0, Akhir
Jb P2.1, Sensor_Infrared1
Jb P2.2, Sensor_Infrared2
Jmp Sensor_photodiode
Sensor_Infrared1:
Mov P1, #00000010b
Jnb P2.1, Sensor_Infrared2
Jb P2.3, Limit_Switch1
Limit_Switch1:
Mov P1, #00000001b
Jnb P2.3, Sensor_Infrared1
Jmp akhir
Sensor_Infrared2:
Mov P1, #00000100b
Jnb P2.2, Akhir
Jb P2.4, Limit_Switch2
Limit_Switch2:
Mov P1, #00000001b
Jnb P2.4, Sensor_Infrared2
Jmp Akhir
Akhir:
END
1.4 Hasil Simulasi Dengan Proteus
1. Kondisi awal ( Konveyor Off )

2. Photodiode (PD) mendeteksi adanya barang diats konveyor ( Konveyor On )


3. Infrared 1 (IR1) mendeteksi barang besar ( Konveyor off, pneumatic 1 on )

4. Limit Switch 1 (LS1) mendeteksi barang ( konveyor on, pneumatic 1 off )


5. Infrared 2 (IR2) mendeteksi barang ( Konveyor off, pneumatic 2 on )

6. Limit Switch 2 (LS2) mendeteksi barang ( Konveyor on, pneumatic 2 off )

You might also like