Driving circuit and method for driving multiple motors and PLC

Through the PLC and motor driver circuit combined with the relay coil control circuit, one motor driver can drive multiple motors, solving the problem of high cost of controlling multiple motors in the prior art and saving motor driving costs.

CN118944494AActive Publication Date: 2024-11-12GOOD VISION PRECISION INSTR CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

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

Method used

A driving circuit is designed, through PLC and motor driver circuit, and a motor driver can drive multiple motors by using a relay coil control circuit, and the motor drive is realized by energizing the coil of the relay.

Benefits of technology

The function of one motor driver controlling multiple motors is realized, which significantly saves control costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118944494A_ABST
    Figure CN118944494A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of motor control, and provides a driving circuit and method for driving multiple motors and a PLC, and the driving circuit comprises the PLC, a motor driver circuit, N motor circuits, and a relay coil control circuit. The motor driver circuit comprises a motor driver, and each motor circuit comprises a motor and contacts of a plurality of relays corresponding to the motor; the PLC is connected to a relay coil control circuit, and each motor circuit is connected to a motor driver circuit; the PLC is used for controlling coils of a plurality of relays corresponding to a working motor in the relay coil control circuit to be electrified; and when the coils of the relays corresponding to the working motor are electrified, the contact of each relay 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. According to the driving circuit, by controlling the relay of each motor, a plurality of motors can be controlled by one motor driver, and the control cost is saved.
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 in particular to a driving circuit, method and PLC for driving multiple motors. Background Art

[0002] In the related art, one motor driver controls one motor, and one motor driver requires a separate bus node from the PLC.

[0003] Both bus nodes and motor drivers require cost to purchase. For example, the cost of a bus node of Omron's NJ series PLC is about 800 yuan, and the cost of a motor driver is about 760 yuan. When multiple motors need to be controlled, it is necessary to set up motor drivers and bus nodes equal to the number of motors, which is costly. Summary of the invention

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

[0005] To solve the above problems, the present invention provides the following technical solutions: In a first aspect, an embodiment of the present application provides a driving circuit for driving multiple motors, the driving circuit comprising: 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 working motor among the N motors to work, the PLC is used to control the coils of the multiple relays corresponding to the working motors in the relay coil control circuit to be energized; When the coils of the multiple relays corresponding to the working motor are energized, the contact of each relay 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.

[0006] In some embodiments, the plurality of relays corresponding to each of the motors includes a first relay, and the first relay includes a first contact and a second contact; In each of the motor circuits, the first end of the first contact is connected to the motor driver, and the second end of the first contact is connected to the motor; When the first contact is closed, the motor driver 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, and the second end of the second contact is connected to the motor; When the second contact is closed, the motor driver outputs a second brake signal to the motor.

[0007] In some embodiments, the plurality of relays corresponding to each of the motors includes a second relay, and the second relay includes a third contact and a fourth contact; In each of the motor circuits, a first end of the third contact is connected to a positive limit switch, and a 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 through the negative direction limit signal input port.

[0008] In some embodiments, the first relay further includes a fifth contact, and the second relay further includes a sixth contact; The first end of the fifth contact is connected to the 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; When the fifth contact and the sixth contact are disconnected, the first preset signal source sends a first signal to the PLC, and 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, and when the fifth contact and the sixth contact are disconnected, an open circuit is formed between the first preset signal source and the PLC.

[0009] In some embodiments, the plurality of relays corresponding to each of the motors includes a third relay, and the third relay includes a seventh contact, an eighth contact, a ninth contact, and a tenth contact; A first end of the seventh contact is connected to a first power supply port of the motor driver, and a second end of the seventh contact is connected to a first working winding of the motor; A first end of the eighth contact is connected to a second power supply port of the motor driver, and a second end of the eighth contact is connected to a 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.

[0010] In some embodiments, 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 source; The second control port of the motor driver is connected to a second power supply; 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; 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; 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; 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.

