A drive circuit, method, and PLC for driving multiple motors

By using PLC to control the relay coil in the motor drive circuit, one motor driver drives multiple motors, solving the problem of high control cost of multiple motors in the prior art, achieving the effect of saving control costs.

CN118944494BActive Publication Date: 2025-07-11GOOD VISION PRECISION INSTR CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411040414.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2025-07-11
Estimated Expiration
2044-07-31

AI Technical Summary

Technical Problem

In the prior art, when controlling multiple motors, it is necessary to set up motor drivers and bus nodes that are equivalent to the number of motors, resulting in higher costs.

Method used

The driving circuit of multiple motors is driven by one motor driver, and the relay coil control circuit is controlled by a PLC to realize the coils of multiple relays to control the operation of multiple motors.

Benefits of technology

The use of one motor driver to control multiple motors is realized, saving control costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944494B_ABST
    Figure CN118944494B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of motor control, and provides a drive circuit, a method, and a PLC for driving multiple motors. The drive circuit includes: a PLC, a motor driver circuit, N motor circuits, and a relay coil control circuit; the motor driver circuit includes a motor driver, and each motor circuit includes a motor and contacts of multiple relays corresponding to the motor; the PLC is connected to the relay coil control circuit, and each motor circuit is connected to the motor driver circuit; the PLC is used to control the energization of the coils of multiple relays corresponding to the working motor in the relay coil control circuit; when the coils of multiple relays corresponding to the working motor are energized, the contacts of each relay in the motor circuit corresponding to the working motor are closed, and the motor driver in the motor driver circuit drives the working motor to work. The drive circuit in this application controls the relays of each motor, enabling one motor driver to control multiple motors, thus saving control costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of motor control, and particularly relates to a drive circuit, a method, and a PLC for driving multiple motors. Background Art

[0002] In the related art, one motor driver controls one motor, and one motor driver requires a PLC to provide an independent bus node.

[0003] Both the bus node and the motor driver need to be purchased at a cost. For example, the cost of one bus node of the Omron NJ series PLC is about 800 yuan, and the cost of one motor driver is about 760 yuan. When multiple motors need to be controlled, motor drivers and bus nodes equal in number to the motors need to be set, resulting in a high cost. Summary of the Invention

[0004] Aiming at the deficiencies of the prior art, the present application provides a drive circuit, a method, and a PLC for driving multiple motors, which can drive multiple motors through one motor driver, saving costs.

[0005] To solve the above problems, the present invention provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a drive circuit for driving multiple motors. The drive circuit includes: a PLC, a motor driver circuit, N motor circuits, and a relay coil control circuit; N is a positive integer greater than two;

[0007] Wherein, the motor driver circuit includes a motor driver, and each motor circuit includes a motor and contacts of a plurality of relays corresponding to the motor;

[0008] The PLC is connected to the relay coil control circuit, and each motor circuit is connected to the motor driver circuit;

[0009] When it is necessary to control the working motor among the N motors to work, the PLC is used to control the coils of a plurality of relays corresponding to the working motor in the relay coil control circuit to be energized;

[0010] When the coils of a plurality of relays corresponding to the working motor are energized, each contact of the relays in the motor circuit corresponding to the working motor closes, and the motor driver in the motor driver circuit drives the working motor to work.

[0011] In some embodiments, among the plurality of relays corresponding to each motor, there is a first relay, and the first relay includes a first contact and a second contact;

[0012] In each of the motor circuits, the first end of the first contact is connected to the motor driver circuit, and the second end of the first contact is connected to the motor;

[0013] When the first contact is closed, the motor driver circuit outputs a first braking signal to the motor;

[0014] In each of the motor circuits, the first end of the second contact is connected to the motor driver circuit, and the second end of the second contact is connected to the motor;

[0015] When the second contact is closed, the motor driver circuit outputs a second braking signal to the motor.

[0016] In some embodiments, among the multiple relays corresponding to each motor, there is a second relay, and the second relay includes a third contact and a fourth contact;

[0017] In each of the motor circuits, the first end of the third contact is connected to the positive limit switch, and the second end of the third contact is connected to the motor driver;

[0018] When the third contact is closed and the positive limit switch is triggered, the positive limit switch sends a positive direction limit signal to the motor driver;

[0019] In each of the motor circuits, the first end of the fourth contact is connected to the negative limit switch, and the second end of the fourth contact is connected to the negative direction limit signal input port of the motor driver;

[0020] When the fourth contact is closed and the negative limit switch is triggered, the negative limit switch sends a negative direction limit signal to the motor driver through the negative direction limit signal input port.

