CN114594713A - Network adapter, control system, and motor control method - Google Patents

Network adapter, control system, and motor control method Download PDF

Info

Publication number
CN114594713A
CN114594713A CN202210256606.6A CN202210256606A CN114594713A CN 114594713 A CN114594713 A CN 114594713A CN 202210256606 A CN202210256606 A CN 202210256606A CN 114594713 A CN114594713 A CN 114594713A
Authority
CN
China
Prior art keywords
motor
data
cluster
motor cluster
communication module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210256606.6A
Other languages
Chinese (zh)
Inventor
周招弟
魏君燕
俞益锋
方双全
姜泽
张海南
苏阳阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wolong Electric Drive Group Co Ltd
Original Assignee
Wolong Electric Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wolong Electric Group Co Ltd filed Critical Wolong Electric Group Co Ltd
Priority to CN202210256606.6A priority Critical patent/CN114594713A/en
Publication of CN114594713A publication Critical patent/CN114594713A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21063Bus, I-O connected to a bus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Control Of Multiple Motors (AREA)

Abstract

The invention discloses a network adapter, a control system and a control method of a motor. Wherein, this network adapter includes: the Ethernet communication module is used for receiving a target instruction; the serial communication module is used for receiving the operating data of different motor clusters, wherein each motor cluster comprises a plurality of motors adopting the same serial data communication protocol; the central processing unit is respectively connected with the Ethernet communication module and the serial communication module and is used for determining configuration data of a serial data communication protocol corresponding to the motor cluster, processing operation data acquired according to the configuration data according to a target instruction, and sending a processing result to the control end through the Ethernet communication module or sending the processing result to the motor cluster through the serial communication module; and the storage module is connected with the central processing unit and used for storing the configuration data and the operation data of the motor cluster. The invention solves the technical problem that the bidirectional interaction between the motor cluster and the control end cannot be effectively realized in the related technology.

Description