[0011] In a second aspect, an embodiment of the present application provides a driving method for driving multiple motors, which is applied to the driving circuit for driving multiple motors in the first aspect, and the driving method includes: receiving motor control signals; Determine the working motor according to the motor control signal; The coil of the relay corresponding to the working motor in the relay coil control circuit is controlled to be energized.

[0012] In some embodiments, the method further comprises: 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; Determine whether the fifth contact and the sixth contact are closed according to the judgment signal, and if the fifth contact and the sixth contact are not closed, perform a preset error correction operation.

[0013] In some embodiments, the method further comprises: When receiving a working motor change signal indicating that the working motor is changed 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 energizing; Acquire a first determination signal controlled by a fifth contact and a 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, the coil of the relay corresponding to the second motor in the relay coil control circuit is controlled to be energized.

[0014] In a third aspect, an embodiment of the present application further provides a PLC, wherein the PLC comprises: 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, and the instructions are executed by the at least one processor so that the at least one processor can perform the driving method for driving multiple motors according to the second aspect. The present application provides a driving circuit, method and PLC for driving multiple motors, the driving circuit comprising: 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 comprises a motor driver, each of the motor circuits comprises a motor and contacts of multiple 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 working motors among the N motors to work, the PLC is used to control the coils of the multiple relays corresponding to the working motors in the relay coil control circuit to be energized; when the coils of the multiple relays corresponding to the working motors are energized, the contacts of each relay in the motor circuit corresponding to the working motors are closed, and the motor driver in the motor driver circuit drives the working motors to work. The driving circuit in the present application realizes one motor driver controlling multiple motors by controlling the relays of each motor, saving control costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a schematic diagram of a driving circuit for driving multiple motors provided in an embodiment of the present application.

[0016] Figure 2 Schematic diagram of a relay coil control circuit provided in an embodiment of the present application.

[0017] Figure 3 Schematic diagram of a motor driver circuit provided in an embodiment of the present application.

[0018] Figure 4 It is a schematic diagram of a motor circuit provided in an embodiment of the present application.

[0019] Figure 5 It is a flow chart of a driving method for driving multiple motors provided in an embodiment of the present application.

[0020] Figure 6 It is a structural diagram of a PLC provided in an embodiment of the present application.

[0021] Figure 7 It is a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0023] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0024] See also Figure 1 , Figure 1 is a schematic diagram of a driving circuit for driving multiple motors provided in an embodiment of the present application. Figure 1 As 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.

[0025] Wherein, 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; 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 .

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

[0027] When the coils of the 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 20 drives the working motor to work.

[0028] In some embodiments, 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 .

[0029] Further, Figure 1 The motor circuit 30 is connected to the relay control circuit 40 , because the motor circuit 30 includes the contacts of the relay, and the relay control circuit 40 includes the coil of the relay, and the contacts and the coil of the relay together constitute a relay.

[0030] Specifically, the working principle of the relay is mainly based on the electromagnetic effect. The relay 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 move and realize the on-off control of the circuit. When the coil is de-energized, the magnetic field disappears, the iron core is reset under the action of the spring, and the contacts also return to their original state.

[0031] See also Figure 2 , Figure 2 Schematic diagram of a relay coil control circuit provided in an embodiment of the present application. Figure 2 As shown, Figure 2 The relay coil control circuit includes a programmable logic controller (PLC) output module, and the PLC output module includes output ports 21 to 40.

[0032] Figure 2 The coil unit 1 to the coil unit 8 are also included.

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

[0034] Understandably, Figure 2 The number of coil units is equal to the number of motors that the motor driver can control, e.g. Figure 2 Including 8 coil units, one motor driver can control 8 motors. The specific control principle will be described in the following part of the specification. However, the number of coil units in this application is not limited to 8 and can be increased or decreased according to actual control requirements. Figure 2 This should not be understood as limiting the number of coil units.