[0021] In some embodiments, the first relay further includes a fifth contact, and the second relay further includes a sixth contact;

[0022] The first end of the fifth contact is connected to a first preset signal source, the second end of the fifth contact is connected to the first end of the sixth contact, and the second end of the sixth contact is connected to the PLC;

[0023] When the fifth contact and the sixth contact are open, the first preset signal source sends a first signal to the PLC. When the fifth contact and the sixth contact are closed, an open circuit is formed between the first preset signal source and the PLC; or,

[0024] When the fifth contact and the sixth contact are closed, the first preset signal source sends a first signal to the PLC. When the fifth contact and the sixth contact are open, an open circuit is formed between the first preset signal source and the PLC.

[0025] In some embodiments, among the multiple relays corresponding to each motor, there is a third relay. The third relay includes a seventh contact, an eighth contact, a ninth contact, and a tenth contact.

[0026] The first end of the seventh contact is connected to the first power supply port of the motor driver, and the second end of the seventh contact is connected to the first working winding of the motor.

[0027] The first end of the eighth contact is connected to the second power supply port of the motor driver, and the second end of the eighth contact is connected to the first working winding of the motor.

[0028] When the seventh contact and the eighth contact are closed, the motor driver supplies power to the first working winding of the motor.

[0029] The first end of the ninth contact is connected to the third power supply port of the motor driver, and the second end of the ninth contact is connected to the second working winding of the motor.

[0030] The first end of the tenth contact is connected to the fourth power supply port of the motor driver, and the second end of the tenth contact is connected to the second working winding of the motor.

[0031] When the ninth contact and the tenth contact are closed, the motor driver supplies power to the second working winding of the motor.

[0032] In some embodiments, the motor driver circuit further includes a brake relay.

[0033] The first end of the coil of the brake relay is connected to the first control port of the motor driver, and the second end of the coil of the brake relay is connected to the first power supply.

[0034] The second control port of the motor driver is connected to the second power supply.

[0035] The first end of the eleventh contact of the brake relay is connected to the first power supply, and the second end of the eleventh contact of the brake relay is connected to the first end of the first contact.

[0036] The first end of the twelfth contact of the brake relay is connected to the second power supply, and the second end of the twelfth contact of the brake relay is connected to the first end of the second contact.

[0037] When the motor driver receives a brake control signal, the motor driver controls the coil of the brake relay to be energized through the first control port and the second control port, so that the eleventh contact and the twelfth contact are closed;

[0038] When the eleventh contact and the first contact are closed, the first power supply outputs a first brake signal to the motor;

[0039] When the twelfth contact and the second contact are closed, the second power supply outputs a second brake signal to the motor.

[0040] In a second aspect, an embodiment of the present application provides a driving method for driving multiple motors, which is applied to a driving circuit for driving multiple motors as in the first aspect. The driving method includes:

[0041] Receiving a motor control signal;

[0042] Determining a working motor according to the motor control signal;

[0043] Controlling the coil of the relay corresponding to the working motor in the relay coil control circuit to be energized.

[0044] In some embodiments, the method further includes:

[0045] After the coil of the relay corresponding to the working motor is energized, obtaining a judgment signal controlled by the fifth contact and the sixth contact;

[0046] Determining whether the fifth contact and the sixth contact are closed according to the judgment signal. If the fifth contact and the sixth contact are not closed, perform a preset error correction operation.

[0047] In some embodiments, the method further includes:

[0048] When receiving a working motor change signal indicating that the working motor changes from the first motor to the second motor, controlling the coil of the relay corresponding to the first motor in the relay coil control circuit to stop being energized;

[0049] Obtaining a first judgment signal controlled by the fifth contact and the sixth contact corresponding to the first motor;

[0050] When it is determined according to the first judgment signal that the fifth contact and the sixth contact corresponding to the first motor are disconnected, controlling the coil of the relay corresponding to the second motor in the relay coil control circuit to be energized.

[0051] In a third aspect, an embodiment of the present application further provides a PLC, and the PLC includes:

[0052] At least one processor; and,

[0053] A memory communicatively connected to the at least one processor; wherein,

[0054] The memory stores instructions executable by the at least one processor, and when the instructions are executed by the at least one processor, the at least one processor is enabled to execute the driving method for driving a plurality of motors as described in the second aspect.

