VS环境下PLC实时数据采集系统中两种定时器的使用  被引量:2

Application of two timers in PLC real-time acquisition system based on visual studio

在线阅读下载全文

作  者:郭宇[1] 陈年生[1] 方晓平[1] 

机构地区:[1]湖北师范学院计算机科学与技术学院,湖北黄石435002

出  处:《湖北师范学院学报(自然科学版)》2013年第4期63-68,共6页Journal of Hubei Normal University(Natural Science)

摘  要:实时数据采集是工业控制中极为重要的环节。在某项目中,以Visual Studio为开发工具,上位机对可编程逻辑控制器(PLC)进行数据实时采集使用了两种方案:一种是采用基于消息机制的WM_TIMER定时器,另一种是微软提供的多媒体定时器。阐述了两种定时器的实现方法及其优缺点,可在具体应用中适当选择。最后设计实验对两种定时器进行了十分直观的对比。Real-time data collection is extremely important in industrial control link .In a project,development tools in Visual Studio,PC acquires real-time data on PLC using the two programs:One is WM_TIMER timer based on the messages mecha-nism,Another is Microsoft's multimedia timer.This paper describes the advantages and disadvantages of both methods ,which can be appropriately selected Depending on the application .Finally,we carried out pretty straightforward contrast on the two timers through the design of experiments .

关 键 词:消息机制 VISUALSTUDIO WM_TIMER定时器 多媒体定时器 定时精度 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象