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.
image detectionSiemens PLCcontrol systembit statusreading and writingEthernet communication