[0055] This application provides a driving circuit, a method, and a PLC for driving a plurality of motors. The driving circuit includes: a PLC, a motor driver circuit, N motor circuits, and a relay coil control circuit; N is a positive integer greater than two; wherein, the motor driver circuit includes a motor driver, and each of the motor circuits includes a motor and contacts of a plurality of relays corresponding to the motor; the PLC is connected to the relay coil control circuit, and each of the motor circuits is connected to the motor driver circuit; when it is necessary to control a working motor among the N motors to work, the PLC is configured to control the coils of the plurality of relays corresponding to the working motor in the relay coil control circuit to be energized; when the coils of the plurality of relays corresponding to the working motor are energized, each of the contacts of the relays in the motor circuit corresponding to the working motor is closed, and the motor driver in the motor driver circuit drives the working motor to work. The driving circuit in this application controls the relays of each motor, so that one motor driver can control a plurality of motors, saving the control cost. Description of the Drawings

[0056] Figure 1 is a schematic diagram of the driving circuit for driving a plurality of motors provided by an embodiment of this application.

[0057] Figure 2 is a schematic diagram of the relay coil control circuit provided by an embodiment of this application.

[0058] Figure 3 is a schematic diagram of the motor driver circuit provided by an embodiment of this application.

[0059] Figure 4 is a schematic diagram of a motor circuit provided by an embodiment of this application.

[0060] Figure 5 is a schematic flowchart of the driving method for driving a plurality of motors provided by an embodiment of this application.

[0061] Figure 6 is a schematic structural diagram of a PLC provided by an embodiment of this application.

[0062] Figure 7It is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Detailed implementation manners

[0063] Next, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.

[0064] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality of" means two or more unless otherwise specifically defined.

[0065] Please refer to Figure 1 , Figure 1 is a schematic diagram of a drive circuit for driving a plurality of motors provided by an embodiment of the present application. As Figure 1 shown, the drive circuit 1 includes: a PLC 10, a motor driver circuit 20, N motor circuits 30, and a relay coil control circuit 40; N is a positive integer greater than two.

[0066] Among them, the motor driver circuit 20 includes a motor driver, and each of the motor circuits 30 includes a motor and contacts of a plurality of relays corresponding to the motor;

[0067] The PLC 10 is connected to the relay coil control circuit 40, and each of the motor circuits 30 is connected to the motor driver circuit 20.

[0068] When it is necessary to control the working motor among the N motors to work, the PLC 10 is used to control the coils of a plurality of relays corresponding to the working motor in the relay coil control circuit 40 to be energized.

[0069] When the coils of a plurality of relays corresponding to the working motor are energized, each of the contacts of the relays in the motor circuit corresponding to the working motor is closed, and the motor driver in the motor driver circuit 20 drives the working motor to work.

[0070] In some implementation manners, the PLC 10 is connected to the motor driver circuit 20, and the PLC 10 can send various control signals to the motor driver in the motor driver circuit 20.

[0071] Furthermore, Figure 1The middle motor circuit 30 is connected to the relay coil control circuit 40. Since the relay contacts are included in the motor circuit 30 and the relay coil is included in the relay coil control circuit 40, the relay contacts and the coil together form a relay.

[0072] Specifically, the working principle of the relay is mainly based on the electromagnetic effect. The relay internally contains a coil and a contact group. When the coil is energized, the magnetic field generated by the current will attract the iron core, thereby driving the contacts to act and realizing the on-off control of the circuit. When the coil is de-energized, the magnetic field disappears, and the iron core resets under the action of the spring, and the contacts also return to the original state.

[0073] Please refer to Figure 2 , Figure 2 which is a schematic diagram of the relay coil control circuit provided by the embodiment of the present application. As Figure 2 shown, Figure 2 the relay coil control circuit in it includes the PLC output module of a Programmable Logic Controller (PLC). The PLC output module includes output ports 21 to 40.

[0074] Figure 2 It also includes coil units 1 to 8.

[0075] Specifically, coil unit 1 includes the coils of relay KA31, relay KA32, and relay KA33; coil unit 2 includes the coils of relay KA34, relay KA35, and relay KA36;...; coil unit 8 includes the coils of relay KA60, relay KA61, and relay KA62.

[0076] It can be understood that Figure 2 the number of coil units in it is equal to the number of motors that can be controlled by the motor driver. For example Figure 2 if it includes 8 coil units, then 1 motor driver can control 8 motors. The specific control principle will be described in the following part of the specification, but the number of coil units in the present application is not limited to 8 and can be increased or decreased according to actual control requirements, Figure 2 and it should not be understood as a limitation on the number of coil units.

[0077] Furthermore, Figure 2 0V#1 in it represents the 0V power supply numbered 1, and 24V#1 represents the 24V power supply numbered 1. The same applies to the rest of the figures and will not be elaborated further.

