Motor group control method and device, electronic equipment and storage medium

By associating the motor with a pre-designed motor program block and calling the motor control program, the problems of motor control complexity and poor portability are solved, and efficient control of the motor group and easy-to-maintain programming are realized.

CN118920924APending Publication Date: 2024-11-08SHANDONG YIXIN PHOTOELECTRIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410946297.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In the prior art, motor control is complex and inefficient, and program modification and maintenance cannot be conveniently carried out, and program portability is poor, making it unable to be suitable for batch use of motor groups.

Method used

By responding to the control instructions of the motor group, the target motor to be controlled is associated with the input and output signal pins in the pre-designed motor program block, the pre-edited motor control program is called, and real-time control is performed based on environmental data and working status.

Benefits of technology

It realizes the convenient modification of motor control program, clear structure, simple debugging and strong portability, improves the control efficiency of motor groups and is suitable for unified control of multiple motors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118920924A_ABST
    Figure CN118920924A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a control method and device of a motor group, electronic equipment and a storage medium. The control method comprises the steps of associating a to-be-controlled target motor with a corresponding input and output signal pin in a pre-designed motor program block in response to a control instruction of the motor group; calling a pre-edited motor control program through a signal output by the input and output signal pin; and controlling the target motor based on the motor control program. Therefore, a program block modular program design is adopted, motor control programs are creatively integrated, program modification is convenient, the structure is clear, debugging is simple, portability is high, program modification and maintenance in the later period are convenient, the control efficiency of the motors is improved, and the method is suitable for control over a motor group.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of mechanical control technology, and in particular, to a control method, device, electronic device and storage medium for a motor group. Background Art

[0002] At present, with the development of mechanized production, electric motors are used in many fields to operate the entire mechanical system. For example, the power circulating water power generation system has multiple power water pumps and multiple process water pumps, which are all operated by electric motors. When controlling the motor, it is often necessary to write a separate program to control the start and stop of the motor. However, at present, a control program needs to be written once for each motor, which makes the control of the motor and the writing of the motor control program complicated and inefficient, and it is not convenient to modify and maintain the program later. At the same time, multiple sets of programs make the program poorly portable and cannot be used in batches of motors. Summary of the invention

[0003] In view of this, in order to solve the above technical problems or part of the technical problems, an embodiment of the present invention provides a control method, device, electronic device and storage medium for a motor group.

[0004] In a first aspect, an embodiment of the present invention provides a control method for a motor group, comprising:

[0005] In response to the control instruction of the motor group, the target motor to be controlled is associated with the corresponding input and output signal pins in the pre-designed motor program block;

[0006] Calling a pre-edited motor control program through the signal output by the input / output signal pin;

[0007] The target motor is controlled based on the motor control program.

[0008] In a possible implementation, the method further includes:

[0009] Real-time monitoring of environmental data of the working environment of the motor group;

[0010] determining a control instruction for the motor group based on the environmental data;

[0011] A target motor to be controlled is determined based on the control instruction.

[0012] In a possible implementation, the method further includes:

[0013] Determining the operating state to be changed of the target motor to be controlled based on the control instruction;

[0014] Determine the target input / output signal pin based on the working state to be changed;

[0015] The target motor to be controlled is associated with the target input and output signal pins in the pre-designed motor program block.

[0016] In a possible implementation, the method further includes:

[0017] The motor program block that has completed the target input / output signal pin associated with the target motor to be controlled is renamed with the name of the target motor to be controlled to obtain a motor program block with the name of the target motor.

[0018] In a possible implementation, the method further includes:

[0019] The pre-edited motor control program is called based on the signal output by the target input / output pin in the motor program block with the target motor name.

[0020] In a possible implementation, the method further includes:

[0021] determining an operating mode of the motor control program based on a signal output by the target input / output pin;

[0022] executing a target motor control program marked in advance among the motor control programs based on the operation mode;

[0023] The target motor is controlled based on the target motor control program.

[0024] In a possible implementation, the motor program block and the motor control program are pre-programmed in the Portal software using the SCL language.

