微型电脑应用2024,Vol.40Issue(8) :20-23.

采用位域的PLC上位机数据压缩方法及实现

Data Compression Method and Realization of PLC Host Computer Using Bit-field

韩玲 杨少军
微型电脑应用2024,Vol.40Issue(8) :20-23.

采用位域的PLC上位机数据压缩方法及实现

Data Compression Method and Realization of PLC Host Computer Using Bit-field

韩玲 1杨少军2
扫码查看

作者信息

  • 1. 西安航空学院,计算机学院,陕西,西安 710089
  • 2. 中航西安飞机工业集团股份有限公司,陕西,西安 710089
  • 折叠

摘要

针对当前工业控制系统中系统数据与PLC数据不匹配问题,提出一种采用位域的PLC上位机数据压缩方法.该方法接收系统其他数据,分析系统数据与PLC数据的差异性,定义相应的限制位域的结构体,借助于位域完成系统数据到PLC数据的压缩工作,最后将压缩后的用户数据组包发送给PLC设备.将所提方法应用于PLC上位机软件中,并成功在某飞机舱门训练器中得到实践.结果表明,该方法具有良好的实用价值,比传统数据压缩方法更加简单、高效和易操作.

Abstract

In order to solve the problem of data mismatch between host computer and PLC in current industrial control systems,a method of data compression for host computer using Bit-field is proposed,this paper receives other system data,analyzes the difference between the system data and PLC data,defines the structure of the corresponding restricted Bit-field,and completes the compression of the system data to PLC data with the help of the Bit-field.The compressed user data packet is sent to the PLC equipment.This method has been applied to the software of PLC host computer and has been successfully applied to a cab-in door trainer.The results show that the method has good practical value,and is more simple,more efficient and easier to op-erate than the traditional data compression methods.

关键词

位域/PLC/数据压缩/上位机

Key words

Bit-field/PLC/data compression/host computer

引用本文复制引用

基金项目

国家自然科学基金(61871313)

出版年

2024
微型电脑应用
上海市微型电脑应用学会

微型电脑应用

CSTPCD
影响因子:0.359
ISSN:1007-757X
参考文献量9
段落导航相关论文