Perancangan Sistem Reporting Kondisi Plant dan Jumlah Produksi Berbasiskan E-Mail Menggunakan PLC Modicon M340.

Perancangan Sistem Reporting Kondisi Plant dan Jumlah Produksi
Berbasiskan E-Mail Menggunakan PLC Modicon M340
Vicktorio Djohan (0522015)
Jurusan Teknik Elektro, Fakultas Teknik, Universitas Kristen Maranatha
Jln. Prof. Drg. Suria Sumantri 65, Bandung 40164, Indonesia
E-mail: vicktorio.djohan@yahoo.com

ABSTRAK

PLC dan HMI dapat digunakan untuk memonitor dan mengendalikan proses
industri. Akan tetapi, seringkali pencatatan laporan kinerja mesin masih dilakukan
secara manual oleh operator. Pencatatan laporan secara manual ini
mengakibatkan laporan yang dihasilkan seringkali kurang akurat. Kurang
akuratnya laporan manual ini dapat disebabkan oleh lokasi produksi yang tidak
kondusif seperti, suhu udara yang panas, tempat yang bising dan gangguan
lainnya. Hal ini menjadi masalah bagi manajemen karena laporan harian yang
akurat sangat dibutuhkan untuk menentukan target kinerja berikutnya.
Pada Tugas Akhir ini disusun suatu sistem pelaporan berbasiskan e-mail
menggunakan Simple Mail Transfer Protocol (SMTP) pada PLC dan HMI. PLC
akan mengambil data dari plant dan membuat laporan sederhana yang dapat
dikirimkan ke alamat e-mail tertentu tanpa harus melalui PC. Laporan yang

disusun berbeda untuk user yang berbeda. HMI dapat digunakan untuk
mengendalikan PLC dalam menentukan parameter – parameter pengiriman
laporan. PLC yang digunakan dalam Tugas Akhir ini adalah M340, sedangkan
HMI yang digunakan adalah Magelis XBTGT.
Sistem berhasil dirancang dan diuji pada plant MPS Festo. Untuk membantu
menyederhanakan program, dirancang pula Function Block Diagram baru dari
Function Block Diagram yang sudah ada. Pada saat pengujian, sistem
mengirimkan laporan berisi kondisi plant MPS Festo pada user “Supervisor” dan
laporan berisi jumlah produksi pada user “Manager”. Rata – rata waktu
pengiriman dengan menggunakan PLC adalah 1,46 detik dan rata – rata waktu
pengiriman dengan menggunakan PLC dan HMI adalah 1,40 detik.

Kata Kunci: Simple Mail Transfer Protocol, PLC, HMI, e-mail, laporan, plant,
Function Block Diagram

vii
Universitas Kristen Maranatha

Design of E-Mail Based Reporting System of Plant Condition and Production
Quantity Using Modicon M340 PLC

Vicktorio Djohan (0522015)
Electrical Engineering, Faculty of Engineering, Universitas Kristen
Maranatha
Jln. Prof. Drg. Suria Sumantri 65, Bandung 40164, Indonesia
E-mail: vicktorio.djohan@yahoo.com

ABSTRACT

PLC and HMI could be used in monitoring and control of industrial
processes. However, the reporting of plant performance often done manually by
operators. Manual reporting process are often inaccurate. The inaccuracy may be
caused by unconducive work environment such as high ambient temperature,
noisy work environment, and other type of inconveniences. This cause problems
because an accurate report is needed to set target and directions for the company.
This Final Project designs an e-mail based reporting system using Simple
Mail Transfer Protocol (SMTP) via Modicon M340 PLC. PLC will retrieve data
from plant and generate a simple text report that could be emailed to certain users
without having to use PC. The report generated are different for each user. HMI
could be used to control the PLC in inputting the parameters of the report. The
PLC used in this Final Project is Modicon M340 and the HMI used is Magelis

XBTGT
The system is designed and tested on MPS Festo. New Function Block
Diagrams based on existing Function Block Diagrams are also designed in order
to simplify the program. On testing, system sends report containing plant
condition to user “Supervisor” and another report containing amount of products
produced to user “Manager”. Average sending time using PLC is 1,46 seconds,
and average sending time using PLC and HMI is 1,40 seconds.

Keywords: Simple Mail Transfer Protocol, PLC, HMI, e-mail, report, plant,
Function Block Diagram

viii
Universitas Kristen Maranatha

DAFTAR ISI
HALAMAN JUDUL .............................................................................................. i
LEMBAR PENGESAHAN .................................................................................. ii
LEMBAR PERNYATAAN ORISINALITAS LAPORAN .............................. iii
LEMBAR PERNYATAAN PERSETUJUAN PUBLIKASI ............................ iv
KATA PENGANTAR ........................................................................................... v

ABSTRAK ........................................................................................................... vii
ABSTRACT ........................................................................................................ viii
DAFTAR ISI ......................................................................................................... ix
DAFTAR TABEL ............................................................................................... xii
DAFTAR GAMBAR .......................................................................................... xiv
BAB I ...................................................................................................................... 1
I.1 Latar Belakang .................................................................................... 1
I.2 Identifikasi Masalah ............................................................................ 2
I.3 Perumusan Masalah ............................................................................ 2
I.4 Tujuan .................................................................................................. 2
I.5 Pembatasan Masalah ........................................................................... 2
I.6 Spesifikasi Alat..................................................................................... 3
I.7 Sistematika Penulisan ......................................................................... 3
BAB II .................................................................................................................... 4
II.1 Programmable Logic Control (PLC) ................................................. 4
II.1.1 Ladder Diagram .................................................................... 5
II.2 Human-Machine Interface (HMI) ..................................................... 8
II.3 Dasar – dasar Jaringan ..................................................................... 8
II.3.1 Model OSI ........................................................................... 10
II.3.2 Model TCP/IP ...................................................................... 11

II.3.3 IP address (alamat IP) ......................................................... 13
II.4 E-Mail (Electronic Mail) .................................................................. 15
II.4.1 SMTP (Simple Mail Transfer Protocol) .............................. 17
II.4.2 POP3(Post Office Protocol, version 3) ............................... 18
II.4.3 IMAP(Internet Message Access Protocol) .......................... 22

ix
Universitas Kristen Maranatha

II.5 Argosoft Mail Server Free ................................................................ 23
BAB III ................................................................................................................. 25
III.1 Perancangan Komunikasi PLC Dengan E-Mail Server .............. 26
III.1.1. Konfigurasi Jaringan pada Server ..................................... 26
III.1.2 Konfigurasi Argosoft Mail Server ...................................... 27
III.1.3 Konfigurasi PLC M340 ...................................................... 28
III.2 Perancangan Komunikasi HMI dengan PLC .............................. 32
III.2.1 Konfigurasi HMI ................................................................ 32
III.2.2 Konfigurasi untuk PLC Sasaran ......................................... 33
III.3. Perancangan Komunikasi E-Mail Server dengan User .............. 34
III.4. Perancangan Sistem Pengambilan Data Dari Plant Oleh PLC . 35

