General control system establishment method
By establishing a visual general control system, the problem of programming difficulties of different sports boards is solved, and compatible programming control of various control cards is realized, and programming efficiency and compatibility are improved.
Patent Information
- Application Number
- CN202411936971.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-11
AI Technical Summary
The motion control of existing automation equipment requires engineers to be familiar with the encoding methods of sports boards of different manufacturers or models, which leads to programming difficulties. The encoding library of different boards and cards is diverse and there is a lack of a general control system.
By establishing a visual universal control system, including a low-code process designer, process debugging engine, host computer, data sharing and exchange module, controller driver and communication module, compatible programming control of various sports boards is achieved.
It realizes that users can program through low-code interfaces, reduces their dependence on different sports board encoding methods, and improves the programming efficiency and compatibility of motion control of automated equipment.
Smart Images

Figure CN119806002A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an improvement of automatic programming control technology, in particular to a method for establishing a universal control system. Background Art
[0002] The motion control of automation equipment on the market is generally controlled by PLC, control card inserted in industrial computer or motion board inserted in computer. The motion board needs computer to communicate with it, and then the motion board performs motion programming control on the automation equipment. However, the coding methods of motion boards of different manufacturers or different models of the same manufacturer are different. Engineers need to be familiar with the coding methods and contents of different boards to realize the programming actions of the motion boards. However, the content and types of the coding libraries of motion boards on the market are different, which also leads to difficulties in the action programming of different motion boards. Therefore, how to enable engineers to program through a visual general control system to complete the programming of various motion boards and then realize the motion control design of automation equipment is a technical problem to be solved.
[0003] Patent content
[0004] In response to the problems mentioned in the technical background, the purpose of this patent is to provide a method for establishing a universal control system. By establishing a visual universal control system, designers can realize the motion control design of automation equipment through a lightweight coded interface.
[0005] The technical solution of the present invention is as follows: A method for establishing a general control system, characterized in that it includes a low-code process designer, a process debugging engine and a host computer; it also includes a data sharing exchange module, a controller driver and a communication module;
[0006] The low-code process designer includes parts management, debugging packaging, resource grouping and process design;
[0007] The process debugging engine includes device configuration loading, process parsing and process running;
[0008] The host computer includes an operation interface and an integrated process parsing engine;
[0009] The data sharing exchange module includes motion control communication protocol, controller driver configuration, device configuration and module communication protocol;
[0010] The controller driver includes control card driver service A and control card driver service B;
[0011] The communication module includes an acquisition card and a galvanometer, and communicates through TCP, S7, modbusTcp, OPCUA, COM, and profinet communication protocols;
[0012] The debugging execution process of the process debugging engine includes part creation; copying the corresponding module code from the parts library according to the created parts during debugging; compiling and packaging the module codes involved in the project into a library; and putting the compiled library into the debugging engine for execution.
[0013] Preferably, the parts include physical nodes corresponding to the entity physical parts of the device; logical nodes of non-physical parts that only participate in logical operations; and internal logic of the parts encapsulated by code.
[0014] Preferably, the properties of a part include basic properties, input properties and output properties.
[0015] Preferably, the low-code process designer, process debugging engine, host computer, data sharing and exchange module, controller driver and communication module can interact through global variables, and the global variables include declaring global variables, conditional judgment, assigning values to global variables, and assigning global variables to part variables.
[0016] Preferably, the part variables include instance variables of the part generated according to rules when creating resources, participating in conditional expression calculations on the process, and the output variables of the part can be assigned to global variables or input variables of other parts.
[0017] Preferably, the automated startup process method comprises the following steps:
[0018] Step 1: Engine service, including engine startup, establishing communication connection, initializing configuration data, alarm monitoring thread, emergency stop monitoring thread and alarm program working thread;
[0019] Step 2: Clear the alarm;
[0020] Step 3: Initialize the operation, alarm and check other conditions, if the conditions are met, execute back to the original process work thread;
[0021] Step 4: Start the automated process work thread.
[0022] Preferably, the communication protocol includes global configuration, part instruction data, global instruction data and drive connection heartbeat; the global configuration includes the brand and model of the control card, the composition of equipment parts and the operation button configuration and the global configuration including the part axis number and IO number; the part instruction data includes the input parameters of the part and the output parameters of the part; the global instruction data includes the instruction data sent by the lower computer to the upper computer and the instruction data sent by the upper computer to the lower computer.
[0023] The beneficial effect of the universal control system establishment method of the present invention is that by establishing a low-code process designer, a process debugging engine, data sharing exchange and controller drive communication, various control cards are made compatible, thereby realizing the low-code user programming interface and compatible programming control of various control cards. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a schematic diagram of the main flow chart of the system use of the present invention;
[0025] Figure 2 It is a schematic diagram of the system technology architecture of the present invention;
[0026] Figure 3 It is a schematic diagram of the debugging code generation process of the present invention;
[0027] Figure 4 It is a schematic diagram of the parts classification of the present invention;
[0028] Figure 5 It is a schematic diagram of the properties of the parts of the present invention;
[0029] Figure 6 A state flow diagram for executing the parts of the present invention;
[0030] Figure 7 This is a schematic diagram of value transfer between parts;
[0031] Figure 8 Construct a schematic diagram for global variables;
[0032] Fig. 9 It is the private variable diagram of the part;
[0033] Fig.10 It is a schematic diagram of the motion action of the device state machine;
[0034] Fig.11 A schematic diagram of the process for starting the automation process;
[0035] Fig.12 This is a schematic diagram of the module execution principle;
[0036] Fig.13 This is a schematic diagram of the process execution engine and the underlying driver communication protocol. Specific implementation methods
[0038] like Figure 1As shown, the general control system establishment method of the present invention adopts a main process including project management, configuration control card connection, resource creation, resource grouping and process flow; wherein project management specifically includes project creation, project editing and program design; configuration control card connection includes connection configuration; resource creation includes resource creation, resource deletion, resource modification and resource debugging; resource grouping and group maintenance; process flow design includes single-station flow, inter-station flow, variable management, process monitoring, variable monitoring and operation log; resource creation is to load the corresponding motion axis resource module according to the configured control card; as shown in FIG. Figure 2 As shown, the technical architecture used in the specific implementation includes a low-code process designer, a process debugging engine, and a host computer; it also includes a data sharing exchange module, a controller driver, and a communication module;
[0039] The low-code process designer includes parts management, debugging packaging, resource grouping and process design;
[0040] The process debugging engine includes device configuration loading, process parsing and process running;
[0041] The host computer includes an operation interface and an integrated process parsing engine;
[0042] The data sharing exchange module includes motion control communication protocol, controller driver configuration, device configuration and module communication protocol;
[0043] The controller driver includes control card driver service A and control card driver service B;
[0044] The communication module includes an acquisition card and a galvanometer, and communicates through TCP, S7, modbusTcp, OPCUA, COM, and profinet communication protocols;
[0045] like Figure 3 As shown, the debugging execution process of the process debugging engine includes part creation; copying the corresponding module code from the part library according to the created parts during debugging; compiling and packaging the module codes involved in the project into a library; and putting the compiled library into the debugging engine for execution.
[0046] like Figure 4 As shown, the parts include physical nodes corresponding to the physical parts of the device, corresponding to the physical parts of the device; logical nodes in which non-physical parts only participate in logical operations; and code encapsulation of the internal logic of the parts, such as sensors. The program loop reads the collected physical signals and converts them into logical signals for output (rising edge, falling edge, etc.).
[0047] like Figure 5As shown, the property structure of a part includes basic properties, input properties and output properties; basic properties may include inherent driving properties of parts such as axis and IO; basic properties also include internal inherent properties of a part, such as part name and part type; input properties include input properties displayed on the connection line of the process design page, which can be read and written; displayed in read-only mode on the part body of the process design page; input properties of the part and also input properties of the drive, such properties are displayed in read-write mode on the connection line, and such properties are displayed in read-only mode on the part body; output properties are only displayed in read-only mode on the process design page.
[0048] like Figure 6 As shown, the execution status switching of the parts includes not executed / unlocked after the workstation is initialized, execution starts / locked after the connection line flow conditions are met / no connection line conditions are met directly, completion is completed after the actuator logic is executed, and the output is used up by the lower-level flow / no lower-level flow / unlocks the specified component in the process and then returns to not executed / unlocked.
[0049] like Figure 7 As shown in the figure, the value transfer between parts includes copying output variables, input parameters, Current and output variables; when the connection line condition from the source node to the target node is met and the target node is not locked, the source node will generate an output copy to the target node; the input parameters participating in the operation on the target part are copies of the output parameter values of the source node, so that the output of the same source can be used on multiple target parts without affecting each other, and the input parameter copies of the corresponding targets are cleared after use; when the source node outputs, only copies are generated for the target nodes in the unlocked state. If the target node is in the locked state, polling and waiting will continue until all subordinate nodes of the source node are processed.
[0050] The low-code process designer, process debugging engine, host computer, data sharing exchange module, controller driver and communication module can interact through global variables, such as Figure 8 As shown, the global variables include declaring global variables, conditional judgment, assigning values to global variables, and assigning global variables to part variables; declaring global variables includes variable type, initial value, variable name, variable description and variable title; conditional judgment participates in conditional expression calculation; assigning values to global variables includes selecting the global variables to be assigned on the connecting line, assigning values to the selected variables, and writing expressions; it also includes selecting global variables on parts for assignment and assignment conditions, and assigning global variables to part variables is included in all assignment expressions.
[0051] like Fig. 9As shown, the part variables include instance variables of the part generated according to the rules when creating resources (variable type, optional value, etc. inherit the definition in the component library), the output variables of the part that participate in the conditional expression calculation in the process, and the global variables or the input variables of other parts can be assigned;
[0052] like Fig.10 As shown, the device state machine is in the state of checking initialization conditions by default. In the standby state, variables are initialized, the engine is initialized, alarms are reset and returned to the original state. After startup, it is determined whether it is in automatic mode. The running process nodes are parsed during runtime. If the initialization conditions are not met, an emergency stop is performed. That is, when the entire set of monitoring detects an alarm, the device state is automatically updated to an emergency stop.
[0053] like Fig.11 As shown, the automated startup process method includes the following steps:
[0054] Step 1: Engine service, including engine startup, establishing communication connection, initializing configuration data, alarm monitoring thread, emergency stop monitoring thread and alarm program working thread;
[0055] Step 2: Clear the alarm;
[0056] Step 3: Initialize the operation, alarm and check other conditions, if the conditions are met, execute back to the original process work thread;
[0057] Step 4: Start the automated process work thread.
[0058] The module execution principle is as follows Fig.12 As shown, the connection line can be configured with execution conditions from the source node to the target node. Combined with the expression engine, users can customize the flow conditions between parts on the process design page. When the conditions are met, the events specified on the connection line are triggered; the script engine provides logical relationship operations such as AND, CONNECT, or OR. The part component defines all executable event logics, and different events have different event identification values. The input and output parameters of the parts are designed according to the characteristics of the parts. The input and output parameters of the parts will be cached and passed and used during the life cycle.
[0059] like Fig.13 As shown, the communication protocol includes global configuration (common parameters), global command data and drive connection heartbeat; the global configuration includes the brand and model of the control card, the composition of equipment parts and the operation button configuration and the global configuration including the part axis number and IO number; the part command data includes the input parameters of the part and the output parameters of the part; the global command data (operation button) includes the command data sent from the lower computer to the upper computer (hard operation), for example: 0: initial standby state, 1: pause, 2: emergency stop, 3: reset, 4: automatic start: 5: continue; it also includes the command data (soft operation) sent from the upper computer to the lower computer, for example: pause and emergency stop.
Claims
1. A method for establishing a general control system, characterized in that: It includes a low-code process designer, a process debugging engine and a host computer; it also includes a data sharing exchange module, a controller driver and a communication module; The low-code process designer includes parts management, debugging packaging, resource grouping and process design; The process debugging engine includes device configuration loading, process parsing and process running; The host computer includes an operation interface and an integrated process parsing engine; The data sharing exchange module includes motion control communication protocol, controller driver configuration, device configuration and module communication protocol; The controller driver includes control card driver service A and control card driver service B; The communication module includes an acquisition card and a galvanometer, and communicates through TCP, S7, modbusTcp, OPCUA, COM, and profinet communication protocols; The debugging execution process of the process debugging engine includes part creation; during debugging, the corresponding module code is copied from the parts library according to the created parts; Compile and package the module codes involved in the project into a library; put the compiled library into the debugging engine for running.
2. The method for establishing a universal control system according to claim 1, characterized in that: The parts include physical nodes corresponding to the physical parts of the device; logical nodes of non-physical parts that only participate in logical operations; and internal logic of the parts encapsulated by code.
3. The method for establishing a universal control system according to claim 1, characterized in that: The properties of a part include basic properties, input properties and output properties.
4. The method for establishing a universal control system according to claim 1, characterized in that: The low-code process designer, process debugging engine, host computer, data sharing and exchange module, controller driver and communication module can interact through global variables, which include declaring global variables, conditional judgment, assigning values to global variables, and assigning values of global variables to part variables.
5. The method for establishing a universal control system according to claim 4, characterized in that: The part variables include instance variables of the part generated according to rules when creating resources, conditional expression calculations that participate in the process, and output variables of the part that can be assigned to global variables or input variables of other parts.
6. The method for establishing a universal control system according to claim 1, characterized in that: The automated startup process method includes the following steps: Step 1: Engine service, including engine startup, establishing communication connection, initializing configuration data, alarm monitoring thread, emergency stop monitoring thread and alarm program working thread; Step 2: Clear the alarm; Step 3: Initialize the operation, alarm and check other conditions, if the conditions are met, execute back to the original process work thread; Step 4: Start the automated process work thread.
7. The method for establishing a universal control system according to claim 1, characterized in that: The communication protocol includes global configuration, part instruction data, global instruction data and drive connection heartbeat; the global configuration includes the brand and model of the control card, the composition of equipment parts, the operation button configuration and the global configuration including the part axis number and IO number; the part instruction data includes the input parameters of the part and the output parameters of the part; the global instruction data includes the instruction data sent by the lower computer to the upper computer and the instruction data sent by the upper computer to the lower computer.