網(wǎng)絡(luò)1 HSC0設(shè)置 HC0啟動(dòng)
LD SM0.0
MOVB 16#F8, SMB37
HDEF 0, 0
MOVD +0, SMD38
HSC 0
網(wǎng)絡(luò)2 HSC3設(shè)置 HC3啟動(dòng)
LD SM0.0
MOVB 16#F8, SMB137
HDEF 3, 0
MOVD +0, SMD138
HSC 3
網(wǎng)絡(luò)3 HSC5設(shè)置,HC1啟動(dòng)
LD SM0.0
MOVB 16#F8, SMB157
HDEF 5, 0
MOVD +0, SMD158
HSC 1
網(wǎng)絡(luò)4 HSC1設(shè)置,HC1啟動(dòng)
LD SM0.0
MOVB 16#F8, SMB47
HDEF 1, 0
MOVD +0, SMD48
中斷程序
網(wǎng)絡(luò)1 計(jì)算HC0 溫度計(jì)算
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
網(wǎng)絡(luò)2 計(jì)算HC3 濕度計(jì)算
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
網(wǎng)絡(luò)3 計(jì)算HC1 A溫度計(jì)算
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
網(wǎng)絡(luò)4 HC5 B溫度計(jì)算
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
溫濕度傳感器用的是哪種的?