[0025] In a second aspect, an embodiment of the present invention provides a control device for a motor group, comprising:

[0026] A response association module, for associating the target motor to be controlled with the corresponding input and output signal pins in the pre-designed motor program block in response to the control instruction of the motor group;

[0027] A calling module, used for calling a pre-edited motor control program through the signal output by the input and output signal pin;

[0028] A control module is used to control the target motor based on the motor control program.

[0029] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, wherein the processor is used to execute a control program of a motor group stored in the memory to implement the control method of the motor group described in the first aspect.

[0030] In a fourth aspect, an embodiment of the present invention provides a storage medium, comprising: the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the control method of the motor group described in the first aspect above.

[0031] The control scheme for the motor group provided in the embodiment of the present invention associates the target motor to be controlled with the corresponding input and output signal pins in the pre-designed motor program block by responding to the control instruction of the motor group; calls the pre-edited motor control program through the signal output by the input and output signal pin; and controls the target motor based on the motor control program. Compared with the current situation where a control program needs to be written once for each motor, the motor control efficiency is low and it is inconvenient to modify and maintain the program later. This scheme adopts program block modular program design and creatively integrates the motor control program. The program is easy to modify, has a clear structure, simple debugging, and strong portability. It is convenient for modifying and maintaining the program later, improves the control efficiency of the motor, and is suitable for the control of motor groups. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic flow chart of a control method for a motor group provided by an embodiment of the present invention;

[0033] Figure 2 A schematic diagram of a motor control program with markings provided by an embodiment of the present invention;

[0034] Figure 3 A schematic diagram of a motor program block provided by an embodiment of the present invention;

[0035] Figure 4 A schematic flow chart of another method for controlling a motor group provided by an embodiment of the present invention;

[0036] Figure 5 A schematic diagram of the structure of a control device for a motor group provided by an embodiment of the present invention;

[0037] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0040] Figure 1 A flow chart of a control method for a motor group provided by an embodiment of the present invention is shown as follows: Figure 1 As shown, the method specifically includes:

[0041] S11 . In response to a control instruction of the motor group, the target motor to be controlled is associated with the corresponding input and output signal pins in a pre-designed motor program block.

[0042] The present invention is mainly applied to the use scenarios of motor groups. For example, there are three power water pumps and six process water pumps in the power circulating water area of ​​a company, totaling nine water pumps. The start and stop control procedures of the nine water pumps are the same. The motor program blocks and motor control programs in the embodiments of the present invention can be used to realize efficient control of each motor in the motor group simultaneously or asynchronously, without the need to re-edit a set of programs for each motor.

[0043] In the embodiment of the present invention, first, the environmental data of the working environment of the motor group is monitored in real time, then the control instructions for the motor group are determined based on the environmental data, and finally the target motor to be controlled is determined based on the control instructions.

[0044] For example, in the company's power circulating water area, there are three power water pumps and six process water pumps, a total of nine water pumps, and the nine water pumps have the same start and stop control procedures. The three power water pumps are used to cool the power equipment in the plant area, and the six process water pumps are used to cool the process equipment in the plant area. The automatic start and stop of the water pumps are controlled by pressure.

[0045] The three power water pumps output automatic start signals to the PLC controller when the pipeline pressure is lower than a preset threshold value (for example, 0.36Mpa), and output automatic stop signals to the PLC controller when it is higher than the preset threshold value (for example, 0.4Mpa). The controller receives this signal to determine whether to start or stop a power water pump; the six process water pumps automatically start and output signals to the PLC controller when the pipeline pressure is lower than a preset threshold value (for example, 0.38Mpa), and automatically stop and output signals to the PLC controller when it is higher than the preset threshold value (for example, 0.4Mpa). The controller receives this signal to determine whether to start or stop a process water pump.

[0046] Furthermore, in response to the control instruction of the motor group, the working state to be changed of the target motor to be controlled is determined based on the control instruction; the target input and output signal pins are determined based on the working state to be changed; and the target motor to be controlled is associated with the target input and output signal pins in the pre-designed motor program block.

