摘要
目前,微型处理器的飞速发展为智能仪表带来了根本性的变革,但以PLC为核心的处理器价格高昂,故文中介绍了一种以单片机为核心的继电器控制仪表。这种多路继电器控制系统在结构上包括单片机、继电器以及485总线三大部分,其中,该系统三大部分之间的通信主要由Modbus总线协议控制。通过Modbus总线协议,单片机控制5入5出继电器以控制外接设备,高效简便,价格低廉。
At present,the rapid development of micro processor for intelligent instruments brought fundamental changes,but with PLC as the core processor costs too much,therefore,this paper introduces a relay control instrument with a single chip microcomputer as the core processor. The multi-channel relay control system includes a single chip microcomputer,a relay and a 485 bus in the structure. Among them,the communication between the three parts of the system is mainly controlled by the Modbus protocol. Through the Modbus protocol,MCU control 5 in 5 out of the relay and the external equipments,it has high efficiency and simple,low price.
引文
[1]胡汉才.单片机原理及其接口技术[M].北京:清华大学出版社,2004.
[2]何立民.单片机高级教程[M].北京:北京航空航天大学出版社,2001.
[3]21IC中国电子网[EB/OL].http:∥www.21ic.com.
[4]周立功单片机[EB/OL].http:∥www.zlgmcu.com.
[5]Abdemalik Bachir,Abderrahim Benslimane.Towards Supporting GPS-unequipped Vehicles in Inter-Vehicle Geocast[C].Proceeding of the 28th Annual IEEE International Conference on Local Computer Networks,2003.
[6]李朝青.PC机及单片机数据通信技术[M].北京:北京航空航天大学出版社,2007.