Industrial automation control method, device, equipment and medium
By creating project instances on the system platform, setting PLC type parameters, and designing the UI interface, and using flowcharts to combine logic, the problem of inconsistent PLC programming standards is solved, enabling low-threshold equipment motion control and efficient debugging.
Patent Information
- Application Number
- CN202411119412.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-26
AI Technical Summary
In existing industrial automation control systems, there is a lack of unified standards for programming various types of PLCs, which requires developers to learn a lot of different PLC knowledge, resulting in high logical complexity and increased development difficulty and cost.
Project instances are created on a pre-defined system platform. PLC type parameters are set through the UI interface, device control logic is configured, and operation pages are designed through the UI designer. Program blocks are dragged and dropped to combine logic using flowcharts. The system is compatible with mainstream PLC brands and provides a visual, unified programming environment.
It enables low-threshold device motion design and debugging, reduces development and debugging costs, improves development efficiency, simplifies the programming process, provides a debuggable and monitorable UI interface, and supports remote operation and rapid bug debugging.
Smart Images

Figure CN119025080A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial control technology, and in particular to an industrial automation control method, device, equipment and medium. Background Art
[0002] Industrial automation control is the use of automation systems and control technologies to monitor and manage various parameters and equipment operations in the industrial production process, thereby realizing the automation, optimization and control of the production process, making the production process more efficient, reliable and flexible. It is an indispensable part of modern industrial production.
[0003] There are various technologies for controlling the motion of equipment in the industrial field. The present invention is mainly devoted to solving the problem of using multiple types of PLCs in equipment. There is no unified standard for the programming methods and logical complexity of various types of PLCs. Developers need to learn a lot of different PLC knowledge and understand different types of instructions, which increases the complexity. Therefore, in order to solve the problem of unified equipment motion control, the present invention provides an industrial automation control method and device. Summary of the invention
[0004] In view of the above problems, the present application is proposed to provide an industrial automation control method and device that overcomes the above problems or at least partially solves the above problems, including:
[0005] An industrial automation control method, comprising:
[0006] Create a new project instance or import an existing project instance on the preset system platform;
[0007] In the project example, through the preset UI interface, set the PLC type parameters associated with the lower-level PLC, and configure the device control and operation logic according to the PLC type parameters, and save them as IO files;
[0008] Select the motion card type that matches the industrial equipment, configure the motion card parameters according to the PLC type parameters, and save as a configuration file;
[0009] The operation page is designed through the UI designer provided by the system platform, and the IO file and the configuration file are associated with the UI component to determine the UI operation interface.
[0010] Preferably, creating a new project instance or importing an existing project instance on a preset system platform includes:
[0011] Based on the window platform, using the CS architecture and .net framework4.8 framework, create the corresponding project as a new project instance in a project-based manner, or select the corresponding project instance from the Import Project dialog box.
[0012] Preferably, in the project example, the PLC type parameters associated with the lower computer PLC are set through a preset UI interface, and the device control and operation logic are configured according to the PLC type parameters and saved as an IO file, including:
[0013] In the project example, through the preset UI interface, set the IP address, PLC port number, timeout period and PLC type parameters of the PLC associated with the lower computer PLC;
[0014] Scan the planning area according to the PLC type parameters and determine the planning table. According to the planning table including the PLC virtual axis, the input and output IO of the first axis, and the enable, return to origin, JOG+, JOG-, reset, and emergency stop parameters, configure the device control and operation logic and save them as an IO file.
[0015] Preferably, the selecting of the motion card type matching the industrial equipment and configuring the motion card parameters according to the PLC type parameters and saving the configuration file includes:
[0016] Select the motion card type that matches the industrial equipment, and configure the motion card parameters including the positive motion IP version, motion card IP, TCP communication protocol, virtual axis and motion path for each motion card according to the PLC type parameters, and save them as configuration files.
[0017] Preferably, the operation page design is performed through the UI designer provided by the system platform, and the IO file and the configuration file are associated with the UI component to determine the UI operation interface, including:
[0018] Using the UI designer provided by the system platform, create an interface of a specified page size, design the required screen, and drag and drop the preset UI components into the screen;
[0019] Associate IO files and configuration files through UI components, establish a WebSocket server, and communicate through the WS protocol to obtain the system internal address, operate the internal address, and determine the system log, including buttons, indicator lights, and values corresponding to the system internal address. The system address can be bound to display and control;
[0020] Release the UI operation interface and determine the UI operation interface, which can operate and monitor the device movement on the screen.
[0021] Preferably, before designing the operation page through the UI designer provided by the system platform and determining the mapping relationship between the UI component and the IO file and the configuration file, the method further includes:
[0022] In the project example, a KV server is established through the TCP protocol, and a port for a third-party client is provided;
[0023] The address of the KV server is configured to correspond to the binding relationship between the IO file and the variables of each parameter in the configuration file;
[0024] When the KV server is started, the monitoring service is started according to the IP address and logs are recorded;
[0025] The KV server reads the IP address value in the configuration file through a variable, or writes the IP address of the server into a variable and saves it to the configuration file.
[0026] Preferably, the planning area is scanned according to the PLC type parameter and a planning table is determined. According to the planning table, the PLC virtual axis, the input and output IO of the first axis, and the enable, home, JOG+, JOG-, reset, and emergency stop parameters are included, and the equipment control and operation logic are configured and saved as an IO file, including:
[0027] Configure the PLC address according to the PLC type parameters of the IO, cylinder, servo and axis including the input and output of the equipment, scan the planning area and make sure that the PLC address information is accurately written into the planning table;
[0028] Generate a virtual axis list according to the number of axes of the equipment in the planning table, configure the internal address of the system through each axis input and output IO, including calculating the corresponding function address of each axis by cyclic increment, and write enable, return to origin, JOG+, JOG-, and function name into the internal variable address comment of the system for binding; and
[0029] Through the preset IP annotation, the hardware IO information corresponding to the device, and the JSON format data exported by the IO annotation tool, the deserialization operation is performed to obtain the information and display it in the list, and the IO quantity and data width required for each device station are calculated, and the number of hardware binding addresses is calculated according to the IO input and output point occupation of the hardware, and the corresponding system internal address of the corresponding hardware input and output is calculated according to the set first address.
[0030] Write the device motion control according to the preset rules, and include the following conditions: loop execution condition judgment condition, test counter address is 1 and execute simultaneously, counter 1 address, counter 2 address, counting function and delay 1 second control logic, and configure and save the IO file of the IO stream operation of the window.
[0031] An industrial automation control device, comprising:
[0032] Project instance module, used to create new project instances or import existing project instances on the preset system platform;
[0033] The project configuration module is used to set the PLC type parameters associated with the lower-level PLC through the preset UI interface in the project instance, and configure the device control and operation logic according to the PLC type parameters, and save them as IO files;
[0034] The device association module is used to select the motion card type that matches the industrial equipment, and configure the motion card parameters according to the PLC type parameters, and save them as a configuration file;
[0035] The UI design module is used to design the operation page through the UI designer provided by the system platform, and to associate the IO file and the configuration file through the UI component to determine the UI operation interface.
[0036] A device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the industrial automation control method as described above when executed by the processor.
[0037] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the industrial automation control method described above are implemented.
[0038] This application has the following advantages:
[0039] In the embodiment of the present application, a new project instance is created on a preset system platform or an existing project instance is imported; in the project instance, the PLC type parameters associated with the lower computer PLC are set through the preset UI interface, and the device control and operation logic are configured according to the PLC type parameters, and saved as an IO file; the motion card type matching the industrial equipment is selected, and the motion card parameters are configured according to the PLC type parameters, and saved as a configuration file; the operation page is designed through the UI designer provided by the system platform, and the IO file and the configuration file are associated through the UI component to determine the UI operation interface. By adopting the popular flowchart method, dragging the program block and combining the logic with visual connections, it is compatible with mainstream PLC brands and runs in a unified programming environment. A debuggable and monitorable UI interface is provided to solve the problems of different PLC and motion card programming standards in the industrial field, complex instructions, and high learning costs. The implementation threshold is low, and the design, testing and debugging can be completed by understanding the motion logic and basic software process. Low cost and fast speed, the design can be completed by drawing a flowchart, and the debugging tools are complete, and no code needs to be written. High development efficiency, no frequent code editing and restarting are required, and the debugging and testing process is simple. After-sales service is efficient, bug debugging and new demand processing are fast, and can usually be completed remotely. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 It is a flowchart of the steps of an industrial automation control method provided by an embodiment of the present application;
[0042] Figure 2 This is a flowchart of the login authentication steps of an industrial automation control method provided by an embodiment of the present application;
[0043] Figure 3 This is an example interface diagram of a project creation method of an industrial automation control method provided by an embodiment of the present application;
[0044] Figure 4 This is a flowchart of the steps of creating a PLC in an industrial automation control method provided by an embodiment of the present application;
[0045] Figure 5 It is a flow chart of the steps of configuring a PLC of an industrial automation control method provided by an embodiment of the present application;
[0046] Figure 6 yes Figure 5 Screenshot of the configuration PLC interface;
[0047] Figure 7 yes Figure 6 Screenshot of the PLC virtual axis configuration interface;
[0048] Figure 8 It is a flowchart of the steps of configuring a PLC virtual axis of an industrial automation control method provided by an embodiment of the present application;
[0049] Fig. 9 This is a screenshot of an interface for binding an address and device hardware of an industrial automation control method provided by an embodiment of the present application;
[0050] Fig.10 This is a flowchart of the hardware IO address binding steps of an industrial automation control method provided by an embodiment of the present application;
[0051] Fig.11 This is a screenshot of a variable editing interface of an industrial automation control method provided by an embodiment of the present application;
[0052] Fig.12 This is a screenshot of a process file creation interface of an industrial automation control method provided in one embodiment of the present application;
[0053] Fig.13 This is a screenshot of a condition determination selection interface of an industrial automation control method provided by an embodiment of the present application;
[0054] Fig.14 This is a screenshot of a counter configuration interface of an industrial automation control method provided by an embodiment of the present application;
[0055] Fig.15 It is a flow chart of log processing steps of an industrial automation control method provided by an embodiment of the present application;
[0056] Fig.16 This is a screenshot of a toolbox interface in a visual process editing area of an industrial automation control method provided in one embodiment of the present application;
[0057] Fig.17 This is a screenshot of a motion card configuration interface of an industrial automation control method provided by an embodiment of the present application;
[0058] Fig.18 This is a screenshot of a motion card menu interface of an industrial automation control method provided by an embodiment of the present application;
[0059] Fig.19 It is a flowchart of UI design steps of an industrial automation control method provided by an embodiment of the present application;
[0060] Fig. 20 It is a flowchart of the steps of configuring a KV server of an industrial automation control method provided by an embodiment of the present application;
[0061] Fig.21 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0062] In order to make the objects, features and advantages of the present application more obvious and understandable, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0063] It should be noted that, in any embodiment of the present invention, the preceding limitation is related to the full text.
[0064] Reference Figure 1 , showing an industrial automation control method provided by an embodiment of the present application;
[0065] The method comprises:
[0066] Step S1, creating a new project instance or importing an existing project instance on a preset system platform;
[0067] Step S2: In the project example, set the PLC type parameters associated with the lower computer PLC through the preset UI interface, and configure the device control and operation logic according to the PLC type parameters, and save them as IO files;
[0068] Step S3, selecting a motion card type that matches the industrial equipment, and configuring motion card parameters according to the PLC type parameters, and saving as a configuration file;
[0069] Step S4: designing the operation page through the UI designer provided by the system platform, and associating the IO file and the configuration file through the UI component to determine the UI operation interface.
[0070] In the embodiments of the present application, the popular flowchart method is adopted to present the program blocks, and the logic is combined by visual connection. At the same time, it is compatible with major mainstream PLC brands, and can be run, debugged, monitored, and designed for tablet and touch screen UI interfaces in a unified programming environment, providing solutions to a series of needs. Specifically, by creating a new project instance on a preset system platform or importing an existing project instance; in the project instance, the PLC type parameters associated with the lower-level PLC are set through the preset UI interface, and the device control and operation logic are configured according to the PLC type parameters, and saved as an IO file; the motion card type that matches the industrial equipment is selected, and the motion card parameters are configured according to the PLC type parameters, and saved as a configuration file; the operation page is designed through the UI designer provided by the system platform, and the IO file and configuration file are associated through the UI component to determine the UI operation interface. By adopting the popular flowchart method, dragging program blocks, and combining logic through visual connection, it is compatible with major mainstream PLC brands. It can be run, debugged, monitored, and designed for tablet and touch screen UI interfaces in a unified programming environment. It solves the problems of various types of PLCs and motion cards used in the existing industrial field to control the movement of equipment, the lack of unified standards in programming, complex and changeable instructions, and high learning costs. The implementation threshold is low, and you only need to know the motion logic and basic software processes to complete the motion design, testing and debugging of the entire machine; low cost, can be completed by drawing a flowchart Design, fast speed; low machine adjustment cost, complete motion test and debugging tools; no need to write code, just draw a motion flow chart to achieve motion control, testing, debugging, and after-sales; high development efficiency, no need to frequently edit code, compile, start, reset, start motion and other actions before starting to debug the action; high debugging efficiency, no need to restart and reset, etc., just copy the test flow chart separately to the new process, and debug the action; high testing efficiency, providing pause, single step, movement to current node and other testing methods; high after-sales efficiency, fast bug debugging, and the customer's new demand motion flow chart can be completed, often remote operation can be completed.
[0071] Next, the industrial automation control method in this exemplary embodiment will be further described.
[0072] As described in step S1, a new project instance is created on a preset system platform or an existing project instance is imported.
[0073] In an embodiment of the present invention, the specific process of "creating a new project instance or importing an existing project instance on a preset system platform" in step S1 can be further explained in combination with the following description.
[0074] As described in the following steps, based on the window platform, using the CS architecture and .net framework 4.8, create the corresponding project as a new project instance according to the project style, or select the corresponding project instance from the Import Project dialog box;
[0075] In a specific implementation, based on the window platform, using the C# programming development language architecture and CS architecture and using .net framework4.8, a multi-level project instance is constructed, and the corresponding project is created as a new project instance according to the project style, or the corresponding project instance is selected from the import project dialog box; the project instance can include multiple hierarchical structures, such as the application layer, the control layer and the device layer; among them, the application layer: using mobile phones, tablets, computers to communicate with the system to monitor and operate the movement of equipment, etc. Control layer: system control center, used to write visual programming logic. Device layer: the system communicates with third-party devices or platforms to control the movement of equipment.
[0076] You can also set up user authentication in the system to ensure that only authorized users can log in, thus ensuring the security of the system. Figure 2 As shown in the figure, the system verification process. To enter the system, you first need to log in to the system. Login authentication is divided into two situations as follows: one is the system account, such as the default user admin, with an empty password; the other is the project account. The system sets the project to be opened, and the user authentication is added according to the project; unauthorized systems cannot enter the system and require authorization to enter. The prerequisite for entering the system homepage is that you have passed the previous login authentication and authorization, etc.; the prerequisite for entering the system homepage is that you have passed the previous login authentication and authorization, etc.
[0077] Creating a project or importing an already created project, the specific implementation process may include (1) Creating a project: The system creates a corresponding project according to the project format. Given a project name and selecting a save path, the system will create a directory corresponding to the project name under the specified path and initialize some system initial variable addresses and other contents. (2) Importing a project: The system opens the Import Project dialog box to select the corresponding project and enter the project login user password authentication. Only after passing the authentication can the corresponding project information be opened. For example, Figure 3 As shown in the figure, a project named demo3 is created.
[0078] In one embodiment of the present invention, the specific process of step S2 described in "in the project instance, through the preset UI interface, set the PLC type parameters associated with the lower computer PLC, and configure the device control and operation logic according to the PLC type parameters, and save it as an IO file" can be further explained in combination with the following description.
[0079] As described in the following steps, in the project example, through the preset UI interface, set the IP address, PLC port number, timeout period, and PLC type parameters of the address book of the PLC associated with the slave PLC;
[0080] Scan the planning area according to the PLC type parameters and determine the planning table. According to the planning table including the PLC virtual axis, the input and output IO of the first axis, and the enable, return to origin, JOG+, JOG-, reset, and emergency stop parameters, configure the device control and operation logic and save them as an IO file.
[0081] As an example, in the project instance, through the preset UI interface, set the IP address of the PLC associated with the lower machine PLC, mainly to achieve the purpose of communicating with the lower machine PLC to control the movement of the device. Specifically, you can configure the parameters in the project instance, and perform the following operations, refer to Figure 4 As shown, right-click to select the device connection, then create a new PLC, and then fill in the corresponding custom name + PLC IP address, PLC port number according to the pop-up menu, set the timeout period and select the PLC type parameter for communication; among them, after setting the above parameters, you can perform communication test or confirmation. The system will use the set parameters through the TPC protocol to perform relevant protocol communication tests with each PLC type, such as Keyence's MC-3E protocol, Omron's FinsTcp protocol, etc. After the test, the system will save the information to the file in the specified project directory.
[0082] In one embodiment of the present invention, the specific process of "scanning the planning area according to the PLC type parameters and determining the planning table, configuring the equipment control and operation logic according to the planning table including the PLC virtual axis, the input and output IO of the first axis, and the enable, return to origin, JOG+, JOG-, reset, and emergency stop parameters, and saving them as an IO file" can be further explained in combination with the following description.
[0083] Configure the PLC address according to the PLC type parameters of the IO, cylinder, servo and axis including the input and output of the equipment, scan the planning area and make sure that the PLC address information is accurately written into the planning table;
[0084] Generate a virtual axis list according to the number of axes of the equipment in the planning table, configure the internal address of the system through each axis input and output IO, including calculating the corresponding function address of each axis in a loop, and writing the enable, return to origin, JOG+, JOG-, and function name into the system internal variable address annotation for binding; and through the preset IP annotation, the hardware IO information corresponding to the device, the JSON format data exported by the IO annotation tool, perform a deserialization operation to obtain the information and display it in the list, and calculate the number of IOs and data width required for each equipment station, and calculate the number of hardware binding addresses according to the IO input and output point occupancy of the hardware, and perform loop iteration according to the set first address to calculate the corresponding system internal address of the corresponding hardware input and output;
[0085] Write the device motion control according to the preset rules, and include the following conditions: loop execution condition judgment condition, test counter address is 1 and execute simultaneously, counter 1 address, counter 2 address, counting function and delay 1 second control logic, and configure and save the IO file of the IO stream operation of the window.
[0086] As an example, Figure 5 As shown, configure the address required for communication with PLC and plan the internal address; Figure 6 As shown, according to the IO of the equipment input and output, the IO of the cylinder, axis, servo, etc. connected to the PLC address is matched, and then the corresponding PLC address information is filled in the system's scanning planning area. The information after filling in needs to be as follows; Figure 7 As shown, refresh and save, here define all the virtual axes, hardware IO binding, and write the required addresses in the process. Among them, by scanning the address planning in the planning area + refreshing and saving the planning table, the system creates a file with the first PLC address of each line as the file name under the corresponding project menu, and saves the data refreshed in the planning table. Here, the IO operation file algorithm of the window platform is used.
[0087] As an example, Figure 6 As shown in the figure, the corresponding system virtual axis list is generated according to the number of axes of the device, and the internal address of the system is selected through each axis input and output IO. Click Write Variable Table, and the system will bind the selected address to the corresponding internal address variable and add an address comment description. Figure 7 As shown, it is divided into two major parts: writing to PLC and reading PLC to distinguish the internal address of the system. Click the prefix matching address to perform the corresponding internal address matching, as well as the virtual axis name modification, reset, and emergency stop unified address modification.
[0088] Among them, according to Figure 6Set the system internal address type of the first address, such as 8-bit, 16-bit, and 32-bit double-word, and distinguish between reading and writing according to the system internal variable address. Use cyclic increment to calculate the corresponding function address of each axis, such as enable, return to origin, JOG+, JOG-, etc. The function names are written into the system internal variable address comments for binding. This step is very critical.
[0089] In accordance with Figure 7 By prefix matching the address, the address information of each function point of each axis can be calculated and listed. Here is based on Figure 6 Variable comments are written. Here, the variable address comments are matched according to each axis function name to obtain the address details. For details, see Figure 8 As shown in the flowchart, after completing the above operations and saving, the information will be saved to the file.
[0090] Reference Fig.10 As shown, hardware IO address binding, first import the file, the file source is another IO marking tool, the exported file, after importing, as shown Fig. 9 The hardware IO information corresponding to the device is described in . Here, the address set in the system is bound to the imported file device hardware so that the corresponding cylinder can be selected in the subsequent process to bring out the input and output addresses. Among them, the JSON format data exported by the IO annotation tool is deserialized after being imported into the system to obtain the information and display it in the list, and the number of IO and words required for each equipment station will be calculated. Fig. 9 As shown in the figure, the number of hardware binding addresses is calculated based on the IO input and output point occupancy of the specific hardware on the right, then one hardware address allocation = IO input occupancy + IO output occupancy. Fig. 9 As shown, it is necessary to bind the channel, INT first address, OUT first address and system internal address of each equipment station, so that the loop iteration can be performed according to the set first address to calculate the corresponding system internal address of the corresponding hardware input and output. For the operation of variables, refer to Fig.11 As shown, double-click the variable menu and a pop-up window will pop up showing all the address definitions inside the system. They are divided into several categories: external link address (address bound to PLC), global, local, and card variables. The difference is that global and local addresses can be customized to edit the internal addresses of the system, while others are not editable and need to be generated according to different functional configurations of the system. However, they are all saved in the form of files and operated using the IO stream of the window. In the project example, a program for creating process files is also provided, such as Fig.12 As shown, to create a process file, you can name the process file according to the preset specifications, such as company name, or by workstation, function, etc., and write equipment motion control. Fig.12As shown, you can set the loop execution condition judgment condition, test the counter address when it is 1, and execute the counter 1 address, counter 2 address, counting function and delay for 1 second at the same time.
[0091] The specific parameter configuration for creating a process file includes: creating a process file, dragging in the program blocks encapsulated in the toolbox to combine the business logic of your own equipment; connecting related program blocks, combining and controlling the motion control process of the equipment; monitoring the input and output IO changes of the running equipment and internal addresses to see if they are correct. There must be a start program block node for each process. If the device or process needs to be executed in a loop, a loop program block is required, and multiple connections in the loop program block represent simultaneous processing. Here the system uses multi-threading technology to determine the number of loop connections and automatically generate multiple tasks to perform simultaneously. Among them, the condition configuration is shown in 13. The right button can select the internal address of the system, select the corresponding logical relationship, and set the waiting time period for the loop scan when the condition is not met. If the condition is not met within the period, the set trigger address will be set to 1. Among them, if Fig.14 As shown, after the process is executed from the fixed start block to the condition determination, it will determine whether the set address meets the set condition. If it does, it will continue to execute, otherwise the current process will return and exit. If the waiting condition is checked, the system will perform an internal loop to check whether the condition is met during the waiting time. If it is met, it will execute downward. Otherwise, if it exceeds the set waiting time, the set timeout address is assigned to 1 and the execution continues downward (generally used for alarm prompts after signal timeout). The counter is used to record the number of times, such as recording the number of NG and OK times of the device.
[0092] Configure the counters, such as Fig.14 As shown, right-click the software element to reference the system address; if the count\reset option is checked, the counter program block will be incremented by 1 each time it enters. If it is not checked, the software element address will be reset. The process execution determines whether the count\reset option is checked through the counter program block system. If it is checked, the address is incremented by 1, otherwise it is directly assigned to 0. In addition, the number of milliseconds to wait can be set. The system will continue to execute after waiting for the set number of milliseconds. The debug log and error log of the collection system can be uniformly processed. In the project example, refer to Fig.15 The log processing flow shown can provide a registration log registration event. In the program block where the log is required to be printed, or anywhere else, the corresponding log event can be printed to the output log box by simply calling out the context.
[0093] In the above project example, the toolbox can be provided through the visual process editing area, such as Fig.16As shown, the numerous program blocks encapsulated in the system of the visualized process editing area include logic control, loop control, judgment, counting, axis motion and other encapsulations. The system integrates the common characteristics of all program blocks, executes different logics according to parameter configuration, and the parameter information is saved in the form of files and IO stream operations.
[0094] In one embodiment of the present invention, the specific process of "selecting a motion card type matching the industrial equipment, configuring the motion card parameters according to the PLC type parameters, and saving as a configuration file" in step S3 can be further described in combination with the following description, including:
[0095] Select the motion card type that matches the industrial equipment, and configure the motion card parameters including the positive motion IP version, motion card IP, TCP communication protocol, virtual axis and motion path for each motion card according to the PLC type parameters, and save them as configuration files.
[0096] As an example, the motion card control module is designed to interact with a variety of mainstream motion control cards through a software interface to achieve the planning and control of complex motion paths. This module is widely used to control the movement of servo axes, etc., improving the intelligence and automation level of equipment. The reference diagram is as follows: Fig.17 and Fig.18 As shown, right-click the device connection to create a new sports card, select the positive sports IP version, and enter the correct sports card IP to add it, such as Fig.17 As shown; get Fig.18 The menu format is shown; by importing the manufacturer's EtherCAT protocol file, then running the operation, scanning the EtherCAT link information, adding the virtual axis, and then debugging the function; wherein, the TCP protocol is used to communicate with the motion card controller, and the motion card controller feeds back the device information through the EtherCAT protocol scanning link, and the system obtains the internal address binding, and the purpose of controlling the device movement can be achieved through the process control system address.
[0097] In one embodiment of the present invention, the specific process of "designing the operation page through the UI designer provided by the system platform, and associating IO files and configuration files through UI components to determine the UI operation interface" described in step S4 can be further explained in combination with the following description, including: creating an interface of a specified page size through the UI designer provided by the system platform, and designing the required screen, and dragging the preset UI components into the screen; associating IO files and configuration files through UI components, and establishing a WebSocket server, and communicating through the WS protocol to obtain the system internal address, operation internal address, and system log determination including buttons, indicator lights, and numerical values corresponding to the system internal address that can be bound to the system address for display and operation; publishing the UI operation interface, and determining the UI operation interface, so that the movement of the device can be operated and monitored on the screen.
[0098] As an example, refer to Fig.19 As shown, the operation page design through the UI designer is also the specific steps of setting the screen by dragging UI components, including the following steps: creating an interface with a specified page size; designing the required screen; dragging UI components to the screen; setting the corresponding system internal address, such as buttons, indicator lights, values, etc., which can be bound to the system address display control, etc.; after setting, click Preview to preview in real time; after editing, you can click to publish to the system UI operation interface, and you can operate the device motion monitoring on the screen. Among them, a WebSocket server is established, and the UI designer screen interface communicates through the WS protocol, which can obtain the system internal address, operation internal address, system log and other operations.
[0099] In one embodiment of the present invention, before designing the operation page through the UI designer provided by the system platform and determining the mapping relationship between the UI component and the IO file and the configuration file, it also includes: referring to Fig. 20 As shown, in the project example, a KV server is established through the TCP protocol, and a port for a third-party client is provided; the address of the KV server is configured to correspond to the binding relationship between the IO file and the variables of each parameter in the configuration file; when the KV server is started, the monitoring service is started according to the IP address, and logs are recorded; the KV server reads the IP address value in the configuration file through the variable, or writes the IP address of the server into the variable and saves it to the configuration file. Among them, the system establishes a server internally through the TCP protocol. After the client connects to the server, it can communicate with each other through the KV protocol to obtain changes in the internal address status.
[0100] The beneficial effects of this application also include: low threshold, low requirements for professional users, only need to understand motion logic, understand basic software processes personnel, can complete the motion design, testing and debugging of the entire machine; secondly, low development cost, just draw a flowchart to complete the design, fast speed; low machine adjustment cost, complete motion testing and debugging tools; low after-sales cost, if there are bugs or new needs of customers after sales, just change the flowchart to complete, and can also be completed remotely; through the machine motion development, testing, debugging, after-sales operation, modification, improvement of each link is simple, junior engineers can easily get started, and technical requirements Not high; there is no need to write code, you can achieve motion control, testing, debugging, and after-sales by drawing a motion flow chart; you can carry out efficient development, with high development efficiency, no need to frequently edit code, compile, start, reset, start motion, etc. before starting debugging; high debugging efficiency, no need to restart and reset, etc., just copy the test flow chart separately to the new process, and debug the action; high testing efficiency, providing pause, single step, movement to current node and other testing methods; high after-sales efficiency, fast bug debugging, and the motion flow chart of new customer requirements can be completed, often remote operation can be completed.
[0101] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0102] An industrial automation control device provided by an embodiment of the present application is shown, comprising:
[0103] Project instance module, used to create new project instances or import existing project instances on the preset system platform;
[0104] The project configuration module is used to set the PLC type parameters associated with the lower-level PLC through the preset UI interface in the project instance, and configure the device control and operation logic according to the PLC type parameters, and save them as IO files;
[0105] The device association module is used to select the motion card type that matches the industrial equipment, and configure the motion card parameters according to the PLC type parameters, and save them as a configuration file;
[0106] The UI design module is used to design the operation page through the UI designer provided by the system platform, and to associate the IO file and the configuration file through the UI component to determine the UI operation interface.
[0107] Reference Fig.21 , shows a computer device of an industrial automation control method of the present invention, which may specifically include the following:
[0108] The computer device 12 is in the form of a general-purpose computing device, and the components of the computer device 12 may include but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0109] The bus 18 represents one or more of several types of bus 18 structures, including a memory bus 18 or memory controller, a peripheral bus 18, an accelerated graphics port, a processor or a local bus 18 using any of a variety of bus 18 architectures. These architectures include, by way of example, but are not limited to, an Industry Standard Architecture (ISA) bus 18, a Micro Channel Architecture (MAC) bus 18, an Enhanced ISA bus 18, an Audio Video Electronics Standards Association (VESA) local bus 18, and a Peripheral Component Interconnect (PCI) bus 18.
[0110] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0111] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (commonly referred to as a "hard drive"). Although Fig.21 Not shown, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory may include at least one program product having a set (e.g., at least one) of program modules 42, which are configured to perform the functions of various embodiments of the present invention.
[0112] A program / utility 40 having a set (at least one) of program modules 42 may be stored in, for example, a memory, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules 42, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0113] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, cameras, etc.), one or more devices that enable medical personnel to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs)), wide area networks (WANs), and / or public networks (e.g., the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that although Fig.21 Not shown, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units 16, external disk drive arrays, RAID systems, tape drives, and data backup storage systems 34, etc.
[0114] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the industrial automation control method provided by the embodiment of the present invention.
[0115] That is, when the processing unit 16 executes the program, the following is achieved: creating a new project instance on a preset system platform or importing an existing project instance; in the project instance, setting the PLC type parameters associated with the lower computer PLC through a preset UI interface, and configuring the device control and operation logic according to the PLC type parameters, and saving them as an IO file; selecting a motion card type that matches the industrial equipment, and configuring the motion card parameters according to the PLC type parameters, and saving them as a configuration file; designing the operation page through the UI designer provided by the system platform, and associating the IO file and the configuration file through the UI component to determine the UI operation interface.
[0116] In an embodiment of the present invention, the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the industrial automation control method provided in all embodiments of the present application is implemented:
[0117] That is, when the program is executed by the processor, it is implemented as follows: creating a new project instance on a preset system platform or importing an existing project instance; in the project instance, setting the PLC type parameters associated with the lower computer PLC through a preset UI interface, and configuring the device control and operation logic according to the PLC type parameters, and saving them as an IO file; selecting the motion card type that matches the industrial equipment, and configuring the motion card parameters according to the PLC type parameters, and saving them as a configuration file; designing the operation page through the UI designer provided by the system platform, and associating the IO file and the configuration file through the UI component to determine the UI operation interface.
[0118] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPOM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device.
[0119] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0120] The computer program code for performing the operation of the present invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the medical staff computer, partially on the medical staff computer, as an independent software package, partially on the medical staff computer, partially on the remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the medical staff computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.
[0121] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0122] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0123] The above is a detailed introduction to an industrial automation control method, device, equipment and medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An industrial automation control method, characterized in that: include: Create a new project instance or import an existing project instance on the preset system platform; In the project example, through the preset UI interface, set the PLC type parameters associated with the lower-level PLC, and configure the device control and operation logic according to the PLC type parameters, and save them as IO files; Select the motion card type that matches the industrial equipment, configure the motion card parameters according to the PLC type parameters, and save as a configuration file; The operation page is designed through the UI designer provided by the system platform, and the IO file and the configuration file are associated with the UI component to determine the UI operation interface.
2. The method according to claim 1, characterized in that The creating of a new project instance or importing of an existing project instance on a preset system platform includes: Based on the window platform, using the CS architecture and .net framework4.8 framework, create the corresponding project as a new project instance in a project-based manner, or select the corresponding project instance from the Import Project dialog box.
3. The method according to claim 1, characterized in that In the project example, the PLC type parameters associated with the lower computer PLC are set through the preset UI interface, and the device control and operation logic are configured according to the PLC type parameters and saved as an IO file, including: In the project example, through the preset UI interface, set the IP address, PLC port number, timeout period and PLC type parameters of the PLC associated with the lower computer PLC; Scan the planning area according to the PLC type parameters and determine the planning table. According to the planning table including the PLC virtual axis, the input and output IO of the first axis, and the enable, return to origin, JOG+, JOG-, reset, and emergency stop parameters, configure the device control and operation logic and save them as an IO file.
4. The method according to claim 1, characterized in that: The selecting of the motion card type matching the industrial equipment and configuring the motion card parameters according to the PLC type parameters and saving the configuration file include: Select the motion card type that matches the industrial equipment, and configure the motion card parameters including the positive motion IP version, motion card IP, TCP communication protocol, virtual axis and motion path for each motion card according to the PLC type parameters, and save them as configuration files.
5. The method according to claim 1, characterized in that The operation page design is performed by the UI designer provided by the system platform, and the IO file and the configuration file are associated with the UI component to determine the UI operation interface, including: Using the UI designer provided by the system platform, create an interface of a specified page size, design the required screen, and drag and drop the preset UI components into the screen; Associate IO files and configuration files through UI components, establish a WebSocket server, and communicate through the WS protocol to obtain the system internal address, operate the internal address, and determine the system log, including buttons, indicator lights, and values corresponding to the system internal address. The system address can be bound to display and control; Release the UI operation interface and determine the UI operation interface, which can operate and monitor the device movement on the screen.
6. The method according to claim 1, characterized in that Before designing the operation page through the UI designer provided by the system platform and determining the mapping relationship between the UI component and the IO file and the configuration file, the method further includes: In the project example, a KV server is established through the TCP protocol, and a port for a third-party client is provided; The address of the KV server is configured to correspond to the binding relationship between the IO file and the variables of each parameter in the configuration file; When the KV server is started, the monitoring service is started according to the IP address and logs are recorded; The KV server reads the IP address value in the configuration file through a variable, or writes the IP address of the server into a variable and saves it to the configuration file.
7. The method according to claim 1, characterized in that The planning area is scanned according to the PLC type parameters and the planning table is determined. According to the planning table, the PLC virtual axis, the input and output IO of the first axis, and the enable, return to origin, JOG+, JOG-, reset, and emergency stop parameters are configured to configure the equipment control and operation logic, and saved as an IO file, including: Configure the PLC address according to the PLC type parameters of the IO, cylinder, servo and axis including the input and output of the equipment, scan the planning area and make sure that the PLC address information is accurately written into the planning table; Generate a virtual axis list according to the number of axes of the equipment in the planning table, configure the internal address of the system through each axis input and output IO, including calculating the corresponding function address of each axis by cyclic increment, and write enable, return to origin, JOG+, JOG-, and function name into the internal variable address comment of the system for binding; and Through the preset IP annotation, the hardware IO information corresponding to the device, and the JSON format data exported by the IO annotation tool, the deserialization operation is performed to obtain the information and display it in the list, and the IO quantity and data width required for each device station are calculated, and the number of hardware binding addresses is calculated according to the IO input and output point occupation of the hardware, and the corresponding system internal address of the corresponding hardware input and output is calculated according to the set first address. Write the device motion control according to the preset rules, and include the following conditions: loop execution condition judgment condition, test counter address is 1 and execute simultaneously, counter 1 address, counter 2 address, counting function and delay 1 second control logic, and configure and save the IO file of the IO stream operation of the window.
8. An industrial automation control device, characterized in that: include: Project instance module, used to create new project instances or import existing project instances on the preset system platform; The project configuration module is used to set the PLC type parameters associated with the lower-level PLC through the preset UI interface in the project instance, and configure the device control and operation logic according to the PLC type parameters, and save them as IO files; The device association module is used to select the motion card type that matches the industrial equipment, and configure the motion card parameters according to the PLC type parameters, and save them as a configuration file; The UI design module is used to design the operation page through the UI designer provided by the system platform, and to associate the IO file and the configuration file through the UI component to determine the UI operation interface.
9. A device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method according to any one of claims 1 to 7 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
