A software design of data collection and transmission layer about remote measurement and control system in oil well based on RTU is introduced. The software design to achieve data collection, data transmission and outside relay control in various sensors is discussed. Modbus/RTU and Modbus/TCP communication are also analyzed. The results show that with the help of configuration software, the system can work in more than one mode, which makes it available in different occasions.%提出了一种基于RTU油井远程测控系统的数据采集和传输层软件设计方案。介绍了实现各种传感器的数据采集、传输以及外部继电器控制的软件设计方法,并对实现Modbus/RTU和Modbus/TCP的通信进行了详细分析。分析结果显示:通过软件配置,可实现多种工作方式,有利于该系统在不同场合下的应用。
展开▼