[0078] In some embodiments, by controlling the signals of the output ports in the PLC output module, the energization state of the coil units can be controlled.

[0079] Optionally, only one coil unit is energized at the same time.

[0080] Please refer again to Figure 3 , Figure 3 which is a schematic diagram of the motor driver circuit provided by the embodiments of the present application. Figure 3 It includes a motor driver, and the motor driver includes a first module CN1, a second module CN2, and a third module CN3.

[0081] In some embodiments, the first module CN1 is a power access module for connecting to an external power supply to provide electrical energy required for the operation of the driver.

[0082] In some embodiments, the second module CN2 is a wiring terminal module for sending control signals (such as pulse and direction signals) to the motor to control the rotation direction and speed of the motor.

[0083] In some embodiments, the third module CN3 is an external signal input module for receiving external signals and performing control operations corresponding to the external signals, such as stopping the motor or triggering a home position return operation.

[0084] Specifically, the first port 1 of the third module CN3 is used to receive the negative direction limit signal CN3_4 of the reverse limit switch (RLS), the fourth port 4 of the third module CN3 is used to receive the positive direction limit signal CN3_1 of the forward limit switch (FLS), and the third port 3 of the third module CN3 is used to receive the home signal HOME.

[0085] In some embodiments, the eighth port 8 of the third module CN3 is used to connect to the 0V power supply numbered 1, the tenth port 10 of the third module CN3 is used to connect to the first end of the coil of the relay KA19, and the second end of the coil of the relay KA19 is connected to the 24V power supply numbered 1.

[0086] In some embodiments, the first end of the first contact of the relay KA19 is connected to the 24V power supply numbered 1, and the second end of the first contact of the relay KA19 is connected to Figure 4 the contact 1 of the relay KA32 in Figure 4 ; the first end of the second contact of the relay KA19 is connected to the 0V power supply numbered 1, and the second end of the second contact of the relay KA19 is connected to

[0087] In some embodiments, when the third module CN3 of the motor driver receives signal CN3_1 or signal CN3_4, the motor driver controls the coil of relay KA19 to be energized, causing the contacts of relay KA19 to close, thereby sending a first brake signal BK- and a second brake signal BK+ to the motor.

[0088] In some embodiments, the remaining ports in the third module CN3, for example, the second port 2 is connected to the PLC. When receiving the brake control signal from the PLC, the motor driver controls the coil of relay KA19 to be energized, causing the contacts of relay KA19 to close, thereby sending a first brake signal BK+ and a second brake signal BK- to the motor, achieving the PLC's active control of the motor brake.

[0089] In some embodiments, the first port 1 of the second module CN2 is used to output the first power signal CN2_A+, and the second port 2 of the second module CN2 is used to output the second power signal CN2_A-. The first port 1 and the second port 2 of the second module CN2 are used to supply power to the first working winding of the motor.

[0090] In some embodiments, the third port 3 of the second module CN2 is used to output the third power signal CN2_B+, and the fourth port 4 of the second module CN2 is used to output the fourth power signal CN2_B-. The third port 3 and the fourth port 4 of the second module CN2 are used to supply power to the second working winding of the motor.

[0091] It can be understood that the number of ports in the second module CN2 is determined by the number of windings of the motor, and the present application is not limited to setting 4.

[0092] Please refer to Figure 4 , Figure 4 which is a schematic diagram of a motor circuit provided by an embodiment of the present application. As Figure 4 shown, the motor circuit includes a motor, contacts 1 to 4 of relay KA31, contacts 1 to 4 of relay KA32, contacts 1 to 4 of relay KA33, a positive limit switch FLS, and a negative limit switch RLS.

[0093] In some embodiments, when the coil unit 1 in the Figure 2 is energized under the control of the PLC, the coils of relay KA31, relay KA32, and relay KA33 are energized. Therefore, contacts 1 to 4 of relay KA31, contacts 1 to 4 of relay KA32, and contacts 1 to 4 of relay KA33 all change from open to closed.

[0094] In some embodiments, when the contacts 3 and 4 of the relay KA31 are closed, if the motor moves to the negative direction limit position, the RLS changes from normally open to closed, and the motor driver receives the signal CN3_4; if the motor moves to the positive direction limit position, the FLS changes from normally open to closed, and the motor driver receives the signal CN3_1.

[0095] In some embodiments, if the contact 1 of the relay KA31 and the contact 3 of the relay KA32 are in the normally open state, the PLC receives the signal PLC 1.00. If any one of the contact 1 of the relay KA31 and the contact 3 of the relay KA32 is closed, the PLC cannot receive the signal PLC 1.00. Therefore, when the PLC receives the signal PLC 1.00, the PLC can confirm Figure 3 that the motor in Figure 3 is not the working motor. When the PLC does not receive the signal PLC 1.00, the PLC can confirm

