7 PLC Omron Addressing and Instruction PDF
7 PLC Omron Addressing and Instruction PDF
Handy Wicaksono
Jurusan Teknik Elektro
Universitas Kristen Petra
Sasaran
Mahasiswa mampu :
{ Memahami bermacam – macam sistem
bilangan
{ Memahami macam – macam
pengalamatan dan instruksi PLC Omron,
Siemens, Schneider
{ Memahami instruksi – instruksi dasar
pada PLC Omron, Siemens, Schneider
Sistem Bilangan
7 x 100 = 7
2 x 101 = 20
2 x 102 = 200
Bilangan Desimal Æ 22710
Sistem Bilangan Biner
Bilangan biner hanya menggunakan 2 digit bilangan
: 0 dan 1
Bobot pada Sistem Biner
8s 4s 2s 1s
Biner Desimal
8s 4s 2s 1s
0 0 0 0 0
0 0 0 1 1
0 0 1 0 2
0 0 1 1 3
Sistem Bilangan Biner
Nomor bit Least
Most Significant
Significant 7 6 5 4 3 2 1 0 Bit
Bit 1 1 0 0 1 1 0 1 Å bilangan biner
1 x 20 = 1
0 x 21 = 0
1 x 22 = 4
1 x 23 = 8
0 x 24 = 0
0 x 25 = 0
1 x 26 = 64
1 x 27 = 128
Bilangan Desimal Æ 20510
Sistem Binary Coded Decimal
Bilangan Desimal
973
3 2 0 78 Å bilangan oktal
7 x 80 = 7
0 x 81 = 0
2 x 82 = 128
3 x 83 = 1536
Bilangan Desimal Æ 167110
Sistem Octal
D x 160 = 13
0 x 161 = 0
2 x 162 = 512
Bilangan Desimal Æ 52510
Sistem Heksadesimal
Konversi hexadesimal Æ binary
Hex 7 D 3 F
Binary 0111110100111111
Sistem Heksadesimal
Kuliah :
{ PLC Schneider : Zelio, Concept (PLC
simulator)
{ PLC Omron,…
Praktikum :
{ PLC Omron
{ PLC Siemens
{ PLC Schneider
Addressing
Address/alamat :
{ Identitas untuk komponen – komponen
ladder diagram.
Masing – masing vendor punya
metode pengalamatan masing -masing
PLC Omron Addressing (1)
Data Area/
Memory Area
IR 000 00
Channel/ Bit
Word
PLC Omron Addressing (2)
16 bit!
PLC Omron Addressing (4)
CH 000
Least Significant Bit
00000 1
(LSB)
00001 1 1 0 1 1 Æ B (heksa)
00002 0
00003 1
00004 1
00005 0
1 0 0 1 Æ 9 (heksa)
00006 0
Channel 000
Bit 00 to 00007 1
Bit 15 00008 1 8 7 9 B (heksa)
00009 1
0 1 1 1 Æ 7 (heksa)
00010 1
00011 0
00012 0
00013 0
1 0 0 0 Æ 8 (heksa)
00014 0
00015 1 Most Significant Bit (MSB)
PLC Omron Addressing (5)
IR (Internal Relay)
1. Input Area Æ bit terminal input eksternal
2. Output area Æ bit terminal output
eksternal
3. Work area Æ bit internal yang dapat
digunakan dalam programming
Merupakan alamat yang paling sering
digunakan dalam pemrograman
OMRON - Memory Area
TR (Temporary Relay)
{ Bit yang hanya menyimpan data
sementara saja
{ Umumnya muncul dalam operasi
aritmetika
HR (Holding Relay)
{ Bit yang tetap menyimpan data dan
kondisinya (ON/OFF) meskipun PLC
dimatikan
OMRON – Memory Area
LR (Link Relay)
{ Alamat yang digunakan untuk kebutuhan
jaringan PLC one to one
Timer/Counter
{ Alamat untuk timer dan counter
{ Karena disimpan dalam 1 area, maka
nomor timer dan counter tidak boleh
sama
OMRON – Memory Area
DM (Data Memory)
{ Untuk pengolahan data dalam word
{ Untuk pengaturan setting PLC
2.
Basic instruction –
Transition Contact
Aktifkan KEEP
Reset KEEP
IR 00000
IR 00006
HR 0100
Contoh :
Timer PLC Omron
Counter PLC Omron
Contoh
Contoh
PLC Siemens
MSB LSB
I 3 . 4
7 6 5 4 3 2 1 0
Bit of byte or bit number
I0
Period separates byte
address from bit number I1
Byte address I2
Area Identifier I3
I4
MSB = Most Significant Bit I5
I6
LSB = Least Significant Bit
I7
Data Memory for SIEMENS
S7-200 CPU 212
Area Identifier Data Area SIEMENS S7-200
CPU 212
I Input I0.0 to I7.7
Q Output Q0.0 to Q7.7
M Internal memory bit M0.0 to M15.7
SM Special memory bit SM0.0 to SM45.7
V Variable memory V0.0 to V1023.7
T Timer T0 to T63
C Counter C0 to C63
Data Memory for SIEMENS
S7-200 CPU 212
Input
{ Merupakan terminal untuk input fisik.
Output
{ Merupakan terminal untuk output fisik.
Internal Memory
{ Mewakili control relay, tidak ada barang fisik
yang terhubung.
{ Digunakan untuk menyimpan status
dummy(perantara) dalam pemrograman.
Data Memory for SIEMENS
S7-200 CPU 212
Special Memory
{ Ditentukan oleh manufacturer.
{ Memberikan status dan fungsi kontrol untuk
PLC.
Variable Memory
{ Untuk operasi baca ataupun tulis. Terbagi
menjadi 2 :
Bagian pertama dari V memory (Data Block 1/DB1),
terdiri dari 128 bit (V0 – V127). Selain disimpan di
RAM, data juga dibackup ke EEPROM (non-volatile
memory).
Bagian ke dua dari V memory (Data Block 1/DB1),
terdiri dari 896 bit (V128 – V1023). Data disimpan di
RAM saja.
Data Memory for SIEMENS
S7-200 CPU 212
Timer
{ Alat untuk menghitung pertambahan
waktu
Counter
{ Alat untuk menghitung jumlah
perpindahan dari low ke high pada input
counter
Contoh instruksi PLC Siemens
Contoh instruksi PLC Siemens
Contoh Timer
Contoh
Counter
PLC Schneider
Konfigurasi
Addresing
Instruksi dasar, normal dan special
coild dan contact
Timer dan counter
Addressing I/O module objects in
TSX 37-10/21/22
% I or Q X, W, or D x . i
Symbol Type of Format Position Channel
object X = Boolean 1 to 8 (TSX 37-10) Number
I = Input W = Word 1 to 10
Q = Output D = Double (TSX 37-21/22)
Word
Addressing I/O module objects in TSX
37-10/21/22
EXAMPLE :
5 7 % IW5.3
Input Word from
1 3 Position 5 channel 3
6 8
% I1.3
2 4
Input Bit from
Position 1 channel 3
% Q4.0
TSX 37-10 Output Bit from Position 4 channel 0
Data Memory Structure
System words 128 words