III.4.1. Modul komunikasi Modbus TWDNOZ485T ................... 36
III.4.2. Modifikasi Konfigurasi PLC Twido ................................. 38
III.4.3. Konfigurasi Modbus pada PLC M340 .............................. 42
III.4.4. Pemetaan I/O PLC Twido ke Memori .............................. 43
III.5 Perancangan Sistem Pelaporan ..................................................... 44
III.5.1 Sistem Pelaporan Manual ................................................... 44
III.5.2 Sistem Pelaporan Otomatis ................................................ 46
III.5.3 Sistem Pelaporan Alarm ..................................................... 47
III.6 Perancangan Function Block Diagram (FBD) ............................. 48
III.6.1 IN_TO_VAR ...................................................................... 49
III.6.2 INT_TO_STR_8IO ............................................................ 50
III.6.3 MAIL_SUBJECT............................................................... 52
III.6.4 MAIL_BODY .................................................................... 53
BAB IV ................................................................................................................. 55
IV.1 Hasil Pengujian Koneksi ................................................................ 55
IV.1.1 Pengujian Koneksi Server dan PLC ................................... 55
IV.1.2 Pengujian Koneksi User dan Server .................................. 55
IV.1.3 Pengujian Koneksi PLC M340 dan PLC Twido ................ 56
IV.1.4 Pengujian Koneksi HMI dan PLC M340 ........................... 56
IV.2 Hasil Pengujian Argosoft Mail Server Free ................................... 57

IV.2.1 Pengujian Antarmuka Web ................................................ 57

x
Universitas Kristen Maranatha

IV.2.2 Pembuatan User ................................................................. 58
IV.2.3 Pengujian Login ................................................................. 60
IV.3 Hasil Pengujian Pengiriman E-Mail Menggunakan PLC ........... 62
IV.3.1 Pengiriman E-Mail dengan Pemicu Manual (Push Button)62
IV.3.2 Pengiriman E-Mail dengan Pemicu Waktu (Otomatis) ..... 63
IV.3.3 Pengiriman dengan Pemicu Alarm .................................... 67
IV.4 Hasil Pengujian Pengiriman E-Mail Melalui PLC Menggunakan
HMI .......................................................................................................... 68
IV.4.1 Pengiriman E-Mail dengan Pemicu Manual (Push Button)68
IV.4.2 Pengirman E-Mail dengan Pemicu Waktu (Otomatis) ...... 70
IV.4.3 Pengiriman E-Mail dengan Pemicu Alarm ........................ 73
IV.6 Analisis Waktu ................................................................................ 74
BAB V................................................................................................................... 78
V.1 Simpulan ........................................................................................... 78
V.2 Saran.................................................................................................. 78

DAFTAR PUSTAKA .......................................................................................... 80

xi
Universitas Kristen Maranatha

DAFTAR TABEL
Tabel II.1 7 Layer pada Model OSI ...................................................................... 11
Tabel II.2 Perbandingan kelas alamat IP............................................................... 15
Tabel III.1 Penjelasan Bagian - Bagian TWDNOZ485T ...................................... 37
Tabel III.2 Keterangan pin Untuk Pengawatan Pada (a) PLC M340 dan (b)
TWDNOZ485T ................................................................................ 38
Tabel III.3 Pemetaan Memori PLC Twido ........................................................... 44
Tabel IV.1 Hasil Pengujian Koneksi PLC Twido dan PLC M340 ....................... 56
Tabel IV.2 Hasil Pengujian Koneksi HMI dan PLC M340 .................................. 57
Tabel IV.3 Hasil Pengujian Pengiriman Manual Untuk User "Supervisor" ......... 62
Tabel IV.4 Hasil Pengujian Pengiriman Manual Untuk User "Manager" ............ 63
Tabel IV.5 Hasil Pengujian Pengiriman Otomatis Untuk User "Supervisor" ....... 64
Tabel IV.6 Hasil Pengujian Pengiriman Otomatis Untuk User "Manager" .......... 65
Tabel IV.7 Hasil Pengujian Pengiriman Otomatis ke Dua User Secara Bersamaan
......................................................................................................... 65

Tabel IV.8 Hasil Pengujian Pengiriman ke Dua User Secara Bersamaan Dengan
Jeda Waktu 0,6 Detik ....................................................................... 66
Tabel IV.9 Hasil Pengujian Pengiriman Kondisi Alarm ....................................... 67
Tabel IV.10 Hasil Pengujian Pengiriman Manual Untuk User "Supervisor" ....... 69
Tabel IV.11 Hasil Pengujian Pengiriman Manual Untuk User "Manager" .......... 69
Tabel IV.12 Hasil Pengujian Pengiriman Otomatis Untuk User "Supervisor" .... 70
Tabel IV.13 Hasil Pengujian Pengiriman Otomatis Untuk User "Manager" ........ 71
Tabel IV.14 Hasil Pengujian Pengiriman Otomatis ke Dua User Secara Bersamaan
......................................................................................................... 72
Tabel IV.15 Hasil Pengujian Pengiriman Kondisi Alarm ..................................... 73
Tabel IV.16 Perbandingan Waktu Pengiriman E-Mail Antara PLC dan PLC yang
Dilengkapi Dengan HMI Untuk Sistem Pelaporan Manual ............ 74
Tabel IV.17 Perbandingan Waktu Pengiriman E-Mail Antara PLC dan PLC yang
Dilengkapi Dengan HMI Untuk Sistem Pelaporan Otomatis .......... 75
Tabel IV.18 Perbandingan Waktu Pengiriman E-Mail Antara PLC dan PLC yang
Dilengkapi Dengan HMI Untuk Sistem Pelaporan Alarm .............. 76
Tabel IV.19 Perbandingan Rata - rata Waktu Pengiriman E-Mail untuk Ketiga
Sistem Pelaporan.............................................................................. 77

xii

Universitas Kristen Maranatha

DAFTAR GAMBAR
Gambar II.1 Perbandingan antara (a) rangkaian relay, (b) rangkaian logika relay,
(c) ladder diagram untuk fungsi logika OR .................................... 5
Gambar II.2 Pembacaan Ladder Diagram ............................................................... 6
Gambar II.3 Simbol Dasar dalam IEC 61131-3 ...................................................... 7
Gambar II.4 Contoh program (a) saklar normally open, (b) saklar normally closed
......................................................................................................... 7
Gambar II.5 Contoh Jaringan LAN dalam suatu Kantor ........................................ 9
Gambar II.6 Contoh Skema Jaringan WAN ......................................................... 10
Gambar II.7 Proses Encapsulation........................................................................ 12
Gambar II.8 Perbandingan Layer antara Model OSI dan Model TCP/IP ............. 13
Gambar II.9 Cara Kerja E-mail ............................................................................. 16
Gambar II.10 Model Transfer SMTP .................................................................... 17
Gambar II.11 Arsitektur POP3.............................................................................. 19
Gambar II.12 Arsitektur Protokol POP3 Berdasarkan OSI dan TCP/IP ............... 20
Gambar II.13 Posisi Protokol POP3 pada sistem e-mail....................................... 20
Gambar II.14 Cara Kerja Protokol POP3.............................................................. 21
Gambar II.15 Perbedaan Alur Proses pada (a) IMAP, (b) POP3 .......................... 23