[0096] In some embodiments, among the multiple relays corresponding to each of the motors, there is a first relay, and the first relay includes a first contact and a second contact.

[0097] For example Figure 4 the relays corresponding to the motor in

[0098] Optionally, the first relay is Figure 4 the relay KA32 in

[0099] In each of the motor circuits, the first end of the first contact is connected to the motor driver circuit, and the second end of the first contact is connected to the motor.

[0100] When the first contact is closed, the motor driver circuit outputs a first brake signal to the motor.

[0101] Exemplarily, the first brake signal is BK-.

[0102] In each of the motor circuits, the first end of the second contact is connected to the motor driver circuit, and the second end of the second contact is connected to the motor.

[0103] When the second contact is closed, the motor driver circuit outputs a second brake signal to the motor.

[0104] Exemplarily, the second brake signal is BK+.

[0105] With the above circuit structure, it is possible to control whether the brake signal can be transmitted to the motor in the motor circuit, that is, only the circuit in the motor circuit corresponding to the energized coil unit can receive the brake signal.

[0106] In some embodiments, among the multiple relays corresponding to each said motor, there is a second relay, and the second relay includes a third contact and a fourth contact.

[0107] Exemplarily, the second relay is Figure 4 relay KA31 in, the third contact is contact 4 of relay KA31, and the fourth contact is contact 3 of relay KA31.

[0108] In each said motor circuit, the first end of the third contact is connected to the positive limit switch, and the second end of the third contact is connected to the motor driver.

[0109] When the third contact is closed and the positive limit switch is triggered, the positive limit switch sends a positive direction limit signal to the motor driver.

[0110] In each said motor circuit, the first end of the fourth contact is connected to the negative limit switch, and the second end of the fourth contact is connected to the negative direction limit signal input port of the motor driver.

[0111] Exemplarily, the negative direction limit signal input port is Figure 3 port 4 of the third module CN3 in, and the positive direction limit signal input port is Figure 3 port 1 of the third module CN3 in.

[0112] When the fourth contact is closed and the negative limit switch is triggered, the negative limit switch sends a negative direction limit signal to the motor driver through the negative direction limit signal input port.

[0113] With the above circuit structure, it is possible to control whether the positive direction limit signal and the negative direction limit signal can be transmitted to the motor driver, that is, only the positive limit switch and the negative limit switch in the motor circuit corresponding to the energized coil unit play a limiting role.

[0114] In some embodiments, the first relay further includes a fifth contact, and the second relay further includes a sixth contact.

[0115] The first end of the fifth contact is connected to a first preset signal source, the second end of the fifth contact is connected to the first end of the sixth contact, and the second end of the sixth contact is connected to the PLC.

[0116] When the fifth contact and the sixth contact are disconnected, the first preset signal source sends a first signal to the PLC. When the fifth contact and the sixth contact are closed, an open circuit is formed between the first preset signal source and the PLC; or,

[0117] When the fifth contact and the sixth contact are closed, the first preset signal source sends a first signal to the PLC. When the fifth contact and the sixth contact are disconnected, an open circuit is formed between the first preset signal source and the PLC.

[0118] Exemplarily, the fifth contact is Figure 4 the contact 3 of the relay KA32 in Figure 4 and the first preset signal source is the 0V power supply numbered 2, and the sixth contact is

[0119] the contact 1 of the relay KA31 in

[0120] In some embodiments, among the multiple relays corresponding to each motor, there is a third relay, and the third relay includes a seventh contact, an eighth contact, a ninth contact, and a tenth contact.

[0121] The first end of the seventh contact is connected to the first power supply port of the motor driver, and the second end of the seventh contact is connected to the first working winding of the motor.

[0122] The first end of the eighth contact is connected to the second power supply port of the motor driver, and the second end of the eighth contact is connected to the first working winding of the motor.

[0123] When the seventh contact and the eighth contact are closed, the motor driver supplies power to the first working winding of the motor.

[0124] The first end of the ninth contact is connected to the third power supply port of the motor driver, and the second end of the ninth contact is connected to the second working winding of the motor.

[0125] The first end of the tenth contact is connected to the fourth power supply port of the motor driver, and the second end of the tenth contact is connected to the second working winding of the motor.

[0126] When the ninth contact and the tenth contact are closed, the motor driver supplies power to the second working winding of the motor.