[0035] Further, Figure 2 0V#1 represents the 0V power supply numbered 1, and 24V#1 represents the 24V power supply numbered 1. The same is true for the other figures and will not be repeated here.

[0036] In some embodiments, the power-on state of the coil unit can be controlled by controlling the signal of the output port in the PLC output module.

[0037] Optionally, only one coil unit is energized at a time.

[0038] Please refer to Figure 3 , Figure 3 Schematic diagram of a motor driver circuit provided in an embodiment of the present application. Figure 3 The motor driver includes a first module CN1, a second module CN2, and a third module CN3.

[0039] In some embodiments, the first module CN1 is a power access module, which is used to connect to an external power source to provide the driver with the power required for operation.

[0040] In some embodiments, the second module CN2 is a wiring terminal module, which is used to send a control signal (such as a pulse and a direction signal) to the motor to control the rotation direction and speed of the motor.

[0041] In some embodiments, the third module CN3 is an external signal input module, which is used to receive an external signal and execute a control operation corresponding to the external signal, such as stopping a motor or triggering a return to origin action.

[0042] Specifically, the first port 1 of the third module CN3 is used to receive the negative direction limit signal CN3_1 of the negative limit switch (Reverse Limit Switch, RLS), the fourth port 4 of the third module CN3 is used to receive the positive direction limit signal CN3_4 of the positive limit switch (ForwordLimit switch, FLS), and the third port 3 of the third module CN3 is used to receive the origin signal HOME.

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

[0044] 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 the 24V power supply numbered 1. 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 the Figure 4 Contact 2 of relay KA32 in.

[0045] In some embodiments, when the third module CN3 of the motor driver receives the signal CN3_1 or the signal CN3_4, the motor driver controls the coil of the relay KA19 to energize, so that the contacts of the relay KA19 are closed, thereby sending the first brake signal BK- and the second brake signal BK+ to the motor.

[0046] In some embodiments, the remaining ports in the third module CN3, such as the second port 2, are connected to the PLC. When the brake control signal of the PLC is received, the motor driver controls the coil of the relay KA19 to energize, so that the contacts of the relay KA19 are closed, thereby sending the first brake signal BK+ and the second brake signal BK- to the motor, thereby realizing the PLC's active control of the motor braking.

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

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

[0049] 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 ports.

[0050] Please refer to Figure 4 , Figure 4 is a schematic diagram of a motor circuit provided in an embodiment of the present application. Figure 4 As 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.

[0051] In some embodiments, when the PLC controls Figure 2 When coil unit 1 in is energized, the coils of relay KA31, relay KA32 and relay KA33 are energized, so contacts 1 to contact 4 of relay KA31, contacts 1 to contact 4 of relay KA32, and contacts 1 to contact 4 of relay KA33 are all changed from open to closed.

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

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

[0054] In some embodiments, the plurality of relays corresponding to each of the motors includes a first relay, and the first relay includes a first contact and a second contact.

[0055] For example Figure 4The relays corresponding to the motor include relay KA31, relay KA32 and relay KA33.

[0056] Optionally, the first relay is Figure 4 In the relay KA32, the first contact is contact 1 of relay KA32, and the second contact is contact 2 of relay KA32.

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

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

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

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

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

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

[0063] Through 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.

[0064] In some embodiments, the plurality of relays corresponding to each of the motors includes a second relay, and the second relay includes a third contact and a fourth contact.

[0065] For example, the second relay is Figure 4 In the relay KA31, the third contact is contact 4 of the relay KA31, and the fourth contact is contact 3 of the relay KA31.

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

[0067] 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.

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

[0069] For example, the negative direction limit signal input port is Figure 3 The fourth port 4 of the third module CN3 in the positive direction limit signal input port is Figure 3 The first port 1 of the third module CN3.

[0070] 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 through the negative direction limit signal input port.

[0071] Through 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.

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

[0073] The first end of the fifth contact is connected to the 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.