[0047] Specifically, first, use the SCL language to pre-edit the motor control program such as Figure 2 As shown, and the motor program blocks are pre-designed using SCL language as shown Figure 3 In response to the control instruction of the motor group, the working state to be changed of the target motor to be controlled is determined based on the control instruction. For example, if the control instruction of the motor group is to start or stop a power water pump and start or stop a process water pump, the motor of the power water pump or the process water pump is the target motor, and the working state to be changed is start or stop.

[0048] Each motor then calls a Figure 3 The motor program block shown in Figure 3 The input and output pins in the motor program block are respectively associated with the input and output signals of the multiple motors, such as remote signals, operating signals, fault signals, automatic start signals, and automatic stop signals. That is, the various start signals, operating signals, fault signals, remote signals, etc. output by the relay of the target motor are connected to the controller I / O terminal, and the controller I / O terminal is associated with the corresponding input and output signal pins in the pre-designed motor program block. After determining the working state to be changed of the target motor, the target input and output signal pins can be determined according to the working state to be changed. For example, after determining that the working state to be changed of the power water pump is to be started or stopped, the target input and output signal pins can be determined as the automatic start signal and automatic stop signal pins.

[0049] Then, associate the target motor to be controlled with the target input and output signal pins in the pre-designed motor program block. That is, you only need to modify the Figure 3 The input and output pins in the motor program block can be used.

[0050] Furthermore, the motor program block that has completed the target input / output signal pin associated with the target motor to be controlled is renamed with the name of the target motor to be controlled, thereby obtaining a motor program block with the name of the target motor.

[0051] S12, calling a pre-edited motor control program through the signal output by the input / output signal pin.

[0052] The pre-edited motor control program is called based on the target input / output pin signal in the motor program block with the target motor name.

[0053] Specifically, the motor program block transmits the associated input and output signal pins to the corresponding Figure 2 In the motor control program, each motor corresponds to the external wiring diagram of each motor and is connected to the terminal of the controller. The signals of each motor are different, so the Figure 3 The signals in are also different. Figure 3 The program generates a unique name each time it is called, so each motor call generates a Figure 3 The program only needs to change the name of the motor according to the actual motor name. Figure 3 Change the program block name to the corresponding motor name.

[0054] Furthermore, the control signal is connected to the controller, and the controller executes Figure 3 The motor program block is actually executing Figure 2 The motor control source program in Figure 3 The signals from the motor block input and output pins are passed to Figure 2 In the program, according to Figure 2 Run the logic program in.

[0055] S13, controlling the target motor based on the motor control program.

[0056] The working mode of the motor control program is determined based on the target input / output pin signal; the target motor control program pre-marked in the motor control program is executed based on the working mode; and the target motor is controlled based on the target motor control program.

[0057] implement Figure 3 The program block is actually passed Figure 3 The pin signal is passed to Figure 2 In the program, execute Figure 2 program, Figure 2 The program is mainly divided into interlocking control mode, manual control mode, automatic control mode, and simulation control mode. Figure 3For example, if the motor is currently started, the starter motor has a manual start, automatic start or chain start signal input to Figure 3 Execute when the corresponding pin Figure 2 The programs in marks 2 and 3 realize the control of the motor.

[0058] The following combination Figure 4 The flowchart is described by a specific embodiment: First, as Figure 2 Marking instructions are as shown below: Mark 1, power-on initialization; Mark 2, start condition program; Mark 3, start condition judgment when not in simulation; Mark 4, start condition judgment when in simulation; Mark 5, stop condition program; Mark 6, stop condition judgment when not in simulation; Mark 7, stop condition judgment when in simulation; Mark 8, reset when not in simulation; Mark 9, pulse start output timing; Mark 10, pulse stop output timing; Mark 11, start time timing; Mark 12, stop time timing; Mark 13, fault signal fault judgment; Mark 14, reset program; Mark 15, fault reset. Figure 3 Mark 16, motor program block.

