自动控制系统中串行接口数据的自动发送与接收

来源 :船电技术 | 被引量 : 0次 | 上传用户:x8890367
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
自动控制系统中,经常会用上位微机的串口监控由可编程控制器或单片机组成的控制系统的运行情况。在上位机编程中也常会遇到上、下位机数据交换与上位机图形显示、数据处理等事务相矛盾的问题,本文提出了一种解决这种矛盾的方法,利用串行接口中断实现数据在上位机后台自动交换,在设计前台事务处理程序时就可以不考虑数据交换问题,避免了两者之间的矛盾。 在控制系统中常会遇到上、下位机这种系统构成,通常上位机是IBM—PC/XT兼容机,下位机是单片机系统、单板机系统或可编程控制器系统.这几种组成方式都需要实现上、下位机数据交换。往往在数据交换过程中,上位机还要实时处理一些事务,如显示图形、实时处理数据等,数据交换与其它事务处理成为一对矛盾。 上、下位机的数据交换一般是通过串行通讯实现的,在上位机编程中,大多数采用查询方式发送、中断方式接收,这样上位机在实时处理事务的同时还要不断地查询发送数据,编程很困难.笔者在实际工作中经过反复试验,编制出串行接口自动数据发送和数据接收程序,数据发送和数据接收均采用中断方式,在程序中一旦做好设置,即可实现数据自动交换,大大简化编程。 Automatic control system, often with the host computer’s serial port monitoring by the programmable controller or microcontroller control system consisting of the operation. In the host computer programming often encounter the upper and lower computer data exchange with the host computer graphics display, data processing and other matters contradictory issues, this paper presents a solution to this contradiction, the use of serial interface interrupt data PC background automatic exchange, in the design of foreground transaction processing program can not consider the data exchange problems, to avoid the contradiction between the two. In the control system often encounter, the next crew of this system configuration, usually the host computer is IBM-PC / XT compatible machine, the next crew is the microcontroller system, single board machine system or programmable controller system. Need to achieve on the next bit machine data exchange. Often in the data exchange process, the host computer also need to deal with some real-time transactions, such as the display graphics, real-time data processing, data exchange and other transactions become a contradiction. The upper and lower computer data exchange is generally achieved through serial communication in the host computer programming, most of the way to send using the query, interrupt receiving, so PC in real-time transaction processing but also continue to query the send data, Programming is very difficult.The author in the actual work through trial and error, the preparation of a serial interface to send and receive data automatically the program, data transmission and data reception are used interrupt, once the program is set up, you can achieve automatic data exchange , Greatly simplifying programming.
其他文献
  出水回流是有机废水厌氧生物处理中经常采用的一种运行方式.已有较多有关出水回流对上流式厌氧滤器影响的试验研究,一些试验证明回流能够提高有机物去除率,而另一些试验
会议
  上海市苏州河的污染是从20年代开始的,由于历史和人为的原因,到60年代已污染较为严重,至1978年苏州河上海市境内已全部遭受污染,极大损害了上海作为国际大都市的形象,影响
会议
  应用有效微生物处理污水的效果很大程度取决于处理系统中微生物的数量、组成及活性,处理工艺选择也是十分重要的因素.通常采用的微生物固定化技术和投菌活性污泥法,虽然
会议
分析了多用户特征模式传输(MET)的结构并研究了一种低复杂度的调度算法,同时研究了一种自适应比例公平调度算法.在基站端采用多用户特征模式传输来消除用户间干扰,增加系统吞
  氧化沟是一种经济而有效的污水处理技术,具有稳定的处理效果.自二十世纪50年代出现以来,经过工艺和曝气设备等方面的无数次改进,已成为主要污水生物处理技术之一.特别是
会议
  厌氧氨氧化是近几年来得到确认的一种生物化学反应,其以亚硝酸盐或硝酸盐为电子受体、以氨为电子共体完成生物脱氮过程.其优点是节省了传统生物反硝化的碳源和氨氮氧化对
会议
瑞士Schaublin公司的28-CCN高精度铣床,具有传统铣床的操作简单的优点,同时还具有数控铣床的优点,能够完成数控铣床所能完成的全部加工。 该铣床的基本设计思想是操作简单。
  当前,我国水环境污染仍然相当严重.大型湖泊(水库)和城市湖泊水质普遍较差,75﹪以上的湖泊富营养化加剧,解决氮、磷污染将是一项长期的艰巨任务.从投入巨额资金进行重点治
会议
  国际水质协会的活性污泥模型的应用是当今国际上的研究热点.它无论是在污水处理厂的设计、运行管理、改造,还是在废水处理技术的研究与开发方面均有重要的实用价值,活性
会议
本文探讨了多轴联动数控铣削中进给速度的主要特点,并给出了有关的计算方法。这些方法已应用于整体离心叶轮、滚子齿式凸轮等复杂零件的多坐标铣削编程,特别是以“双刀位点”控