C100 C101斷電保持型,計滿10000復(fù)位,C100 C101分別作進與出的計數(shù),D0為房間里人數(shù),人數(shù)大于10時,M2動作,Y0作報警輸出! 0 LD M8002 1 RST C100 3 RST C101 5 LD X000 6 OUT C100 K10000 9 LD C100 10 RST C100 12 LD X001 13 OUT C101 K10000 16 LD C101 17 RST C101 19 LD M8000 20 SUB C100 C101 D0 27 CMP K10 D0 M0 34 LD M2 35 OUT Y000 36 END