Gambar III.1 Konsfigurasi Sistem Pelaporan Berbasiskan E-Mail Menggunakan
PLC dan HMI ................................................................................ 25
Gambar III.2 Konfigurasi Jaringan pada Server ................................................... 27
Gambar III.3 Konfigurasi Argosoft Mail Server Free .......................................... 28
Gambar III.4 PLC M340 yang Digunakan ............................................................ 28
Gambar III.5 Konfigurasi Jaringan pada PLC M340 ............................................ 30
Gambar III.6 Konfigurasi SMTP pada PLC M340 ............................................... 31
Gambar III.7 Menu Real Time Clock pada Unity Pro .......................................... 32
Gambar III.8 Hasil Konfigurasi HMI.................................................................... 33
Gambar III.9 Hasil Konfigurasi Untuk PLC Sasaran............................................ 34
Gambar III.10 Konfigurasi Jaringan pada User (a) Supervisor dan (b) Manager 35
Gambar III.11 TWDNOZ485T ............................................................................. 36
Gambar III.12 Pengawatan Pada PLC M340 dan TWDNOZ485T ...................... 37
Gambar III.13 Penambahan Modul TWDNOZ485T pada PLC Twido ................ 38
Gambar III.14 Penambahan Generic Modbus Element Pada Konfigurasi PLC
Twido ............................................................................................. 40
Gambar III.15 Konfigurasi Generic Modbus Element .......................................... 41
Gambar III.16 Hasil Konfigurasi Link Komunikasi Untuk Generic Modbus
Element .......................................................................................... 42
Gambar III.17 Hasil Konfigurasi Modbus pada PLC M340 ................................. 43
Gambar III.18 Diagram Alir Sistem Pelaporan Manual ....................................... 45
Gambar III.19 Diagram Alir Sistem Pelaporan Otomatis ..................................... 47
Gambar III.20 Diagram Alir Sistem Pelaporan Alarm ......................................... 48
Gambar III.21 Isi FBD IN_TO_VAR ................................................................... 49
Gambar III.22 FBD IN_TO_VAR ........................................................................ 49
Gambar III.23 Isi FBD INT_TO_STR_8IO ......................................................... 51
Gambar III.24 FBD INT_TO_STR_8IO............................................................... 52

xiii
Universitas Kristen Maranatha

Gambar III.25 Isi FBD MAIL_SUBJECT ............................................................ 53
Gambar III.26 FBD MAIL_SUBJECT ................................................................. 53
Gambar III.27 Isi FBD MAIL_BODY ................................................................. 54
Gambar IV.1 Tampilan Antarmuka Web dari Argosoft Mail Server Free ........... 58
Gambar IV.2 Tampilan Setelah Pilihan "Add New User" Dipilih ........................ 59
Gambar IV.3 Tampilan Jika Berhasil Menambah User ........................................ 60
Gambar IV.4 Tampilan Setelah Tombol "Login" Ditekan.................................... 61
Gambar IV.5 Contoh Tampilan Kotak Masuk ...................................................... 61

xiv
Universitas Kristen Maranatha

LAMP
IRANA
PROGRAMPLC M
340

0:BMXXBP0800
S
l
o
t
(P
)
0
1

F
am
i
l
y
Su
pp
l
y
M
od
i
c
on M
340
D
i
s
c
r
e
t
e

R
e
f
e
r
e
n
c
e
BMXCPS20
00
BMXP342020
BMXDDM16022

A
-1

0
.0:BMXP342020
Modu
l
eid
en
t
i
f
i
ca
t
ion
:
P
r
o
du
c
tr
e
f
e
r
e
n
c
e
A
d
d
r
e
s
s

:BMXP3420
20
:0
.0

Op
e
r
a
t
ing mod
e
I
n
pu
tr
u
n
/
s
t
op
M
em
o
r
yP
r
o
t
e
c
t
S
t
a
r
tA
u
t
o
/R
u
n
R
e
s
e
t MW
i
Co
l
dS
t
a
r
tOn
l
y

D
a
ta

Num
b
e
ro
fb
i
t
s
Num
b
e
ro
fw
o
r
d
s
Num
b
e
ro
fc
on
s
t
a
n
t
s
Num
b
e
ro
fs
y
s
t
emb
i
t
s
Num
b
e
ro
fs
y
s
t
emw
o
r
d
s

Chann
e
l0:

D
e
s
i
g
n
a
t
i
on
Sym
bo
l

:CPU340
-20 M
odbu
>>
:

:No
:No
:No
:Y
e
s
:No
:512
:102
4
:256
:128
:168

A
p
p
l
i
c
a
t
i
on
s
p
e
c
i
f
i
cf
u
n
c
t
i
on
Ch
a
n
n
e
l
t
y
p
e
T
a
s
k
T
y
p
e
T
r
a
n
sm
i
s
s
i
onSp
e
e
d

:M
odb
u
sl
i
n
k
:
I
n
t
e
g
r
a
t
e
dc
h
a
n
n
e
l
: MAST
:M
a
s
t
e
r
:192
00b
i
t
s
/
s

D
a
t
a

S
t
op

:1b
i
t

P
a
r
i
t
y

D
e
l
a
yb
e
tw
e
e
nf
r
am
e
s
M
a
s
t
e
rNum
b
e
rO
fR
e
t
r
i
e
s

:2m
s
:3

M
a
s
t
e
rA
n
sw
e
rd
e
l
a
y

Ph
y
s
i
c
a
l
l
i
n
e

:RS48
5

Chann
e
l3:

A
p
p
l
i
c
a
t
i
on
s
p
e
c
i
f
i
cf
u
n
c
t
i
on
Ch
a
n
n
e
l
t
y
p
e
N
e
tl
i
n
k
T
a
s
k

:ETHTCPIP
:
I
n
t
e
g
r
a
t
e
dc
h
a
n
n
e
l
:E
t
h
e
r
n
e
t
_1
: MAST

A
-2

:8
b
i
t
s
:
Non
e
:
100
x
10m
s

0
.1:BMXDDM16022
Modu
l
eid
en
t
i
f
i
ca
t
ion
:
P
r
o
du
c
tr
e
f
e
r
e
n
c
e
A
d
d
r
e
s
s

:BMXDDM16
022
:0
.1

Commonpa
r
am
e
t
e
r
s[0
-7
]
Su
pp
l
ym
on
i
t
o
r
i
n
g
T
a
s
k

:A
c
t
i
v
e
: MAST

Inpu
tch
ann
e
lp
a
r
am
e
t
e
r
s[
0
-7
]
Ch
ann
e
l
0
1
2
3
4
5
6
7

Add
r
e
s
s
%
I
0
.1
.0
.0
%
I
0
.1
.1
.0
%
I
0
.1
.2
.0
%
I
0
.1
.3
.0
%
I
0
.1
.4
.0
%
I
0
.1
.5
.0
%
I
0
.1
.6
.0
%
I
0
.1
.7
.0

Sym
b
o
l

Commonpa
r
am
e
t
e
r
s[16
-23
]
T
a
s
k
Su
pp
l
ym
on
i
t
o
r
i
n
g
R
e
a
c
t
i
v
a
t
e
F
a
l
l
b
a
c
kM
o
d
e

: MAST
:A
c
t
i
v
e
:P
r
og
r
amm
e
d
:F
a
l
l
b
a
c
k

Ou
tpu
tchann
e
lpa
r
am
e
t
e
r
s[16
-23
]
Ch
ann
e
l
0
1
2
3
4
5
6
7

Add
r
e
s
s
%Q0
.1
.16
.0
%Q0
.1
.17
.0
%Q0
.1
.18
.0
%Q0
.1
.19
.0
%Q0
.1
.20
.0
%Q0
.1
.21
.0
%Q0
.1
.22
.0
%Q0
.1
.23
.0

Ch
ann
e
l
0
1
2
3
4
5
6
7

F
a
l
l
.V
a
lu
e
0
0
0
0
0
0
0
0

Sym
b
o
l

A
-3

D
e
s
i
g
n
a
t
i
on
Sym
bo
l

:D
i
g8
I24V
d
c8Q>>
:

D
e
r
iv
edFBT
yp
e
s
N
am
e
in
_
t
o_va
r
INT
_TO
_STR
ING
_8
IO
MA
IL
_BODY
MA
IL
_SUBJECT

V
e
r
s
i
on
0
.02
0
.06
0
.17
0
.15

D
a
t
e
30
/
05
/
201315
:
17
:
34
19
/
07
/
201315
:
43
:
45
26
/
07
/
201315
:
29
:
54
19
/
07
/
201315
:
43
:
09

A
-4

in_
to_va
r
P
r
op
e
r
t
i
e
s
:
.02
V
e
r
s
i
on
:0