[0127] Exemplarily, the third relay is, for example, Figure 4The relay KA33 therein, the seventh contact is, for example, contact 1 of the relay KA33, the eighth contact is, for example, contact 2 of the relay KA33, the ninth contact is, for example, contact 3 of the relay KA33, and the tenth contact is, for example, contact 4 of the relay KA33.

[0128] In some embodiments, the motor driver circuit further includes a brake relay. The first end of the coil of the brake relay is connected to the first control port of the motor driver, and the second end of the coil of the brake relay is connected to the first power supply.

[0129] The second control port of the motor driver is connected to the second power supply.

[0130] The first end of the eleventh contact of the brake relay is connected to the first power supply, and the second end of the eleventh contact of the brake relay is connected to the first end of the first contact.

[0131] The first end of the twelfth contact of the brake relay is connected to the second power supply, and the second end of the twelfth contact of the brake relay is connected to the first end of the second contact.

[0132] When the motor driver receives a brake control signal, the motor driver controls the coil of the brake relay to be energized through the first control port and the second control port, so that the eleventh contact and the twelfth contact are closed.

[0133] When the eleventh contact and the first contact are closed, the first power supply outputs a first brake signal to the motor.

[0134] When the twelfth contact and the second contact are closed, the second power supply outputs a second brake signal to the motor.

[0135] In some embodiments, the brake control signal can be sent by a PLC or can be a positive direction limit signal and a negative direction limit signal.

[0136] Exemplarily, the brake relay is Figure 3 the relay KA19 therein. The first power supply is, for example, a 24V power supply numbered 1, and the second power supply is, for example, a 0V power supply numbered 1.

[0137] Exemplarily, the first brake signal is BK+ and the second brake signal is BK-.

[0138] Through the above circuit structure, the brake control of the motor is realized, and the motor in the motor circuit where the coil is not energized will not receive a brake signal, realizing the control of multiple motors by one motor driver.

[0139] Please refer to Figure 5 ,Figure 5 It is a schematic flow chart of a driving method provided by an embodiment of the present application for driving multiple motors. As Figure 5 shown, this method 100 is applied to the above-mentioned driving circuit for driving multiple motors, and includes: steps 110 to 130.

[0140] Step 110: Receive a motor control signal.

[0141] Step 120: Determine the working motor according to the motor control signal.

[0142] In some embodiments, the driving circuit includes multiple motors, and the working motor is one of the multiple motors.

[0143] Step 130: Control the coil of the relay corresponding to the working motor in the relay coil control circuit to be energized.

[0144] In some embodiments, the method further includes:

[0145] (1) After the coil of the relay corresponding to the working motor is energized, obtain a judgment signal controlled by the fifth contact and the sixth contact;

[0146] (2) Determine whether the fifth contact and the sixth contact are closed according to the judgment signal. If the fifth contact and the sixth contact are not closed, perform a preset error correction operation.

[0147] In the above manner, the control effect of the PLC can be determined according to the judgment signal.

[0148] In some embodiments, the preset error correction operation includes controlling the motor to move to the positive limit direction to trigger the positive limit switch or move to the negative limit direction to trigger the negative limit switch, determining whether the motor driver receives a positive limit signal or a negative limit signal. If received, let the motor continue to work; if not received, send an error reminder to the host computer.

[0149] In the above manner, the interference such as the aging of the fifth contact and the sixth contact can be excluded.

[0150] In some embodiments, the method further includes:

[0151] (1) When receiving a working motor change signal indicating that the working motor changes from the first motor to the second motor, control the coil of the relay corresponding to the first motor in the relay coil control circuit to stop being energized.

[0152] (2) Obtain a first judgment signal controlled by the fifth contact and the sixth contact corresponding to the first motor.

[0153] When it is determined according to the first determination signal that the fifth contact and the sixth contact corresponding to the first motor are disconnected, the coil of the relay corresponding to the second motor in the relay coil control circuit is controlled to be energized.

[0154] In the above manner, the control signal can be prevented from being incorrectly sent to a non-operating motor.

[0155] Please refer to Figure 6 , Figure 6 which is a schematic structural diagram of a PLC provided by an embodiment of the present application. As Figure 6 shown, the PLC 200 includes: one or more processors 210 and a memory 220. Figure 6 Here, one processor 210 is taken as an example.

[0156] In some embodiments, the processor 210 and the memory 220 can be connected through a bus or other means. Figure 6 Here, connection through a bus is taken as an example.

[0157] In some embodiments, the processor 210 is configured to receive a motor control signal; determine a working motor according to the motor control signal; and control the coil of the relay corresponding to the working motor in the relay coil control circuit to be energized.

