Pengendalian dan pengawasan proses pada mesin-mesin di industri hingga
saat ini masih banyak yang tetap membutuhkan operator untuk selalu berada di
tempat sehingga dapat mengawasi dan mengetahui proses pengendalian dari jarak
dekat. Mesin-mesin yang banyak menggunakan pengendali PLC dan DCS di
industri perlu dikembangkan sistem pengawasan secara jarak jauh untuk
meminimalkan ketergantungan operator untuk selalu berada di dekat mesin-mesin
tersebut.
Tugas akhir ini memanfaatkan fasilitas SMS melalui jaringan GSM untuk
mengawasi suatu plant yang sedang dikendalikan oleh PLC dari jarak jauh. Alat
ini menggunakan sebuah telepon selular yang dikoneksikan secara langsung
dengan PLC tanpa melalui bantuan PC untuk mengirim dan menerima data SMS.
Komunikasi antara PLC dengan telepon selular menggunakan protokol ASCII.
Plant yang digunakan adalah plant simulasi pengendalian temperatur untuk
menunjukkan proses pengendalian dan pengawasan secara jarak jauh. Proses
pengendalian ditunjukkan melalui keberhasilan men-start dan men-stop plant
tersebut melalui SMS sedangkan proses pengawasan ditunjukkan melalui
pemberitahuan keadaan darurat (alarm warning) dan routine report status plant
tersebut serta respon dalam menanggapi SMS yang diterima yang ingin
mengetahui status plant saat itu.
ABSTRACT
Recently, controlling and monitoring the process for many industrial
machines are still require human operator to stay in place to supervise and oversee
the control process adjacently. Industrial machines which most of them today
controlled by PLC and DCS need to be developed an integrated long distance
supervisory system in order to minimize the dependency of human operator to
stay near the machines.
This final project use the SMS facility through GSM network to supervise
a plant that being controlled by PLC from a long distance. This device use a cell
phone connected directly to PLC without connected in advance to PC to process
SMS data. Communication between PLC and cell phone use ASCII protocol. The
plant that is used in this final project to show the long distance controlling and
monitoring process is a simulation plant for temperature control. The control
process is shown by the ability of PLC to start or stop the plant by an sent SMS
whereas the monitoring process is shown by alarm warning, routine report
containing the status of plant, and response of PLC to the received SMS which
means to know the status of plant at the time.
ABSTRAK ... i
ABSTRACT ... ii
KATA PENGANTAR ... iii
DAFTAR ISI ... v
DAFTAR GAMBAR ... viii
DAFTAR TABEL ... ix
DAFTAR LAMPIRAN ... x
BAB I : PENDAHULUAN ...
1
I.1.
Latar Belakang ...
1
I.2.
Identifikasi Masalah ...
2
I.3.
Tujuan ...
2
I.4.
Pembatasan Masalah ...
2
I.5.
Spesifikasi Alat ...
3
I.6.
Sistematika Pembahasan ...
3
BAB II : DASAR TEORI ...
5
II.1.
PLC (Programmable Logic Controller) ...
5
II.1.1.
Arsitektur PLC ...
5
II.1.2.
Scan Function dan Scan Time ...
7
II.1.3.
Bahasa Pemrograman Ladder Diagram ...
8
II.1.4.
PLC Twido ...
8
II.1.5.
Twidosoft ...
9
II.2.
Komunikasi Data antara PLC dengan Telepon Selular ...
10
II.2.1.
Protokol ASCII ...
10
II.2.2.
Modul TWDNOZ232D ...
11
vi
II.4.1.2.
Header PDU untuk Penerimaan SMS ...
18
II.4.2.
Hayes AT-Command ...
19
BAB III : PERANCANGAN ...
21
III.1.
Perancangan dan Realisasi Perangkat Keras ...
21
III.2.
Perancangan dan Realisasi Perangkat Lunak ...
21
III.2.1.
Perangkat Lunak pada PLC ...
22
III.2.1.1.
Pemrograman Plant Simulasi Pengendalian Temperatur ...
22
III.2.1.1.1.
Flowchart Plant Simulasi Pengendalian Temperatur ...
24
III.2.1.1.2.
Pemetaan I/O Plant Simulasi Pengendalian Temperatur ...
25
III.2.1.2.
Pemrograman Pemrosesan SMS ...
25
III.2.1.2.1.
Konfigurasi Protokol Komunikasi ASCII ...
27
III.2.1.2.2.
Setting Port untuk Penerimaan SMS ...
28
III.2.1.2.3.
Mode Pengendalian Plant ...
28
III.2.1.2.4.
Mode Pengawasan Satu Arah ...
29
III.2.1.2.5.
Mode Pengawasan Dua Arah ...
30
III.2.2.
Perangkat Lunak pada HMI ...
31
BAB IV : DATA PENGAMATAN DAN ANALISA ...
34
IV.1.
Pengujian Mode Pengendalian ... 34
IV.1.1.
Pengujian Start Plant Simulasi Pengendalian Temperatur ...
34
IV.1.2.
Pengujian Stop Plant Simulasi Pengendalian Temperatur ...
34
IV.1.3.
Analisa Hasil Pengujian Mode Pengendalian ...
35
IV.2.
Pengujian Mode Pengawasan Satu Arah ...
35
IV.2.1.
Pengujian Keadaan Darurat (Temperatur > Setpoint) ...
36
IV.2.2.
Pengujian Routine Report Status Plant Simulasi Pengendalian Temperatur
untuk Kondisi OFF ...
36
IV.2.3.
Pengujian Routine Report Status Plant Simulasi Pengendalian Temperatur
untuk Kondisi ON ...
37
IV.2.4.
Analisa Hasil Pengujian Mode Pengawasan Satu Arah ...
38
IV.3.
Pengujian Mode Pengawasan Dua Arah ...
38
IV.3.2.
Pengujian Respon Otomatis Status Plant Simulasi Pengendalian
Temperatur untuk Kondisi ON ...
39
IV.3.3.
Analisa Hasil Pengujian Mode Pengawasan Dua Arah ...
40
BAB V : KESIMPULAN DAN SARAN ...
41
V.1.
Kesimpulan ...
41
DAFTAR GAMBAR
Gambar II.1. Blok Diagram Arsitektur PLC ... 6
Gambar II.2. Format Pengiriman dan atau Penerimaan Data Perintah EXCHx 11
Gambar III.1. Diagram Blok Sistem ... 21
Gambar III.2. Tampilan Perangkat Lunak Twidosoft ... 22
Gambar III.3. Plant Simulasi Pengendalian Temperatur ... 23
Gambar III.4. Flowchart Plant Simulasi Pengendalian Temperatur ... 24
Gambar III.5. Flowchart Pemrograman Pemrosesan SMS ... 26
Gambar III.6. Protokol dan Parameter Komunikasi pada PLC Twido ... 27
Gambar III.7. Mode Pengendalian Plant ... 29
Gambar III.8. Mode Pengawasan Satu Arah ... 29
Gambar III.9. Mode Pengawasan Dua Arah ... 30
Gambar III.10. Tampilan Perangkat Lunak XBT-L1000 ... 31
Gambar III.11. Halaman aplikasi Page 1 ... 32
Gambar III.12. Halaman aplikasi Page 2 ... 32
Gambar III.13. Halaman aplikasi Page 3 ... 32
Gambar III.14. Halaman aplikasi Page 4 ... 33
Gambar III.15. Halaman aplikasi Page 5 ... 33
Tabel II.1. Kode PDU SMS-Centre dalam bentuk Nasional ... 14
Tabel II.2. Kode PDU SMS-Centre dalam bentuk Internasional ... 14
Tabel II.3. Rumus menghitung jangka waktu berlakunya SMS ... 16
Tabel IV.1. Hasil Pengujian Start Plant Simulasi Pengendalian Temperatur ... 34
Tabel IV.2. Hasil Pengujian Stop Plant Simulasi Pengendalian Temperatur .... 35
Tabel IV.3. Hasil Pengujian Keadaan Darurat (Temperatur > Setpoint) ... 36
Tabel IV.4. Hasil Pengujian Routine Report Status Plant Simulasi
Pengendalian Temperatur untuk Kondisi OFF ... 37
Tabel IV.5. Hasil Pengujian Routine Report Status Plant Simulasi
Pengendalian Temperatur untuk Kondisi ON ... 37
Tabel IV.6. Hasil Pengujian Respon Status Plant Simulasi
Pengendalian Temperatur untuk Kondisi OFF ... 39
Tabel IV.7. Hasil Pengujian Respon Status Plant Simulasi
DAFTAR LAMPIRAN
Skema ASCII 7 Bit
b7
0 0 0 0 1 1 1 1
b6
0 0 1 1 0 0 1 1
b5
0 1 0 1 0 1 0 1
b4
b3
b2 b1
0 1 2 3 4 5 6 7
0 0 0 0
0
@
∆
SP
0 - P
¨
p
0 0 0 1
1
!
1 A Q a q
0 0 1 0
2
$
Φ
"
2 B R b r
0 0 1 1
3
Г
# 3 C S c s
0 1 0 0
4
Λ
4
D
T
d
t
0 1 0 1
5
Ω
% 5 E U e u
0 1 1 0
6
Π
& 6 F V f v
0 1 1 1
7
Ψ
`
7 G W
g w
1 0 0 0
8
Σ
( 8 H X h x
1 0 0 1
9
Θ
) 9 I Y i y
1 0 1 0
10
LF
Ξ
* : J Z j z
1 0 1 1
11
+
;
K
Ä
k
ä
1 1 0 0
12
,
<
L
Ö
l
ö
1 1 0 1
13
CR
- = M
m
1 1 1 0
14
ß
. > N
Ü
n
ü
Skema ASCII 8 Bit
Binary Decimal
Hex
Abbreviation
Keyboard
Access
Name/Meaning
0000 0000
0
00
NUL
^@
Null character
0000 0001
1
01
SOH
^A
Start of Header
0000 0010
2
02
STX
^B
Start of Text
0000 0011
3
03
ETX
^C
End of Text
0000 0100
4
04
EOT
^D
End of Transmission
0000 0101
5
05
ENQ
^E
Enquiry
0000 0110
6
06
ACK
^F
Acknowledgement
0000 0111
7
07
BEL
^G
Bell
0000 1000
8
08
BS
^H
Backspace
0000 1001
9
09
HT
^I
Horizontal
Tab
0000 1010
10
0A
LF
^J
Line feed
0000 1011
11
0B
VT
^K
Vertical Tab
0000 1100
12
0C
FF
^L
Form feed
0000 1101
13
0D
CR
^M
Carriage return
0000 1110
14
0E
SO
^N
Shift Out
0000 1111
15
0F
SI
^O
Shift In
0001 0000
16
10
DLE
^P
Data Link Escape
0001 0001
17
11
DC1
^Q
Device Control 1 — oft. XON
0001 0010
18
12
DC2
^R
Device Control 2
0001 0011
19
13
DC3
^S
Device Control 3 — oft. XOFF
0001 0100
20
14
DC4
^T
Device Control 4
0001 0101
21
15
NAK
^U
Negative Acknowledgement
0001 0110
22
16
SYN
^V
Synchronous Idle
0001 0111
23
17
ETB
^W
End of Trans. Block
0001 1000
24
18
CAN
^X
Cancel
0001 1110
30
1E
RS
^^
Record Separator
0001 1111
31
1F
US
^_
Unit Separator
0111 1111
127
7F
DEL
^?, Delete,
or
Backspace
Delete
Binary Decimal
Hex Graphic
0010 0000
32
20
(blank)
(
␠
)
0010 0001
33
21
!
0010 0010
34
22
"
0010 0011
35
23
#
0010 0100
36
24
$
0010 0101
37
25
%
0010 0110
38
26
&
0010 0111
39
27
'
0010 1000
40
28
(
0010 1001
41
29
)
0010 1010
42
2A
*
0010 1011
43
2B
+
0010 1100
44
2C
,
0010 1101
45
2D
-0010 1110
46
2E
.
0010 1111
47
2F
/
0011 0000
48
30
0
0011 0001
49
31
1
0011 0010
50
32
2
0011 0011
51
33
3
0011 0100
52
34
4
0011 0101
53
35
5
0011 0110
54
36
6
0011 0111
55
37
7
0011 1000
56
38
8
0011 1001
57
39
9
0011 1010
58
3A
:
0011 1011
59
3B
;
0011 1100
60
3C
<
0011 1101
61
3D
=
0011 1110
62
3E
>
0011 1111
63
3F
?
Binary Decimal
Hex Graphic
0100 0000
64
40
@
0100 0001
65
41
A
0100 0010
66
42
B
0100 0011
67
43
C
0100 0100
68
44
D
0100 0101
69
45
E
0100 0110
70
46
F
0100 0111
71
47
G
0100 1000
72
48
H
0100 1001
73
49
I
0100 1010
74
4A
J
0100 1011
75
4B
K
0100 1100
76
4C
L
0100 1101
77
4D
M
0100 1110
78
4E
N
0100 1111
79
4F
O
0101 0000
80
50
P
0101 0001
81
51
Q
0101 0010
82
52
R
0101 0011
83
53
S
0101 1010
90
5A
Z
0101 1011
91
5B
[
0101 1100
92
5C
\
0101 1101
93
5D
]
0101 1110
94
5E
^
0101 1111
95
5F
_
Binary Decimal
Hex Graphic
0110 0000
96
60
`
0110 0001
97
61
a
0110 0010
98
62
b
0110 0011
99
63
c
0110 0100
100
64
d
0110 0101
101
65
e
0110 0110
102
66
f
0110 0111
103
67
g
0110 1000
104
68
h
0110 1001
105
69
i
0110 1010
106
6A
j
0110 1011
107
6B
k
0110 1100
108
6C
l
0110 1101
109
6D
m
0110 1110
110
6E
n
0110 1111
111
6F
o
0111 0000
112
70
p
0111 0001
113
71
q
0111 0010
114
72
r
0111 0011
115
73
s
0111 0100
116
74
t
0111 0101
117
75
u
0111 0110
118
76
v
0111 0111
119
77
w
0111 1000
120
78
x
0111 1010
122
7A
z
0111 1011
123
7B
{
0111 1100
124
7C
|
0111 1101
125
7D
}
A. Overview of the Supported AT Command Set
No
Commands
Function
1
AT+CGMI
Issue manufacturer ID code
2
AT+CGMM Issue model ID code
3
AT+CGMR
Output the GSM telephone version
4
AT+CGSN
Output the serial number (IMEI)
5
AT+GSN
Output the serial number (IMEI)
6
AT+CHUP
Terminate call
7
AT+CEER
Query the reason for disconnection of last call
8
AT+CREG
Network registration
9
AT+COPS
Commands concerning selection of network operator
10 AT+CLCK
Switch locks on and off
11 AT+CPWD
Change password to a lock
12 AT+CLIP
Display telephone number of calling party
13 AT+CCFC
Call forwarding
14 AT+CHLD
Call hold and multiparty
15 AT+CPAS
Query the telephone status
16 AT+CPIN
Enter PIN and query lock
17 AT+CBC
Battery charge
18 AT+CSQ
Output signal quality
19 AT+CPBS
Select a telephone book
20 Fehler! Kein Read a telephone-book entry
gültiges
Resultat für
Tabelle.
21 AT+CPBW
Write a telephone-book entry
22 AT+CMEE
Expanded error messages according to GSM 07.07
23 AT+VTS
Send a DTMF tone
24 AT+VTD
Set duration of a DTMF tone
25 AT+WS46
Select wireless network
26 AT+CSCS
Select TE character set
27 AT+CAOC
Advice of charge
28 AT+CSSN
Supplementary service notifications
29 AT+CRSM
Restricted SIM access
30 AT+CIMI
Output of IMSI
31 AT+CACM
Accumulated call meter
32 AT+CAMM
Accumulated call meter maximum
33 AT+CLCC
List Current Calls
34 AT+CCLK
Clock
No
Commands
Function
42 AT+CSMS
Selection of message service
43 AT+CPMS
Selection of SMS memory
44 AT+CMGF
SMS format
45 AT+CSCA
Address of the SMS service center
46 AT+CNMI
Display new incoming SMS
47 AT+CNMA
Acknowledgment of a short message directly output
48 AT+CMGL
List SMS
49 AT+CMGR
Read in an SMS
50 AT+CMGS
Send an SMS
51 AT+CMSS
Send an SMS from the SMS memory
52 AT+CMGW Write an SMS to the SMS memory
53 AT+CMGD
Delete an SMS in the SMS memory
54 AT+CSCB
Select cell broadcast messages
55 AT+CMGC
Send an SMS command
No
Siemens-specific
Function
commands
1
AT^SPBS
Select a telephone book (including Siemens-specific books)
2
AT^SDLD
Delete the ”last number redial” memory”
3 AT^SPBC
Seek the first entry in the sorted telephone book which
begins with the selected (or next available) letter
4 AT^SPBG
Read entry from the sorted telephone book via the sorted
index
5
AT^SLCK
Switch locks (including user-defined locks) on and off
6
AT^SPWD
Change password to a lock (including user-defined locks)
7
AT^SACM
Output ACM (accumulated call meter) and ACMmax
8
AT^SPLM
Read the PLMN
9
AT^SPLR
Read an entry from the preferred-operator list
10
AT^SPLW
Write an entry to the preferred-operator list
11
AT^SCNI
Output call number information
12
AT^SNFV
Set the volume
13
AT^SNFS
Select NF hardware
14
AT^SRTC
Set the ringing tone
15
AT^SCID
Output card ID
16
AT^SCKS
Output SIM card status
17
AT^SPIC
Output PIN counter
18
AT^SMGO
SMS overflow indicator
19
AT^SMGL
List SMS (without status change from unreadto read)
20
AT^SMGR
Read SMS record without Changing unread->read
21
AT^SMSO
Switch device off
B. AT Command Set
Remote control operation of the GSM mobile telephone runs via a serial
interface (data cable of infrared connection), where AT+C commands
according to ETSI GSM 07.07 and GSM 07.05 specification as well as
several manufacturer specific AT commands are available. These
commands are described in more detail later on. The modem guideline
V.25ter applies to the sequence of the interface commands. According to
this guideline, commands should begin with the character string
”AT”
and
end with
”<CR>” (= 0x0D).
The input of a command is acknowledged by
the display of ”OK” or ”ERROR”.
A command currently in process is
interrupted by each additional character entered
. This means that you
should not enter the next command until you have received the
acknowledgment; otherwise the current command is interrupted.
The commands supported are listed in the following tables:
B.1. Hayes-Standard Commands
The Hayes-standard commands correspond to the commands of AT
Hayes-compatible modems.
A/ Command
Function
Repeat last command
AT...
Prefix for all other commands
ATA
Accept call
ATD<str>;
Dial the dialing string <str> with the voice utility Valid dial modifiers: ”T”
(tone dialing), ”P” (pulse dialing) is ignored. The character ”;” is
important, for this tells the phone that the call should be set up with the
voice utility. Otherwise an attempt is made to set up a data call, which
the phone immediately acknowledges with ”ERROR”.
The dial command responds with OK to the user right after starting a
voide call.
Other behavior like *# sequences in the dial command and also data
calls remain unchanged.
ATD><n>;
Dial the telephone number from the current telephone book location
number <n>
ATQ0
Display acknowledgments
ATQ1
Suppress acknowledgments
ATV0
Output acknowledgments as numbers
ATV1
Output acknowledgments as text
AT&F[0]
Reset to factory profile
ATZ
Set to default configuration
AT+GCAP
Output the capabilities list
B.2. Acknowledgments for Normal Data Communication
Response
Numeric
Meaning
OK
0
Command executed, no errors
RING
2
Ring detected
NO CARRIER
3
Link not established or disconnected
ERROR
4
Invalid command or command line too long
NO DIALTONE
6
No dial tone, dialing impossible, wrong mode
BUSY
7
Remote station busy
C. AT Commands According to GSM 07.05 for SMS
According to GSM, it is possible to execute an AT command in various
forms.
Test command
AT+CXXX=?
The telephone responds by sending the
list of parameters and value ranges;
these can be set using the affiliated
Write command or by means of internal
processes.
Read command
AT+CXXX?
This command tells you the current value
setting of the parameter(s).
Write command
AT+CXXX=<...>
This command is used to set parameters
that can be set.
Execute command AT+CXXX
The Execute command reads
non-settable parameters which are
influenced by internal processes in the
telephone.
The GSM 07.05 commands are used for operating the SMS functions of
the GSM
Print date
05/08/2005
Author
Department
Target
TWDLMDA20DRT
Index
Industrial property
Ladder Diagram
RUNG 0 %Q0.0 INDIKATOR-_SISTEM %M224 %TM8 IN Q TON TYPE 1 sec TB Y ADJ %TM8.P 600 S %M224 RUNG 1 %M224%TM8.V = 0
%M239 %M241 %M240 %M236
%MW1001:-X10 %MSG2.D %M243
S %M225
RUNG 2
%S13
%MW1500 := 16#0004
%MW1501 := 16#0000
%MW1502 := 16#4154
%Q0.0
INDIKATOR-_SISTEM
%M225 %MW495:X0 %MSG2.D
EXCH2 %MW1500:4 %M241 S %MW495:X0 %MW494:X-13 S %MW495:X1 R %MW495:X3 R %MW495:X5 RUNG 4 %S13
%MW1504 := 16#020A
%MW1505 := 16#0000
RUNG 5
%MW495:X1 %MSG2.D
EXCH2 %MW1504:7
RUNG 6
%MW1509 = 20299
R %MW495:X1
RUNG 7
%S13
%MW1511 := 16#000B
%MW1512 := 16#0000
%MW1513 := 16#4154
%MW1514 := 16#2B43
%MW1515 := 16#4D47
%MW1516 := 16#533D
%MW1517 := 16#3338
RUNG 8
%S13
%MW1518 := 16#0D00
RUNG 9
%MW1509 = 20299
%MW495:X1 %MW495:X2 %MW495:X3 %MSG2.D
EXCH2 %MW1511:8
S %MW495:X2
S %MW495:X3
RUNG 10
%S13
%MW1519 := 16#020E
%MW495:X7 %MSG2.D
EXCH2 %MW1519:9
RUNG 12
%MW1527 = 2622
R %MW495:X2
S
%MW499:X-10
RUNG 13
%S13
%MW1529 := 16#005B
%MW1530 := 16#0000
%MW1531 := 16#3037
%MW1532 := 16#3931
%MW1533 := 16#3236
%MW1534 := 16#3138
RUNG 14
%S13
%MW1536 := 16#3030
%MW1537 := 16#3030
%MW1538 := 16#4630
%MW1539 := 16#3031
%MW1540 := 16#3030
%MW1541 := 16#3043
%MW1542 := 16#3931
RUNG 15
%M225 %M226
%MW1541 := 16#3043
%M225 %M226
%MW1543 := 16#3236
%MW1544 := ROR( %MW371, 8 )
%MW1545 := ROR( %MW372, 8 )
%MW1546 := ROR( %MW373, 8 )
%MW1547 := ROR( %MW374, 8 )
%MW1548 := ROR( %MW375, 8 )
%MW1549 := 16#3030
RUNG 17
%M225 %M226
%MW1541 := 16#3043
RUNG 18
%M225 %M226
%MW1543 := 16#3830
%MW1544 := ROR( %MW371, 8 )
%MW1545 := ROR( %MW372, 8 )
%MW1546 := ROR( %MW373, 8 )
%MW1547 := ROR( %MW374, 8 )
%MW1548 := ROR( %MW375, 8 )
%MW1549 := 16#3030
RUNG 19
%M225 %M241
%MW423 = 16#3036 %MW1543 := %MW433
%MW1544 := %MW434
%MW1545 := %MW435
%MW1546 := %MW436
%MW1547 := %MW437
%MW1548 := %MW438
%M225
%MW1001:-X10
%MW423 = 16#3037 %MW1543 := %MW434
%MW1544 := %MW435
%MW1545 := %MW436
%MW1546 := %MW437
%MW1547 := %MW438
%MW1548 := %MW439
%MW1549 := 16#3030
RUNG 21
%S13
%MW1550 := 16#3030
%MW1551 := 16#3138
%MW1552 := 16#4433
%MW1553 := 16#4634
RUNG 22
%S13
%MW1557 := 16#3833
%MW1558 := 16#3734
%MW1559 := 16#4130
%MW1560 := 16#4137
%MW1561 := 16#4431
%MW1562 := 16#4138
%MW1563 := 16#4530
RUNG 23
%S13
%MW1564 := 16#3139
%MW1565 := 16#4535
%MW1566 := 16#4546
%MW1567 := 16#4236
%MW1568 := 16#3045
%MW1569 := 16#3034
%S13
%MW1571 := 16#3045
%MW1572 := 16#3744
%MW1573 := 16#3030
%MW1574 := 16#3030
%MW1575 := 16#3030
%MW1576 := 16#1A00
RUNG 25
%MW1527 = 2622
%MW495:X2 %MW495:X4 %MW495:X5 %MSG2.D
EXCH2 %MW1529:48
S %MW495:X5
%M225
S %MW495:X6
%M225
S
%MW499:X-11
RUNG 26
%MW495:X6
%TM9
RUNG 27
%MW495:X7
%MW1506:5 := 0
%MW1521:7 := 0
%MW1602:46 := 0
RUNG 28
%MW495:X7
R %MW495:X0
R %MW495:X6
R %MW499:X9
R
%MW499:X-10
R %M224
R %M225
RUNG 29
%S13
%MW1700 := 16#0004
%MW1701 := 16#0000
%MW1702 := 16#4154
%MW494:X-12 %MW494:X0 %MSG2.D
EXCH2 %MW1700:4
S %MW494:X0
S %MW494:X1
R %MW494:X3
R %MW494:X5
RUNG 31
%S13
%MW1704 := 16#020A
%MW1705 := 16#0000
RUNG 32
%MW494:X1 %MSG2.D
EXCH2 %MW1704:7
RUNG 33
%MW1709 = 20299
R %MW494:X1
S
RUNG 34
%S13
%MW1711 := 16#000B
%MW1712 := 16#0000
%MW1713 := 16#4154
%MW1714 := 16#2B43
%MW1715 := 16#4D47
%MW1716 := 16#533D
%MW1717 := 16#3338
RUNG 35
%S13
%MW1718 := 16#0D00
RUNG 36
%MW1709 = 20299
%MW494:X1 %MW494:X2 %MW494:X3 %MSG2.D
EXCH2 %MW1711:8
S %MW494:X2
S %MW494:X3
RUNG 37
%S13
%MW1719 := 16#020E
%MW494:X7 %MSG2.D
EXCH2 %MW1719:9
RUNG 39
%MW1727 = 2622
R %MW494:X2
S
%MW499:X-13
RUNG 40
%S13
%MW1729 := 16#005D
%MW1730 := 16#0000
%MW1731 := 16#3037
%MW1732 := 16#3931
%MW1733 := 16#3236
%MW1734 := 16#3138
RUNG 41
%S13
%MW1736 := 16#3030
%MW1737 := 16#3030
%MW1738 := 16#4630
%MW1739 := 16#3031
%MW1740 := 16#3030
%MW1741 := 16#3044
%MW1742 := 16#3931
RUNG 42
%MW1743 := %MW433
%MW1744 := %MW434
%MW1745 := %MW435
%MW1746 := %MW436
%MW1747 := %MW437
%MW1748 := %MW438
%S13
%MW1750 := 16#3030
%MW1751 := 16#3030
%MW1752 := 16#3138
%MW1753 := 16#4433
%MW1754 := 16#4634
%MW1755 := 16#3943
%MW1756 := 16#3545
RUNG 44
%S13
%MW1757 := 16#3645
%MW1758 := 16#3833
%MW1759 := 16#3734
%MW1760 := 16#4130
RUNG 45
%S13
%MW1764 := 16#4530
%MW1765 := 16#3139
%MW1766 := 16#4535
%MW1767 := 16#4546
%MW1768 := 16#4236
%MW1769 := 16#3045
%MW1770 := 16#3034
RUNG 46
%S13
%MW1771 := 16#3635
%MW1772 := 16#3045
%MW1773 := 16#3744
%MW1774 := 16#3030
%MW1775 := 16#3030
%MW1776 := 16#3030
%MW1727 = 2622
%MW494:X2 %MW494:X4 %MW494:X5 %MSG2.D
EXCH2 %MW1729:49
S %MW494:X5
S
%MW499:X-14
RUNG 48
%MW996 := %IW0.1.0 / 10
%MW995 := ITB( %MW996 )
%MW994 := SHR( %MW995, 4 )
%MW993 := %MW995 AND 16#000F
RUNG 49
%MW994 = 0 %MW992 := 16#3832
%MW994 = 1 %MW992 := 16#3841
%MW994 = 2 %MW992 := 16#3932
RUNG 50
%MW994 = 7 %MW992 := 16#4241
%MW994 = 8 %MW992 := 16#4332
%MW994 = 9 %MW992 := 16#4341
RUNG 51
%MW993 = 0 %MW991 := 16#4331
%MW993 = 1 %MW991 := 16#4335
%MW993 = 2 %MW991 := 16#4339
%MW993 = 3 %MW991 := 16#4344
%MW993 = 4 %MW991 := 16#4431
%MW993 = 5 %MW991 := 16#4435
%MW993 = 6 %MW991 := 16#4439
RUNG 52
%MW993 = 7 %MW991 := 16#4444
%MW993 = 8 %MW991 := 16#4531
%MW70 := %MW992
%MW71 := %MW991
RUNG 54
%MW994 = 0 %MW148 := 16#3038
%MW994 = 1 %MW148 := 16#3238
%MW994 = 2 %MW148 := 16#3438
%MW994 = 3 %MW148 := 16#3638
%MW994 = 4 %MW148 := 16#3838
%MW994 = 5 %MW148 := 16#4138
%MW994 = 6 %MW148 := 16#4338
RUNG 55
%MW994 = 7 %MW148 := 16#4538
RUNG 56
%MW993 = 0 %MW147 := 16#3036
%MW993 = 1 %MW147 := 16#3136
%MW993 = 2 %MW147 := 16#3236
%MW993 = 3 %MW147 := 16#3336
%MW993 = 4 %MW147 := 16#3436
%MW993 = 5 %MW147 := 16#3536
%MW993 = 6 %MW147 := 16#3636
RUNG 57
%MW993 = 7 %MW147 := 16#3736
%MW993 = 8 %MW147 := 16#3836
%MW993 = 9 %MW147 := 16#3936
RUNG 58
%MW568 := %MW148
%MW569 := %MW147
%MW1071 := %MW148
%S13
%MW149 := 40
RUNG 63 %Q0.3 VALVE %TM3 IN Q TON TYPE 1 sec TB Y ADJ %TM3.P 125 %MW498:X0 RUNG 64
%MW498:X0 %MW498:X1 %Q0.0 INDIKATOR-_SISTEM %Q0.1 PUMP %Q0.1 PUMP RUNG 65 %Q0.1 PUMP %TM4 IN Q TON TYPE 1 sec TB Y ADJ %TM4.P 27 %MW498:X1 RUNG 66
%Q0.2 MIXER %TM5 IN Q TON TYPE 1 sec TB Y ADJ %TM5.P 128 S %MW498:X2 RUNG 68 %Q0.2
MIXER %MW996 <= %MW149 %QW0.1.0 := 1000
%MW996 >= %MW149 %QW0.1.0 := 0
RUNG 69
%Q0.1
PUMP %QW0.1.0 := 0
%Q0.3 VALVE %Q0.0 INDIKATOR-_SISTEM RUNG 70
%MW996 >= %MW149
%M239 %MSG2.D
RUNG 72
%S13
%MW497:X-15
RUNG 73
%S13
%MW0 := 16#0004
%MW1 := 16#0000
%MW2 := 16#4154
%MW3 := 16#5A0D
RUNG 74
%M238 %MSG2.D
EXCH2 %MW0:4
S %M253
R %M251
R %M249
RUNG 75
%S13
%MW4 := 16#020A
%MW5 := 16#0000
RUNG 76
%MW9 = 20299
R %M253
S %MW499:X0
RUNG 78
%S13
%MW11 := 16#000B
%MW12 := 16#0000
%MW13 := 16#4154
%MW14 := 16#2B43
%MW15 := 16#4D47
%MW16 := 16#533D
%MW17 := 16#3738
RUNG 79
%S13
%MW18 := 16#0D00
RUNG 81
%S13
%MW19 := 16#020E
%MW20 := 16#0000
RUNG 82
%M252 %MSG2.D
EXCH2 %MW19:9
RUNG 83
%MW27 = 2622
R %M252
S %M251
S %MW499:X1
RUNG 84
%S13
%MW29 := 16#00AB
%MW30 := 16#0000
%MW31 := 16#3037
%MW32 := 16#3931
%MW33 := 16#3236
%MW34 := 16#3138
%S13
%MW36 := 16#3030
%MW37 := 16#3030
%MW38 := 16#4630
%MW39 := 16#3031
%MW40 := 16#3030
%MW41 := 16#3043
%MW42 := 16#3931
RUNG 86
%S13
%MW370 := 16#3632
%MW371 := 16#3831
%MW372 := 16#3232
%MW373 := 16#3038
RUNG 87
%M226
%MW41 := 16#3043
%MW42 := 16#3931
RUNG 88
%M226
%MW43 := 16#3236
%MW44 := ROR( %MW371, 8 )
%MW45 := ROR( %MW372, 8 )
%MW46 := ROR( %MW373, 8 )
%MW47 := ROR( %MW374, 8 )
%MW48 := ROR( %MW375, 8 )
%MW49 := 16#3030
RUNG 89
%M226
%MW41 := 16#3043
%M226
%MW43 := 16#3830
%MW44 := ROR( %MW371, 8 )
%MW45 := ROR( %MW372, 8 )
%MW46 := ROR( %MW373, 8 )
%MW47 := ROR( %MW374, 8 )
%MW48 := ROR( %MW375, 8 )
%MW49 := 16#3030
RUNG 91
%S13
%MW50 := 16#3030
%MW51 := 16#3430
%MW52 := 16#3343
%MW53 := 16#4133
RUNG 92
%S13
%MW57 := 16#3831
%MW58 := 16#4130
%MW59 := 16#4343
%MW60 := 16#4131
%MW61 := 16#3446
%MW62 := 16#4131
%MW63 := 16#3130
RUNG 93
%S13
%MW64 := 16#3444
%MW65 := 16#4542
%MW66 := 16#4538
%MW67 := 16#3341
%MW68 := 16#4138
%MW69 := 16#3037
%S13
%MW73 := 16#3433
%MW74 := 16#3931
%MW75 := 16#3632
%MW76 := 16#3138
%MW77 := 16#4136
%MW78 := 16#4542
%MW79 := 16#3430
RUNG 95
%S13
%MW112 := 16#3030
%MW113 := 16#3030
%MW114 := 16#3030
%MW115 := 16#3030
RUNG 97
%S13
%MW900 := 16#02AB
%MW901 := 16#0000
RUNG 98
%M250 %MSG2.D
EXCH2 %MW900:88
RUNG 99
%MW950 <> 0
%MW2499:-X0
R %M250
S %M249
%MW6:5 := 0
%MW21:7 := 0
%MW902:86 := 0
R %M238
R %M239
RUNG 103
%MW2499:-X0
R %MW499:X0
R %MW499:X1
R %MW499:X2
R %M227
RUNG 104
%MW130:X8 %M0
%MW130:X9 %M1
%MW130:X-10 %M2
%MW130:X-11 %M3
%MW130:X-12 %M4
%MW130:X-13 %M5
%MW130:X-14 %M6
RUNG 105
%MW130:X0 %M7
%MW130:X1 %M8
%MW130:X2 %M9
%MW130:X3 %M10
%MW130:X4 %M11
%MW130:X5 %M12
%MW131:X8 %M14
%MW131:X9 %M15
%MW131:X-10 %M16
%MW131:X-11 %M17
%MW131:X-12 %M18
%MW131:X-13 %M19
%MW131:X-14 %M20
RUNG 107
%MW131:X0 %M21
%MW131:X1 %M22
%MW131:X2 %M23
%MW131:X3 %M24
RUNG 108
%MW132:X8 %M28
%MW132:X9 %M29
%MW132:X-10 %M30
%MW132:X-11 %M31
%MW132:X-12 %M32
%MW132:X-13 %M33
%MW132:X-14 %M34
RUNG 109
%MW132:X0 %M35
%MW132:X1 %M36
%MW132:X2 %M37
%MW132:X3 %M38
%MW132:X4 %M39
%MW132:X5 %M40
%MW133:X8 %M42
%MW133:X9 %M43
%MW133:X-10 %M44
%MW133:X-11 %M45
%MW133:X-12 %M46
%MW133:X-13 %M47
%MW133:X-14 %M48
RUNG 111
%MW133:X0 %M49
%MW133:X1 %M50
%MW133:X2 %M51
%MW133:X3 %M52
RUNG 112
%MW134:X8 %M56
%MW134:X9 %M57
%MW134:X-10 %M58
%MW134:X-11 %M59
%MW134:X-12 %M60
%MW134:X-13 %M61
%MW134:X-14 %M62
RUNG 113
%MW134:X0 %M63
%MW134:X1 %M64
%MW134:X2 %M65
%MW134:X3 %M66
%MW134:X4 %M67
%MW134:X5 %M68
%MW135:X8 %M70
%MW135:X9 %M71
%MW135:X-10 %M72
%MW135:X-11 %M73
%MW135:X-12 %M74
%MW135:X-13 %M75
%MW135:X-14 %M76
RUNG 115
%MW135:X0 %M77
%MW135:X1 %M78
%MW135:X2 %M79
%MW135:X3 %M80
RUNG 116
%MW136:X8 %M84
%MW136:X9 %M85
%MW136:X-10 %M86
%MW136:X-11 %M87
%MW136:X-12 %M88
%MW136:X-13 %M89
%MW136:X-14 %M90
RUNG 117
%MW136:X0 %M91
%MW136:X1 %M92
%MW136:X2 %M93
%MW136:X3 %M94
%MW136:X4 %M95
%MW136:X5 %M96
%MW137:X8 %M98
%MW137:X9 %M99
%MW137:X-10 %M100
%MW137:X-11 %M101
%MW137:X-12 %M102
%MW137:X-13 %M103
%MW137:X-14 %M104
RUNG 119
%MW137:X0 %M105
%MW137:X1 %M106
%MW137:X2 %M107
%MW137:X3 %M108
RUNG 120
%MW138:X8 %M112
%MW138:X9 %M113
%MW138:X-10 %M114
%MW138:X-11 %M115
%MW138:X-12 %M116
%MW138:X-13 %M117
%MW138:X-14 %M118
RUNG 121
%MW138:X0 %M119
%MW138:X1 %M120
%MW138:X2 %M121
%MW138:X3 %M122
%MW138:X4 %M123
%MW138:X5 %M124
%MW139:X8 %M126
%MW139:X9 %M127
%MW139:X-10 %M128
%MW139:X-11 %M129
%MW139:X-12 %M130
%MW139:X-13 %M131
%MW139:X-14 %M132
RUNG 123
%MW139:X0 %M133
%MW139:X1 %M134
%MW139:X2 %M135
%MW139:X3 %M136
RUNG 124
%MW140:X8 %M140
%MW140:X9 %M141
%MW140:X-10 %M142
%MW140:X-11 %M143
%MW140:X-12 %M144
%MW140:X-13 %M145
%MW140:X-14 %M146
RUNG 125
%MW140:X0 %M147
%MW140:X1 %M148
%MW140:X2 %M149
%MW140:X3 %M150
%MW140:X4 %M151
%MW140:X5 %M152
%MW141:X8 %M154
%MW141:X9 %M155
%MW141:X-10 %M156
%MW141:X-11 %M157
%MW141:X-12 %M158
%MW141:X-13 %M159
%MW141:X-14 %M160
RUNG 127
%MW141:X0 %M161
%MW141:X1 %M162
%MW141:X2 %M163
%MW141:X3 %M164
RUNG 128
%MW142:X8 %M168
%MW142:X9 %M169
%MW142:X-10 %M170
%MW142:X-11 %M171
%MW142:X-12 %M172
%MW142:X-13 %M173
%MW142:X-14 %M174
RUNG 129
%MW142:X0 %M175
%MW142:X1 %M176
%MW142:X2 %M177
%MW142:X3 %M178
%MW142:X4 %M179
%MW142:X5 %M180
%MW143:X8 %M182
%MW143:X9 %M183
%MW143:X-10 %M184
%MW143:X-11 %M185
%MW143:X-12 %M186
%MW143:X-13 %M187
%MW143:X-14 %M188
RUNG 131
%MW143:X0 %M189
%MW143:X1 %M190
%MW143:X2 %M191
%MW143:X3 %M192
RUNG 132
%MW144:X8 %M196
%MW144:X9 %M197
%MW144:X-10 %M198
%MW144:X-11 %M199
%MW144:X-12 %M200
%MW144:X-13 %M201
%MW144:X-14 %M202
RUNG 133
%MW144:X0 %M203
%MW144:X1 %M204
%MW144:X2 %M205
%MW144:X3 %M206
%MW144:X4 %M207
%MW144:X5 %M208
%MW145:X8 %M210
%MW145:X9 %M211
%MW145:X-10 %M212
%MW145:X-11 %M213
%MW145:X-12 %M214
%MW145:X-13 %M215
%MW145:X-14 %M216
RUNG 135
%MW145:X0 %M217
%MW145:X1 %M218
%MW145:X2 %M219
%MW145:X3 %M220
RUNG 136
%M230
%MW1000 := 0
%MW497:X-15
%MW80:32 := 0
RUNG 137 %M230 %TM6 IN Q TP TYPE 100 ms TB Y ADJ %TM6.P 40 %MW497:X0 %MW497:X-15 RUNG 138 %MW497:X0 %TM7 IN Q TON TYPE 100 ms TB Y ADJ %TM7.P 25 S %MW497:X1 RUNG 139
%MW80 <> 0 %MW90 <> 0 %MW100 <> 0 %MW111 <> 0
%MW497:X6
%MW150 := %M0:8
%MW151 := %M8:8
%MW152 := %M16:8
%MW153 := %M24:8
%MW154 := %M32:8
%MW155 := %M40:8
%MW156 := %M48:8
RUNG 141
%MW497:X6
%MW157 := %M56:8
%MW158 := %M64:8
%MW159 := %M72:8
%MW160 := %M80:8
RUNG 142
%MW497:X6
%MW164 := %M112:8
%MW165 := %M120:8
%MW166 := %M128:8
%MW167 := %M136:8
%MW168 := %M144:8
%MW169 := %M152:8
%MW170 := %M160:8
RUNG 143
%MW497:X6
%MW171 := %M168:8
%MW172 := %M176:8
%MW173 := %M184:8
%MW174 := %M192:8
%MW175 := %M200:8
%MW176 := %M208:8
%MW497:X6
%MW178 := 0
%MW179 := 0
%MW180 := 0
%MW181 := 0
RUNG 145 HEX YANG DIANGGAP ASC DIKONV JD HEX LAGI
%MW497:X5
%MW1000 = 0 %MW999 := %MW150
%MW998:X0
RUNG 146
%MW1000 <> 0 %MW80 = 0 %MW80 := %MW1000
%MW999 := %MW151
%MW998:X1
RUNG 147
RUNG 148
%C0.V = 3 %MW81 <> 0 %MW82 = 0 %MW82 := %MW1000
%MW999 := %MW153
%MW998:X3
RUNG 149
%C0.V = 4 %MW82 <> 0 %MW83 = 0 %MW83 := %MW1000
%MW999 := %MW154
%MW998:X4
RUNG 150
%C0.V = 5 %MW83 <> 0 %MW84 = 0 %MW84 := %MW1000
%MW999 := %MW155
%MW998:X5
RUNG 151
%C0.V = 6 %MW84 <> 0 %MW85 = 0 %MW85 := %MW1000
%MW999 := %MW156
%C0.V = 7 %MW85 <> 0 %MW86 = 0 %MW86 := %MW1000
%MW999 := %MW157
%MW998:X7
RUNG 153
%C0.V = 8 %MW86 <> 0 %MW87 = 0 %MW87 := %MW1000
%MW999 := %MW158
%MW998:X8
RUNG 154
%C0.V = 9 %MW87 <> 0 %MW88 = 0 %MW88 := %MW1000
%MW999 := %MW159
%MW998:X9
RUNG 155
RUNG 156
%C0.V = 11 %MW89 <> 0 %MW90 = 0 %MW90 := %MW1000
%MW999 := %MW161
%MW998:X-11
RUNG 157
%C0.V = 12 %MW90 <> 0 %MW91 = 0 %MW91 := %MW1000
%MW999 := %MW162
%MW998:X-12
RUNG 158
%C0.V = 13 %MW91 <> 0 %MW92 = 0 %MW92 := %MW1000
%MW999 := %MW163
%MW998:X-13
RUNG 159
%C0.V = 14 %MW92 <> 0 %MW93 = 0 %MW93 := %MW1000
%MW999 := %MW164
%C0.V = 15 %MW93 <> 0 %MW94 = 0 %MW94 := %MW1000
%MW999 := %MW165
%MW998:X-15
RUNG 161
%C0.V = 16 %MW94 <> 0 %MW95 = 0 %MW95 := %MW1000
%MW999 := %MW166
%MW997:X0
RUNG 162
%C0.V = 17 %MW95 <> 0 %MW96 = 0 %MW96 := %MW1000
%MW999 := %MW167
%MW997:X1
RUNG 163
RUNG 164
%C0.V = 19 %MW97 <> 0 %MW98 = 0 %MW98 := %MW1000
%MW999 := %MW169
%MW997:X3
RUNG 165
%C0.V = 20 %MW98 <> 0 %MW99 = 0 %MW99 := %MW1000
%MW999 := %MW170
%MW997:X4
RUNG 166
%C0.V = 21 %MW99 <> 0 %MW100 = 0 %MW100 := %MW1000
%MW999 := %MW171
%MW997:X5
RUNG 167
%C0.V = 22 %MW100 <> 0 %MW101 = 0 %MW101 := %MW1000
%MW999 := %MW172
%C0.V = 23 %MW101 <> 0 %MW102 = 0 %MW102 := %MW1000
%MW999 := %MW173
%MW997:X7
RUNG 169
%C0.V = 24 %MW102 <> 0 %MW103 = 0 %MW103 := %MW1000
%MW999 := %MW174
%MW997:X8
RUNG 170
%C0.V = 25 %MW103 <> 0 %MW104 = 0 %MW104 := %MW1000
%MW999 := %MW175
%MW997:X9
RUNG 171
RUNG 172
%C0.V = 27 %MW105 <> 0 %MW106 = 0 %MW106 := %MW1000
%MW999 := %MW177
%MW997:X-11
RUNG 173
%C0.V = 28 %MW106 <> 0 %MW107 = 0 %MW107 := %MW1000
%MW999 := %MW178
%MW997:X-12
RUNG 174
%C0.V = 29 %MW107 <> 0 %MW108 = 0 %MW108 := %MW1000
%MW999 := %MW179
%MW997:X-13
RUNG 175
%C0.V = 30 %MW108 <> 0 %MW109 = 0 %MW109 := %MW1000
%MW999 := %MW180
%C0.V = 31 %MW109 <> 0 %MW110 = 0 %MW110 := %MW1000
%MW999 := %MW181
%MW997:X-15
RUNG 177
%C0.V = 32 %MW110 <> 0 %MW111 = 0 %MW111 := %MW1000
RUNG 178
%MW998:X0 %MW496:X0
%MW998:X2
%MW998:X4
%MW998:X6
%MW998:X8
%MW998:X-10
RUNG 179
%MW998:X-14 %MW496:X1
%MW997:X0
%MW997:X2
%MW997:X4
%MW997:X6
%MW997:X8
%MW997:X-10
RUNG 180
%MW997:X-12 %MW496:X2
%MW997:X-14
RUNG 181
%MW496:X0 %M255
%MW496:X1
%MW998:X1 %MW496:X3
%MW998:X3
%MW998:X5
%MW998:X7
%MW998:X9
%MW998:X-11
%MW998:X-13
RUNG 183
%MW998:X-15 %MW496:X4
%MW997:X1
%MW997:X3
%MW997:X5
RUNG 184
%MW997:X-13 %MW496:X5
%MW997:X-15
RUNG 185
%MW496:X3 %M254
%MW496:X4
%MW496:X5
RUNG 186
%MW2499:-X0
%C0
R E
S D
CU F
CD Y ADJ %C0.P 32 %M230
P %M255
P %M255
%MW999 <= 9 %MW1000 := %MW999 + 12336
P %M254
%MW999 > 9 %MW999 <= 15 %MW1000 := %MW999 + 12343
%MW999 > 15 %MW999 <= 25 %MW1000 := %MW999 + 12576
%MW999 > 25 %MW999 <= 31 %MW1000 := %MW999 + 12583
%MW999 > 31 %MW999 <= 41 %MW1000 := %MW999 + 12816
%MW999 > 41 %MW999 <= 47 %MW1000 := %MW999 + 12823
%MW999 > 47 %MW999 <= 57 %MW1000 := %MW999 + 13056
RUNG 188
P %M255
%MW999 > 57 %MW999 <= 63 %MW1000 := %MW999 + 13063
P %M254
%MW999 > 63 %MW999 <= 73 %MW1000 := %MW999 + 13296
%MW999 > 73 %MW999 <= 79 %MW1000 := %MW999 + 13303
%MW999 > 79 %MW999 <= 89 %MW1000 := %MW999 + 13536
RUNG 189
P %M255
%MW999 > 111 %MW999 <= 121 %MW1000 := %MW999 + 14016
P %M254
%MW999 > 121 %MW999 <= 127 %MW1000 := %MW999 + 14023
%MW999 > 127 %MW999 <= 137 %MW1000 := %MW999 + 14256
%MW999 > 137 %MW999 <= 143 %MW1000 := %MW999 + 14263
%MW999 > 143 %MW999 <= 153 %MW1000 := %MW999 + 14496
%MW999 > 153 %MW999 <= 159 %MW1000 := %MW999 + 14503
%MW999 > 159 %MW999 <= 169 %MW1000 := %MW999 + 16528
RUNG 190
P %M255
%MW999 > 169 %MW999 <= 175 %MW1000 := %MW999 + 16535
P %M254
%MW999 > 175 %MW999 <= 185 %MW1000 := %MW999 + 16768
%MW999 > 185 %MW999 <= 191 %MW1000 := %MW999 + 16775
%MW999 > 191 %MW999 <= 201 %MW1000 := %MW999 + 17008
%MW999 > 201 %MW999 <= 207 %MW1000 := %MW999 + 17015
%MW999 > 207 %MW999 <= 217 %MW1000 := %MW999 + 17248
P %M255
%MW999 > 223 %MW999 <= 233 %MW1000 := %MW999 + 17488
P %M254
%MW999 > 233 %MW999 <= 239 %MW1000 := %MW999 + 17495
%MW999 > 239 %MW999 <= 249 %MW1000 := %MW999 + 17728
%MW999 > 249 %MW999 <= 255 %MW1000 := %MW999 + 17735
RUNG 192 TERIMA SMS
%S13
%MW300 := 16#000A
%MW301 := 16#0000
%MW302 := 16#4154
%MW303 := 16#2B43
%MW304 := 16#534D
%MW305 := 16#533D
%MW306 := 16#310D
RUNG 194
%S13
%MW307 := 16#0220
%MW308 := 16#0000
RUNG 195
%M247 %MSG2.D
EXCH2 %MW307:18
R %M247
S %M245
RUNG 196
%S13
%MW330 := 16#0012
%MW331 := 16#0000
%MW332 := 16#4154
%MW333 := 16#2B43
%MW334 := 16#4E4D
%MW335 := 16#493D
%S13
%MW337 := 16#332C
%MW338 := 16#302C
%MW339 := 16#302C
%MW340 := 16#310D
RUNG 198
%M245
%MW323 = 20299
%M247 %MSG2.D
EXCH2 %MW330:11
S %M246
R %M245
RUNG 199
%S13
%MW341 := 16#0218
%MW342 := 16#0000
RUNG 200
%M246 %MSG2.D
RUNG 201
%S13
%MW355 := 16#0210
%MW356 := 16#0000
RUNG 202 TERIMA SMS
%MW996 >= %MW149
%M240 %M241 %M236
%MW1001:-X10 %M243 %M224 %M227
S %M239
RUNG 203
%MW353 = 20299
%M246 %M244 %M243 %MSG2.D %M239 %M224 %M227 %MW496:X6
RUNG 204 %MW496:X6 EXCH2 %MW355:10 RUNG 205 P %M239 %MSG2 R D E P %M224 P %M227 %MW2499:-X0 RUNG 206
%MW362 <> 0
%M243
%S13
%MW400 := 16#000A
%MW401 := 16#0000
%MW402 := 16#4154
%MW403 := 16#2B43
%MW404 := 16#4D47
%MW405 := 16#4C3D
%MW406 := 16#300D
RUNG 208
%M244 %MSG2.D
EXCH2 %MW400:7
R %M244
S %M242
RUNG 209
%S13
RUNG 210 %M242 %MSG2.D EXCH2 %MW407:49 R %M242 RUNG 211
%MW448 = 12340 %MW449 = 13616 %MW450 = 17718 %MW451 = 13616 %MW452 = 12341
%MW2000:-X0
%MW449 = 12340 %MW450 = 13616 %MW451 = 17718 %MW452 = 13616 %MW453 = 12341
RUNG 212
%MW448 = 12340 %MW449 = 13616 %MW450 = 17718 %MW451 = 14128 %MW452 = 12340
%MW2000:-X1
%MW449 = 12340 %MW450 = 13616 %MW451 = 17718 %MW452 = 14128 %MW453 = 12340
RUNG 213
%MW448 = 12340 %MW449 = 13616 %MW450 = 17974 %MW451 = 13624 %MW452 = 12336
S %M241
%MW449 = 14128 %MW450 = 17974 %MW451 = 13624 %MW452 = 12336
%MW449 = 13616 %MW450 = 17718 %MW451 = 13616 %MW452 = 12336
RUNG 214
%M243
%MW409 <> 0 %MW448 <> 12340
%MW1001:-X11
%MW448 = 12340
%Q0.0 INDIKATOR-_SISTEM %M227 %TM10 IN Q TON TYPE 1 sec TB Y ADJ %TM10.P 600 S %M227 RUNG 216 %M227
%TM10.V = 0
%M239 %M241 %M240 %M236
%MW1001:-X10 %MSG2.D %M243
S %M228
RUNG 217
%S13
%MW500 := 16#0004
%MW501 := 16#0000
%MW502 := 16#4154
RUNG 218
%Q0.0
INDIKATOR-_SISTEM
%M228 %MW990:X0 %MSG2.D
EXCH2 %MW500:4 %M241 S %MW990:X0 %MW1001:-X13 S %MW990:X1 R %MW990:X3 R %MW990:X5 RUNG 219 %S13
%MW504 := 16#020A
%MW505 := 16#0000
RUNG 220
%MW990:X1 %MSG2.D
EXCH2 %MW504:7
RUNG 221
%MW509 = 20299
R %MW990:X1
%S13
%MW511 := 16#000B
%MW512 := 16#0000
%MW513 := 16#4154
%MW514 := 16#2B43
%MW515 := 16#4D47
%MW516 := 16#533D
%MW517 := 16#3939
RUNG 223
%S13
%MW518 := 16#0D00
RUNG 224
%MW509 = 20299
%MW990:X1 %MW990:X2 %MW990:X3 %MSG2.D
EXCH2 %MW511:8
S %MW990:X2
RUNG 226
%MW990:X2 %MSG2.D
EXCH2 %MW519:9
RUNG 227
%MW527 = 2622
R %MW990:X2
S %MW499:X4
RUNG 228
%S13
%MW529 := 16#00D5
%MW530 := 16#0000
%MW531 := 16#3037
%MW532 := 16#3931
%MW533 := 16#3236
%MW534 := 16#3138
%S13
%MW536 := 16#3030
%MW537 := 16#3030
%MW538 := 16#4630
%MW539 := 16#3031
%MW540 := 16#3030
%MW541 := 16#3043
%MW542 := 16#3931
RUNG 230
%M228 %M226
%MW541 := 16#3043
RUNG 231
%M228 %M226
%MW543 := 16#3236
%MW544 := ROR( %MW371, 8 )
%MW545 := ROR( %MW372, 8 )
%MW546 := ROR( %MW373, 8 )
%MW547 := ROR( %MW374, 8 )
%MW548 := ROR( %MW375, 8 )
%MW549 := 16#3030
RUNG 232
%M228 %M226
%MW541 := 16#3043
%M228 %M226
%MW543 := 16#3830
%MW544 := ROR( %MW371, 8 )
%MW545 := ROR( %MW372, 8 )
%MW546 := ROR( %MW373, 8 )
%MW547 := ROR( %MW374, 8 )
%MW548 := ROR( %MW375, 8 )
%MW549 := 16#3030
RUNG 234
%M228 %M241
%MW423 = 16#3036 %MW543 := %MW433
%MW544 := %MW434
%MW545 := %MW435
%MW546 := %MW436
RUNG 235
%M228
%MW1001:-X10
%MW423 = 16#3037 %MW543 := %MW434
%MW544 := %MW435
%MW545 := %MW436
%MW546 := %MW437
%MW547 := %MW438
%MW548 := %MW439
%MW549 := 16#3030
RUNG 236
%S13
%MW550 := 16#3030
%MW551 := 16#3535
%MW552 := 16#4433
%MW553 := 16#4634
%MW554 := 16#3943
%MW555 := 16#3545
%S13
%MW557 := 16#3833
%MW558 := 16#3734
%MW559 := 16#4130
%MW560 := 16#4137
%MW561 := 16#3533
%MW562 := 16#3331
%MW563 := 16#4144
RUNG 238
%S13
%MW564 := 16#4133
%MW565 := 16#4542
%MW566 := 16#4130
%MW567 := 16#3145
RUNG 239
%S13
%MW573 := 16#4430
%MW574 := 16#3737
%MW575 := 16#3142
%MW576 := 16#3145
%MW577 := 16#3036
%MW578 := 16#4539
%MW579 := 16#3430
RUNG 240
%Q0.1
PUMP %MW580 := 16#3446
%MW581 := 16#3237
%MW582 := 16#3438
RUNG 241
%Q0.1
PUMP %MW580 := 16#3446
%MW581 := 16#4133
%S13
%MW583 := 16#4431
%MW584 := 16#3443
%MW585 := 16#4533
%MW586 := 16#4342
%MW587 := 16#3732
%MW588 := 16#3930
%MW589 := 16#3045
RUNG 243
%Q0.2
MIXER %MW590 := 16#4634
%MW591 := 16#3734
%MW592 := 16#3832
RUNG 244
%Q0.2
MIXER %MW590 := 16#4634
%MW591 := 16#3334
%MW592 := 16#3141
%MW593 := 16#3135
RUNG 245
%S13
%MW594 := 16#4338
%MW595 := 16#3732
%MW596 := 16#3938
%MW597 := 16#3545
%MW598 := 16#3936
%MW599 := 16#3833
%QW0.1.0 = 1000 %MW601 := 16#4130
%MW602 := 16#4137
%MW603 := 16#3133
%MW604 := 16#4134
RUNG 247
%QW0.1.0 = 0 %MW601 := 16#4130
%MW602 := 16#4137
%MW603 := 16#4431
RUNG 248
%S13
%MW605 := 16#4230
%MW606 := 16#3836
%MW607 := 16#4439
%MW608 := 16#4636
%MW609 := 16#3332
%MW610 := 16#3438
%MW611 := 16#3037
RUNG 249
%Q0.3
VALVE %MW612 := 16#3741
%MW613 := 16#3341
%MW614 := 16#3431
%MW615 := 16#3041
%Q0.3
VALVE %MW612 := 16#3741
%MW613 := 16#3141
%MW614 := 16#3844
%MW615 := 16#3041
%MW616 := 16#3945
RUNG 251
%S13
%MW617 := 16#3531
%MW618 := 16#4645
%MW619 := 16#3645
%MW620 := 16#3833
%MW621 := 16#3734
%MW622 := 16#3230
RUNG 252
%S13
%MW624 := 16#3733
%MW625 := 16#4538
%MW626 := 16#3033
%MW627 := 16#3030
%MW628 := 16#3030
%MW629 := 16#3030
%MW630 := 16#3030
RUNG 253
%S13
%MW631 := 16#3030
%MW632 := 16#3030
%MW633 := 16#3030
%MW634 := 16#3030
%MW635 := 16#3030
%MW636 := 16#3030
%MW527 = 2622
%MW990:X2 %MW990:X4 %MW990:X5 %MSG2.D
EXCH2 %MW529:109 S %MW990:X5 %M228 S %MW990:X6 %M228 S %MW499:X5 RUNG 255 %MW990:X6 %TM11 IN Q TON TYPE 100 ms TB Y ADJ %TM11.P 30 %MW990:X9 RUNG 256 %MW990:X7
%MW506:5 := 0
%MW521:7 := 0
RUNG 257 %MW990:X7 R %MW990:X0 R %MW990:X6 R %MW499:X3 R %MW499:X4 R %M227 R %M228 RUNG 258
%MW449 = 12340 %MW450 = 13616 %MW451 = 17974 %MW452 = 13624 %MW453 = 12336
S
%MW1001:-X10
%MW450 = 14128 %MW451 = 17974 %MW452 = 13624 %MW453 = 12336
%MW450 = 13616 %MW451 = 17718 %MW452 = 13616 %MW453 = 12336
RUNG 259
%Q0.0
INDIKATOR-_SISTEM %MW1001:-X10
%MW423 = 16#3036
S
%MW1001:-X12
%MW423 = 16#3037
S %MW1001:-X13 RUNG 260 %Q0.0 INDIKATOR-_SISTEM %MW1001:-X10
%MW423 = 16#3036
S
%MW494:X-12
%MW423 = 16#3037
%MW494:X-%M243
%MW1001:-X11
%MW409 <> 0 %MW449 <> 12340
%M237
%MW449 = 12340
%MW1001:-X10
RUNG 262
%S13
%MW1002 := 16#0004
%MW1003 := 16#0000
%MW1004 := 16#4154
%MW1005 := 16#5A0D
RUNG 265
%MW1001:-X1 %MSG2.D
EXCH2 %MW1006:7
RUNG 266
%MW1011 = 20299
R
%MW1001:-X1
S %MW499:X6
RUNG 267
%S13
%MW1013 := 16#000B
%MW1014 := 16#0000
%MW1015 := 16#4154
%MW1016 := 16#2B43
%MW1017 := 16#4D47
%MW1018 := 16#533D
%MW1019 := 16#3939
RUNG 268
%S13
%MW1011 = 20299 %MW1001:-X1 %MW1001:-X2 %MW1001:-X3 %MSG2.D EXCH2 %MW1013:8 S %MW1001:-X2 S %MW1001:-X3 RUNG 270 %S13
%MW1021 := 16#020E
%MW1022 := 16#0000
RUNG 271
%MW1001:-X5 %MSG2.D
EXCH2 %MW1021:9
RUNG 272
%MW1029 = 2622
R
%MW1001:-X2
RUNG 273
%S13
%MW1031 := 16#00D7
%MW1032 := 16#0000
%MW1033 := 16#3037
%MW1034 := 16#3931
%MW1035 := 16#3236
%MW1036 := 16#3138
%MW1037 := 16#3031
RUNG 274
%S13
%MW1038 := 16#3030
%MW1039 := 16#3030
%MW1040 := 16#4630
%MW1041 := 16#3031
%MW1042 := 16#3030
%MW1043 := 16#3044
%MW1045 := %MW433
%MW1046 := %MW434
%MW1047 := %MW435
%MW1048 := %MW436
%MW1049 := %MW437
%MW1050 := %MW438
%MW1051 := %MW439
RUNG 276
%S13
%MW1052 := 16#3030
%MW1053 := 16#3030
%MW1054 := 16#3535
%MW1055 := 16#4433
RUNG 277
%S13
%MW1059 := 16#3645
%MW1060 := 16#3833
%MW1061 := 16#3734
%MW1062 := 16#4130
%MW1063 := 16#4137
%MW1064 := 16#3533
%MW1065 := 16#3331
RUNG 278
%S13
%MW1066 := 16#4144
%MW1067 := 16#4133
%MW1068 := 16#4542
%MW1069 := 16#4130
%MW1070 := 16#3145
%MW1073 := 16#3533
%S13
%MW1075 := 16#3135
%MW1076 := 16#4430
%MW1077 := 16#3737
%MW1078 := 16#3142
%MW1079 := 16#3145
%MW1080 := 16#3036
%MW1081 := 16#4539
RUNG 280
%Q0.1
PUMP %MW1082 := 16#3430
%MW1083 := 16#3446
%MW1084 := 16#3237
RUNG 281
%Q0.1
PUMP %MW1082 := 16#3430
%MW1083 := 16#3446
%MW1084 := 16#4133
%MW1085 := 16#3531
RUNG 282
%S13
%MW1086 := 16#4431
%MW1087 := 16#3443
%MW1088 := 16#4533
%MW1089 := 16#4342
%MW1090 := 16#3732
%MW1091 := 16#3930
%Q0.2
MIXER %MW1093 := 16#4634
%MW1094 := 16#3734
%MW1095 := 16#3832
%MW1096 := 16#3134
RUNG 284
%Q0.2
MIXER %MW1093 := 16#4634
%MW1094 := 16#3334
%MW1095 := 16#3141
RUNG 285
%S13
%MW1097 := 16#4338
%MW1098 := 16#3732
%MW1099 := 16#3938
%MW1100 := 16#3545
%MW1101 := 16#3936
%MW1102 := 16#3833
%MW1103 :=