Senin, 24 April 2017

Listing program Lift Sederhana


DAFTAR I/O DAN FUNGSINYA

Input
Chanel/Bit
Fungsi
000.01
Lift Naik
000.02
Lift Turun
000.03
LS1
000.04
LS2
000.05
Orang Masuk
000.06
Orang Naik

Output
Chanel/Bit
Beban
010.00
Pintu Lift Membuka
010.01
Pintu Lift Menutup
010.02
Lift Penuh
010.03
Lift Turun
010.04
Lift Naik
010.05
Lampu Lift Lantai 1
010.06
Lampu Lift Lantai 2


LADDER DIAGRAM DAN STATEMENT LIST EDITOR


NETWORK 1
LD NOT      000.11
IL

NETWORK 2
LD              000.01
OR             010.02
AND           000.03
LD              000.08
OR             010.03
AND           000.04
OR LD
LD              010.00
AND NOT   TIM100
OR LD
OUT           010.00

NETWORK 3
LD              TIM101
OR             010.01
AND NOT   TIM100
AND NOT   005.00
OUT           010.01

NETWORK 4
LD              000.01
AND           005.01
AND           000.04
LD              005.01
AND NOT   005.02
AND NOT   000.03
AND           TIM100
OR LD
LD              010.02
AND NOT   000.03
OR LD
OUT           010.02

NETWORK 5
LD              TIM100
AND           000.03
AND NOT   005.02
LD              000.08
AND           000.03
OR LD
LD              010.03
AND NOT   000.04
OR LD
OUT           010.03

NETWORK 6
LD              010.00
LD NOT      005.00
AND           010.01
OR LD
TIM            100            #0050

NETWORK 7
LD NOT      000.05
AND           005.03
TIM            101            #0100

NETWORK 8
LD              010.00
OR             005.03
AND NOT   010.01
OUT           005.03

NETWORK 9
LD              010.01
OR             005.01
AND NOT   010.00
OUT           005.01

NETWORK 10
LD              005.03
AND           000.05
DIFU           001.08

NETWORK 11
LD              005.03
AND           000.06
DIFU           001.09

NETWORK 12
LD              001.08
OR             005.04
AND NOT   005.05
LD              000.05
OR             000.06
AND LD
OUT           005.04

NETWORK 13
LD              001.09
OR             005.05
AND NOT   005.04
LD              000.05
OR             000.06
AND LD
OUT           005.05

NETWORK 14
LD              005.03
AND           005.04
@INC         200

NETWORK 15
LD              005.03
AND           005.05
@DEC        200

NETWORK 16
LD NOT      002.00
CMP           200            #0006

NETWORK 17
LD              255.06
OR             255.05
OUT           005.00

NETWORK 18
LD              005.00
AND           255.02
OUT           010.04

NETWORK 19
LD              005.03
AND           005.04
@INC         201

NETWORK 20
LD              005.03
AND           005.05
@DEC        201

NETWORK 21
LD NOT      002.01
CMP           201            #0001

NETWORK 22
LD              255.07
OUT           005.02

NETWORK 23
LD              000.03
LD              010.05
AND NOT   010.06
OR LD
OUT           010.05

NETWORK 24
LD              000.04
LD              010.06
AND NOT   010.05
OR LD
OUT           010.06

NETWORK 25
ILC

NETWORK 26
END