[0059] Mark 1 is the default state of the motor after the first power-on, and a motor stop flag is used to make it TRUE. Mark 2 is the use of IF statements to determine whether the motor start conditions are met when the start button is TRUE or the automatic start and stop is TRUE. Here, the priority of the interlock signal is higher than the manual start signal and the automatic start signal. Mark 3 is when the start condition of Mark 2 is met, it is determined whether it is in a non-simulation state, that is, the judgment result is TRUE to start the motor. Mark 4 is when the start condition of Mark 2 is met, it is determined whether it is in a simulation state, that is, the judgment result is TRUE to start the motor. Mark 3 and Mark 4 are in an opposite relationship. Mark 5 is the use of IF statements to determine whether the motor stop conditions are met when the stop button is TRUE or the automatic start and stop is FALSE. Here, the priority of the interlock signal is higher than the manual stop signal and the automatic stop signal. Mark 5 and Mark 2 are in an opposite relationship. Mark 6 is when the start condition of Mark 5 is met, it is determined whether the motor is stopped in a non-simulation state. Mark 7 is when the start condition of mark 5 is met, it is judged whether it is in simulation state, that is, the motor is stopped when the judgment result is TRUE, and mark 6 and mark 7 are in opposite relationship. Mark 8 is when the non-simulation condition is TRUE, the simulation signal and the flag are reset to FALSE. Mark 9 is when the pulse start is TRUE for timing when mark 2 meets the condition, and the output of pulse start is FALSE when the timing time reaches the set value. Mark 10 is when the pulse stop is TRUE for timing when mark 5 meets the condition, and the output of pulse stop is FALSE when the timing time reaches the set value. Mark 11 is when mark 3 meets the condition, the output time is started for timing, when the timing is completed within the set time, the motor start is completed, that is, the running signal is TRUE, the timing is stopped, if the motor starts within the set time, there is no running signal, the motor starts and fails to generate a fault signal for alarm. Mark 12 is when mark 6 meets the condition, the output time is stopped for timing, when the timing is completed within the set time, the motor stops, that is, the running signal is FALSE, the timing is stopped, if the motor stops within the set time, there is a running signal, the motor stops and fails to generate a fault signal for alarm. Mark 13 is the fault signal and fault code generated when the motor starts and stops abnormally. Here, the fault code 1111 represents the external fault signal is TRUE, 2222 represents the start timeout, which is generated by mark 11, 3333 represents the stop timeout, which is generated by mark 12, and 4444 represents the fault generated when both automatic start and automatic stop are TRUE. Mark 14 is when there is no fault output FALSE and the remote signal is FALSE, the reset signal is FALSE. Mark 15 is when the fault output of mark 13 is TRUE, when the reset signal is TRUE, the fault output is reset and the fault code is cleared. Mark 16 is the motor program block, which can be called Figure 2The motor control program is suitable for the control of multiple different motors. It is easy to modify parameters and realizes modular programming, which improves the maintainability and portability of the program and reduces the error rate of the program.

[0060] Furthermore, for example, in the company's power circulating water area, there are three power water pumps and six process water pumps, a total of nine water pumps, and the nine water pumps have the same start and stop control procedures. The three power water pumps are used to cool the power equipment in the plant area, and the six process water pumps are used to cool the process equipment in the plant area. The automatic start and stop of the water pumps are controlled by pressure.

[0061] The three power water pumps output automatic start signals to the PLC controller when the pipeline pressure is lower than a preset threshold value (for example, 0.36Mpa), and output automatic stop signals to the PLC controller when it is higher than the preset threshold value (for example, 0.4Mpa). The controller receives this signal to determine whether to start or stop a power water pump; the six process water pumps automatically start and output signals to the PLC controller when the pipeline pressure is lower than a preset threshold value (for example, 0.38Mpa), and automatically stop and output signals to the PLC controller when it is higher than the preset threshold value (for example, 0.4Mpa). The controller receives this signal to determine whether to start or stop a process water pump.

[0062] In response to the control instruction of the motor group, the working state to be changed of the target motor to be controlled is determined based on the control instruction. For example, if the control instruction of the motor group is to start or stop a power water pump and start or stop a process water pump, the motor of the power water pump or the process water pump is the target motor, and the working state to be changed is start or stop.