D
e
s
c
r
ip
t
i
v
ef
i
l
e
:
<
inpu
t
s>
:
N
am
e
i
n
p
u
t
1
i
n
p
u
t
2

<
ou
tpu
t
s>
:
N
am
e
ou
t
pu
t
1

T
y
p
e
STR
ING
STR
ING

V
a
l
u
e

Comm
e
n
t

T
y
p
e
STR
ING

V
a
l
u
e

Comm
e
n
t

<
inpu
t
s
/ou
tpu
t
s>
:
Non
e


:
Non
e

A
-5

in
tova
r :[
in_
to_va
r]
1
1

2

EN

3

inpu
t1 IN1

4

inpu
t2 IN2

6

4

CONCAT_STR

2

5

3

.1

ENO
tpu
t1
OUT temp_ou

.2
CONCAT_STR
EN

7

temp_ou
tpu
t1 IN1

8

'$N
' IN2

ENO
tpu
t1
OUT ou

A
-6

MA
IL
_SUBJECT
P
r
op
e
r
t
i
e
s
:
.15
V
e
r
s
i
on
:0

D
e
s
c
r
ip
t
i
v
ef
i
l
e
:
<
inpu
t
s>
:
N
am
e
m
a
i
l
_
t
i
t
l
e

T
y
p
e
s
t
r
i
n
g
[
255
]

V
a
l
u
e

Comm
e
n
t

T
y
p
e
s
t
r
i
n
g
[
255
]

V
a
l
u
e

Comm
e
n
t

<
ou
tpu
t
s>
:
N
am
e
ou
t
pu
t
1

<
inpu
t
s
/ou
tpu
t
s>
:
Non
e


:
Non
e

A
-7

ma
i
lsub
jec
t :
[MAIL_SUBJECT]
1
1

2

3

EN

3

OUT temp1

DT_TO_STR
ING
EN

6

temp1 IN

8
9
10

ENO

.2

5

7

5

RRTC_DT

2

4

4

.1

ENO
OUT temp2

.3
CONCAT_STR
EN
ma
i
l_
t
i
t
le IN1

ENO
tpu
t1
OUT ou

temp2 IN2

A
-8

INT
_TO
_STR
ING
_8
IO
P
r
op
e
r
t
i
e
s
:
.06
V
e
r
s
i
on
:0

D
e
s
c
r
ip
t
i
v
ef
i
l
e
:
<
inpu
t
s>
:
N
am
e
i
n
p
u
t
1
i
n
p
u
t
2
i
n
p
u
t
3
i
n
p
u
t
4
i
n
p
u
t
5
i
n
p
u
t
6
i
n
p
u
t
7
i
n
p
u
t
8

T
y
p
e
INT
INT
INT
INT
INT
INT
INT
INT

V
a
l
u
e

Comm
e
n
t

T
y
p
e
s
t
r
i
n
g
[
16
]
s
t
r
i
n
g
[
16
]
s
t
r
i
n
g
[
16
]
s
t
r
i
n
g
[
16
]
s
t
r
i
n
g
[
16
]
s
t
r
i
n
g
[
16
]
s
t
r
i
n
g
[
16
]
s
t
r
i
n
g
[
16
]

V
a
l
u
e

Comm
e
n
t

<
ou
tpu
t
s>
:
N
am
e
ou
t
pu
t
1
ou
t
pu
t
2
ou
t
pu
t
3
ou
t
pu
t
4
ou
t
pu
t
5
ou
t
pu
t
6
ou
t
pu
t
7
ou
t
pu
t
8

<
inpu
t
s
/ou
tpu
t
s>
:
Non
e


:
Non
e

A
-9

in
t
tos
tr
ing_8 :
[INT_TO_STRING_8IO]
1
1

2

EN

3

inpu
t1 IN

6

inpu
t2 IN

tpu
t2
OUT ou

INT_TO_STR
ING
EN

9

inpu
t3 IN

ENO
tpu
t3
OUT ou

.3
INT_TO_STR
ING

11

EN

12

inpu
t4 IN

ENO
tpu
t4
OUT ou

.4
INT_TO_STR
ING

14

EN

15

inpu
t5 IN

16

ENO

.2

8

13

tpu
t1
OUT ou

INT_TO_STR
ING
EN

10

ENO

.1

5

7

4

INT_TO_STR
ING

2

4

3

.6

ENO
tpu
t5
OUT ou

.5
INT TO STR
ING

A
-10

1

2

17

EN

18

inpu
t6 IN

19

4

ENO
tpu
t6
OUT ou

.7
INT_TO_STR
ING

20

EN

21

inpu
t7 IN

22

3

ENO
tpu
t7
OUT ou

.8
INT_TO_STR
ING

23

EN

24

inpu
t8 IN

ENO
tpu
t8
OUT ou

A
-11

MA
IL
_BODY
P
r
op
e
r
t
i
e
s
:
.17
V
e
r
s
i
on
:0

D
e
s
c
r
ip
t
i
v
ef
i
l
e
:
<
inpu
t
s>
:

N
am
e
IN1_NAME
IN1_VAR
IN2_NAME
IN2_VAR
IN3_NAME
IN3_VAR
IN4_NAME
IN4_VAR
IN5_NAME
IN5_VAR
IN6_NAME
IN6_VAR
IN7_NAME
IN7_VAR
IN8_NAME
IN8_VAR

<
ou
tpu
t
s>
:
N
am
e
OUT
1

T
y
p
e
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]
s
t
r
i
n
g
[
127
]

V
a
l
u
e

Comm
e
n
t

T
y
p
e
s
t
r
i
n
g
[
1024
]

V
a
l
u
e

Comm
e
n
t

<
inpu
t
s
/ou
tpu
t
s>
:
Non
e


:
Non
e

A
-12

ma
i
lbody :[MAIL_BODY]
1
1

2

IN1_NAME IN1

4

IN1_VA
R IN2

l
ine1
OUT temp_

.2
CONCAT_STR

6

ENO

EN

7

temp_
l
ine1 IN1

8

'$N
' IN2

ine1
OUT l

.3

9

CONCAT_STR

10

EN

11

IN2_NAME IN1

12

IN2_VA
R IN2

ENO
l
ine2
OUT temp_

.4

13

CONCAT_STR

14

EN
temp_
l
ine2 IN1

16
17

5

ENO

EN

3

15

4

CONCAT_STR

2

5

3

.1

ENO
ine2
OUT l

'$N
' IN2
.5
CONCAT STR

A
-13

6

7

8

9

10

11

12

13

14

15

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

A
-14

1

2

18

IN3_NAME IN1

20

IN3_VA
R IN2

l
ine3
OUT temp_

CONCAT_STR
ENO

EN

23

temp_
l
ine3 IN1

24

'$N
' IN2

ine3
OUT l

.7

25

CONCAT_STR

26

EN

27

IN4_NAME IN1

28

IN4_VA
R IN2

EN
temp_
l
ine4 IN1

32

ENO
ine4
OUT l

'$N
' IN2
.9
CONCAT_STR
EN

35

IN5_NAME IN1

36

IN5_VA
R IN2

37

l
ine4
OUT temp_

CONCAT_STR

30

34

ENO

.8

29

33

5

.6

22

31

4

ENO

EN

19

21

3

ENO
l
ine5
OUT temp_

.10
CONCAT STR

A
-15

6

7

8

9

10

11

12

13

14

15

18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

A
-16

1
38

2
EN

39

temp_
l
ine5 IN1

40

'$N
' IN2

3

_

ENO
ine5
OUT l

CONCAT_STR

42

EN

43

IN6_NAME IN1

44

IN6_VA
R IN2

EN
temp_
l
ine6 IN1

48

CONCAT_STR
EN

52