[0074] When the fifth contact and the sixth contact are disconnected, the first preset signal source sends a first signal to the PLC, and 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, and when the fifth contact and the sixth contact are disconnected, an open circuit is formed between the first preset signal source and the PLC.

[0075] Exemplarily, the fifth contact is Figure 4 The first preset signal source is the 0V power supply numbered 2, and the sixth contact is Figure 4 Contact 1 of relay KA31 in.

[0076] Through the above method, the PLC can detect whether the contacts corresponding to the relay are closed correctly, thereby forming a closed-loop control to ensure the control effect.

[0077] In some embodiments, the plurality of relays corresponding to each of the motors includes a third relay, and the third relay includes a seventh contact, an eighth contact, a ninth contact, and a tenth contact.

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

[0079] 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.

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

[0081] 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.

[0082] 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.

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

[0084] For example, the third relay is Figure 4 In the relay KA33, 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.

[0085] In some embodiments, the motor driver circuit further includes a brake relay, a first end of a 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 source.

[0086] The second control port of the motor driver is connected to a second power source.

[0087] A first end of the eleventh contact of the brake relay is connected to the first power source, and a second end of the eleventh contact of the brake relay is connected to the first end of the first contact.

[0088] 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.

[0089] When the motor driver receives the 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.

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

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

[0092] In some implementations, the brake control signal may be sent by a PLC, or may be a positive direction limit signal and a negative direction limit signal.

[0093] For example, the brake relay is Figure 3 Relay KA19 in the relay, 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.

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

[0095] Through the above circuit structure, the brake control of the motor is realized, and the motor in the motor circuit whose coil is not energized will not receive the brake signal, so that one motor driver can control multiple motors.

[0096] Please refer to Figure 5 , Figure 5 FIG. 1 is a flow chart of a driving method for driving multiple motors provided in an embodiment of the present application. Figure 5 As shown, the method 100 is applied to the above-mentioned driving circuit for driving multiple motors, including: steps 110 to 130.

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

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

[0099] In some embodiments, the driving circuit includes a plurality of motors, and the working motor is one of the plurality of motors.

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

[0101] In some embodiments, the method further comprises: (1) 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; (2) 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, executing a preset error correction operation.

[0102] Through the above method, the control effect of the PLC can be determined according to the judgment signal.

[0103] 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 to move to 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, the motor continues to work; if not, an error reminder is sent to the host computer.

[0104] Through the above method, interference caused by aging of the fifth contact and the sixth contact can be eliminated.

[0105] In some embodiments, the method further comprises: (1) When a working motor change signal indicating that the working motor is changed from the first motor to the second motor is received, the coil of the relay corresponding to the first motor in the relay coil control circuit is controlled to stop being energized.

[0106] (2) Obtaining a first determination signal controlled by a fifth contact and a sixth contact corresponding to the first motor.

[0107] (3) 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, the coil of the relay corresponding to the second motor in the relay coil control circuit is controlled to be energized.

[0108] By adopting the above method, it is possible to prevent the control signal from being mistakenly sent to a non-working motor.

[0109] See also Figure 6 , Figure 6 Schematic diagram of a PLC structure provided by an embodiment of the present application. Figure 6 As shown, PLC200 includes: one or more processors 210 and a memory 220, Figure 6 A processor 210 is taken as an example.

[0110] In some implementations, the processor 210 and the memory 220 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0111] In some implementations, 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 a relay corresponding to the working motor in the relay coil control circuit to be energized.

[0112] 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 driving a plurality of motors in the 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 a plurality of motors in the above method embodiment.

[0113] In some embodiments, the memory 220 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the PLC, etc. In addition, the memory 220 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 220 may optionally include a memory remotely arranged relative to the processor 210, and these remote memories may be connected to the controller via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

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

[0115] Please refer to Figure 7 , Figure 7 The computer-readable storage medium 300 stores a program code 310, which can be called by a processor to execute the driving method for driving multiple motors described in the above method embodiment.

