網絡1 HSC0設置 HC0啟動
LD SM0.0
MOVB 16#F8, SMB37
HDEF 0, 0
MOVD +0, SMD38
HSC 0
網絡2 HSC3設置 HC3啟動
LD SM0.0
MOVB 16#F8, SMB137
HDEF 3, 0
MOVD +0, SMD138
HSC 3
網絡3 HSC5設置,HC1啟動
LD SM0.0
MOVB 16#F8, SMB157
HDEF 5, 0
MOVD +0, SMD158
HSC 1
網絡4 HSC1設置,HC1啟動
LD SM0.0
MOVB 16#F8, SMB47
HDEF 1, 0
MOVD +0, SMD48
中斷程序
網絡1 計算HC0 溫度計算
LD SM0.0
LPS
MOVD HC0, VD900
AENO
DTR VD900, VD904
LRD
MOVR VD904, VD908
-R 200.0, VD908
LRD
MOVR VD908, VD912
/R 10.0, VD912
LRD
MOVR VD912, VD604
LRD
MOVD +0, SMD38
LPP
HSC 0
網絡2 計算HC3 濕度計算
LD SM0.0
LPS
MOVD HC3, VD916
AENO
DTR VD916, VD920
LRD
MOVR VD920, VD924
/R 10.0, VD924
LRD
MOVR VD924, VD608
LRD
MOVD +0, SMD138
LPP
HSC 3
網絡3 計算HC1 A溫度計算
LD SM0.0
LPS
MOVD HC1, VD928
AENO
DTR VD928, VD932
LRD
MOVR VD932, VD936
-R 200.0, VD936
LRD
MOVR VD936, VD940
/R 10.0, VD940
LRD
MOVR VD940, VD718
LRD
MOVD +0, SMD48
LPP
HSC 1
網絡4 HC5 B溫度計算
LD SM0.0
LPS
MOVD HC5, VD944
AENO
DTR VD944, VD948
LRD
MOVR VD948, VD952
-R 200.0, VD952
LRD
MOVR VD952, VD956
/R 10.0, VD956
LRD
MOVR VD956, VD706
LRD
MOVD +0, SMD158
LPP
HSC 5
主程序
LDN T32
TON T32, +1000
LD SM0.0
ATCH INT_0:INT0, 21
ENI
溫濕度傳感器用的是哪種的?