论文部分内容阅读
在工程实际中,针对监控现场的电磁干扰严重、环境恶劣、数据通讯量大以及对数据处理的时实性强等特点,常用16位CRC校验方式实现工业网络底层PLC与上位PC机通讯系统中数据链路层差错校验。本文重点介绍了CRC校验原理,利用查表法实现循环冗余校验,并编写了基于西门子(SIEMENS)S7-200PLC自由通信的CRC校验程序,应用于武汉地铁1号线的变电站监控系统。结果表明,该算法有利于提高系统的稳定性和抗干扰能力,保证了数据传输的准确性。
In engineering practice, for monitoring the scene of serious electromagnetic interference, harsh environments, large amount of data traffic and data processing time is strong and so on, commonly used 16-bit CRC parity to achieve the bottom of the industrial network PLC and PC communication system In the data link layer error checking. This article focuses on the principle of CRC verification, the use of table lookup method to achieve cyclic redundancy check, and prepared based on SIEMENS S7-200PLC free communication CRC verification program used in substation monitoring system of Wuhan Metro Line 1 . The results show that the proposed algorithm can improve the system stability and anti-interference ability, and ensure the accuracy of data transmission.