Network adapter, control system, and motor control method
Technical Field
The invention relates to the technical field of motor control, in particular to a network adapter, a control system and a motor control method.
Background
An Electric Commutation (EC) motor is widely used in Heating, Ventilation and Air Conditioning (HVAC) and refrigeration fields, especially in data centers, building breeding centers and other places. The working scene requires that a plurality of motors are clustered on the spot, and the system function is realized by controlling the linkage of the plurality of motors. To realize the bidirectional interaction between the cluster motor and the control end, the following schemes are generally adopted, wherein the following technical problems exist:
(1) and an industrial router is used for helping the motor to realize data uploading through a communication interface matched with the motor. But the method can generally only complete ordinary data transparent transmission and cannot perform control management; in an actual field, the types and the quantity of data protocols are numerous, and the router cannot analyze the protocols and only transmits the protocols to the server end, so that the construction difficulty of the server end is increased.
(2) And interacting with an upper computer through a communication protocol converter. Because the number of motors is large, a plurality of different controllers exist, a specific communication program needs to be customized to be matched with the different controllers, and a common strategy is to adopt different converters, so that the operation is inconvenient and the process is complex.
(3) When the motors with the same protocol use the gateway to communicate with the upper computer, the motors are usually placed in the same network segment, each motor device is allocated with an IP address, and theoretically, 253 devices are connected at most, which is insufficient in a large-scale scene.
In view of the above-mentioned problem that the bidirectional interaction between the motor cluster and the control end cannot be effectively realized in the related art, an effective solution has not been proposed yet.
Disclosure of Invention
The embodiment of the invention provides a network adapter, a control system and a motor control method, which at least solve the technical problem that bidirectional interaction between a motor cluster and a control end cannot be effectively realized in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a network adapter including: the Ethernet communication module is used for receiving a target instruction, wherein the target instruction is an instruction which is sent by the control terminal and used for indicating an operation to be executed, and the operation to be executed comprises at least one of the following operations: the method comprises the following steps of a first operation and a second operation, wherein the first operation and the second operation are two different operations; the serial communication module is used for receiving operating data of different motor clusters, wherein each motor cluster comprises a plurality of motors adopting the same serial data communication protocol; the central processing unit is respectively connected with the Ethernet communication module and the serial communication module, and is used for determining configuration data of the serial data communication protocol corresponding to the motor cluster, processing the operation data acquired according to the configuration data according to the target instruction, and sending a processing result to the control terminal through the Ethernet communication module or sending the processing result to the motor cluster through the serial communication module; and the storage module is connected with the central processing unit and used for storing the configuration data and the operation data of the motor cluster.
Optionally, the ethernet communication module includes at least one ethernet data interface, and a communication Protocol supported by the ethernet data interface is a Transmission Control Protocol/Internet Protocol (TCP/IP).
Optionally, the serial communication module includes a plurality of ports, and the plurality of ports respectively support different serial data communication protocols.
Optionally, each port is correspondingly connected with one motor cluster.
Optionally, each of the ports externally connects one of the motor clusters using a predetermined serial bus.
Optionally, the storage module is a charged erasable programmable read only memory, and the charged erasable programmable read only memory includes a plurality of registers, where the registers are used to store configuration data and operation data corresponding to motors of different brands and models.
Optionally, the motor is an electronic commutation motor, wherein a predetermined number is used to represent the electronic commutation motor, and a predetermined group number is used to represent the motor cluster where the electronic commutation motor is located.
According to another aspect of the embodiments of the present invention, there is also provided a control method of a motor, applied to any one of the above network adapters, wherein a central processing unit of the network adapter executes the method, and the method includes: acquiring a target instruction sent by a control end, wherein the target instruction is used for indicating an operation to be executed, and the operation to be executed comprises at least one of the following operations: the method comprises the following steps of a first operation and a second operation, wherein the first operation and the second operation are two different operations; analyzing the target instruction to obtain an analysis result; and monitoring or controlling the operation data of the motor cluster according to the analysis result.
Optionally, monitoring or controlling the operation data of the motor cluster according to the analysis result includes: under the condition that the analysis result is a monitoring instruction, reading the operation data of the motor cluster stored in the storage module according to the monitoring instruction; performing first conversion processing on the operating data to obtain a transmission control protocol/internet protocol data packet; transmitting the transmission control protocol/internet protocol data packet to the control end; or, under the condition that the analysis result is a control instruction, determining the operating data of the motor cluster to be adjusted according to the control instruction, and writing the operating data of the motor cluster to be adjusted into the storage module; performing second conversion processing on the operating data of the motor cluster to be adjusted to obtain a control command; and sending the control command to the motor cluster.
Optionally, before the target instruction sent by the control end is obtained, the method further includes: determining the operation data of the motor cluster and the configuration data corresponding to the motor cluster; and storing the operation data of the motor cluster and the configuration data corresponding to the motor cluster to the storage module.
Optionally, determining the operation data of the motor cluster and the configuration data corresponding to the motor cluster includes: acquiring the brand model of the motor cluster; determining configuration data of the motor cluster according to the brand model; acquiring operating parameters of the motor cluster; and determining the operation data of the motor cluster according to the configuration data and the operation parameters of the motor cluster.
According to another aspect of the embodiments of the present invention, there is also provided a control system including: the switch is respectively connected with the server, the at least one PC and the at least one adapter, wherein the adapter is any one of the network adapters.
In an embodiment of the present invention, the network adapter includes: the Ethernet communication module is used for receiving a target instruction, wherein the target instruction is an instruction which is sent by the control terminal and used for indicating an operation to be executed, and the operation to be executed comprises at least one of the following operations: the method comprises the following steps of a first operation and a second operation, wherein the first operation and the second operation are two different operations; the serial communication module is used for receiving the operating data of different motor clusters, wherein each motor cluster comprises a plurality of motors adopting the same serial data communication protocol; the central processing unit is respectively connected with the Ethernet communication module and the serial communication module and is used for determining configuration data of a serial data communication protocol corresponding to the motor cluster and processing operation data acquired according to target instructions according to the configuration data, and sending a processing result to the control end through the Ethernet communication module or sending the processing result to the motor cluster through the serial communication module; the storage module is connected with the central processing unit and used for storing the configuration data and the operation data of the motor cluster, the control end can monitor and control the motor cluster through the network adapter, and the purpose of bidirectional interaction between the motor cluster and the control end is achieved, so that the technical effects of meeting data transmission requirements, reducing debugging time and improving working efficiency are achieved, and the technical problem that the bidirectional interaction between the motor cluster and the control end cannot be effectively achieved in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a network adapter according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an EC motor with a one-to-many network adapter that can simultaneously implement communication control for multiple devices, according to an alternative embodiment of the present invention;
FIG. 3 is a schematic diagram of multiple adapters simultaneously connected to multiple PCs or servers through a switch in accordance with an alternative embodiment of the present invention;
fig. 4 is a flowchart of a control method of a motor according to an embodiment of the present invention;
fig. 5 is a software flow diagram of a network adapter in accordance with an alternative embodiment of the present invention.
Wherein the figures include the following reference numerals:
10. a network adapter; 12. an Ethernet communication module; 14. a serial communication module; 16. a central processing unit; 18. a storage module; 30. a switch; 32. a server; 34. a PC machine.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an aspect of an embodiment of the present invention, there is provided a network adaptor, which can be applied to a complex situation including, but not limited to, a plurality of different motor clusters distributed at different locations, fig. 1 is a schematic diagram of a network adaptor according to an embodiment of the present invention, as shown in fig. 1, the network adaptor 10 includes: the ethernet communication module 12 is configured to receive a target instruction, where the target instruction is an instruction sent by the control end and used for instructing an operation to be executed, and the operation to be executed includes at least one of the following operations: the method comprises the following steps of a first operation and a second operation, wherein the first operation and the second operation are two different operations; the serial communication module 14 is used for receiving the operation data of different motor clusters, wherein the motor clusters comprise a plurality of motors adopting the same serial data communication protocol; the central processing unit 16 is connected to the ethernet communication module 12 and the serial communication module 14, and configured to determine configuration data of a serial data communication protocol corresponding to the motor cluster, process operation data obtained according to the configuration data according to a target instruction, and send a processing result to the control end through the ethernet communication module 12 or to the motor cluster through the serial communication module 14; and the storage module 18 is connected with the central processing unit 16 and is used for storing the configuration data and the operation data of the motor cluster.
Alternatively, the first operation and the second operation may be any one of an inquiry operation and a control operation. In addition, in the implementation process, the operation to be performed includes, but is not limited to, a query operation or a control operation.
The network adapter comprises two data transmission modules, one is an ethernet communication module 12, and the other is a serial communication module 14, wherein the ethernet communication module 12 can be used for externally connecting a control end and receiving an operation command sent by the control end, that is, receiving a target instruction; the serial communication module 14 may be used to connect different motor clusters externally, so that the module may receive operation data of different motor clusters.
It should be noted that the same motor cluster uses the same port of the serial communication module 14 and uses the same communication protocol. The control terminal includes, but is not limited to, a PC, a server, and the like. The serial communication module 14 includes a plurality of ports, wherein each port may be connected to a motor cluster.
In an optional implementation manner, the network adapter 10 may perform, by using the central processing unit 16, a first conversion process on the operation data obtained according to the configuration data corresponding to the motor cluster according to the target instruction, and send the processed operation data to the control end through the ethernet communication module 12, so as to implement monitoring on the motor cluster. For example, when the target instruction is an inquiry instruction, the central processing unit acquires the operating data according to the instruction, converts the operating data into a data packet supporting TCP/IP, and sends the data packet out through the ethernet communication module.
In an optional implementation manner, the network adapter 10 may further perform, by using the central processing unit 16, a second conversion process on the operation data obtained according to the configuration data corresponding to the motor cluster according to the target instruction, and send the processed operation data to the control end through the serial communication module 14, so as to implement control on the motor cluster. For example, when the target instruction is a control instruction, the central processing unit analyzes the operating data adjusted according to the instruction, converts the operating data into a corresponding control command according to the serial communication protocol rule, and sends the control command out through the serial communication module, wherein the control command is used for controlling any one motor in the motor cluster.
In an alternative embodiment, the configuration data includes, but is not limited to, baud rate, data bits, stop bits, parity bits, and the like. The operational data of the motor cluster includes, but is not limited to, the speed, current, power, torque, maximum speed, steering, etc. of each motor. Further, the network adapter 10 not only can realize simple transparent transmission of data, but also can complete batch reading of information such as query of rotating speed, current, power, torque and the like under the condition of motor state expansion, and setting of multiple operations such as maximum rotating speed, steering, rotating speed and the like, thereby becoming a control center of a motor cluster and meeting the use requirements of operators.
In the above embodiment of the present invention, the network adapter 10 can implement monitoring and controlling of the motor cluster by the control end, and achieve the purpose of bidirectional interaction between the motor cluster and the control end, thereby achieving the technical effects of satisfying the data transmission requirement, reducing the debugging time and improving the working efficiency, and further solving the technical problem that the bidirectional interaction between the motor cluster and the control end cannot be effectively implemented in the related art.
In an alternative embodiment, the ethernet communication module 12 includes at least one ethernet data interface, and the communication protocol supported by the ethernet data interface is transmission control protocol/internet protocol.
The ethernet data interface serves as the only interface for the communication interaction between the network adapter 10 and the control end, and supports TCP/IP. In a specific implementation process, other communication protocols besides TCP/IP may also be used between the network adapter 10 and the control end, and details are not described here.
In an alternative embodiment, the serial communication module 14 includes a plurality of ports, and each of the plurality of ports supports a different serial data communication protocol.
It should be noted that each port of the serial communication module 14 supports different serial data communication protocols, so that data transmission requirements of different application scenarios can be met.
In an alternative embodiment, each port is connected to a corresponding motor cluster.
Each port of the serial communication module 14 may be externally connected to a motor cluster, and since the motor cluster includes a plurality of electronic commutation motors, and each electronic commutation motor can communicate with another electronic commutation motor, each port of the serial communication module 14 may implement communication of a plurality of electronic commutation motors, so that the ports may be used to obtain motor operation data of different motor clusters.
In an alternative embodiment, each port is externally connected to a motor cluster using a predetermined serial bus. In addition, the motor may be an electronic commutation motor, where the electronic commutation motor may be represented by a predetermined number, and the motor cluster where the electronic commutation motor is located may be represented by a predetermined group number.
The predetermined serial bus includes, but is not limited to, RS-232, RS-422, RS-485, etc. In addition, a predetermined group number and a predetermined number can be used for identifying the motor cluster and the electronic commutation motor; for example, the group number corresponding to the first motor cluster is a, the group number corresponding to the first motor cluster is B, the group number corresponding to the first motor cluster is C, and the like. For another example, the first electronic commutation motor in the motor cluster is numbered 1, the second electronic commutation motor is numbered 2, and the third electronic commutation motor is numbered 3. It should be noted that the predetermined group number and the predetermined number can be flexibly set according to the requirements of the application scenario, and specific implementations thereof include, but are not limited to, the above situations.
In an alternative embodiment, the storage module 18 is a charged erasable programmable read only memory.
The electrified erasable programmable read-only memory is a memory chip with no data loss after power failure, and is convenient for erasing existing information on a network adapter and reprogramming.
In an alternative embodiment, the electrically erasable programmable read only memory includes a plurality of registers, wherein the registers are used for storing configuration data and operation data corresponding to different brands and models of motors.
In the above embodiment, the configuration data and the operation data corresponding to the motor may be stored in a designated register according to the brand model of the motor, so as to facilitate subsequent reading and writing of the stored data.
Example 2
According to another aspect of the embodiments of the present invention, there is also provided a control system including: the network adapter comprises a switch, a server, at least one PC and at least one adapter, wherein the switch is respectively connected with the server, the at least one PC and the at least one adapter, and the adapter is the network adapter 10.
In the specific implementation process, the data of the PC and the network adapter of the control system are not limited at all, and can be set according to the needs of the application scenario.
An alternative embodiment of the invention is described in detail below.
Fig. 2 is a schematic diagram of a one-to-many network adapter for an EC motor according to an alternative embodiment of the present invention, which can simultaneously implement communication control of multiple devices, and as shown in fig. 2, the network adapter 10 mainly includes a central processor 16, a storage module 18, an ethernet communication module 12 for communicating with a control end, and a serial communication module 14 for communicating with the motor; the memory module 18, the ethernet communication module 12 and the serial communication module 14 are all connected to the central processor 16.
Fig. 3 is a schematic diagram of multiple adapters being connected to multiple PCs or servers through a switch at the same time, and as shown in fig. 3, in a large-scale scenario, multiple network adapters 10 may be connected to a server 32 or multiple PCs 34 through a switch 30 at the same time, so that bidirectional interaction between a motor cluster and a control end can be realized by using multiple adapters respectively.
The Ethernet communication module 12 is connected with control terminals such as a PC (personal computer) and a server; the serial communication module 14 can be connected with the motor through serial buses such as RS-232 and RS-485; the memory module 18 places configuration data, motor operating data, etc. in non-volatile memory.
The motor is connected to the network adapter 10 via a serial interface. The control end communicates with the network adapter 10 by using a TCP/IP protocol, and configures data including baud rate, data bits, stop bits, parity bits and the like of motors of all ports. After the configuration is completed, the adapter starts to work. The connected motors communicate with each other according to respective protocols, the motor operation data is sent to the network adapter 10, and the central processing unit 16 disassembles and stores the data in the motor operation data into corresponding registers, so that multiple protocol communications in the same network are realized.
The multiple motors are connected and installed on site in a one-level bus structure, and the motor operation data are arranged at different ports according to brands and are stored in groups by the starting address of the power panel. The control end realizes the information monitoring function of the motor by reading the corresponding register in the network adapter 10; the control end writes a specific register in the adapter, and the central processing unit 16 recodes the information to be sent into a protocol transmission frame required by the motor to be controlled and sends the protocol transmission frame to the corresponding motor, so that the control function of the motor can be realized. The grouping motors can be set in batches through a unified master control group number.
It should be noted that the network adapter 10 may convert and encapsulate the received multiple protocol response data into a single protocol, and provide a standard ethernet data interface for the control end. Therefore, the network adapter 10 can realize coexistence communication between the control end and multiple protocols in the same network, and is easy to expand to cover other protocols; the communication program corresponding to the control end can realize standardization, the general applicability of the program is improved, and meanwhile, the debugging time is also reduced. The network adapter 10 can also realize communication between the control end and a plurality of ports, and a plurality of motors at each port are grouped and clustered, so that monitoring and control of a plurality of motors are realized by only one upper computer device such as a PC (personal computer), a server and the like. In addition, the network adapter 10 can simultaneously control the communication of a plurality of ports, each port is connected with wiring in series, the number of the connected motors can reach ten thousands, and the working efficiency is greatly improved.
In an optional embodiment of the present invention, the control end may perform TCP/IP protocol communication by connecting according to the IP address and port number of the network adapter 10; the network adapter 10 determines the configuration of the communication protocol of the relevant motor according to the brand model of the relevant motor connected to the monitoring channel, and the configuration includes data such as baud rate, data bit, stop bit, parity bit and the like of the motor of each port.
After the configuration is completed, the network adapter 10 starts to work, the motor operation information of different brands and models of each channel is read back, and the storage module of the network adapter 10 stores the motor operation information into the corresponding register. In the specific implementation process, a plurality of motors are connected and installed on site in a primary bus structure, and motor information data are arranged at different ports according to brand models and are stored in groups by using the initial addresses of the power panels.
When monitoring the motor, the network adapter 10 receives a TCP/IP protocol command from the control end and then analyzes the command to obtain information to be obtained, and then reads data in a register corresponding to the storage module and encapsulates the data into a TCP/IP protocol specification, and sends the TCP/IP protocol specification to the control end through the ethernet communication module 12; when controlling the motor, the network adapter 10 recodes the data into a protocol transmission frame required by the motor to be controlled according to the motor master control group number and the motor number which are required to be controlled by the rewriting of the relevant register of the control end and the setting command and the parameter of the control end to the motor, and sends the protocol transmission frame to the motor through the serial communication module 14.
It should be noted that, when the motor cluster control is performed, the specific implementation process is similar to the above embodiment, and after the motor group number to be controlled is obtained, the same group is controlled in batch. At this time, only one upper computer device such as a PC and a server is needed to monitor and control the plurality of motors.
Further, when the communication protocol of the motor needs to be modified and expanded, the network adapter 10 is connected with the control end, and then the brand and the model of the motor and the corresponding communication protocol setting are added or modified through programming of the control end, and the configuration data is stored in a corresponding register of the network adapter 10, so that multiple protocol communication in the same network is realized.
Example 3
According to an embodiment of the present invention, there is provided an embodiment of a method for controlling a motor, applied to a network adaptor of any one of the above, wherein a central processor of the network adaptor executes the method, it is noted that the steps shown in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in an order different from that shown here.
Fig. 4 is a flowchart of a control method of a motor according to an embodiment of the present invention, as shown in fig. 4, the method including the steps of:
step S402, obtaining a target instruction sent by the control end, where the target instruction is an instruction for indicating an operation to be executed, and the operation to be executed includes at least one of the following operations: the method comprises the following steps of a first operation and a second operation, wherein the first operation and the second operation are two different operations;
the control end can issue an operation command according to the requirement, and the motor cluster is monitored or controlled through the operation command.
It should be noted that the target instruction further carries a predetermined group number, a predetermined number, and the like, where the predetermined number may be used to represent the electronic commutation motor, and the predetermined group number may be used to represent the motor cluster where the electronic commutation motor is located. For example, the group number corresponding to the first motor cluster is a, the group number corresponding to the first motor cluster is B, the group number corresponding to the first motor cluster is C, and the like. For another example, the first electronic commutation motor in the motor cluster is numbered 1, the second electronic commutation motor is numbered 2, and the third electronic commutation motor is numbered 3. It should be noted that the predetermined group number and the predetermined number can be flexibly set according to the requirements of the application scenario, and specific implementations thereof include, but are not limited to, the above situations.
In addition, the target instruction comprises a group number and a serial number, so that the motor cluster and the running data of any one electronic commutation motor in the motor cluster can be monitored or controlled according to the target instruction.
Step S404, analyzing the target instruction to obtain an analysis result;
in an optional implementation manner, the target instruction may be parsed according to a TCP/IP unpacking rule, so as to parse a specific operation command corresponding to the target instruction, where it needs to be noted that a parsing result includes a monitoring instruction or a control instruction.
And S406, monitoring or controlling the operation data of the motor cluster according to the analysis result.
The motor cluster comprises a plurality of electronic commutation motors. By adopting the implementation steps, not only can the operation data of different motor clusters be monitored or controlled, but also the operation data of each electronic commutation motor in the motor clusters can be monitored or controlled.
Through the steps, the target instruction sent by the control end can be obtained and analyzed, and then the analysis result is utilized to monitor or control the operation data of the motor cluster, so that the control end can monitor and control the motor cluster, the purpose of bidirectional interaction between the motor cluster and the control end is achieved, the technical effects of meeting the data transmission requirement, reducing the debugging time and improving the working efficiency are achieved, and the technical problem that the bidirectional interaction between the motor cluster and the control end cannot be effectively realized in the related technology is solved.
In an optional embodiment, the monitoring or controlling the operation data of the motor cluster according to the analysis result includes: under the condition that the analysis result is a monitoring instruction, reading the operation data of the motor cluster stored in the storage module according to the monitoring instruction; performing first conversion processing on the operating data to obtain a TCP/IP data packet; sending the TCP/IP data packet to a control end; or, under the condition that the analysis result is the control instruction, determining the operation data of the motor cluster to be adjusted according to the control instruction, and writing the operation data of the motor cluster to be adjusted into the storage module; performing second conversion processing on the operating data of the motor cluster to be adjusted to obtain a control command; and sending the control command to the motor cluster.
In the process of monitoring the operation data of the motor cluster according to the analysis result, if the analysis result is a monitoring instruction, the operation data of the motor cluster stored in the storage module can be read according to the monitoring instruction, the operation data of the motor cluster read according to the configuration data corresponding to the motor cluster is subjected to first conversion processing to obtain a TCP/IP data packet, and then the TCP/IP data packet is sent to the corresponding control end, so that the operation data of the motor cluster is monitored. The first conversion processing at this time is to convert the operation data of the motor cluster read in accordance with the configuration data corresponding to the motor cluster into a TCP/IP data packet.
In the process of controlling the operation data of the motor cluster according to the analysis result, if the analysis result is a control instruction, the operation data of the motor cluster to be adjusted can be determined according to the control instruction, the operation data of the motor cluster to be adjusted is written into the storage module, second conversion processing is performed on the operation data of the motor cluster to be adjusted to obtain a control command, and then the control command is sent to the motor cluster, so that the control on the operation data of the motor cluster is realized. The second conversion processing at this time is to convert the operation data of the motor cluster to be adjusted into a corresponding control command according to the communication protocol rule corresponding to the motor cluster. The operation data of the motor cluster to be adjusted comprises the operation parameters of the motor cluster to be adjusted.
It should be noted that the operation data of the motor cluster includes operation parameters corresponding to each electronic commutation motor in the cluster, and the configuration data of the motor cluster includes configuration parameters corresponding to each electronic commutation motor in the cluster.
In an optional implementation manner, before the target instruction sent by the control end is obtained, the method further includes: determining operation data of the motor cluster and configuration data corresponding to the motor cluster; and storing the operation data of the motor cluster and the configuration data corresponding to the motor cluster in a storage module.
The configuration data includes, but is not limited to, baud rate, data bits, stop bits, parity bits, and the like. The operational data of the motor cluster includes, but is not limited to, the speed, current, power, torque, maximum speed, steering, etc. of each motor.
In a specific implementation process, before a target instruction sent by a control end is acquired, operation data of a motor cluster and configuration data corresponding to the motor cluster need to be determined, and the operation data and the configuration data are stored in groups.
Optionally, in the process of storing the operating data of the motor cluster and the configuration data corresponding to the motor cluster in the storage module, the configuration data and the operating data corresponding to the motor may be stored in a specified register according to the brand model of the motor, so as to facilitate subsequent reading and writing of the stored data.
In an optional embodiment, determining the operation data of the motor cluster and the configuration data corresponding to the motor cluster includes: acquiring the brand model of the motor cluster; determining configuration data of the motor cluster according to the brand model; acquiring operation parameters of the motor cluster; and determining the operation data of the motor cluster according to the configuration data and the operation parameters of the motor cluster.
In order to determine the operation data of the motor cluster and the configuration data corresponding to the motor cluster more quickly and accurately, in one embodiment, the brand model of the motor cluster, that is, the brand model corresponding to each electronic commutation motor in the motor cluster, is first acquired, and then the configuration data of each electronic commutation motor is determined according to the brand model corresponding to each electronic commutation motor, so that the configuration data of the motor cluster is obtained.
In another embodiment, the operation parameters of the motor cluster may also be obtained, that is, the operation parameters corresponding to each electronic commutation motor in the motor cluster are obtained, and then the operation data corresponding to each electronic commutation motor is determined according to the configuration data and the operation parameters of each electronic commutation motor, so as to obtain the operation data of the motor cluster. The operation parameters are acquired initial data of the motor, and the operation data are effective data extracted from the operation parameters according to configuration data.
Through the embodiment, the configuration data and the operation parameters of different motor clusters can be accurately calculated, so that the subsequent monitoring or control of the operation data of the motor clusters is facilitated.
Another alternative embodiment of the present invention is described in detail below.
Fig. 5 is a software flow diagram of a network adapter according to an alternative embodiment of the present invention, and as shown in fig. 5, the operation of the motor is mainly divided into two parts, i.e. monitoring and controlling: firstly, the motor is controlled, namely the running state of the motor is controlled through Ethernet, so that the motor runs as required; and secondly, monitoring the motor, namely finishing the query of the current running state of the motor according to the requirement of a controller. Further, the specific implementation steps are as follows:
a) connecting a motor and starting a process;
b) the network adapter determines the configuration of a motor communication protocol according to the brand and model of the connected motor;
c) setting a serial number and a group number of a connecting motor;
d) b, receiving operation parameters sent by the motor, generating a corresponding information packet, and analyzing the information packet according to the unpacking rule of the communication protocol determined in the step b to obtain effective data (corresponding motor operation data);
e) storing motor operation data into a designated register;
f) receiving a target instruction transmitted through the Ethernet, and analyzing according to a TCP/IP unpacking rule;
g) and judging whether the analyzed target instruction is a monitoring instruction or a control instruction. If the command is a monitoring command, executing the step h; if the command is a control command, executing the step k;
h) analyzing the monitoring instruction, knowing a part needing to be inquired, and reading the relevant data of the register;
i) repackaging the related data into a TCP/IP data packet;
j) sending the TCP/IP data packet to a control end;
k) analyzing motor operation data to be changed by the control command, and writing the motor operation data into a corresponding register;
l) packing the protocol package rule determined in the step b into a corresponding command;
m) sending the command information packet to the motor;
n) ending the process.
It should be noted that, in the above embodiment of the present invention, the motor operation data of different brands and models using different communication protocols can be summarized into general data, which is convenient for expanding the uncovered electronic commutation motor drive board, and provides a standard ethernet data interface for the control end, thereby implementing communication and control of multiple cluster motors by one control end.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (12)

