论文部分内容阅读
上位机Win CC+下位机可编程控制器(PLC)是工业现场监控系统的主要形式,针对该系统中存在Win CC刷新频率不能满足较高数据采集的问题,根据上位机Win CC与下位机PLC的特点,提出一种新的Win CC高速数据采集方法。该方法通过下位机PLC采集工业现场数据并依次存放于数据块中,数据无需圆整,为浮点型;在上位机Win CC中建立多个外部变量与数据块的过程变量对应,应用C语言编写全局脚本,一次读取数据块中的全部数据;Win CC由原来的一次读取一个数据变为现在的每次读取多个数据,从而间接实现Win CC高速数据采集。对该方法进行了试验测试,结果表明,该高速数据通讯方法能够有效解决Win CC保存数据速率慢的问题,不但保证了读取数据的精确性,而且适用范围更广,为上下位机提供了一种可靠、便捷、低成本的高速数据通讯方案。
The host computer Win CC + lower computer programmable logic controller (PLC) is the main form of industrial field monitoring system, for the existence of the system in the Win CC refresh frequency can not meet the high data acquisition problems, according to PC Win CC and lower machine PLC Characteristics, proposed a new Win CC high-speed data acquisition method. The method collects the industrial field data by the lower computer and sequentially stores the data in the data block, the data does not need to be rounded, and is a floating point type. Correspondingly, the process variable of establishing a plurality of external variables and data blocks in the host computer Win CC corresponds to applying C language Write a global script, read all the data in a data block at a time; Win CC read a data from the original once into each read now more than one data, which indirectly Win CC high-speed data acquisition. The experimental results show that this high-speed data communication method can effectively solve the problem of slow data saving in Win CC. It not only ensures the accuracy of reading data, but also has a wider range of application, which provides the upper and lower computer with A reliable, convenient and low-cost high-speed data communication solution.