基于Python系统的西门子PLC位控制方法
张明琰 1高永亮 1曹艳朵2
作者信息
- 1. 河南中烟黄金叶生产制造中心,河南郑州 450000
- 2. 河南中烟工业有限责任公司漯河卷烟厂,河南漯河 462000
- 折叠
摘要
Python语言丰富的公共资源和多样的算法工具,用于对工业生产线的产品质量图像实时判异处理,算法灵活,检测精确.在检测系统提取图像和判定结果输出时,需要在检测系统与控制生产线PLC之间建立数据链路.介绍了如何应用Snap库文件通过以太网对西门子PLC的位状态进行读写,实现计算机与PLC之间的以太网通信.
Abstract
The rich public resources and diverse algorithm tools of Python language are used for real-time differentiation processing of product quality images on industrial production lines.The algorithm is flexible and accurate,and when ex-tracting images from the detection system and outputting judgment results,a data link needs to be established between the detection system and the control production line PLC.This paper introduces how to apply the Snap library file to read and write the bit status of Siemens PLC through Ethernet,achieving Ethernet communication between computers and PLCs.
关键词
图像/检测/西门子PLC/控制系统/位状态/读写/以太网通信Key words
image detection/Siemens PLC/control system/bit status/reading and writing/Ethernet communication引用本文复制引用
出版年
2024