1. A network adapter, comprising:
the ethernet communication module is configured to receive a target instruction, where the target instruction is an instruction sent by a control end and used for indicating an operation to be executed, and the operation to be executed includes at least one of the following operations: the method comprises the following steps of a first operation and a second operation, wherein the first operation and the second operation are two different operations;
the serial communication module is used for receiving operating data of different motor clusters, wherein each motor cluster comprises a plurality of motors adopting the same serial data communication protocol;
the central processing unit is respectively connected with the Ethernet communication module and the serial communication module, and is used for determining configuration data of the serial data communication protocol corresponding to the motor cluster, processing the operation data acquired according to the configuration data according to the target instruction, and sending a processing result to the control terminal through the Ethernet communication module or sending the processing result to the motor cluster through the serial communication module;
and the storage module is connected with the central processing unit and used for storing the configuration data and the operation data of the motor cluster.
2. The network adapter according to claim 1, wherein the ethernet communication module comprises at least one ethernet data interface, and the communication protocol supported by the ethernet data interface is transmission control protocol/internet protocol.
3. The network adapter according to claim 1, wherein the serial communication module comprises a plurality of ports, each of the plurality of ports supporting a different one of the serial data communication protocols.
4. The network adapter of claim 3, wherein each of said ports is connected to a corresponding motor cluster.
5. The network adapter of claim 4, wherein each of said ports circumscribes a said cluster of motors using a predetermined serial bus.
6. The network adapter according to claim 1, wherein the storage module is a powered erasable programmable read only memory (eeprom) comprising a plurality of registers, wherein the registers are configured to store configuration data and operational data corresponding to different brands and models of motors.
7. The network adapter according to any one of claims 1 to 6, wherein the motor is an electronic commutation motor, wherein the electronic commutation motor is characterized by a predetermined number and the motor cluster in which the electronic commutation motor is located is characterized by a predetermined group number.
8. A control method of an electric motor, applied to the network adaptor according to any one of claims 1 to 7, wherein the central processor of the network adaptor executes the method, comprising:
acquiring a target instruction sent by a control end, wherein the target instruction is used for indicating an operation to be executed, and the operation to be executed comprises at least one of the following operations: the method comprises the following steps of a first operation and a second operation, wherein the first operation and the second operation are two different operations;
analyzing the target instruction to obtain an analysis result;
and monitoring or controlling the operation data of the motor cluster according to the analysis result.
9. The method of claim 8, wherein monitoring or controlling the operation data of the motor cluster according to the analysis result comprises:
under the condition that the analysis result is a monitoring instruction, reading the operation data of the motor cluster stored in the storage module according to the monitoring instruction; performing first conversion processing on the operating data to obtain a transmission control protocol/internet protocol data packet; transmitting the transmission control protocol/internet protocol data packet to the control end; or,
under the condition that the analysis result is a control instruction, determining the operating data of the motor cluster to be adjusted according to the control instruction, and writing the operating data of the motor cluster to be adjusted into the storage module; performing second conversion processing on the operating data of the motor cluster to be adjusted to obtain a control command; and sending the control command to the motor cluster.
10. The method of controlling a motor according to claim 8, wherein before the command sent from the control terminal is obtained, the method further comprises:
determining the operation data of the motor cluster and the configuration data corresponding to the motor cluster;
and storing the operation data of the motor cluster and the configuration data corresponding to the motor cluster to the storage module.
11. The method of controlling an electric machine of claim 10, wherein determining the operational data for the cluster of electric machines and the configuration data for the cluster of electric machines comprises:
obtaining the brand model of the motor cluster;
determining configuration data of the motor cluster according to the brand model;
acquiring operating parameters of the motor cluster;
and determining the operation data of the motor cluster according to the configuration data and the operation parameters of the motor cluster.
12. A control system, comprising: the network adapter comprises a switch, a server, at least one PC and at least one adapter, wherein the switch is respectively connected with the server, the at least one PC and the at least one adapter, and the adapter is the network adapter of any one of the claims 1 to 7.
CN202210256606.6A 2022-03-16 2022-03-16 Network adapter, control system, and motor control method Pending CN114594713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210256606.6A CN114594713A (en) 2022-03-16 2022-03-16 Network adapter, control system, and motor control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210256606.6A CN114594713A (en) 2022-03-16 2022-03-16 Network adapter, control system, and motor control method