[0116] 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 codes for executing any method steps in the above control method. These program codes may be read from or written to one or more computer program products. The program code may be compressed, for example, in an appropriate form.

[0117] In summary, the present application provides a driving circuit, method and PLC for driving multiple motors, the driving circuit comprising: 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 comprises a motor driver, each of the motor circuits comprises a motor and contacts of multiple 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 working motors among the N motors to work, the PLC is used to control the coils of the multiple relays corresponding to the working motors in the relay coil control circuit to be energized; when the coils of the multiple relays corresponding to the working motors are energized, the contacts of each relay in the motor circuit corresponding to the working motors are closed, and the motor driver in the motor driver circuit drives the working motors to work. The driving circuit in the present application realizes one motor driver controlling multiple motors by controlling the relays of each motor, saving control costs.

[0118] 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 it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, 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 embodiments of the present application.

Claims

1. A driving circuit for driving multiple motors, It is 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 working motor among the N motors to work, the PLC is used to control the coils of the multiple relays corresponding to the working motors in the relay coil control circuit to be energized; When the coils of the multiple relays corresponding to the working motor are energized, the contact of each relay 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.

2. The driving circuit according to claim 1, It is characterized in that The plurality of relays corresponding to each of the motors include a first relay, wherein the first relay includes a first contact and a second contact; In each of the motor circuits, the first end of the first contact is connected to the motor driver, and the second end of the first contact is connected to the motor; When the first contact is closed, the motor driver 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, and the second end of the second contact is connected to the motor; When the second contact is closed, the motor driver outputs a second brake signal to the motor.

3. The driving circuit according to claim 2, It is characterized in that The plurality of relays corresponding to each of the motors include a second relay, and the second relay includes a third contact and a fourth contact; In each of the motor circuits, a first end of the third contact is connected to a positive limit switch, and a 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 through the negative direction limit signal input port.

4. The driving circuit according to claim 3, It is characterized in that The first relay further includes a fifth contact, and the second relay further includes a sixth contact; The first end of the fifth contact is connected to the 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; When the fifth contact and the sixth contact are disconnected, the first preset signal source sends a first signal to the PLC, and 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, and when the fifth contact and the sixth contact are disconnected, an open circuit is formed between the first preset signal source and the PLC.

5. The driving circuit according to claim 4, It is characterized in that The plurality of relays corresponding to each of the motors include a third relay, and the third relay includes a seventh contact, an eighth contact, a ninth contact, and a tenth contact; A first end of the seventh contact is connected to a first power supply port of the motor driver, and a second end of the seventh contact is connected to a first working winding of the motor; A first end of the eighth contact is connected to a second power supply port of the motor driver, and a second end of the eighth contact is connected to a 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.

6. The driving circuit according to claim 2, It is characterized in that The motor driver circuit also 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 source; The second control port of the motor driver is connected to a second power supply; 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; 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; 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; 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.

7. A driving method for driving a plurality of motors, It is characterized in that Applied to the driving circuit for driving multiple motors as claimed in any one of claims 1 to 6, the driving method comprising: receiving motor control signals; Determine the working motor according to the motor control signal; The coil of the relay corresponding to the working motor in the relay coil control circuit is controlled to be energized.

8. The driving method according to claim 7, It is characterized in that The method further comprises: 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; Determine whether the fifth contact and the sixth contact are closed according to the judgment signal, and if the fifth contact and the sixth contact are not closed, perform a preset error correction operation.

9. The driving method according to claim 8, It is characterized in that The method further comprises: When receiving a working motor change signal indicating that the working motor is changed 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 energizing; Acquire a first determination signal controlled by a fifth contact and a 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, the coil of the relay corresponding to the second motor in the relay coil control circuit is controlled to be energized.

10. A PLC, It is characterized in that The PLC comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and 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 as described in any one of claims 7 to 9.

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

  • Cigarette mechanism is dialled to passageway machine

    CN206013653U