Modularized control method, device and system for automation equipment
By dividing the automated equipment into general functional modules and using structured program blocks and abnormal alarm levels to adjust the operating status labels, the problems of high control costs and low maintenance efficiency in the existing technology are solved, and modular control and efficient maintenance are realized.
Patent Information
- Application Number
- CN202511663083.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-13
- Publication Date
- 2026-01-23
AI Technical Summary
Existing control methods for automated equipment suffer from high costs, complex programs, and the inability to achieve individual control of each unit, or the need to stop the operation of other units when individual control is not possible.
By adopting a modular control method, identical equipment components in automated equipment are divided into general functional modules, and control is carried out using general control programs and structured program blocks. The operating status labels are adjusted according to the operating status monitoring and abnormal alarm levels, so as to realize the individual control and troubleshooting of each automated system.
It reduces control costs and development complexity, improves equipment maintenance efficiency, ensures that a single system failure does not affect the normal operation of other systems, and reduces equipment downtime.
Smart Images

Figure CN121386593A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of automation equipment, in particular to a modular control method, device and system of automation equipment. BACKGROUND
[0002] This section is intended to provide background or context to the embodiments of the application recited in the claims. The description herein does not constitute admission of prior art.
[0003] There are mainly two kinds of control methods for existing automation equipment including multiple repetitive or similar units. The first kind is to configure a programmable logic controller (PLC) for each repetitive or similar unit, and to build a control system for each unit to realize individual control. This method has high control system cost and complex program, and the program is difficult to be universal if the units are not completely the same. The second kind is to configure only one PLC and build a control system. This method can only realize overall control and cannot realize individual control of each unit. If one unit needs to be maintained, the remaining units also need to be stopped. SUMMARY
[0004] The purpose of the present application is to provide a modular control method of automation equipment, which saves control cost and improves equipment maintenance efficiency. The purpose of the present application is to provide a modular control device of automation equipment. The purpose of the present application is to provide a modular control system of automation equipment.
[0005] In order to achieve the above purpose, one aspect of the present application discloses a modular control method of automation equipment, the automation equipment includes multiple automation systems, the multiple automation systems include at least one general function module, each general function module includes the same equipment component, and the control method includes: The general function module is controlled to execute corresponding module functions by a preset structured program block based on a running state label of the general function module through a general control program, and the equipment component in the general function module is correspondingly provided with at least one structured program block; The running state of the general function module is monitored, and the abnormal alarm level of the abnormal alarm in the general function module is determined based on the monitoring result of the running state; The running state label of the general function module is adjusted based on the abnormal alarm level.
[0006] Preferably, the automation system further includes a special function module, and the method further includes: The specific function module is controlled by a preset specific function program block to execute corresponding module functions, and execution result information is formed to enable the general control program to control the specific function module or the general function module in the corresponding automation system to execute corresponding module functions based on the execution result information.
[0007] Preferably, the method further comprises the step of pre-dividing the automation equipment into the automation systems and the general function modules: determining all equipment components in the automation equipment and communication relationships between the equipment components; dividing the same equipment components into different automation systems respectively; dividing the same equipment components and the equipment components having communication relationships in each automation system into at least one general function module respectively, wherein a plurality of equipment components existing in at least two automation systems are divided into one general function module of the corresponding automation system respectively.
[0008] Preferably, the method further comprises the step of setting a general control program for the general function module: correspondingly setting a plurality of types of structured program blocks for each equipment component in the general function module, wherein the same equipment components have one structured program block; setting a running control program for all equipment components in the general function module, including the structured program blocks to be called by each equipment component and the communication control program of the equipment components having communication relationships.
[0009] Preferably, the adjusting of the running state tag of the general function module based on the abnormal alarm level comprises: if the abnormal alarm level is a prompt, the running state tag is not changed, a prompt alarm information is generated and fed back to the staff; if the abnormal alarm level is a light alarm, the running state tag is set to initialization to enable the general control program to call a preset structured program block based on the initialized running state tag to control the equipment components in the general function module to initialize; if the abnormal alarm level is a heavy alarm, the running state tag is set to stop to enable the general control program to stop controlling the general function module to execute corresponding module functions based on the stopped running state tag.
[0010] Preferably, the abnormal alarm comprises equipment component level alarm, module level alarm and system level alarm. when the abnormal alarm is a light alarm of a component-level alarm, initializing the device component of which the abnormal alarm is controlled in the general function module; when the abnormal alarm is a light alarm of a module-level alarm, initializing all device components of the corresponding general function module; when the abnormal alarm is a light alarm of a system-level alarm, initializing all device components of the corresponding automation system; when the abnormal alarm is a heavy alarm of a component-level alarm, stopping the operation of the device component of which the abnormal alarm is controlled and the device component having a dependency relationship; when the abnormal alarm is a heavy alarm of a module-level alarm, stopping the operation of the general function module of which the abnormal alarm is controlled and the device component or general function module having a dependency relationship; when the abnormal alarm is a heavy alarm of a system-level alarm, stopping the operation of the automation system of which the abnormal alarm is controlled and the automation system having a dependency relationship.
[0011] Preferably, when a new system is added, the method comprises: identifying all device components in the new system; determining whether there is a same general function module based on all device components and the device components having a communication relationship; if there is, forming a general function module of the new system, adding the operation control program of the general function module of the new system in the general control program; dividing the new system device components not divided into the general function module into a dedicated function module, setting a corresponding dedicated function block, and setting a corresponding communication control program in the general control program.
[0012] Preferably, the type of the structured block comprises at least one of a function class structured block, a state class structured block and a flow class structured block.
[0013] Another aspect of the present application discloses a modular control device of an automation equipment, the automation equipment comprising a plurality of automation systems, the plurality of automation systems comprising at least one general function module, each of the general function modules comprising the same device components, the modular control device being configured to control the general function modules in the plurality of automation systems to perform corresponding module functions based on an operation state tag of the general function module by calling a preset structured block through a general control program, the device components in the general function module being correspondingly provided with at least one structured block; monitoring the operation state of the general function module, determining an abnormal alarm level of an abnormal alarm in the general function module based on the monitoring result of the operation state; and adjusting the operation state tag of the general function module based on the abnormal alarm level.
[0014] Still another aspect of the present application discloses an automation system comprising the modular control device of an automation equipment as described above.
[0015] The beneficial effects of the present application are as follows: The modular control method of the automatic equipment of the present application divides the same or similar automatic systems in the automatic equipment into general modules, divides the same equipment components existing in each automatic system into a general function module of each system, and then the general function modules in the multiple automatic systems can share the same set of structured program blocks, adopt the same running control logic, realize control logic reuse based on the preset structured program blocks, and do not need to repeatedly write control logic for each automatic system and equipment component, thereby reducing development and control costs. Further, the running state tags corresponding to the multiple levels of abnormal alarm levels of the running state of the automatic system are set, so that the general control program can take different measures for the corresponding automatic system based on the running state tags corresponding to the different abnormal alarm levels, so as to realize the purpose that the abnormality of one automatic system does not affect the normal operation of other automatic systems, and the single automatic system can be controlled and fault-removed modularly, without the need of stopping the whole equipment, thereby improving the equipment maintenance efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor. In the drawings: Figure 1 A flowchart of an embodiment of the modular control method of the automatic equipment of the present application is shown; Figure 2 A flowchart of an embodiment S000 of the modular control method of the automatic equipment of the present application is shown; Figure 3 A top view structural diagram of an embodiment of the modular control method of the automatic equipment of the present application is shown; Figure 4 A flowchart of an embodiment S011-S012 of the modular control method of the automatic equipment of the present application is shown; Figure 5 A specific flowchart of an embodiment S210-S230 of the modular control method of the automatic equipment of the present application is shown; Figure 6 A system flowchart of an embodiment of the modular control method of the automatic equipment of the present application is shown; Figure 7 A specific flowchart of an embodiment S500 of the modular control method of the automatic equipment of the present application is shown; Figure 8 A structural schematic of a computer device suitable for implementing embodiments of the present application is shown. DETAILED DESCRIPTION
[0017] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B; "and / or" in the text only represents a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which means that there are three cases of A alone, A and B together, and B alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0018] It should be understood that the terms "first", "second" and the like in the specification and claims of the present application and the drawings are used to distinguish different objects, and are not used to describe a particular order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, article, or programmable logic device that includes a series of steps or units is not limited to the steps or units listed, but can optionally include steps or units not listed, or can optionally include other steps or units inherent to these processes, methods, articles, or programmable logic devices.
[0019] In the present application, "embodiment" means that the specific features, structures or characteristics described in conjunction with the embodiment can be included in at least one embodiment of the present application. The appearance of this phrase at various places in the specification does not necessarily mean the same embodiment, nor is it an independent or alternative embodiment to other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in the present application can be combined with other embodiments.
[0020] In order to solve at least one of the problems existing in the prior art, according to one aspect of the present application, the embodiments disclose a modular control method of an automation device. As shown in Figure 1 In the embodiments, the automation device includes a plurality of automation systems, at least one general function module is included in the plurality of automation systems, the same device components are included in each general function module, and the control method includes: S100: calling a preset structured program block based on the running state label of the general function module through a general control program to control the general function module in the plurality of automation systems to perform corresponding module functions, and the device components in the general function module are correspondingly provided with at least one structured program block.
[0021] The running state label shows whether the current state of the general function module is normal, the general control program reads the running state label, and the current running state of the general function module can be parsed from the running state label to select the structured program block required for the current running state of the device component in the general function module based on the running state of the general function module and call the structured program block to control the calling function module to perform the corresponding function.
[0022] The structured program block is a preset minimum program unit that can control the device component in the general function module to complete the corresponding function, and each device component in the general function module corresponds to at least one structured program block, so that the module functions of each device component are controlled by the corresponding program unit, and the setting of the structured program block of the device component can be realized by existing programming means, which is a conventional technical means in the art and will not be described here.
[0023] The general control program first acquires the running state label of the general function module, determines the function to be executed according to the running state label, calls the program unit corresponding to the module function from the preset structured program block, and executes the corresponding module function. For example, when the running state label requires the device component of the general function module to be initialized, the initialization structured program block corresponding to the device component is called to complete the start of the device component. Therefore, the general control program can control the running of the same general function module in multiple automation systems by using a set of structured program blocks for module function running control, without the need to separately set the control program, reducing repeated program writing and development cost. At the same time, by modifying the program of the structured program block, the running control program of the same device component can be quickly adjusted without the need to separately adjust the control program of each system component device, improving the operation and maintenance efficiency.
[0024] S200: Monitor the running state of the general function module, and determine the abnormal alarm level of the abnormal alarm in the general function module based on the running state monitoring result.
[0025] The application monitors the running state of the general function module, acquires the data running state monitoring result including the real-time parameters of the device component, the communication state between the device components, and the execution effect of the module function, judges whether the device component is abnormal, and when the running state monitoring result shows that the general function module is abnormal, grades the severity of the abnormality based on the preset judgment rule to take corresponding measures according to the abnormal alarm level, ensures the running stability of the device, reduces or avoids the downtime of the device, and improves the operation and maintenance efficiency.
[0026] S300: Adjust the running state label of the general function module based on the abnormal alarm level.
[0027] The general control program presets the corresponding rule of the abnormal alarm level and the running state label, and labels the general function module according to the abnormal severity, so as to realize the purpose of individual control of each general function module based on the running state, and the abnormal maintenance of the general function module in one system does not affect the normal operation of the general function module in other systems.
[0028] In summary, the modular control method of the automatic equipment divides the general modules in multiple same or similar automatic systems in the automatic equipment, divides the same equipment components existing in each automatic system into one general function module of each system, and then the general function modules in multiple automatic systems can share the same structured program block, adopt the same running control logic, realize the control logic reuse based on the preset structured program block, and do not need to repeatedly write the control logic for each automatic system and equipment component, thereby reducing the development and control costs. Further, the running state label corresponding to the multiple abnormal alarm levels is set for the running state of the automatic system, so that the general control program can take different measures for the corresponding automatic system based on the running state label corresponding to the different abnormal alarm levels, and the purpose that the abnormality of one automatic system does not affect the normal operation of other automatic systems is realized, and the single automatic system can be modularly controlled and fault-removed, and the whole equipment does not need to be stopped, thereby improving the equipment maintenance efficiency.
[0029] In an optional embodiment, the automatic system further includes a special function module, and the method further includes: S400: control the special function module to execute the corresponding module function through the preset special function program block, and form execution result information to enable the general control program to control the special function module or the general function module in the corresponding automatic system to execute the corresponding module function based on the execution result information.
[0030] Specifically, the exclusive function module is a function module that exists independently in a system, is formed by device components that cannot be divided into general function modules, and is used to implement special function requirements in specific scenarios. The exclusive function module is controlled by a pre-written exclusive function program block to execute corresponding module functions to generate execution result information containing information such as whether the operation is completed. Other exclusive function modules or general function modules need to determine the structured program block required for the next function implementation according to the execution result information, so that the general control program can determine the program block running of the next exclusive function module or general function module based on the execution result information to implement the corresponding function and execute the corresponding module function. For example, for a plurality of pipeline product detection automation systems, the first automation system and the last automation system each include exclusive function modules for taking and placing materials, and the intermediate automation systems do not include the two exclusive function modules. The taking exclusive function module in the first automation system needs to control the taking function through the taking exclusive function program block, and after the taking function is completed, the execution result information of the taking completion is formed. The general control program determines the next function module to run based on the execution result information and controls the next function module to run by calling the program block.
[0031] In an optional embodiment, as shown in Figure 2 The method further includes the step S000 of pre-dividing the automation devices into modules to obtain the automation system and the general function modules. S010: Determine all device components in the automation devices and the communication relationship between the device components.
[0032] Specifically, it can be understood that each automation device can include a plurality of identical or similar automation systems, each automation system includes a plurality of device components, and the plurality of device components have direct or indirect communication relationship, that is, there is information interaction between the plurality of device components. This information interaction can be direct interaction or indirect interaction. For example, there is information interaction between component device A and component device B, and component device A and B have direct information interaction. Component device B also has information interaction with component device C, and component device B and C have direct information interaction. Component device A and C have indirect information interaction. Component devices in a general automation system usually have direct information interaction or indirect information interaction.
[0033] Thus, in this embodiment, all independent device components in the automation equipment can be detected, and the communication relationship between different device components is determined, and the device components having direct or indirect communication relationship are divided into one automation system, for example, the execution result information of the material taking completed by the robot needs to be transmitted to the corresponding test equipment, and there is a communication relationship between the robot and the corresponding test equipment, and the robot and the corresponding test equipment belong to the same automation system.
[0034] S020: The same device components are respectively divided into different automation systems.
[0035] Specifically, in order to determine the range of the automation system existing in the automation equipment, the device components having the same function and specification existing in multiple automation systems are respectively divided into different automation systems, for example, the automation equipment includes three automation systems, and each automation system has a robot, and then the same type of robots are respectively divided into the three automation systems, and all device components are divided into systems according to the communication relationship between each other, and finally the device components included in the three automation systems are obtained, and the system division is completed.
[0036] S030: The same and communication-related device components in each automation system are respectively divided into at least one general function module, wherein the multiple device components existing in at least two automation systems are respectively divided into one general function module in the corresponding automation system.
[0037] Specifically, in order to control the device components existing in multiple automation systems through the same program and reduce the program development cost, the same device components in the automation system are first classified, and a device component combination having multiple same device components exists in at least two automation systems, that is, one or more general function modules are set according to the device component combination. Among them, the device component combination can be set as one general function module, or the device component combination can be divided into multiple general function modules according to the implementation function and other standards, so as to realize the flexible modular operation control of the system through multiple modules and independent control of each module.
[0038] For example, Figure 3As shown, in one embodiment, the automation device includes three automation systems, automation system A, automation system B and automation system C. Automation system A includes a plurality of device components: 1.1 and 1.2 are human-machine interfaces, 1.3 is a robot, 1.4 is test machines 1 to 6, 1.5 is a belt, 1.6 is a re-feeding right-angle arm, and the rest are emergency stop buttons, safety doors and code scanners. Automation system B includes a plurality of device components: 2.1 and 2.2 are human-machine interfaces, 2.3 is a robot, 2.4 is test machines 7 to 12, 2.5 is a belt, and the rest are emergency stop buttons, safety doors and code scanners. Automation system C includes a plurality of device components: 3.1 and 3.2 are human-machine interfaces, 3.3 is a robot, 3.4 is test machines 13 to 18, 3.5 is a belt, 3.6 is a defective product detection right-angle arm, 3.7 is a storage right-angle arm, and the rest are emergency stop buttons, safety doors and code scanners.
[0039] Automation system A, automation system B and automation system C all have belts, robots and test machines. After the belt delivers the material to the designated position, it sends a signal to the robot that the material is in place. The robot receives the signal and picks up the material, places it in the test machine and sends a test instruction to the test machine for testing. The belt, robot and test machine are in a communication relationship and belong to the same automation system. Meanwhile, the belt, robot and test machine are present in all three automation systems. Therefore, these three device components can be divided into general function modules for product testing in automation systems A, B and C.
[0040] In an optional embodiment, as shown in Figure 4 The method further includes the step of setting a general control program for the general function module. S011: Correspondingly setting a plurality of types of structured program blocks for each device component in the general function module, wherein the same device component corresponds to one structured program block.
[0041] Specifically, a plurality of types of structured program blocks can be preset based on the types of functions that each device component in the general function module needs to implement. Device components with the same function use the same at least one type of structured program block. For example, the belt conveying motor is included in the general function module. The control logic of the belt conveying motor for starting, stopping and speed adjustment is the same. Therefore, the running control of starting, stopping and speed adjustment can correspond to different structured program blocks. Therefore, a plurality of types of structured program blocks for belt control can be set for each general function module, and there is no need to write program control for each belt separately.
[0042] If the programs of the structured program blocks of one type are the same for different device components, the different device components can share the same structured program block. For example, the start control programs of different device components are the same for the start structured program block in the flow type, and the different device components can share the same start structured program block, further reducing the complexity and cost of program development.
[0043] S012: Set the running control program of all device components in the general function module, including the structured program blocks called by each device component and the communication control program of the device components having a communication relationship.
[0044] Specifically, the general function module needs to control the device components in the automation system to cooperate with each other to complete the corresponding functions, so after determining the structured program blocks corresponding to the device components, the running control program needs to be set. The running control program needs to include the calling logic of the structured program blocks of the device components and the communication between the device components. For example, the process of moving and then grabbing by the mechanical arm needs to control the movement and the adsorption and release of the vacuum chuck, and the running control program needs to define the order of calling the structured program blocks of the two steps. The running control program also contains the communication control program of the device components having a communication relationship in the general function module, for example, the belt sends a material in place signal to the mechanical hand, and the testing machine feeds back a test completion signal to the code scanning gun.
[0045] It should be noted that if the control logic of a device component needs to be modified, only the corresponding structured program block needs to be modified, and all device components and general function modules using the structured program block are automatically synchronized and do not need to be modified separately. For example, all belt motors in automation systems A, B, and C call the structured program block of the belt control to implement unified start-stop logic. If the acceleration of the belt start needs to be modified, only the acceleration parameter in the structured program block of the belt control needs to be modified, and the automation systems A, B, and C using the structured program block of the belt control do not need to be modified separately and are automatically synchronized and updated.
[0046] In an optional embodiment, as shown in Figure 5 The method further includes adjusting the running state tag of the general function module based on the abnormal alarm level. S210: If the abnormal alarm level is a prompt, the running state tag is not changed, a prompt alarm information is generated and fed back to the worker.
[0047] Specifically, if the monitoring result shows that the parameter of the device component deviates from the standard parameter value within a set threshold, which does not affect the execution of the module function, it is determined as a prompt-level abnormal alarm. The current running state label of the general function module is kept, and the automation system automatically generates prompt alarm information and feeds it back to the worker for recording and reminding the slight abnormality. The worker can confirm the abnormality through the man-machine interface without stopping the running of the general function module.
[0048] S220: If the abnormal alarm level is a light alarm, the running state label is set as initialization so that the general control program calls a preset structured program block based on the initialized running state label to control the initialization of the device components in the general function module.
[0049] Specifically, if the monitoring result shows that the parameter of the device component deviates from the standard parameter value beyond a set threshold, which affects the running efficiency or response speed of the device component, it is determined as a light alarm abnormal alarm. The running state label is adjusted to initialization, and the general control program calls a corresponding initialization structured program block according to the initialized running state label to control the device components in the general function module to restart and complete the initialization operation to attempt to restore normal operation. Alternatively, the light alarm can also be fed back to the worker, who can manually set the running state label after receiving the light alarm to determine whether to perform initialization.
[0050] S230: If the abnormal alarm level is a heavy alarm, the running state label is set as disabled so that the general control program stops controlling the general function module to execute the corresponding module function based on the disabled running state label.
[0051] Specifically, if the device component failure causes the module function to completely fail, it can be determined as a heavy alarm. The running state label is adjusted to disabled, so that the general control program stops calling the structured program block of the general function module, terminates the execution of the module function, avoids the failure from affecting the running of the remaining device components, and waits for manual intervention for repair. Alternatively, the heavy alarm can also be fed back to the worker, who can manually confirm the disabled state after receiving the heavy alarm and adjust the running state label after emergency repair.
[0052] In an optional embodiment, the abnormal alarm includes a device component-level alarm, a module-level alarm, and a system-level alarm.
[0053] When the abnormal alarm is a light alarm of a component-level alarm, the device component of the abnormal alarm in the general function module is initialized; when the abnormal alarm is a light alarm of a module-level alarm, all device components of the corresponding general function module are initialized; and when the abnormal alarm is a light alarm of a system-level alarm, all device components of the corresponding automation system are initialized.
[0054] Specifically, the light alarm only performs initialization on the faulty device component, general function module or automation system, does not affect the irrelevant device component, general function module or automation system, and keeps the whole automation device continuously running. The light alarm of the component-level alarm is that a single device component has a slight fault, the running state label of the faulty device component is adjusted to initialization, and only the faulty device component is controlled to perform the initialization restart operation, and the remaining device components in the general function module remain normal operation.
[0055] Based on the same principle, the light alarm of the module-level alarm is that a single general function module has a slight fault, the running state label of the general function module is adjusted to initialization, and the general control program controls all device components in the corresponding general function module to perform initialization synchronously, and the remaining general function modules or device components of the same automation system remain normal operation. The light alarm of the system-level alarm is that a single automation system has a slight fault, the running state label of the automation system is adjusted to initialization, and the general control program controls all device components in the automation system to perform initialization synchronously, and the remaining automation systems remain normal operation.
[0056] When the abnormal alarm is a re-alarm of the component-level alarm, the running of the device component of the abnormal alarm and the device component having a dependency relationship is stopped; when the abnormal alarm is a re-alarm of the module-level alarm, the running of the general function module of the abnormal alarm and the device component or general function module having a dependency relationship is stopped; when the abnormal alarm is a re-alarm of the system-level alarm, the running of the automation system of the abnormal alarm and the automation system having a dependency relationship is stopped.
[0057] If a re-alarm occurs, the running of the object of the abnormal alarm and all objects having a dependency relationship is stopped, the fault propagation of the re-alarm is cut off, and manual repair is waited. Specifically, the re-alarm of the component-level alarm is that a single device component has a serious fault, and the continuous running may cause damage to the device component or affect other device components, the running state label of the abnormal device component is adjusted to stop, the general control program stops calling all structured program blocks corresponding to the device component, and other device components having a dependency relationship with the device component are also stopped, for example, the belt motor is stopped, and the mechanical hand device component depending on the belt motor for conveying materials is also stopped, the device components in the general function module having no dependency relationship with the device component can continue to remain running, and the working state is not affected. When the automation system pushes the re-alarm information, the worker can quickly locate and repair according to the fault code and the position information of the device component, and adjust the running state label after repair. The above steps can isolate the faulty device component and the device component having a dependency relationship, and avoid the influence of the fault on the remaining device components in the general function module.
[0058] Based on the same principle, a recurring alarm at the module level indicates a serious fault in a general-purpose module. In this case, the module's running status is changed to "disabled," the general control program stops calling all structured program blocks of that module, and other equipment components or general-purpose modules that depend on it are also stopped. General-purpose modules within the same automation system that do not depend on it can continue to operate normally. Similarly, a recurring alarm at the system level indicates a serious fault in the automation system. In this case, the system's running status is changed to "disabled," the general control program stops calling all structured program blocks of that system, and other automation systems that depend on it are also stopped. For example, if automation system A fails, automation system B, which depends on it for material supply, is stopped, while automation system C, which does not depend on it, continues to operate.
[0059] It should be noted that the above implementation method classifies the scope of operational anomalies according to equipment components, general function modules, and automation systems. Restarting and stopping operations are achieved through initializing and stopping operational status labels, stopping only the faulty object and its dependent objects; other unrelated equipment components, general function modules, and automation systems continue to operate normally. In other implementation methods, the classification of anomaly alarms and the corresponding measures can also be set according to actual needs, and this application does not limit this.
[0060] In a specific example, such as Figure 6 As shown, automation system A and automation system B are controlled by a single PLC. Module 1 and Module 2 both consist of similar equipment components such as cylinders, motors, and sensors, and their internal communication logic is consistent. Both Module 1 and Module 2 can perform the functions of material grabbing and conveying to processing, and are general-purpose functional modules with reusable control logic.
[0061] When there are no alarms or module initialization request inputs in the module, the module initialization process is triggered. The PLC controls the cylinders, motors, and other components in module 1 and module 2 to perform motor zeroing, cylinder return to the initial position, and parameter reset. After initialization, if there are no alarms or module operation request inputs, the module will automatically run. The PLC controls module 1 to perform the cylinder material grabbing and motor-driven conveying functions according to preset logic. If module 1 alarms again, the PLC sends a shielding request signal to module 1, causing module 1 to stop running. Module 1 is then shielded, unable to initialize or run, and the alarm is also shielded, achieving isolation of the faulty module.
[0062] Meanwhile, in the specific example, the modules 1 and 2 of the automation system A and the system B are independently operated respectively. When the PLC sends a module shielding signal to the module 1 in response to the control of the staff or other shielding scenarios, only the pause or stop of the module 1 is triggered, and the stop of the module 1 does not affect the module 2 or the automation system B. The shielding and pause function at the module level can realize the individual stop of the fault module for maintenance, and the other modules and the automation system can normally operate. For example, after the module 1 is shielded due to the cylinder fault, the module 2 can still normally operate under the control of the PLC. The automation system A is provided with a peripheral button, an emergency stop button and a safety door lock, and the peripheral button can be used to send a corresponding request to the PLC to trigger the automatic operation of the module 1 or the module 2, etc. For example, when the emergency stop button of the system A is triggered, the individual emergency stop of the system A can be realized. When the light alarm of the module 1 or the module 2 occurs, only the module with the light alarm is initialized, and the module pause request input is in the initialization process. When the heavy alarm occurs, only the module with the heavy alarm is disabled, and the module stop request input is in the stop process.
[0063] In an optional embodiment, as shown in Figure 7 when a new system is added, the method comprises S500: S510: identifying all device components in the new system.
[0064] S520: determining whether there is a same general function module based on all device components and device components with a communication relationship.
[0065] S530: if there is, forming a general function module of the new system, and adding a running control program of the general function module of the new system in the general control program.
[0066] S540: dividing the device components of the new system that are not divided into the general function module into a dedicated function module, and setting a corresponding dedicated function program block.
[0067] Specifically, when a new system is added in the device, it can be firstly judged whether there is a combination of device components that is completely same as the existing general function module in the new system, and whether the communication relationship and the dependency relationship inside the combination of device components are consistent with the existing general function module. If consistent, the same structured program block can be reused to realize the rapid program configuration and access operation of the new system. For the device components that are not divided into the general function module in the new system, the device components are divided into a dedicated function module, and a corresponding dedicated function program block is set. Thus, when the new system is accessed, the structured program block of the original general function module can be reused, and the automatic configuration of the program can be realized, so that the programming amount and the complexity of the program configuration are greatly reduced.
[0068] In an optional embodiment, the types of the structured program blocks include at least one of a function type structured program block, a state type structured program block and a flow type structured program block.
[0069] In particular, the structured program blocks are divided into the function type structured program block, the state type structured program block and the flow type structured program block according to functions, and the three types of structured program blocks can be used independently or combined to be called. For example, in a specific example, the function type structured program block can realize specific functions of a device component or a general function module, such as speed adjustment or position exchange of the device component. The state type structured program block manages a running state of the device component, the general function module or the automation system, and is responsible for monitoring and switching of the running state. The flow type structured program block is independently divided according to each flow stage based on the device component running in a fixed step, so as to coordinate the multiple function type structured program blocks and the state type structured program blocks in time sequence.
[0070] In one specific embodiment, as Figure 3As shown, the automation equipment includes three automation systems A, B, and C. The function class structured program block is used to implement specific functions of equipment components or general function modules. A packaging production line can be divided into a feeding structured program block, a packaging structured program block, a sorting structured program block, and a human-computer interaction structured program block. The feeding structured program block can control the material conveying motor, the material bin, and the material position detection. The packaging structured program block can control the start and stop of the packaging machine and the film tension adjustment for the packaging material. The sorting structured program block can control the sorting cylinder and the unqualified product detection sensor. The human-computer interaction structured program block can process the manual input start and stop instructions of the touch screen and the running state display such as running speed and fault code. The state class structured program block manages the running state of the equipment components, general function modules, or automation systems. The equipment components and general function modules are divided according to the control logic and can be divided into an execution structured program block, a monitoring structured program block, a interlocking structured program block, and a parameter structured program block. The execution structured program block controls the start or stop of the motor, cylinder, valve, and other control actuators and adjusts the speed and position. The monitoring structured program block processes the sensor signal output effective or ineffective, numerical value, and other signals such as photoelectric, proximity switch, and encoder. The interlocking structured program block processes the safety logic, for example, the emergency stop signal triggers to cut off the power of all actuators. The parameter structured program block is used to store the running speed and set value parameters of the calling equipment and can be externally modified by the staff through the human-computer interface. The flow class structured program block is independently divided according to each flow stage based on the equipment components running in fixed steps. For example, the equipment component combination of battery assembly can be divided into a feeding structured program block, a welding structured program block, a detection structured program block, and a discharging structured program block. The feeding structured program block is used to control the grabbing and positioning of the material. The welding structured program block is used to control the welding time and current. The detection structured program block is used to control the visual monitoring and marking of unqualified products. The discharging structured program block controls the handling and classified storage of finished products.
[0071] According to another aspect of the present application, the embodiment also discloses a modular control device of an automation equipment, the automation equipment includes a plurality of automation systems, at least one general function module is included in the plurality of automation systems, the same equipment component is included in each general function module, the modular control device is configured to control the general function module in the plurality of automation systems to perform corresponding module functions based on the running state label of the general function module through a general control program, the equipment component in the general function module is correspondingly provided with at least one structured program block; the running state of the general function module is monitored, the abnormal alarm level of the abnormal alarm of the general function module is determined based on the running state monitoring result; and the running state label of the general function module is adjusted based on the abnormal alarm level.
[0072] In an optional embodiment, the device can be implemented by PLC, and since the principle of the device to solve the problem is similar to the above method, the implementation of the device can refer to the implementation of the method, which will not be repeated here.
[0073] According to still another aspect of the present application, the embodiment also discloses an automation system comprising the modular control device of the automation equipment as described above.
[0074] Since the principle of the system to solve the problem is similar to the above method, the implementation of the system can refer to the implementation of the method, which will not be repeated here.
[0075] The embodiment of the present application also provides a computer device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and the processor implements the above method when executing the computer program.
[0076] The embodiment of the present application also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the above method.
[0077] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system or a computer program product. The system, device, module or unit illustrated in the above embodiments can be implemented by a computer chip or entity, or by a product with certain functions. A typical implementation device is a computer device, which can be specifically a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0078] In a typical example, the computer device specifically comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and the processor implements the method executed by the client as described above or the method executed by the server as described above when executing the program.
[0079] Reference will be made to the following description Figure 8 which shows a structural schematic diagram of a computer device 600 suitable for implementing the embodiments of the present application.
[0080] As Figure 8As shown, the computer device 600 includes a central processing unit (CPU) 601 which can perform various appropriate works and processes in accordance with programs stored in a read only memory (ROM) 602 or programs loaded from the storage section 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer device 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0081] Connected to the I / O interface 605 are an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as necessary. A removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 610 as necessary, so that a computer program read therefrom is installed in the storage section 608 as necessary.
[0082] In particular, processes described above with reference to the flowcharts can be implemented as a computer software program in accordance with embodiments of the present application. For example, embodiments of the present application include a computer program product comprising a computer program tangibly embodied on a machine readable medium, the computer program including program code for executing methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 609 and / or installed from the removable media 611.
[0083] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.
[0084] For the convenience of description, the above device is described as various units described respectively in function. Of course, in the implementation of the present application, the functions of each unit can be implemented in the same or more software and / or hardware.
[0085] The present application is described with reference to flowcharts and / or block diagrams according to the method, equipment (system) and computer program product of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of the flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a means for implementing the functions specified in the flowchart and / or block diagram. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that performs the functions specified in one or more blocks or a combination of blocks.
[0086] These computer program instructions can also be stored in a computer-readable memory that can direct the computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including instruction apparatus, which implements the functions specified in the flowchart and / or block diagram. Figure 1 one or more flows and / or blocks Figure 1 an apparatus that performs the functions specified in one or more blocks or a combination of blocks.
[0087] These computer program instructions can also be loaded into computer or other programmable data processing devices, so that a series of operational steps are performed on the computer or other programmable data processing devices to generate a computer-implemented process, thus the instructions executed on the computer or other programmable data processing devices provide the function implemented in the flow Figure 1 one or more flows and / or blocks Figure 1 one or more blocks or multiple blocks.
[0088] It should also be noted that the terms "comprising", "comprises", "including", "includes" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article or apparatus. An element proceeded by "comprises a... " does not, without more constraints, exclude the existence of additional identical elements in the process, method, article or apparatus that comprises the element.
[0089] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable program code.
[0090] The present application can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform particular tasks or implement particular abstract data types. The present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including memory storage devices.
[0091] Each of the embodiments in the present specification is described in a progressive manner, and the same or similar parts between each embodiment can be referred to each other, and each embodiment focuses on the difference from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.
[0092] The above merely provides an example of the present application, and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application should be included in the scope of claims of the present application.
Claims
1. A modular control method for an automated device, characterized by, The automation device comprises a plurality of automation systems, at least one universal function module is included in the plurality of automation systems, the same device components are included in each universal function module, and the control method comprises: A preset structured program block is called by a universal control program based on the running state label of the universal function module to control the universal function module in the plurality of automation systems to perform corresponding module functions, and the device components in the universal function module are correspondingly provided with at least one structured program block; The running state of the universal function module is monitored, the abnormal alarm level of the abnormal alarm of the universal function module is determined based on the monitoring result of the running state, and the running state label of the universal function module is adjusted based on the abnormal alarm level. The automation system further comprises a special function module, and the method further comprises:
2. The modular control method of an automation device according to claim 1, characterized in that, A preset special function program block is used to control the special function module to perform corresponding module functions, and execution result information is formed to enable the universal control program to control the special function module or the universal function module in the corresponding automation system to perform corresponding module functions based on the execution result information. Further comprising the step of dividing the automation device into the automation systems and the universal function modules in advance:
3. The modular control method of automation equipment according to claim 1, characterized in that, All device components in the automation device and the communication relationship between the device components are determined; The same device components are respectively divided into different automation systems; The device components that are the same and have a communication relationship in each automation system are respectively divided into at least one universal function module, and a plurality of device components that exist in at least two automation systems are respectively divided into one universal function module in the corresponding automation system. Further comprising the step of setting a universal control program for the universal function module:
4. The modular control method of automation equipment according to claim 1, characterized in that, A plurality of types of structured program blocks are correspondingly set for each device component in the universal function module, wherein the same device components correspond to one structured program block; The running control program of all device components in the universal function module is set, including the structured program block to be called by each device component and the communication control program of the device components having a communication relationship. The step of adjusting the running state label of the universal function module based on the abnormal alarm level comprises:
5. The modular control method of automation equipment according to claim 1, characterized in that, If the abnormal alarm level is a prompt, the running state label is not changed, prompt alarm information is generated, and the information is fed back to the staff; If the abnormal alarm level is a light alarm, the running state label is set to initialization so that the universal control program calls a preset structured program block based on the initialized running state label to control the device components in the universal function module to initialize; If the abnormal alarm level is a heavy alarm, the running state label is set to stop so that the universal control program stops controlling the universal function module to perform corresponding module functions based on the stopped running state label. The abnormal alarm comprises a device component level alarm, a module level alarm and a system level alarm.
6. The modular control method of automation equipment according to claim 1, characterized in that, When the abnormal alarm is a light alarm of component-level alarm, the device components of the abnormal alarm in the general function module are initialized; when the abnormal alarm is a light alarm of module-level alarm, all device components of the corresponding general function module are initialized; when the abnormal alarm is a light alarm of system-level alarm, all device components of the corresponding automation system are initialized; When the abnormal alarm is a heavy alarm of component-level alarm, the running of the device components of the abnormal alarm and the device components having a dependency relationship are stopped; when the abnormal alarm is a heavy alarm of module-level alarm, the running of the general function module of the abnormal alarm and the device components or general function modules having a dependency relationship are stopped; when the abnormal alarm is a heavy alarm of system-level alarm, the running of the automation system of the abnormal alarm and the automation systems having a dependency relationship are stopped.
7. The modular control method of automation equipment according to claim 1, characterized in that, When a new system is added, the method comprises: identifying all device components in the new system; determining whether there is a same general function module based on all device components and the device components having a communication relationship; if there is, forming a general function module of the new system, adding a running control program of the general function module of the new system in the general control program; dividing the device components of the new system not divided into the general function module into a dedicated function module, setting a corresponding dedicated function block, and setting a corresponding communication control program in the general control program.
8. The modular control method of automation equipment according to claim 1, characterized in that, The type of the structured block comprises at least one of a function class structured block, a state class structured block, and a flow class structured block.
9. Modular control device for automation equipment, characterized in that, The automation device comprises a plurality of automation systems, the plurality of automation systems comprising at least one general function module, each of the general function modules comprising same device components, the modular control device being configured to control the general function modules in the plurality of automation systems to perform corresponding module functions by calling preset structured blocks based on a running state label of the general function module through a general control program, the device components in the general function module being correspondingly provided with at least one structured block; monitoring the running state of the general function module, and determining an abnormal alarm level of the abnormal alarm in the general function module based on a monitoring result of the running state; adjusting the running state label of the general function module based on the abnormal alarm level.
10. An automated system, characterized by The modular control device of the automation device as claimed in claim 9.