Publications (1)

Publication Number Publication Date
CN114594713A true CN114594713A (en) 2022-06-07

Family

ID=81817042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210256606.6A Pending CN114594713A (en) 2022-03-16 2022-03-16 Network adapter, control system, and motor control method

Country Status (1)

Country Link
CN (1) CN114594713A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201302669Y (en) * 2008-10-20 2009-09-02 中国海洋大学 DC motor-driven system for monitoring running state
CN101860123A (en) * 2009-04-13 2010-10-13 中山大洋电机股份有限公司 Motor and control method thereof and cluster control system for multiple motors
CN202475341U (en) * 2012-02-24 2012-10-03 烟台华润锦纶有限公司 Motor control circuit at winding station
CN103324142A (en) * 2012-03-19 2013-09-25 平田机工株式会社 Control device and control method
US20150120062A1 (en) * 2013-10-29 2015-04-30 Regal Beloit America, Inc. System and method for enabling a motor controller to communicate using multiple different communication protocols
CN106406294A (en) * 2016-11-22 2017-02-15 贺川 Method of controlling motor drivers through mobile terminal
CN111600792A (en) * 2020-04-26 2020-08-28 珠海格力电器股份有限公司 Gateway device, device control system, device control method and device
CN217656706U (en) * 2022-03-16 2022-10-25 卧龙电气驱动集团股份有限公司 Network adapter and control system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201302669Y (en) * 2008-10-20 2009-09-02 中国海洋大学 DC motor-driven system for monitoring running state
CN101860123A (en) * 2009-04-13 2010-10-13 中山大洋电机股份有限公司 Motor and control method thereof and cluster control system for multiple motors
CN202475341U (en) * 2012-02-24 2012-10-03 烟台华润锦纶有限公司 Motor control circuit at winding station
CN103324142A (en) * 2012-03-19 2013-09-25 平田机工株式会社 Control device and control method
US20150120062A1 (en) * 2013-10-29 2015-04-30 Regal Beloit America, Inc. System and method for enabling a motor controller to communicate using multiple different communication protocols
CN106406294A (en) * 2016-11-22 2017-02-15 贺川 Method of controlling motor drivers through mobile terminal
CN111600792A (en) * 2020-04-26 2020-08-28 珠海格力电器股份有限公司 Gateway device, device control system, device control method and device
CN217656706U (en) * 2022-03-16 2022-10-25 卧龙电气驱动集团股份有限公司 Network adapter and control system

