针对目前可编程逻辑控制器(Programmable Logic Controller,PLC)程序手动编程烦琐,容易出错,重复劳动量大等问题,提出基于Python语言编程和机器人流程自动化(Robotic Process Automation,RPA)的PLC程序自动组态.文章以西门子博途编程软件为例,用Python语言设计界面并读取Excel文件,生成结构化控制语言(Structured Control Language,SCL)格式的外部文件,再通过RPA将其引入博途编程软件,自动生成数据块和子程序,完成程序的全部自动化编写和软件操作.通过验证和测试,证明了此方案切实可行,并且随着PLC应用的日益广泛,具有很高的推广价值.
Automatic Configuration of Industrial Software Based on Python and RPA
In response to the current issues of cumbersome manual programming,error prone,and heavy repetitive labor in Programmable Logic Controller(PLC)programs,a Python language programming method combined with Robotic Process Automation(RPA)is proposed for automatic configuration.This article takes Siemens Botu programming software as an example,using Python language to design interfaces and read Excel files to generate external files in Structured Control Language(SCL)format.Then,it is introduced into Botu software through RPA to automatically generate data blocks and subroutines,completing all automated programming and software operations.Through verification and testing,it has been proven that this scheme is feasible and hashigh promotion value with the increasingly widespread application of PLC.
pythonrobotic process automationprogrammable logic controller