IN7_VA
R IN2

ENO
l
ine7
OUT temp_

.14
CONCAT_STR
EN

55

temp_
l
ine7 IN1

56

'$N
' IN2

57

ine6
OUT l

'$N
' IN2

IN7_NAME IN1

54

ENO

.13

51

53

l
ine6
OUT temp_

CONCAT_STR

46

50

ENO

.12

45

49

5

.11

41

47

4

ENO
ine7
OUT l

.15
CONCAT STR

A
-17

6

7

8

9

10

11

12

13

14

15

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57

A
-18

1

2

58

3

4

5

CONCAT_STR
EN

59

IN8_NAME IN1

60

IN8_VA
R IN2

6

7

8

9

10

ENO
l
ine8
OUT temp_

.16

61

CONCAT_STR

62

EN

63

temp_
l
ine8 IN1

64

'$N
' IN2

ENO
ine8
OUT l

65
66
67

EN

69

l
ine1 IN1

70

l
ine2 IN2

71

ENO
l2
OUT l1_

ENO

EN

EN

l1_
l2_
l3 IN1
l2_
l3
OUT l1_

l1_
l2 IN1

ENO
l2_
l3_
l4
OUT l1_

l
ine4 IN2

l
ine3 IN2
.22

.21

CONCAT_STR

CONCAT_STR

72

EN

ENO

73l1_l2_l3_l4...

IN1

l2_
l3_
l4_
l5_
l6
OUT l1_

74

CONCAT_STR

CONCAT_STR

CONCAT_STR

68

.19

.18

.17

EN
l1_
l2_
l3_
l4_
l5_
l6 IN1
l
ine7 IN2

l
ine6 IN2

A
-19

ENO
l2_
l3_
l4_
l5_
l6_
l7
l1_
l2_
l
OUT l1_

11

12

13

14

15

58
59
60
61
62
63
64
65
66
67

.20
CONCAT_STR

68

EN

69

l1_
l2_
l3_
l4 IN1

70

l
ine5 IN2

71

ENO
l2_
l3_
l4_
l5
OUT l1_

.23
CONCAT_STR

72

EN

ENO

73 3_l4_l5_l6_l7

IN1

OUT OUT1

74

l
ine8 IN2

A
-20

N
e
tW
o
r
kt
y
p
e
:E
t
h
e
r
n
e
t

F
am
i
l
y
:
N
am
e
:E
t
h
e
r
n
e
t
_1
E
t
h
e
r
n
e
t
_M
i
c
r
o_B
a
s
i
c
_Em
b
e
dd
e
d
_V
2

Comm
e
n
t
:
A
t
t
a
c
h
e
dn
e
tw
o
r
k:YES

A
d
r
e
s
sm
odu
l
e
:
\
0
.
0
\
0
.0
.3

IPC
on
f
igu
ra
t
ion
IPa
dd
r
e
s
sc
on
f
i
g
u
r
a
t
i
on
:Con
f
i
g
u
r
e
d
IPa
dd
r
e
s
s
:
Su
bn
e
tw
o
r
km
a
s
k
:
G
a
t
ew
a
ya
dd
r
e
s
s
:

19
2
.16
8
.1
.10
25
5
.25
5
.25
5
.0
0
.0
.0
.0

E
t
h
e
r
n
e
tc
on
f
i
g
u
r
a
t
i
o
n
: E
t
h
e
r
n
e
tI
I

M
e
s
s
a
g
in
g
Con
n
e
c
t
i
o
n
c
o
n
f
i
g
u
r
a
t
i
on
A
c
c
e
s
sc
on
t
r
o
l
:

D
i
s
a
b
l
e

E
th
e
rn
e
tSNMP
IPa
dd
r
e
s
sm
a
n
a
g
e
r
s
IPa
dd
r
e
s
sM
a
n
a
g
e
r1
: 0
.0
.0
.0

IPa
dd
r
e
s
sM
a
n
a
g
e
r2
: 0
.
0
.
0
.
0

A
g
e
n
t
L
o
c
a
t
i
o
n(Sy
sL
o
c
a
t
i
o
n
)
:
Con
t
a
c
t(Sy
sCon
t
a
c
t
)
:
D
i
s
a
b
l
e
SNMP m
a
n
a
g
e
r:

A
-21

Comm
u
n
i
t
yn
am
e
s

S
e
t
:
G
e
t
:
T
r
a
p
:

pu
b
l
i
c
pu
b
l
i
c
pu
b
l
i
c

S
e
c
u
r
i
t
y

E
n
a
b
l
eA
u
t
h
e
n
t
i
c
a
t
i
on
F
a
i
l
u
r
et
r
a
p:

D
i
s
a
b
l
e

E
th
e
rn
e
tSMTP
SMTPS
e
r
v
e
rc
on
f
i
g
u
r
a
t
i
on
IPa
dd
r
e
s
so
fSMTP:
Po
r
tn
um
b
e
r:

192
.168
.1
.100
25

P
a
s
sw
o
r
dA
u
t
h
en
t
i
c
a
t
i
on
:

D
i
s
a
b
l
e

M
a
i
lH
e
a
d
e
r1
F
r
om
:
T
o:
Su
b
j
e
c
t:

M
340
s
u
p
e
r
v
i
s
o
r

M
a
i
lH
e
a
d
e
r2
F
r
om
:
T
o:
Su
b
j
e
c
t:

M
340
m
a
n
a
g
e
r

B
andw
id
th
G
l
ob
a
lD
a
t
aI
n
f
o
rm
a
t
i
on 0 E
s
t
im
a
t
e
dG
l
ob
a
l
D
a
t
a(
/
s
)
M
e
s
s
a
g
i
n
g
i
n
f
o
rm
a
t
i
on

0E
s
t
im
a
t
e
dM
e
s
s
a
g
i
n
g
(
/
s
)

E
t
h
e
r
n
e
tE
n
v
i
r
o
nm
e
n
t: 0

A
-22

MAST
Spec
i
f
ic prope
r
t
ies
Con
f
igu
ra
t
ion
Taskpe
r
iodcon
f
igu
ra
t
ion
Wa
tchdogt
imecon
f
igu
ra
t
ion

Cyc
l
i
c
0
250

A
-23

read_
tw
ido:[MAST]
1
1

2

3

.2

4

5

6

7

.1
ADDM

READ_VAR

2

EN

ENO

EN

3

'0
.0
.0
.2
' IN

OUT

ADR

4

'%MW
' OBJ

5

0 NUM

6

ENO
tw
ido_m
w
RECP read_

12 NB

7

ra_mw
pa
ra_mw GEST GEST pa

8
9

.4

.3
ADDM

READ_VAR

10

EN

ENO

EN

11

'0
.0
.0
.2
' IN

OUT

ADR

12

'%MW
' OBJ

13

16 NUM

14

8 NB

15

ENO
tw
ido_m
RECP read_

ra_m
pa
ra_m GEST GEST pa

16
17

.6

.5
ADDM

READ VAR

A
-24

1

2

3

4

5

18

EN

ENO

EN

19

'0
.0
.0
.2
' IN

OUT

ADR

20

'%MW
' OBJ

21

41 NUM

22

4 NB

23

6

7

ENO
tw
ido_c
RECP read_

ra_c
pa
ra_c GEST GEST pa

24
25

.7

.8
ADDM

READ_VAR

26

EN

ENO

EN

27

'0
.0
.0
.2
' IN

OUT

ADR

28

'%MW
' OBJ

29

46 NUM

30

16 NB

31

ENO
tw
ido_
tm
RECP read_

ra_
tm
pa
ra_
tm GEST GEST pa

A
-25

Konve
rs
i:[MAST]
1
1

2

3

4

5

6

7

8