Similar Documents

Publication Publication Date Title
CN103828305B (en) For parametrization automated system or the system and method for the field apparatus of control system
US7987305B2 (en) Remote virtual placeholder configuration for distributed input/output modules
US11128726B2 (en) Transmission method
US9667699B2 (en) Method for transmitting data via a CANopen bus
JP5084908B2 (en) Programming device for network of control nodes and system having the same
WO2019196462A1 (en) Air conditioning unit, operating method and device for air conditioning unit
US20130086195A1 (en) DEVICE AND METHOD FOR ENABLING BACnet COMMUNICATION FOR WIRED AND WIRELESS DEVICES OPERABLE WITHIN A BUILDING AUTOMATION SYSTEM
US9645572B2 (en) Device class information support for multi-option devices
CN108418606B (en) Data sending method and device and multi-split system
CN110622489A (en) Conversion device and control system
CN109814482B (en) Controller of robot, control method of controller and industrial robot
CN104518910B (en) Apparatus for configuring Ethernet device and method for configuring Ethernet device
CN107132808B (en) Programmable controller, control method thereof, and recording medium
CN111786862A (en) Control system and control method thereof and all-terrain vehicle
CN103201690A (en) Local control network processor (LCNP) emulator for multi-generation control systems
CN217656706U (en) Network adapter and control system
JP6408277B2 (en) Data collection device and industrial network system
CN104158714A (en) Master device of process field bus decentralized periphery
WO2015176366A1 (en) Universal serial bus drive method, computer and composite device
CN114594713A (en) Network adapter, control system, and motor control method
CN103081412B (en) Programmable logic controller (PLC)
CN111638672A (en) Automatic control system of industrial machine table
JP2004306200A (en) Robot control system
KR101308038B1 (en) Integrated module device for industrial network protocol and method for controlling thereof
CN102576222B (en) For the method for operation site bus interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination