论文部分内容阅读
为了实现对现场生产与测试过程进行监控,PLC串行通信技术在工业生产中正得到越来越广泛的应用,结合丰炜VB系列可编程序控制器(PLC)的特点,分析了丰炜VB系列PLC与PC间的通信协议。PC机采用Python语言调用函数的方法 ,介绍了串口的初始化、读操作、写操作、关闭串口和部分关键的代码,并给出了在三维光强分布仪控制系统中利用Python实现PC与PLC串行通信的设计过程,并成功实现了三维光强分布仪控制系统中的上位机与PLC的串口通信。
In order to realize the on-site production and testing process monitoring, PLC serial communication technology is getting more and more widely used in industrial production. Combined with the characteristics of Feng Wei VB series programmable logic controller (PLC), Feng Wei VB series Communication protocol between PLC and PC. PC uses Python language to call function method, introduces the serial port initialization, read operation, write operation, close the serial port and some key code, and gives the use of Python in the three-dimensional light intensity distribution control system PC and PLC string Line communication design process and successfully achieved the three-dimensional light intensity distribution control system PC and PLC serial communication.