9

INT_TO_STR
ING_8
IO_1
INT_TO_STR
ING
.
.
.

2

EN

3 read_twido...

inpu
t1

ta
l_ma
te
r
ia
l
ou
tpu
t1 to

4 read_twido...

inpu
t2

ibo
r
ou
tpu
t2 logam_d

5

inpu
t3

ou
tpu
t3

6

inpu
t4

ou
tpu
t4

7

inpu
t5

ou
tpu
t5

8

inpu
t6

ou
tpu
t6

9

inpu
t7

ou
tpu
t7

10

inpu
t8

ou
tpu
t8

ENO

11
12

COMPARE
read_
tw
ido_m
[8
.
.
.

13

COMPARE
read_
tw
ido_m
[8
.
.
.

14

COMPARE
read_
tw
ido_m
[1
.
.
.

15

COMPARE
read_
tw
ido_m
[1
.
.
.

16

COMPARE
read_
tw
ido_m
[2
.
.
.

17

COMPARE
read_
tw
ido_m
[2
.
.
.

A
-26

10

11

12

13

14

15

1
2
3
4
5
6
7
8
9
10
11
12

OPERATE
p
lan
t_s
ta
te
:=
'OFF
'
;

13

OPERATE
p
lan
t_s
ta
te
:=
'ON
'
;

14

OPERATE
ma
ta_bo
r
:=
'OFF
'
;

15

OPERATE
ma
ta_bo
r
:=
'ON
'
;

16

OPERATE
index_
tab
le
:=
'OFF
'
;

17

OPERATE
index_
tab
le
:=
'ON
'
;

A
-27

1

2

3

4

5

6

7

8

9

18

COMPARE
read_
tw
ido_m
[3
.
.
.

19

COMPARE
read_
tw
ido_m
[4
.
.
.

20

COMPARE
read_
tw
ido_m
[5
.
.
.

21

COMPARE
read_
tw
ido_m
[5
.
.
.

22

COMPARE
read_
tw
ido_m
[6
.
.
.

23

COMPARE
read_
tw
ido_m
[6
.
.
.

24

COMPARE
read_
tw
ido_m
[7
.
.
.

25

COMPARE
read_
tw
ido_m
[7
.
.
.

A
-28

10

11

12

13

14

18

OPERATE
d
r
i
l
l_pos
:=
'NA
IK
'
;

19

OPERATE
d
r
i
l
l_pos
:=
'TURUN
'
;

20

OPERATE
c
lamp_modu
le
:=
'OFF
'
;

21

OPERATE
c
lamp_modu
le
:=
'ON
'
;

22

OPERATE
tes
t_modu
le
:=
'OFF
'
;

23

OPERATE
tes
t_modu
le
:=
'ON
'
;

24

OPERATE
s
o
r
t_modu
le
:=
'OFF
'
;

25

OPERATE
s
o
r
t_modu
le
:=
'ON
'
;

15

T
run
ca
t
edl
ab
e
l
s
:
L
a
b
e
l
INT
_TO_STR
ING
_
8
IO
r
e
a
d_
tw
i
do_m
[
1
]=
0
r
e
a
d_
tw
i
do_m
[
1
]=
1
r
e
a
d_
tw
i
do_m
[
2
]=
0
r
e
a
d_
tw
i
do_m
[
2
]=
1
r
e
a
d_
tw
i
do_m
[
3
]=
0
r
e
a
d_
tw
i
do_m
[
4
]=
1
r
e
a
d_
tw
i
do_m
[
5
]=
0
r
e
a
d_
tw
i
do_m
[
5
]=
1
r
e
a
d_
tw
i
do_m
[
6
]=
0
r
e
a
d_
tw
i
do_m
[
6
]=
1
r
e
a
d_
tw
i
do_m
[
7
]=
0
r
e
a
d_
tw
i
do_m
[
7
]=
1
r
e
a
d_
tw
i
do_m
[
8
]=
0
r
e
a
d_
tw
i
do_m
[
8
]=
1

Po
s
i
t
i
o
n
(
s
)
(
2
,1
)
(
8
,14
)
(
8
,15
)
(
8
,16
)
(
8
,17
)
(
8
,18
)
(
8
,19
)
(
8
,20
)
(
8
,21
)
(
8
,22
)
(
8
,23
)
(
8
,24
)
(
8
,25
)
(
8
,12
)
(
8
,13
)

A
-29

e_ma
i
l:[MAST]
1
1

2

EN

3

t
i
t
le1 ma
i
l_
t
i
t
le

ub
j
ou
tpu
t1 s

MA
IL_BODY_1
MA
IL_BODY
EN

6 'Plants
ta
r
te
.
.
.

IN1_NAME

7 plant_s
ta
r
t_
.
.
.

IN1_VAR

9

5

ENO

5

8

4

MA
IL_SUBJECT

2

4

3

MA
IL_SUBJECT_1

ENO
OUT1 body

'P
lan
tis
' IN2_NAME
p
lan
t_s
ta
te IN2_VAR

10

'Ma
tabo
r
' IN3_NAME

11

ma
ta_bor IN3_VAR

12'MotorRota...

IN4_NAME

13

index_
tab
le IN4_VAR

14

'Pos
is
i Bo
r
' IN5_NAME

15

d
r
i
l
l_pos IN5_VAR

16'Clamp mo...

IN6_NAME

17clamp_mo...

IN6_VAR

A
-30

6

7

8

9

10

11

12

13

14

15

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

A
-31

1

2

3

4

5

6

18 'Tes
t modu
le' IN7_NAME
19

tes
t_modu
le IN7_VAR

20 'Sort module' IN8_NAME
21

s
o
r
t_modu
le IN8_VAR

22
.1

.2

23

SEND_EMA
IL

ADDM

24

%M1

25

%MW10
.0

26

%MW11
.0

27

%MW12
.0

28

%MW13
.0

29

%MW14
.0

30

%MW15
.0

31

%MW16
.0

32

%MW17
.0

33

%MW18
.0

34

%M10

35

%M12

36

%
I0
.1
.0

37

%M11

P

EN

ENO

EN

'0
.0
.3
' IN

OUT

ADR

P

1 HEAD_KEY

P

s
ub
j SUBJ_STR

P
P

ENO

body BODY_STR
%mw100
:4 GEST

P
P
P
P

.4
EQ
EN

ENO

A
-32

GEST

7

8

9

10

11

12

13

14

15

18
19
20
21
22
23
24
25
26
27
28
29
30
31

OPERATE
t
i
t
le1
:=
'Lapo
ran'
;

32
33
34
35
36
37

A
-33

1
38
39

2

3

4

5

%SW51 IN1 OUT
%MW0 IN2

A
-34

6

7

8

9

10

11

12

13

14

%M12

38
39

15
P

OPERATE
t
i
t
le1
:=
'Lapo
ran Ha
r
ian'
;

A
-35

ema
i
l_2:[MAST]
1
1

2

3

4

5

MA
IL_SUBJECT_2
MA
IL_SUBJECT

2

EN

3

t
i
t
le2 ma
i
l_
t
i
t
le

ENO
ub
j2
ou
tpu
t1 s

4
5

MA
IL_BODY_2
MA
IL_BODY

6

EN

7 'Mater
ia
ld
.
.
.

IN1_NAME

8

IN2_NAME

logam_d
ibo
r IN2_VAR

11'Kondis
iP
l
.
.
.
12

OUT1 body2

to
ta
l_ma
te
r
ia
l IN1_VAR

9 'Logamdib...
10

ENO

IN3_NAME

p
lan
t_s
ta
te IN3_VAR

13

IN4_NAME

14

IN4_VAR

15

IN5_NAME

16

IN5_VAR

17

IN6_NAME

A
-36

6

7

8

9

10

11

12

13

14

15

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

A
-37

1

2

3

18

IN6_VAR

19

IN7_NAME

20

IN7_VAR

21

IN8_NAME

22

IN8_VAR

4

5

6

7

23
.2

.1

24

SEND_EMA
IL

ADDM

25

%M1

26

%M20

27

%M22

28

%M23

EN

ENO

EN

'0
.0
.3
' IN

OUT

ADR
2 HEAD_KEY
s
ub
j2 SUBJ_STR

29

body2 BODY_STR

30
31

ENO

%mw100
:4 GEST

GEST

%
I0
.1
.1

32
.4

33
34

EQ

TON

%M21
EN

35
36
37

TON_5

ENO

EN

ENO

%SW51 IN1 OUT

IN

Q

t#1
s PT

ET

%MW0 IN2
TON_6
TON

A
-38

8

9

10

11

12

13

14

15

18
19
20
21
22
23
24
25
26
27
28
29
30
31

OPERATE
t
i
t
le2
:=
'Lapo
ran'
;

32
33
34
%M22

35
36

P
OPERATE
t
i
t
le2
:=
'Lapo
ran Ha
r
ian'
;

37

A
-39

1
38
39
40

2

3

EN

ENO

IN

Q

t#0
.5
s PT

ET

4

5

%MW16
.0

A
-40

6

7

8

9

10

11

12

13

14

15

38
39

%M23

P

40

A
-41

a
la
rm:[MAST]
1
1

3

4

5

6

MA
IL_SUBJECT

2
3

2

MA
IL_SUBJECT_3

ENO

EN
'ALARM' ma
i
l_
t
i
t
le

ub
j_a
la
rm
ou
tpu
t1 s

4
5

%
I0
.1
.4

6

%M114

7

%M214

/

/

.2

.1

8
9

%M115

SEND_EMA
IL

ADDM
%M114

P

10

EN

ENO

EN

'0
.0
.3
' IN

OUT

ADR

11

1 HEAD_KEY

12

s
ub
j_a
la
rm SUBJ_STR

13

body_a
la
rm BODY_STR

14

%mw100
:4 GEST
TON_8

15

TON

16
17

EN

ENO

IN

Q

%M114

A
-42

ENO

GEST

7

8

9

10

11

12

13

14

15

1
2
3
4
5

%M114

6

OPERATE
body_a
la
rm
:=
'P
lan
tS
toppedbyEme
rgen
.
.
.

7
8
9
10
11
12
13
14
15
16
17

%M115

A
-43

1
18

21

3

t#0
.6
s PT

4

5

.3
SEND_EMA
IL

ADDM
%M115

P

EN

ENO

EN

'0
.0
.3
' IN

OUT

ADR

22

2 HEAD_KEY

23

s
ub
j_a
la
rm SUBJ_STR

24

body_a
la
rm BODY_STR

25

6

ET

.4

19
20

2

%mw100
:4 GEST

A
-44

ENO

GEST

7

8

9

10

11

12

13

14

15

18
19
20
21
22
23
24
25

T
run
ca
t
edl
ab
e
l
s
:
L
a
b
e
l
body
_
a
l
a
rm
:
=
'P
l
a
n
tS
t
opp
edbyEm
e
r
g
e
n
c
yS
t
opB
u
t
t
on
'
;

A
-45

Po
s
i
t
i
o
n
(
s
)
(
12
,6
)

An
ima
t
ionT
ab
l
e
s
Tab
l
eNam
e
:

T
a
b
l
e

Tab
l
eComm
en
t
:
Fun
c
t
i
on
a
lM
odu
l
e
:
N
am
e
c
v
1
_
r
e
p
c
v
1
_
s
t
r
c
v
2
_
r
e
p
c
v
2
_
s
t
r
ou
t
1_
s
t
r
ou
t
1
c
v
1_
r
ep
ou
t
1_
r
e
p
ou
t
1
c
v
1
c
v
2_
r
ep
D
a
t
e
1
s
u
b
j
r
e
a
d_
tw
i
do_mw
r
e
a
d_
tw
i
do_
c
r
e
a
d_
tw
i
do_m
r
e
a
d_
tw
i
do_
tm
p
a
r
a
_m
p
a
r
a
_mw
p
a
r
a
_
tm
p
a
r
a
_
c

T
y
p
e
s
t
r
i
n
g
[
25
5
]
s
t
r
i
n
g
[
25
5
]
s
t
r
i
n
g
[
25
5
]
s
t
r
i
n
g
[
25
5
]
s
t
r
i
n
g
[
25
5
]
s
t
r
i
n
g
[
25
5
]
s
t
r
i
n
g
[
25
5
]
s
t
r
i
n
g
[
25
5
]
DT
s
t
r
i
n
g
[
25
5
]
ARRAY
[
1
.
.12
]OFINT
ARRAY
[
1
.
.4
]OFINT
ARRAY
[
1
.
.8
]OFINT
ARRAY
[
1
.
.16
]OFINT
ARRAY
[
1
.
.4
]OFINT
ARRAY
[
1
.
.4
]OFINT
ARRAY
[
1
.
.4
]OFINT
ARRAY
[
1
.
.4
]OFINT

A
-46

Comm
e
n
t

LAMP
IRANB
PROGRAMHM
I

B
-1

B
-2

B
-3

B
-4

LAMP
IRANC
CONTOHE
-MA
ILDANLOG ARGOSOFT

Con
tohE
-M
a
i
lk
eSup
e
r
v
i
so
r

Con
tohE
-M
a
i
lk
eM
anag
e
r

C
1

Con
tohE
-M
a
i
lA
la
rm

Con
tohLogA
rgo
so
f
tM
a
i
lS
e
r
v
e
rF
r
e
e

C
2

LAMP
IRAND
FOTOPERALATANYANGD
IGUNAKAN

M
odu
lPLC M34
0

HM
IM
ag
e
l
i
sXBTGT

D
1

P
lan
t MP
SF
e
s
to

D
2

E
the
rn
e
tSw
i
t
c
h

S
e
r
v
e
r

D
3

BAB I
PENDAHULUAN
I.1. Latar Belakang
Dalam dunia industri modern, mesin – mesin produksi kini dikendalikan
oleh PLC. PLC (Programmable Logic Controller) adalah suatu komputer digital
yang digunakan untuk otomatisasi proses elektromekanikal. Pada awalnya, PLC
digunakan untuk menggantikan sistem relay, akan tetapi kini PLC telah memiliki
bahasa pemrograman dan fitur – fitur tersendiri tergantung merk dan tipenya.
Kebutuhan akan kemudahan untuk memonitor kinerja mesin yang
dikendalikan oleh PLC menjadi dasar berkembangnya HMI. HMI (Human
Machine Interface) merupakan suatu alat berupa display touch screen, digunakan
untuk menampilkan data – data dari suatu controller, yang dalam hal ini adalah
PLC.
Salah satu fitur yang kini umum terdapat pada PLC dan HMI adalah port
ethernet yang bisa digunakan untuk berkomunikasi dalam jaringan maupun
dengan sistem lain, seperti misalnya komputer yang memiliki SCADA
(Supervisory Control And Data Acquisition) atau web browser. Di samping itu,
beberapa PLC dan HMI sudah menawarkan kemampuan untuk mengirim e-mail
melalui SMTP.
SMTP (Simple Mail Transfer Protocol) adalah suatu standar internet untuk
pengiriman surat elektronik melalui Internet Protocol atau IP. SMTP bertujuan
untuk mengantarkan e-mail secara efektif dan dapat diandalkan (Postel, 1982).
Meski PLC dan HMI dapat digunakan untuk memonitor dan mengendalikan
proses industri, seringkali pencatatan laporan kinerja mesin masih dilakukan
secara

manual

oleh

operator.

Pencatatan

laporan

secara

manual

ini

mengakibatkan laporan yang dihasilkan seringkali kurang akurat. Kurang
akuratnya laporan manual ini dapat disebabkan oleh lokasi produksi yang tidak
kondusif seperti, suhu udara yang panas, tempat yang bising dan gangguan
lainnya. Hal ini menjadi masalah bagi manajemen karena laporan harian yang
akurat sangat dibutuhkan untuk menentukan target kinerja berikutnya.

Universitas Kristen Maranatha

BAB I PENDAHULUAN

2

Oleh karena itu, diperlukan suatu cara untuk memonitor dan melaporkan
proses kerja mesin dengan memanfaatkan kelebihan dan kemampuan yang
ditawarkan oleh PLC dan HMI.

I.2. Identifikasi Masalah

Merancang dan merealisasikan sistem pelaporan berbasiskan e-mail
menggunakan SMTP pada PLC Modicon M340 dan HMI Magelis.

I.3. Perumusan Masalah

Perumusan masalah pada Tugas Akhir ini adalah sebagai berikut:
1. Bagaimana merancang sistem pelaporan berbasiskan e-mail menggunakan
SMTP pada PLC Modicon M340 dan HMI Magelis ?
2. Bagaimana merealisasikan sistem pelaporan berbasiskan e-mail menggunakan
SMTP pada PLC Modicon M340 dan HMI Magelis ?

I.4. Tujuan

Tujuan dari Tugas Akhir ini adalah:
1. Merancang sistem pelaporan berbasiskan e-mail menggunakan SMTP pada
PLC Modicon M340 dan HMI Magelis
2. Merealisasikan sistem pelaporan berbasiskan e-mail menggunakan SMTP pada
PLC Modicon M340 dan HMI Magelis

I.5. Pembatasan Masalah
Topik Tugas Akhir ini akan dibatasi pada hal – hal sebagai berikut:
1. PLC yang digunakan adalah Modicon M340
2. Software pemrograman PLC adalah UnityPro
3. HMI yang digunakan adalah Magelis XBTGT

Universitas Kristen Maranatha

BAB I PENDAHULUAN

3

4. Software pemrograman HMI adalah VijeoDesigner
5. E-mail yang dikirimkan hanya berupa teks dengan jumlah maksimum 1024
karakter (1KB) termasuk bagian header, tanpa ada lampiran lainnya.
6. Plant yang digunakan untuk pengujian adalah plant MPS Festo

I.6. Spesifikasi Alat

Spesifikasi peralatan dan perangkat lunak yang akan digunakan dalam
Tugas Akhir ini adalah:
1. PLC Modicon M340 dan software Unity Pro
2. HMI Magelis XBTGT dan software Vijeo Designer
3. Plant MPS Festo

I.7. Sistematika Penulisan

Laporan Tugas Akhir ini disusun dengan sistematika sebagai berikut:
 Bab I Pendahuluan
Bab ini berisi latar belakang masalah, identifikasi masalah, tujuan,
pembatasan masalah, alat-alat yang digunakan, dan sistematika penulisan.
 Bab II Landasan Teori
Bab ini berisi landasan teori dari PLC, HMI, jaringan, koneksi jaringan,
komunikasi data, kelas IP, dan SMTP.
 Bab III Perancangan dan Realisasi
Bab ini berisi tentang perancangan sistem realisasinya.
 Bab IV Data Pengamatan
Bab ini berisi data pengamatan dan analisis yang diperoleh dari
menjalankan perancangan dan realisasi sistem
 Bab V Simpulan dan Saran
Bab ini merupakan bab penutup yang membahas mengenai kesimpulan
dan saran untuk perbaikan dan pengembangan lebih lanjut.

Universitas Kristen Maranatha

BAB V
SIMPULAN DAN SARAN
V.1. Simpulan

Berdasarkan hasil pengujian dan pengamatan yang dilakukan, maka dapat
ditarik beberapa kesimpulan dalam Tugas Akhir ini, yaitu:

1. Sistem reporting kondisi plant dan jumlah produksi berbasiskan e-mail
menggunakan Simple Mail Transfer Protocol (SMTP) melalui PLC Modicon
M340 telah berhasil dirancang.
2. Program yang direalisasikan dapat disederhanakan dengan membuat function
block diagram baru dalam perangkat lunak Unity Pro. Function Block
Diagram baru yang dibuat meliputi: IN_TO_VAR, IN_TO_STR_8IO,
MAIL_SUBJECT, dan MAIL_BODY.
3. Dalam realisasi, sistem reporting hanya bisa mengirimkan e-mail ke satu user
pada waktu tertentu saja dan tidak bisa mengirimkan e-mail ke lebih dari satu
user secara bersamaan. Hal ini disebabkan oleh keterbatasan e-mail server
Argosoft Mail Server Free.
4. Hasil pengujian menunjukkan bahwa diperlukan jeda waktu sebesar 0,6 detik
antara satu e-mail dengan e-mail lainnya agar e-mail dapat diterima oleh
server.
5. Rata – rata waktu pengiriman e-mail untuk ketiga mode pengiriman dengan
menggunakan PLC dan HMI kurang konsisten karena alokasi resources yang
dilakukan oleh sistem operasi pada server.

V.2. Saran

1. Mengembangkan program reporting berbasiskan e-mail menggunakan Simple
Mail Transfer Protocol (SMTP) pada PLC dan HMI sehingga dapat digunakan
lewat internet dan tidak terbatas pada jaringan LAN saja.

Universitas Kristen Maranatha

BAB V SIMPULAN DAN SARAN

81

2. Mengembangkan program reporting berbasiskan e-mail menggunakan Simple
Mail Transfer Protocol (SMTP) pada PLC dan HMI sehingga dapat digunakan
pada plant analog.
3. Menggunakan perangkat lunak untuk e-mail server dengan kemampuan lebih
baik dari Argosoft Mail Server Free untuk dapat mengoptimalkan sistem
reporting yang telah dirancang.

Universitas Kristen Maranatha

DAFTAR PUSTAKA
Braden, R (1989), Requirements for Internet Hosts – Communication Layers,
IETF. RFC 1122
2. Erickson, Kelvin T (2005), Programmable Logic Controllers: An Emphasis
on Design and Application, Dogwood Valley Press, LLC, USA
3. IEC 61131-1:2005, Programmable controllers – Part 1: General information,
Geneva: International Organization for Standardization
4. Merriam-Webster.com (n.d), Network, http://www.merriamwebster.com/dictionary/network?show=0&t=1371738792, diakses tanggal 27
Juni 2013
5. Microsoft Technet (n.d), How POP3 Service Works,
http://technet.microsoft.com/en-us/library/cc737236(v=ws.10).aspx, diakses
tanggal 27 Juni 2013
6. Myers, J. , Mellon, Carnegie, Rose, M. (1996), Post Office Protocol –
Version 3, IETF. RFC1939
7. Pinto, Jim (2006), History of PLC,
http://www.isa.org/Content/ContentGroups/News/2006/February24/History_
of_the_PLC.htm, diakses tanggal 27 Juni 2013
8. Postel, Jonathan B. (1982), Simple Mail Transfer Protocol, IETF. RFC821
9. Whatismyipaddress.com (n.d), What is a IMAP,
http://whatismyipaddress.com/imap, diakses tanggal 27 Juni 2013
10. Yoewono, S. (2009), HMI (Human Machine Interface) SCADA (Supervisory
Control and Data Acquisition) Berbasis Web Menggunakan Wonderware
1.

Universitas Kristen Maranatha