[0063] Each motor then calls a Figure 3 The motor program block shown in Figure 3 The input and output pins in the motor program block are respectively associated with the input and output signals of the multiple motors, such as remote signals, operation signals, fault signals, automatic start signals, and automatic stop signals. After determining the working state to be changed of the target motor, the target input and output signal pins can be determined according to the working state to be changed. For example, after determining that the working state to be changed of the power water pump is started or stopped, the target input and output signal pins can be determined as the automatic start signal and automatic stop signal pins.

[0064] When the motor is started now, the starting motor has a manual start, automatic start or interlock start signal input to Figure 3 Execute when the corresponding pin Figure 2 The program in Mark 2 and 3 will be executed even if the pulse start and self-locking start / stop are TRUE at the same time. Figure 3 Output pin, then execute the program in mark 9, after a certain time (the timing time here is based on Figure 3After the start pulse output time setting is reached, the pulse start signal is FALSE and the self-locking start and stop is always TRUE. When the simulation signal is TRUE, the program marked 4 is executed, that is, the simulation pulse start and the simulation self-locking start and stop are TRUE and are passed to Figure 3 Output pin, then execute the program in mark 9, after a certain time (the timing time here is based on Figure 3 After the pulse output time setting is reached, the simulation pulse start signal is FALSE and the simulation self-locking start and stop is always TRUE. When the pulse start and self-locking start and stop are TRUE, mark 11 is executed and the timing is within the set time (the set time comes from Figure 3 Input signal start fault time setting) If there is no running signal and it is TRUE, then execute mark 13, the motor start timeout fault signal is TRUE, and output fault code 2222 at the same time. Figure 2 In the output signal of the motor block, note that the simulation start is used for simulation testing so no start timeout fault will occur.

[0065] When stopping the motor, there are manual stop, automatic stop, or interlock stop. Figure 3 Execute when the corresponding pin Figure 2 The program in Mark 5 and 6 will be executed even if the pulse stop is TRUE and the self-locking start and stop is FALSE at the same time. Figure 3 Output pin, then execute the program in mark 10, after a certain time (the timing time here is based on Figure 3 When the simulation signal is TRUE, the program of mark 7 is executed, that is, the simulation pulse stop is TRUE and the simulation self-locking start-stop is FALSE, and the pulse stop signal is FALSE. Figure 3 Output pin, then execute the program in mark 10, after a certain time (the timing time here is based on Figure 3 When the simulation pulse stop is TRUE and the simulation self-locking start-stop is FALSE, the marker 12 is executed and the timing is within the set time (the set time comes from Figure 3 Input signal stop fault time setting) If the run signal is always TRUE, then execute mark 13, the motor stop timeout fault signal is TRUE, and output fault code 3333. Figure 3 In the output signal of the motor block, note that the simulation stop is used for simulation testing so no stop timeout fault will occur.

[0066] When the simulation signal is FALSE, execute the program marked 8 to start and stop the simulation pulse, and reset the simulation self-locking start and stop to FALSE.

[0067] In the case of a fault during the motor startup or operation, a fault signal and a fault code are output to the Figure 3 In the output pin, the reset signal of mark 14 is executed at the same time. If the motor wants to restart at this time, the reset signal must be TRUE. After executing mark 15 to reset the fault, it can be restarted.

[0068] The control method of the motor group provided in the embodiment of the present invention associates the target motor to be controlled with the corresponding input and output signal pins in the pre-designed motor program block by responding to the control instruction of the motor group; calls the pre-edited motor control program through the signal output by the input and output signal pin; and controls the target motor based on the motor control program. Compared with the current problem that a control program needs to be written once for each motor, the motor control efficiency is low and it is inconvenient to modify and maintain the program later. This method adopts program block modular program design and creatively integrates the motor control program. The program is easy to modify, has a clear structure, is simple to debug, and has strong portability. It is convenient to modify and maintain the program later, improves the control efficiency of the motor, and is suitable for the control of motor groups.

[0069] Figure 5 A schematic diagram of a control device for a motor group provided by an embodiment of the present invention is shown in FIG. Figure 5 As shown, specifically including:

[0070] A response association module 501 is used to associate the target motor to be controlled with the corresponding input and output signal pins in the pre-designed motor program block in response to the control instruction of the motor group;

[0071] A calling module 502, used for calling a pre-edited motor control program through the signal output by the input and output signal pin;

[0072] The control module 503 is used to control the target motor based on the motor control program.

[0073] In a possible implementation, the response association module 501 is specifically used to monitor the environmental data of the working environment of the motor group in real time; determine the control instructions for the motor group based on the environmental data; and determine the target motor to be controlled based on the control instructions.

[0074] In one possible embodiment, the response association module 501 is also used to determine the working state to be changed of the target motor to be controlled based on the control instruction; determine the target input and output signal pins based on the working state to be changed; and associate the target motor to be controlled with the target input and output signal pins in a pre-designed motor program block.

[0075] In a possible implementation, the response association module 501 is further used to rename the motor program block that has completed the target input and output signal pins associated with the target motor to be controlled with the name of the target motor to be controlled, thereby obtaining a motor program block with the name of the target motor.

[0076] In a possible implementation manner, the calling module 502 is specifically configured to call a pre-edited motor control program based on a signal output by a target input / output pin in the motor program block with the target motor name.

[0077] In one possible implementation, the control module 503 is specifically used to determine the working mode of the motor control program based on the signal output by the target input / output pin; execute the target motor control program pre-marked in the motor control program based on the working mode; and control the target motor based on the target motor control program.

[0078] The control device of the motor group provided in this embodiment can be as follows Figure 5 The automatic pattern making device shown in can perform the following steps: Figure 1 and Figure 4 All steps of the control method of the motor group in the Figure 1 and Figure 4 For details, please refer to Figure 1 and Figure 4 For the sake of brevity, the relevant description is not repeated here.

[0079] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Figure 6 The electronic device 600 shown includes: at least one processor 601, a memory 602, at least one network interface 604 and other user interfaces 603. The various components in the electronic device 600 are coupled together via a bus system 605. It is understood that the bus system 605 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 605 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 605 is not shown in FIG. Figure 6 Various buses are labeled as bus system 605 .

[0080] The user interface 603 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

[0081] It can be understood that the memory 602 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 602 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0082] In some implementations, the memory 602 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 6021 and an application 6022 .

[0083] The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 6022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 6022.

[0084] In the embodiment of the present invention, by calling the program or instruction stored in the memory 602, specifically, the program or instruction stored in the application 6022, the processor 601 is used to execute the method steps provided by each method embodiment, for example, including:

[0085] In response to the control instruction of the motor group, the target motor to be controlled is associated with the corresponding input and output signal pins in the pre-designed motor program block; the pre-edited motor control program is called through the signal output by the input and output signal pins; and the target motor is controlled based on the motor control program.

[0086] In a possible implementation, environmental data of the working environment of the motor group is monitored in real time; control instructions for the motor group are determined based on the environmental data; and a target motor to be controlled is determined based on the control instructions.

[0087] In one possible implementation, the operating state to be changed of the target motor to be controlled is determined based on the control instruction; the target input / output signal pin is determined based on the operating state to be changed; and the target motor to be controlled is associated with the target input / output signal pin in a pre-designed motor program block.

[0088] In a possible implementation manner, the motor program block that completes the target input / output signal pin associated with the target motor to be controlled is renamed with the name of the target motor to be controlled to obtain a motor program block with the name of the target motor.

[0089] In a possible implementation, a pre-edited motor control program is called based on a signal output by a target input / output pin in the motor program block with the target motor name.

[0090] In one possible implementation, the operating mode of the motor control program is determined based on the signal output by the target input / output pin; a target motor control program pre-marked in the motor control program is executed based on the operating mode; and the target motor is controlled based on the target motor control program.

[0091] The method disclosed in the above embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 601 or the instruction in the form of software. The above processor 601 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the above method in combination with its hardware.

[0092] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application, or a combination thereof.

[0093] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0094] The electronic device provided in this embodiment may be Figure 6 The electronic device shown in FIG. 1 may perform the following steps: Figure 1 and Figure 4 All steps of the control method of the motor group in the Figure 1 and Figure 4 For details, please refer to Figure 1 and Figure 4 For the sake of brevity, the relevant description is not repeated here.

[0095] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.

[0096] When one or more programs in the storage medium can be executed by one or more processors, the control method of the motor group executed on the electronic device side can be implemented.

[0097] The processor is used to execute the control program of the motor group stored in the memory to implement the following steps of the control method of the motor group executed on the electronic device side:

[0098] In response to the control instruction of the motor group, the target motor to be controlled is associated with the corresponding input and output signal pins in the pre-designed motor program block; the pre-edited motor control program is called through the signal output by the input and output signal pins; and the target motor is controlled based on the motor control program.

[0099] In a possible implementation, environmental data of the working environment of the motor group is monitored in real time; control instructions for the motor group are determined based on the environmental data; and a target motor to be controlled is determined based on the control instructions.

[0100] In one possible implementation, the operating state to be changed of the target motor to be controlled is determined based on the control instruction; the target input / output signal pin is determined based on the operating state to be changed; and the target motor to be controlled is associated with the target input / output signal pin in a pre-designed motor program block.

[0101] In a possible implementation manner, the motor program block that completes the target input / output signal pin associated with the target motor to be controlled is renamed with the name of the target motor to be controlled to obtain a motor program block with the name of the target motor.

[0102] In a possible implementation, a pre-edited motor control program is called based on a signal output by a target input / output pin in the motor program block with the target motor name.

[0103] In one possible implementation, the operating mode of the motor control program is determined based on the signal output by the target input / output pin; a target motor control program pre-marked in the motor control program is executed based on the operating mode; and the target motor is controlled based on the target motor control program.

[0104] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0105] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0106] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for controlling a motor group, characterized in that: include: In response to the control instruction of the motor group, the target motor to be controlled is associated with the corresponding input and output signal pins in the pre-designed motor program block; Calling a pre-edited motor control program through the signal output by the input / output signal pin; The target motor is controlled based on the motor control program.

