基于單片機(jī)的Profibus-DP與Modbus協(xié)議轉(zhuǎn)換設(shè)計(jì)實(shí)現(xiàn)
張軍1,2,3,葉海武1,褚云霞3
1 人民電器集團(tuán)有限公司 博士后科研工作站,浙江 樂清 325604;
2 河北工業(yè)大學(xué) 電器研究所,天津 300130;3 石家莊學(xué)院 計(jì)算機(jī)系,河北 石家莊 050035
摘 要: 隨著采用Modbus RTU 協(xié)議的設(shè)備越來越多,為能跟上網(wǎng)絡(luò)自動(dòng)化的發(fā)展,設(shè)計(jì)了一種Modbus 協(xié)議與Profibus-DP 協(xié)議轉(zhuǎn)換裝置,通過它實(shí)現(xiàn)Modbus 網(wǎng)絡(luò)與Profibus-DP 網(wǎng)絡(luò)互聯(lián)。介紹Profibus-DP 和Modbus 兩種現(xiàn)場(chǎng)總線的協(xié)議模型,分析了兩種現(xiàn)場(chǎng)總線協(xié)議的轉(zhuǎn)換方法,提出了轉(zhuǎn)換器的電路設(shè)計(jì)和單片機(jī)系統(tǒng)軟件設(shè)計(jì),并通過實(shí)驗(yàn)證明了轉(zhuǎn)換器數(shù)據(jù)轉(zhuǎn)換的正確性和實(shí)用性。
關(guān)鍵詞: 現(xiàn)場(chǎng)總線;Profibus-DP 協(xié)議;Modbus 協(xié)議;協(xié)議轉(zhuǎn)換;SPC3 芯片
中圖分類號(hào):TN915.04 文獻(xiàn)標(biāo)識(shí)碼:A 文章編號(hào):1007-3175(2013)03-0016-05
Realization of Protocol Conversion Design Between Profibus-DP and Modbus Based on Singlechip
ZHANG Jun1, 2, 3, YE Hai-wu1, CHU Yun-xia3
(1 Workstation of Postdoctoral Scientific Research of People Appliances Group Co., Ltd, Yueqing 325604, China;
2 Electrical Apparatus Institute of Hebei University of Technology, Tianjin 300130, China;
3 Computer Department, Shijiazhuang University, Shijiazhuang 050035, China
Abstract: Following more and more equipment in adoption of Modbus RTU protocol, this paper designed a kind of conversion device of Modbus protocol and Profibus-DP protocol in order to follow the development of network automation. The Modbus network was connected to the Profibus-DP network through the device. Introduction was made to protocol modes of Profibus-DP and Modbus of two kinds of field buses and analysis was made to the transfer method of two kinds of field buses. This paper raised transfer circuit design and software design of singlechip machine system. Experiment proved the correctness and practicality of data transfer.
Key words: field bus; Profibus-DP protocol; Modbus protocol; protocol conversion; SPC3 chip
參考文獻(xiàn)
[1] 華镕. 從Modbus 到透明就緒:施耐德電氣工業(yè)網(wǎng)絡(luò)的協(xié)議、設(shè)計(jì)、安裝和應(yīng)用[M]. 北京:機(jī)械工業(yè)出版社,2009.
[2] 侯維巖,費(fèi)敏銳.PROFIBUS協(xié)議分析和系統(tǒng)應(yīng)用[M].北京:清華大學(xué)出版社,2006.
[3] 章民融,秦艷華,徐亞鋒. 基于SPC3 的PROFIBUS DP 的研究與開發(fā)[J]. 計(jì)算機(jī)應(yīng)用與軟件,2008,25(8):184-186.