詳細介紹工控軟件組態(tài)王與單片機多機串口通訊的設計原理。分析組態(tài)王提供的直接與單片機串口通信方法的優(yōu)點,給出系統(tǒng)基于RS-485總線傳輸?shù)慕涌陔娐吩韴D。根據(jù)組態(tài)王提供的通訊協(xié)議和單片機多機串口通訊的原理,給出程序設計流程與思路。
Abstract:
In this paper,the design principle of communication between multi-SCM and KingView by serial ports is described in detail.We analysis the advantage of method supplied by KingView,by which KingView can communicate with serial ports of SCM directly,and provide the system’s interface circuit based on the RS-485transmission line.We provide flow diagram of programming and thinking on the basis of communication protocol supplied by KingView and principle of communication among multi-SCM through serial ports.
將現(xiàn)行的供暖計費方式由按建筑面積計費變?yōu)榘聪牡臒崮苡嬞M是供暖計費方式發(fā)展趨勢,為了滿足這一計費方式變化的需要,設計了基于IC卡的預付費式新型供暖計費系統(tǒng),通過測量用戶采暖系統(tǒng)進出口的溫度和流量,計算用戶消耗的熱能,利用IC卡記錄用戶預付費的金額和當年熱能的單價,根據(jù)熱能消耗和當年熱能的單價計算用戶采暖費,根據(jù)實際發(fā)生的供暖費用和預付費金額控制供暖的開停,這一計費方式的變化使供暖計費更趨合理。
Abstract:
It is trend that the mode of heat charging is changed from billing by building area to by thermal energy. In order to meet the needs of heat charging mode changing, a new system of heat charging based on IC card is proposed. The user?蒺s energy consumption is calculated by measuring the user inlet and outlet temperature and flow,using the IC card to record the prepaid amount and the current price of heat. The user?蒺s heating costs is calculated according to energy consumption and current price, according to actual heating costs and prepaid amount,the system controls the heating opening or stopping. It is more reasonable that calculated heating costs by user heat consumption