首页 | 本学科首页   官方微博 | 高级检索  
     

远程分布式测控系统的RS485总线通信
引用本文:连光耀,黄考利,郑思龙.远程分布式测控系统的RS485总线通信[J].兵工自动化,2004,23(3):40-41.
作者姓名:连光耀  黄考利  郑思龙
作者单位:军械工程学院,导弹工程系,河北,石家庄,050003;南京理工大学,动力工程学院,江苏,南京,210094
摘    要:用Lab Win/CVI中RS232串口控制功能和I/O函数进行RS232/485的通信协议转换,以实现远程分布式测试控制系统的RS485总线通信.先打开通信端口并初始化、发送控制指令、获取采集信号.本地主控机通过RS485总线向现场信号采集设备发送控制指令并接收采集的测试数据,从而实现对RS485总线通信的控制.并在程序中并引入Win定时器检查端口状态,以提高通信控制的可靠性.

关 键 词:RS232总线  RS485总线  测控系统  Win定时器
文章编号:1006-1576(2004)03-0040-02
修稿时间:2003年8月18日

RS485 Bus Communication of Remote Distributed Measurement and Control System
LIAN Guang-yao,HUANG Kao-li,ZHENG Si-long.RS485 Bus Communication of Remote Distributed Measurement and Control System[J].Ordnance Industry Automation,2004,23(3):40-41.
Authors:LIAN Guang-yao  HUANG Kao-li  ZHENG Si-long
Affiliation:LIAN Guang-yao1,HUANG Kao-li2,ZHENG Si-long1
Abstract:The communication protocol of RS232 to RS485 is translated with serial port control functions and I/O functions of Lab Windows/CVI, in order to realize communication control of RS485 bus in the remote distributed measurement and control system. At first, open COM ports and initialize them, send steering order and acquire sample signals. The local controller sends steering order to field signal-acquisition equipments and receives test data from RS485 bus, thereby communication control of RS485 bus was realized. The reliability of communication control can be improved greatly as a result of Win timer that can checks the states of COM ports was used in program.
Keywords:RS232 bus  RS485 bus  Measurement and control system  Windows timer  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号