2. The method according to claim 1, characterized in that Before associating the target motor to be controlled with the corresponding input and output signal pins in the pre-designed motor program block in response to the control instruction of the motor group, the method includes: Real-time monitoring of environmental data of the working environment of the motor group; determining a control instruction for the motor group based on the environmental data; A target motor to be controlled is determined based on the control instruction.

3. The method according to claim 2, characterized in that The step of associating the target motor to be controlled with the corresponding input and output signal pins in the pre-designed motor program block in response to the control instruction of the motor group includes: Determining the operating state to be changed of the target motor to be controlled based on the control instruction; Determine the target input / output signal pin based on the working state to be changed; The target motor to be controlled is associated with the target input and output signal pins in the pre-designed motor program block.

4. The method according to claim 3, characterized in that The method further comprises: The motor program block that has completed the target input / output signal pin associated with the target motor to be controlled is renamed with the name of the target motor to be controlled to obtain a motor program block with the name of the target motor.

5. The method according to claim 4, characterized in that The signal outputted by the input / output signal pin calls a pre-edited motor control program, including: The pre-edited motor control program is called based on the signal output by the target input / output pin in the motor program block with the target motor name.

6. The method according to claim 5, characterized in that The controlling the target motor based on the motor control program includes: determining an operating mode of the motor control program based on a signal output by the target input / output pin; executing a target motor control program marked in advance among the motor control programs based on the operation mode; The target motor is controlled based on the target motor control program.

7. The method according to claim 1, characterized in that The motor program block and the motor control program are pre-programmed in the Botu software using the SCL language.

8. A control device for a motor group, characterized in that: include: A response association module, for associating the target motor to be controlled with the corresponding input and output signal pins in the pre-designed motor program block in response to the control instruction of the motor group; A calling module, used for calling a pre-edited motor control program through the signal output by the input and output signal pin; A control module is used to control the target motor based on the motor control program.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a control program for a motor group stored in the memory to implement the control method for a motor group according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the control method of the motor group according to any one of claims 1 to 7.