[0158] In some embodiments, the memory 220, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions / modules for a driving method for driving multiple motors in an embodiment of the present application. The processor 210 executes various functional applications and data processing of the PLC by running the non-volatile software programs, instructions, and modules stored in the memory 220, that is, implements the driving method for driving multiple motors in the above method embodiments.

[0159] In some embodiments, the memory 220 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the PLC, etc. In addition, the memory 220 can include a high-speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 220 can optionally include a memory remotely set with respect to the processor 210, and these remote memories can be connected to the controller through a network. Examples of the above networks include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0160] In some embodiments, one or more modules are stored in the memory 220 and, when executed by one or more processors 210, perform the driving method for driving a plurality of motors in any of the above method embodiments. For example, perform the Figure 5 method steps 110 to 130 described above.

[0161] Please refer to Figure 7 , Figure 7 which is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code 310 is stored in the computer-readable storage medium 300, and the program code 310 can be called by a processor to execute the driving method for driving a plurality of motors described in the above method embodiments.

[0162] The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has a storage space for program code that executes any method step in the above control method. These program codes can be read from or written into one or more computer program products. The program codes can be compressed in an appropriate form, for example.

[0163] In summary, the present application provides a driving circuit, a method, and a PLC for driving a plurality of motors. The driving circuit includes: a PLC, a motor driver circuit, N motor circuits, and a relay coil control circuit; N is a positive integer greater than two; wherein, the motor driver circuit includes a motor driver, and each of the motor circuits includes a motor and contacts of a plurality of relays corresponding to the motor; the PLC is connected to the relay coil control circuit, and each of the motor circuits is connected to the motor driver circuit; when it is necessary to control the operation of the working motor among the N motors, the PLC is used to control the energization of the coils of the plurality of relays corresponding to the working motor in the relay coil control circuit; when the coils of the plurality of relays corresponding to the working motor are energized, each of the contacts of the relays in the motor circuit corresponding to the working motor is closed, and the motor driver in the motor driver circuit drives the working motor to operate. The driving circuit in the present application controls the relays of each motor, enabling one motor driver to control a plurality of motors, thereby saving the control cost.

[0164] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.

Claims

1. A drive circuit for driving multiple motors, characterized in that, The drive circuit includes: a PLC, a motor driver circuit, N motor circuits, and a relay coil control circuit; N is a positive integer greater than two; Wherein, the motor driver circuit includes a motor driver, and each of the motor circuits includes a motor and contacts of a plurality of relays corresponding to the motor; The PLC is connected to the relay coil control circuit, and each of the motor circuits is connected to the motor driver circuit; When it is necessary to control the operation of the working motor among the N motors, the PLC is used to control the energization of the coils of a plurality of relays corresponding to the working motor in the relay coil control circuit; When the coils of a plurality of relays corresponding to the working motor are energized, each of the contacts of the relays in the motor circuit corresponding to the working motor is closed, and the motor driver in the motor driver circuit drives the working motor to operate; Each of the plurality of relays corresponding to each motor includes a first relay and a second relay, and the first relay includes a first contact and a second contact; The first relay further includes a fifth contact, and the second relay includes a sixth contact; A first end of the fifth contact is connected to a first preset signal source, a second end of the fifth contact is connected to a first end of the sixth contact, and a second end of the sixth contact is connected to the PLC; When the fifth contact and the sixth contact are disconnected, the first preset signal source sends a first signal to the PLC. When the fifth contact and the sixth contact are closed, an open circuit is formed between the first preset signal source and the PLC; or, When the fifth contact and the sixth contact are closed, the first preset signal source sends a first signal to the PLC. When the fifth contact and the sixth contact are disconnected, an open circuit is formed between the first preset signal source and the PLC; The motor driver circuit further includes a brake relay; A first end of the coil of the brake relay is connected to a first control port of the motor driver, and a second end of the coil of the brake relay is connected to a first power supply; A second control port of the motor driver is connected to a second power supply; A first end of an eleventh contact of the brake relay is connected to the first power supply, and a second end of the eleventh contact of the brake relay is connected to a first end of the first contact; A first end of a twelfth contact of the brake relay is connected to the second power supply, and a second end of the twelfth contact of the brake relay is connected to a first end of the second contact; When the motor driver receives a brake control signal, the motor driver controls the energization of the coil of the brake relay through the first control port and the second control port, so that the eleventh contact and the twelfth contact are closed; When the eleventh contact and the first contact are closed, the first power supply outputs a first brake signal to the motor; When the twelfth contact and the second contact are closed, the second power supply outputs a second brake signal to the motor; The drive circuit is used to obtain a judgment signal controlled by the fifth contact and the sixth contact after the coil of the relay corresponding to the working motor is energized; Determine whether the fifth contact and the sixth contact are closed according to the judgment signal. If the fifth contact and the sixth contact are not closed, perform a preset error correction operation. The preset error correction operation includes controlling the motor to move in the positive limit direction to trigger the positive limit switch or move in the negative limit direction to trigger the negative limit switch, and determining whether the motor driver receives a positive limit signal or a negative limit signal. If received, let the motor continue to work; if not received, send an error reminder to the host computer.

