Operation method of cloud programmable controllerTechnical Field
The present application relates to control systems in general, and more particularly, to a cloud programmable controller and a method of operation.
Background
With the development of automation and informatization technologies, various controllers in industry have been very popular. Among these are the usual PLCs, DCS, robots, numerical control systems, motion controllers, touch screens, etc. Currently, to develop and maintain programs in these controllers, corresponding specialized development software, demonstrators, and the like must be used. If the maintenance controller is to be developed remotely, the corresponding special development software must be used remotely through means such as a gateway, VPN and the like. This greatly limits the flexibility of remote development and maintenance. Along with the development of intelligent manufacturing and industrial Internet, the development and operation of the controller are necessarily required to be remotely carried out from the cloud, but the development and operation of the controller can not be completed at the cloud and remotely under the condition that special development software is not required to be installed in the prior art.
The specific disadvantages are as follows:
for development and maintenance of existing controllers, corresponding special development software, hardware, such as a demonstrator, must be used.
The development and maintenance of existing devices remotely necessitates the use of industrial gateways, RTUs, VPNs, etc. that support a particular controller, and not all devices are universally available.
Different brands and different types of controllers all have respective special development software, the installation and the setting of the software need a lot of time, different software can generate conflict, and different requirements are also met for an operating system. These are all financial, material and manpower resources. Many engineers in practice use these developed software directly in virtual machines. This wastes manpower and computer resources.
When the controller is damaged, the original program cannot be read, and after the spare controller is replaced, the spare equipment can work normally only by the previous backup program. Without the latest backup program, it would be difficult to resume work in a short time.
The existing controller is difficult to realize program cloud storage, transaction, automatic deployment and modularized transplanting.
Disclosure of Invention
The embodiment of the application provides a cloud programmable controller and an operation method, which are used for completing a scheme of developing operation and maintenance of the controller in a cloud end and a remote place under the condition that special development software is not required to be installed.
The embodiment of the invention provides a cloud programmable controller and an operation method, as shown in fig. 1, the cloud programmable controller comprises a program processing unit and an integrated development environment service, the program processing unit provides a programming debugging interface, the integrated development environment service is communicated with a development operation and maintenance cloud platform through a network, the development operation and maintenance cloud platform is communicated with a client through the network, and the integrated development environment interface is presented in the client in the form of a webpage. The user develops the operation and maintenance target program by accessing the integrated development environment interface, and uploads and downloads the target program from the program processing unit. The transmission path of the web page code of the integrated development environment interface is as follows: the webpage code is from an integrated development environment service to a development operation and maintenance cloud platform through a network, and from the development operation and maintenance cloud platform to a browser through the network. The path of the uploading of the target program is as follows: the target program is from a program processing unit to an integrated development environment service through a programming debugging interface, from the integrated development environment service to a development operation and maintenance cloud platform through a network, and from the development operation and maintenance cloud platform to a browser through the network. The path of the target program download is as follows: the target program is from a browser to a development operation and maintenance cloud platform through a network, from the development operation and maintenance cloud platform to an integrated development environment service through a network, and from the integrated development environment service to a program processing unit through a programming debugging interface.
After the cloud programmable controller is connected with the development operation and maintenance cloud platform, the cloud platform compares the cloud end with the program version in the cloud programmable controller, and if the cloud end is inconsistent with the program version in the cloud programmable controller, the target program backup in the cloud programmable controller is uploaded. If the cloud programmable controller fails, the standby equipment is replaced, and the target program can be quickly recovered from the development operation and maintenance cloud platform.
The target program can be stored in a development operation cloud platform, and further realize transaction, automatic deployment and modularized transplanting.
A user uses the cloud programmable controller and the operation method provided by the embodiment of the invention to develop and maintain the cloud programmable controller, and the user directly uses the integrated development environment service of the cloud programmable controller to present an integrated development environment interface at a client, so that special development software, a demonstrator and the like are not needed.
By using the cloud programmable controller and the operation method provided by the embodiment of the invention, a user can directly operate an integrated development environment interface for development and maintenance of a remote cloud programmable controller, and data is transmitted through a network to upload and download programs without special industrial gateway or RTU, VPN and other technologies.
In cloud programmable controllers of different models and versions, the integrated development environment service provides the integrated development environment interface service of the corresponding model and version, and a user does not need to select development environments or software for different cloud programmable controllers.
Optionally, the integrated development environment service is directly connected to the browser through a network. As shown in fig. 2, the cloud programmable controller includes a program processing unit that provides a programming debug interface and an integrated development environment service that communicates with clients through a network in which the integrated development environment interface is presented in the form of web pages. The user develops the operation and maintenance target program by accessing the integrated development environment interface, and uploads and downloads the target program from the program processing unit. The transmission path of the web page code of the integrated development environment interface is as follows: the web page code is passed from the integrated development environment service to the browser over the web. The path of the uploading of the target program is as follows: the object program is connected from the program processing unit to the integrated development environment service through the programming debugging interface, and from the integrated development environment service to the browser through the network. The path of the target program download is as follows: the object program is connected from the browser to the integrated development environment service through the network, and is connected from the integrated development environment service to the program processing unit through the programming debugging interface.
As a preferred technical scheme of the invention: the program processing unit comprises any one or more of a programmable logic controller, a distributed control system, a human-computer interface device, a numerical control system, a robot, a motion controller, an edge calculator, a programmable network device, a driver, an industrial program processing unit, a civil program processing unit, a military program processing unit, a vehicle-mounted program processing unit, a programmable remote sensing device, equipment and a programmable instrument. The data interface service can directly provide the data in the program processing unit to the network.
As a preferred technical scheme of the invention: the integrated development environment service provides any one or more of program uploading and downloading service, program interpretation and compiling service, data interface service, debugging interface service, automatic deployment service, operation and maintenance interface service, platform discovery service, micro service, container service, authentication service and encryption service.
As a preferred technical scheme of the invention: the development operation cloud platform comprises any one or more of an Internet of things interface service, a program storage service, a user authentication service, an online development operation service, a program transaction service and a cloud integrated development environment interface service. And the Internet of things interface service is connected with the integrated development environment service of the cloud programmable controller through a network. The program storage service stores the target program. The online development operation and maintenance service can refer to the functions of the integrated development environment interface and can integrate the development environment interface at the cloud.
The network in the invention can be the Internet or a private network, or an Ethernet or other protocol network, and the network can contain necessary basic software and hardware facilities of the network, such as a gateway, a firewall, a switch, a router, a modem, 4G/5G/6G access equipment and the like according to specific requirements.
The connection described in the present invention may be either a wired connection or a wireless connection.
The programming debugging interface can be either a software-hardware combined interface or a software interface.
The present invention refers to a presentation interface, in which a server transmits a web page code through a network, and runs the web page code in a browser or a built-in browser, and a process and a result of an operation interface are displayed.
Drawings
Fig. 1 is a logic structure of a cloud programmable controller and its connection with a development operation and maintenance cloud platform and a client.
Fig. 2 is an alternative of the invention, with a cloud programmable controller linked directly to a client.
Fig. 3 illustrates a specific embodiment of the present invention, taking a cloud PLC as an example.
Detailed Description
A specific embodiment of the present invention will be described in further detail with reference to the accompanying drawings.
The implementation modes of the PLC, the robot and the AGV are respectively described in further detail by the program processing units in the cloud programmable controller: the cloud programmable controller is respectively named as a cloud PLC, a cloud robot and a cloud AGV in sequence under the embodiment mode. The cloud programmable controllers are internally provided with integrated development environment services of corresponding versions.
The cloud programmable controllers are sequentially connected with an enterprise gateway and a firewall through Ethernet, are connected with the development operation and maintenance cloud platform through Internet, and upload an integrated development environment interface provided by the integrated development environment service to the development operation and maintenance cloud platform after the development operation and maintenance Yun Pingtai is authenticated. The uploading protocol is HTTPS, the format is Web page, and the uploading protocol is realized by HTML5 and JAVASCRIPT. And the cloud platform compares the cloud and the program version in the cloud programmable controller, and if the cloud and the program version are inconsistent, the cloud platform uploads the target program in the cloud programmable controller to the program storage service backup. If the cloud programmable controller fails, the standby equipment is replaced, and the target program can be quickly recovered from the development operation and maintenance cloud platform.
The cloud PLC integrated development environment service uploads a development operation and maintenance interface corresponding to the cloud PLC, the cloud robot integrated development environment service uploads the development operation and maintenance interface of the cloud robot, and the cloud AGV integrated development environment service uploads the development operation and maintenance interface of the cloud AGV.
The client device is provided with a notebook computer, a handheld terminal and a browser, and the client accesses the development operation and maintenance cloud platform through the Internet by using the HTTP protocol.
The operation process is described in detail below by taking a user-developed operation and maintenance cloud PLC as an example:
When a user wants to develop the operation and maintenance cloud PLC, the user authenticates and logs in to the development operation and maintenance cloud platform through the client equipment. Selecting a cloud PLC with a corresponding name number in an interface presented by a development operation and maintenance cloud platform, acquiring an integrated development environment interface code from an integrated development environment service of the cloud PLC by the development operation and maintenance cloud platform, presenting the integrated development environment interface of the cloud PLC in a client browser, and enabling a user to enter the integrated development environment interface of the cloud PLC. The interface is a WEB page realized by HTML and JAVASCRIP, a target program needing to be developed and maintained is selected in the interface, a background JAVASCRIPT automatically makes a request to a development and maintenance cloud platform, the development and maintenance cloud platform makes a request to an integrated development environment service of the cloud PLC, the integrated development environment service of the cloud PLC makes a request to a programming and debugging interface of a program processing unit of the cloud PLC, the programming and debugging interface sends the target program to the integrated development environment service after receiving the request, the integrated development environment service is sent to the development and maintenance cloud platform, and the development and maintenance cloud platform presents the program in an integrated development environment interface of a client. And developing the target program of the operation and maintenance cloud PLC in the interface by a user.
When the user opens operation and maintenance and downloads the program blocks, a download button in an integrated development environment interface is clicked, a background JAVASCRIPT sends the program to an open operation and maintenance cloud platform, the open operation and maintenance platform stores the program to a program storage service and issues the target program to an integrated development environment service of the cloud PLC, and the integrated development environment service writes the program into a program processing unit PLC of the cloud PLC through the programming debugging interface.
When the old cloud PLC fails, after the field personnel replace the new cloud PLC with the same model, the user logs in to develop an operation and maintenance cloud platform, the number of the new and old equipment is determined in an operation interface, and the development and maintenance cloud platform downloads a target program backup of the old cloud PLC to the new cloud PLC so that the new cloud PLC works normally.