2. The drive circuit according to claim 1, wherein In each of the motor circuits, the first end of the first contact is connected to the motor driver circuit, and the second end of the first contact is connected to the motor; When the first contact is closed, the motor driver circuit outputs a first brake signal to the motor; In each of the motor circuits, the first end of the second contact is connected to the motor driver circuit, and the second end of the second contact is connected to the motor; When the second contact is closed, the motor driver circuit outputs a second brake signal to the motor.

3. The drive circuit according to claim 2, characterized in that, The second relay includes a third contact and a fourth contact; In each of the motor circuits, the first end of the third contact is connected to the positive limit switch, and the second end of the third contact is connected to the motor driver; When the third contact is closed and the positive limit switch is triggered, the positive limit switch sends a positive direction limit signal to the motor driver; In each of the motor circuits, the first end of the fourth contact is connected to the negative limit switch, and the second end of the fourth contact is connected to the negative direction limit signal input port of the motor driver; When the fourth contact is closed and the negative limit switch is triggered, the negative limit switch sends a negative direction limit signal to the motor driver through the negative direction limit signal input port.

4. The drive circuit according to claim 1, characterized in that Among the multiple relays corresponding to each motor, there is a third relay. The third relay includes a seventh contact, an eighth contact, a ninth contact, and a tenth contact; The first end of the seventh contact is connected to the first power supply port of the motor driver, and the second end of the seventh contact is connected to the first working winding of the motor; The first end of the eighth contact is connected to the second power supply port of the motor driver, and the second end of the eighth contact is connected to the first working winding of the motor; When the seventh contact and the eighth contact are closed, the motor driver supplies power to the first working winding of the motor; The first end of the ninth contact is connected to the third power supply port of the motor driver, and the second end of the ninth contact is connected to the second working winding of the motor; The first end of the tenth contact is connected to the fourth power supply port of the motor driver, and the second end of the tenth contact is connected to the second working winding of the motor; When the ninth contact and the tenth contact are closed, the motor driver supplies power to the second working winding of the motor.

5. A driving method for driving multiple motors, characterized in that, Applied to the drive circuit for driving multiple motors according to any one of claims 1-4, the drive method includes: Receiving a motor control signal; Determine the working motor according to the motor control signal; Control the coil of the relay corresponding to the working motor in the relay coil control circuit to be energized; After the coil of the relay corresponding to the working motor is energized, obtain the judgment signal controlled by the fifth contact and the sixth contact; Determine whether the fifth contact and the sixth contact are closed according to the judgment signal. If the fifth contact and the sixth contact are not closed, perform a preset error correction operation. The preset error correction operation includes controlling the motor to move to the positive limit direction to trigger the positive limit switch or move to the negative limit direction to trigger the negative limit switch, and judge whether the motor driver receives a positive limit signal or a negative limit signal. If received, let the motor continue to work; if not received, send an error reminder to the host computer.

6. The driving method according to claim 5, wherein The method further includes: When receiving a working motor change signal indicating that the working motor changes from the first motor to the second motor, control the coil of the relay corresponding to the first motor in the relay coil control circuit to stop being energized; Obtain a first judgment signal controlled by the fifth contact and the sixth contact corresponding to the first motor; When it is determined according to the first judgment signal that the fifth contact and the sixth contact corresponding to the first motor are disconnected, control the coil of the relay corresponding to the second motor in the relay coil control circuit to be energized.

7. A PLC, characterized in that, The PLC includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor. The instructions are executed by the at least one processor so that the at least one processor can execute the driving method for driving multiple motors according to any one of claims 5-6.

Citation Information

Patent Citations

  • Multi-motor time-sharing control system and imaging device

    CN105846726A

  • Control device and opening and closing control method of protecting cover plate

    CN108278058A

  • Control interface for medium voltage circuit breaker and switch

    CN114157182A

  • New energy stereo garage hoisting equipment motor brake control system and control method

    CN117526773A