CN217656706U - Network adapter and control system - Google Patents
- ️Tue Oct 25 2022
CN217656706U - Network adapter and control system - Google Patents
Network adapter and control system Download PDFInfo
-
Publication number
- CN217656706U CN217656706U CN202220568505.8U CN202220568505U CN217656706U CN 217656706 U CN217656706 U CN 217656706U CN 202220568505 U CN202220568505 U CN 202220568505U CN 217656706 U CN217656706 U CN 217656706U Authority
- CN
- China Prior art keywords
- motor
- data
- communication module
- network adapter
- serial Prior art date
- 2022-03-16 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.)
- Active
Links
Images
Landscapes
- Control Of Multiple Motors (AREA)
Abstract
本实用新型公开了一种网络适配器及控制系统。其中,该网络适配器包括:以太网通信模块,用于接收控制端发送的目标指令;串行通信模块,用于基于多个端口分别接收不同电机集群的运行数据;中央处理器,分别与以太网通信模块、串行通信模块连接,用于确定电机集群对应的串行数据通信协议的配置数据以及根据目标指令对按照配置数据获取的运行数据进行处理,并将处理结果通过以太网通信模块发送给控制端或者通过串行通信模块发送给对应的电机集群。本实用新型解决了相关技术中无法有效实现电机集群与控制端的双向交互的技术问题。
The utility model discloses a network adapter and a control system. Wherein, the network adapter includes: an Ethernet communication module for receiving target instructions sent by the control terminal; a serial communication module for respectively receiving operation data of different motor clusters based on multiple ports; The communication module and the serial communication module are connected to determine the configuration data of the serial data communication protocol corresponding to the motor cluster and process the operation data obtained according to the configuration data according to the target instruction, and send the processing result to the Ethernet communication module. The control terminal or the serial communication module sends it to the corresponding motor cluster. The utility model solves the technical problem that the two-way interaction between the motor cluster and the control terminal cannot be effectively realized in the related art.
Description
技术领域technical field
本实用新型涉及电机控制技术领域,具体而言,涉及一种网络适配器及控制系统。The utility model relates to the technical field of motor control, in particular to a network adapter and a control system.
背景技术Background technique
电子换相(Electrical Commutation,简称EC)电机广泛应用于供热通风与空气调节(Heating,Ventilation and Air Conditioning,简称HVAC)和制冷领域,尤其是数据中心、楼群养殖中心等地点。此类工作场景要求多台电机集群分布在现场,通过控制多台电机联动实现系统功能。要实现集群电机与控制端的双向交互,通常采用以下方案,其中存在如下技术问题:Electronic Commutation (EC) motors are widely used in heating, ventilation and air conditioning (HVAC) and refrigeration fields, especially in data centers, building aquaculture centers and other locations. Such work scenarios require multiple motor clusters to be distributed on site, and system functions can be realized by controlling multiple motors to link together. To realize the two-way interaction between the cluster motor and the control terminal, the following solutions are usually adopted, which have the following technical problems:
(1)使用工业路由器通过与电机相匹配的通信接口,帮助电机实现数据上传。但其一般只能完成普通的数据透传,无法进行控制管理;在实际现场中,数据协议的种类、数量众多,而路由器无法解析协议,仅将其透传至服务器端,增加了服务器端的建设难度。(1) Use the industrial router to help the motor to upload data through the communication interface that matches the motor. However, it generally can only complete ordinary data transparent transmission, and cannot carry out control and management; in the actual scene, there are many types and quantities of data protocols, but the router cannot parse the protocol, and only transparently transmits it to the server side, which increases the construction of the server side. difficulty.
(2)通过通讯协议转换器与上位机进行交互。由于电机数量众多,有多种不同的控制器,需要定制特定通讯程序来配合不同控制器,一般的策略是采用不同的转换器,使得操作不便、过程复杂。(2) Interact with the host computer through the communication protocol converter. Due to the large number of motors, there are many different controllers, and specific communication programs need to be customized to match different controllers. The general strategy is to use different converters, which makes the operation inconvenient and the process complicated.
(3)同一协议电机使用网关与上位机通讯时,通常将它们置于同一网段内,每个电机设备分配一个IP地址,理论上最多连接253个设备,在大型场景中不够充足。(3) When a motor with the same protocol uses a gateway to communicate with the host computer, they are usually placed in the same network segment, and each motor device is assigned an IP address. In theory, a maximum of 253 devices can be connected, which is not enough in large-scale scenarios.
针对上述相关技术中无法有效实现电机集群与控制端的双向交互的问题,目前尚未提出有效的解决方案。In view of the problem that the two-way interaction between the motor cluster and the control terminal cannot be effectively realized in the above-mentioned related technologies, no effective solution has been proposed so far.
实用新型内容Utility model content
本实用新型实施例提供了一种网络适配器及控制系统,以至少解决相关技术中无法有效实现电机集群与控制端的双向交互的技术问题。The embodiments of the present invention provide a network adapter and a control system, so as to at least solve the technical problem in the related art that the bidirectional interaction between the motor cluster and the control terminal cannot be effectively realized.
根据本实用新型实施例的一个方面,提供了一种网络适配器,包括:以太网通信模块,用于接收目标指令,其中,所述目标指令为控制端发送的用于指示待执行操作的指令;串行通信模块,用于基于多个端口分别接收不同电机集群的运行数据;中央处理器,分别与所述以太网通信模块、所述串行通信模块连接,用于确定所述电机集群对应的所述串行数据通信协议的配置数据以及根据所述目标指令对按照所述配置数据获取的所述运行数据进行处理,并将处理结果通过所述以太网通信模块发送给所述控制端或者通过所述串行通信模块发送给所述电机集群。According to an aspect of the embodiments of the present invention, a network adapter is provided, comprising: an Ethernet communication module for receiving a target instruction, wherein the target instruction is an instruction sent by a control terminal and used to indicate an operation to be performed; The serial communication module is used to respectively receive the operation data of different motor clusters based on multiple ports; the central processing unit is connected to the Ethernet communication module and the serial communication module respectively, and is used to determine the corresponding motor clusters. The configuration data of the serial data communication protocol and the operation data obtained according to the configuration data are processed according to the target instruction, and the processing result is sent to the control terminal through the Ethernet communication module or through The serial communication module is sent to the motor cluster.
可选地,所述以太网通信模块包括至少一个以太网数据接口,所述以太网数据接口支持的通信协议为传输控制协议/网际协议(Transmission Control Protocol/Internet Protocol,简称TCP/IP)。Optionally, the Ethernet communication module includes at least one Ethernet data interface, and the communication protocol supported by the Ethernet data interface is Transmission Control Protocol/Internet Protocol (TCP/IP for short).
可选地,各所述端口采用预定的串行总线外接一个所述电机集群。Optionally, each of the ports uses a predetermined serial bus to connect to one of the motor clusters.
可选地,各所述端口分别支持不同的所述串行数据通信协议,所述电机集群中的电机采用相同串行数据通信协议。Optionally, each of the ports respectively supports different serial data communication protocols, and the motors in the motor cluster use the same serial data communication protocol.
可选地,所述网络适配器还包括:存储模块,与所述中央处理器连接,用于存储所述配置数据与所述电机集群的运行数据。Optionally, the network adapter further includes: a storage module, connected to the central processing unit, for storing the configuration data and the operation data of the motor cluster.
可选地,所述存储模块为带电可擦可编程只读存储器。Optionally, the storage module is a charged erasable programmable read-only memory.
可选地,所述带电可擦可编程只读存储器包括多个寄存器,其中,所述寄存器用于存储不同品牌型号的电机对应的配置数据以及运行数据。Optionally, the electrified erasable programmable read-only memory includes a plurality of registers, wherein the registers are used to store configuration data and operation data corresponding to motors of different brands and models.
可选地,所述电机为电子换相电机,其中,采用预定编号表征所述电子换相电机,采用预定组号表征所述电子换相电机所在的所述电机集群。Optionally, the motor is an electronically commutated motor, wherein a predetermined number is used to represent the electronically commutated motor, and a predetermined group number is used to represent the motor cluster where the electronically commutated motor is located.
可选地,所述配置数据包括以下至少之一:波特率、数据位、停止位、奇偶校验位。Optionally, the configuration data includes at least one of the following: baud rate, data bits, stop bits, and parity bits.
根据本实用新型实施例的另一方面,还提供了一种控制系统,包括:交换机、服务器、至少一台PC机以及至少一台适配器,所述交换机分别与所述服务器、至少一台所述PC机以及至少一台所述适配器连接,其中,所述适配器为上述中任意一项所述的网络适配器。According to another aspect of the embodiments of the present invention, a control system is further provided, including: a switch, a server, at least one PC, and at least one adapter, the switch is respectively connected with the server, at least one of the The PC and at least one adapter are connected, wherein the adapter is the network adapter described in any one of the above.
在本实用新型实施例中,该网络适配器包括:以太网通信模块,用于接收控制端发送的目标指令;串行通信模块,用于基于多个端口分别接收不同电机集群的运行数据;中央处理器,分别与以太网通信模块、串行通信模块连接,用于确定电机集群对应的串行数据通信协议的配置数据以及根据目标指令对按照配置数据获取的运行数据进行处理,并将处理结果通过以太网通信模块发送给控制端或者通过串行通信模块发送给对应的电机集群,通过该网络适配器可以实现控制端对电机集群进行监测与控制,达到了电机集群与控制端的双向交互的目的,从而实现了满足数据传输需求、减少调试时间以及提高工作效率的技术效果,进而解决了相关技术中无法有效实现电机集群与控制端的双向交互的技术问题。In the embodiment of the present utility model, the network adapter includes: an Ethernet communication module for receiving target instructions sent by the control terminal; a serial communication module for respectively receiving operation data of different motor clusters based on multiple ports; a central processing unit It is connected with the Ethernet communication module and the serial communication module respectively, and is used to determine the configuration data of the serial data communication protocol corresponding to the motor cluster and process the operation data obtained according to the configuration data according to the target instruction, and pass the processing result through The Ethernet communication module is sent to the control terminal or sent to the corresponding motor cluster through the serial communication module. Through this network adapter, the control terminal can monitor and control the motor cluster, so as to achieve the purpose of two-way interaction between the motor cluster and the control terminal. The technical effects of meeting data transmission requirements, reducing debugging time and improving work efficiency are realized, and the technical problem that the two-way interaction between the motor cluster and the control terminal cannot be effectively realized in the related art is solved.
附图说明Description of drawings
此处所说明的附图用来提供对本实用新型的进一步理解,构成本申请的一部分,本实用新型的示意性实施例及其说明用于解释本实用新型,并不构成对本实用新型的不当限定。在附图中:The accompanying drawings described here are used to provide further understanding of the present invention and constitute a part of the present application. The schematic embodiments and descriptions of the present invention are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:
图1是根据本实用新型实施例的网络适配器的示意图;1 is a schematic diagram of a network adapter according to an embodiment of the present invention;
图2是根据本实用新型可选实施例的EC电机用一对多的网络适配器可同时实现多台设备的通信控制的示意图;2 is a schematic diagram of an EC motor using a one-to-many network adapter according to an optional embodiment of the present invention that can simultaneously realize the communication control of multiple devices;
图3是根据本实用新型可选实施例的多个适配器通过交换机同时与多台PC或服务器连接的示意图。FIG. 3 is a schematic diagram illustrating that multiple adapters are simultaneously connected to multiple PCs or servers through a switch according to an optional embodiment of the present invention.
其中,上述附图包括以下附图标记:Wherein, the above-mentioned drawings include the following reference signs:
10、网络适配器;12、以太网通信模块;14、串行通信模块;16、中央处理器;30、交换机;32、服务器;34、PC机。10, network adapter; 12, Ethernet communication module; 14, serial communication module; 16, central processing unit; 30, switch; 32, server; 34, PC.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本实用新型方案,下面将结合本实用新型实施例中的附图,对本实用新型实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本实用新型一部分的实施例,而不是全部的实施例。基于本实用新型中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本实用新型保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
需要说明的是,本实用新型的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本实用新型的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. . It is to be understood that the data so used may be interchanged under appropriate circumstances so that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
实施例1Example 1
根据本实用新型实施例的一个方面,提供了一种网络适配器,其可以应用于包括但不限于多个不同的电机集群分布在不同位置的复杂情形,图1是根据本实用新型实施例的网络适配器的示意图,如图1所示,该网络适配器10包括:以太网通信模块12,用于接收控制端发送的目标指令;串行通信模块14,用于基于多个端口分别接收不同电机集群的运行数据;中央处理器16,分别与以太网通信模块12、串行通信模块14连接,用于确定电机集群对应的串行数据通信协议的配置数据以及根据目标指令对按照配置数据获取的运行数据进行处理,并将处理结果通过以太网通信模块12发送给控制端或者通过串行通信模块14发送给对应的电机集群。According to an aspect of an embodiment of the present invention, a network adapter is provided, which can be applied to complex situations including but not limited to multiple different motor clusters distributed in different locations. FIG. 1 is a network adapter according to an embodiment of the present invention. A schematic diagram of the adapter, as shown in FIG. 1 , the network adapter 10 includes: an Ethernet communication module 12 for receiving target instructions sent by the control terminal; a serial communication module 14 for respectively receiving data from different motor clusters based on multiple ports Operation data; the central processing unit 16 is connected to the Ethernet communication module 12 and the serial communication module 14 respectively, and is used to determine the configuration data of the serial data communication protocol corresponding to the motor cluster and the operation data obtained according to the configuration data according to the target instruction Perform processing, and send the processing result to the control terminal through the Ethernet communication module 12 or to the corresponding motor cluster through the serial communication module 14 .
上述目标指令为控制端发送的用于指示待执行操作的指令,待执行操作包括以下操作至少之一:第一操作、第二操作,第一操作和第二操作为两种不同的操作。需要说明的是,上述第一操作、第二操作可以为查询操作或者控制操作中的任意一个。另外,在具体实施过程中,上述待执行操作包括但不限于查询操作或者控制操作。The above-mentioned target instruction is an instruction sent by the control terminal to indicate an operation to be performed, and the operation to be performed includes at least one of the following operations: a first operation and a second operation, and the first operation and the second operation are two different operations. It should be noted that, the above-mentioned first operation and second operation may be any one of a query operation or a control operation. In addition, in the specific implementation process, the above operations to be executed include but are not limited to query operations or control operations.
上述网络适配器包括两个数据传输模块,一个是以太网通信模块12,另一个是串行通信模块14,其中,上述以太网通信模块12可以用来外接控制端,用于接收控制端发送的操作命令,也就是用来接收目标指令;上述串行通信模块14可以用来外接不同的电机集群,从而可以通过该模块接收不同电机集群的运行数据。The above-mentioned network adapter includes two data transmission modules, one is an Ethernet communication module 12, and the other is a serial communication module 14, wherein the above-mentioned Ethernet communication module 12 can be used to connect an external control terminal to receive operations sent by the control terminal. Commands are used to receive target commands; the above-mentioned serial communication module 14 can be used to connect different motor clusters, so that the operation data of different motor clusters can be received through the module.
上述控制端包括但不限于PC机、服务器等设备。The above-mentioned control terminals include but are not limited to PCs, servers and other devices.
在一种可选的实施方式中,上述网络适配器10可以利用中央处理器16根据目标指令对按照电机集群对应的配置数据获取的运行数据进行第一转换处理,并通过以太网通信模块12将处理后的运行数据发送给控制端,从而实现对电机集群的监测。此时的第一转换处理是将按照电机集群对应的配置数据读取到的电机集群的运行数据,并将其转换为TCP/IP数据包。例如,在目标指令为查询指令时,中央处理器将依据该指令获取运行数据,并将其转换为支持TCP/IP数据包,以及通过以太网通信模块将数据包发送出去。In an optional implementation manner, the above-mentioned network adapter 10 can use the central processing unit 16 to perform first conversion processing on the operation data obtained according to the configuration data corresponding to the motor cluster according to the target instruction, and use the Ethernet communication module 12 to process the processing data. The subsequent operation data is sent to the control terminal, so as to realize the monitoring of the motor cluster. The first conversion process at this time is to convert the operation data of the motor cluster read according to the configuration data corresponding to the motor cluster into a TCP/IP data packet. For example, when the target command is a query command, the central processing unit will obtain the running data according to the command, convert it into a data packet supporting TCP/IP, and send the data packet out through the Ethernet communication module.
在一种可选的实施方式中,上述网络适配器10还可以利用中央处理器16根据目标指令按照电机集群对应的配置数据获取的运行数据进行第二转换处理,并通过串行通信模块14将处理后的运行数据发送给控制端,从而实现对电机集群的控制。此时的第二转换处理为按照电机集群对应的通信协议规则将待调整的电机集群的运行数据转换为对应的控制命令。例如,在目标指令为控制指令时,中央处理器将对根据该指令调整的运行数据并进行分析,以及按照串口通信协议规则转换成对应的控制命令,进而通过串行通信模块将控制命令发送出去,该控制命令用于控制电机集群中的任意一台电机。In an optional implementation manner, the above-mentioned network adapter 10 may also use the central processing unit 16 to perform the second conversion processing on the operating data obtained according to the target instruction according to the configuration data corresponding to the motor cluster, and use the serial communication module 14 to process the processing data. The subsequent operation data is sent to the control terminal, so as to realize the control of the motor cluster. The second conversion process at this time is to convert the operation data of the motor cluster to be adjusted into corresponding control commands according to the communication protocol rules corresponding to the motor cluster. For example, when the target command is a control command, the central processing unit will analyze the operating data adjusted according to the command, and convert it into a corresponding control command according to the rules of the serial communication protocol, and then send the control command through the serial communication module. , the control command is used to control any motor in the motor cluster.
在一种可选的实施方式中,上述配置数据包括但不限于波特率、数据位、停止位、奇偶校验位等。上述电机集群的运行数据包括但不限于每个电机的转速、电流、功率、转矩、最大转速、转向等。进一步地,上述网络适配器10不仅能够实现数据的简单透传,而且能够完成批量读取电机状态扩展下,如查询转速、电流、功率、转矩等信息,设置最大转速、转向、转速等多项操作,成为电机集群的控制中心,满足操作者的使用需求。In an optional implementation manner, the above configuration data includes, but is not limited to, baud rate, data bits, stop bits, parity bits, and the like. The above-mentioned operation data of the motor cluster includes, but is not limited to, the rotational speed, current, power, torque, maximum rotational speed, steering, etc. of each motor. Further, the above-mentioned network adapter 10 can not only realize simple transparent transmission of data, but also can complete the expansion of reading motor states in batches, such as querying information such as speed, current, power, torque, etc. Operation, become the control center of the motor cluster to meet the needs of the operator.
在本实用新型的上述实施例中,通过该网络适配器10可以实现控制端对电机集群进行监测与控制,达到了电机集群与控制端的双向交互的目的,从而实现了满足数据传输需求、减少调试时间以及提高工作效率的技术效果,进而解决了相关技术中无法有效实现电机集群与控制端的双向交互的技术问题。In the above-mentioned embodiment of the present invention, the control terminal can monitor and control the motor cluster through the network adapter 10, so as to achieve the purpose of two-way interaction between the motor cluster and the control terminal, thereby meeting data transmission requirements and reducing debugging time. And the technical effect of improving work efficiency, thereby solving the technical problem that the two-way interaction between the motor cluster and the control terminal cannot be effectively realized in the related art.
在一种可选的实施方式中,上述以太网通信模块12包括至少一个以太网数据接口,以太网数据接口支持的通信协议为传输控制协议/网际协议。In an optional implementation manner, the above-mentioned 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.
上述以太网数据接口作为网络适配器10与控制端通信交互的唯一接口,同时支持TCP/IP。在具体实施过程中,网络适配器10与控制端之间的还可以采用除TCP/IP以外的其他通信协议,在此不再一一赘述。The above-mentioned Ethernet data interface is the only interface for the communication and interaction between the network adapter 10 and the control terminal, and supports TCP/IP at the same time. In the specific implementation process, other communication protocols other than TCP/IP may also be used between the network adapter 10 and the control terminal, which will not be repeated here.
在一种可选的实施方式中,各端口分别支持不同的串行数据通信协议,电机集群中的电机采用相同串行数据通信协议。In an optional implementation manner, each port respectively supports different serial data communication protocols, and the motors in the motor cluster use the same serial data communication protocol.
需要说明的是,上述串行通信模块14包括多个端口,上述串行通信模块14的各个端口分别支持不同的串行数据通信协议,从而可以满足不同应用场景的数据传输需求。同一电机集群使用同一的串行通信模块14的端口,且采用相同的串行数据通信协议。It should be noted that the above-mentioned serial communication module 14 includes a plurality of ports, and each port of the above-mentioned serial communication module 14 supports different serial data communication protocols, so as to meet the data transmission requirements of different application scenarios. The same motor cluster uses the same port of the serial communication module 14 and adopts the same serial data communication protocol.
在一种可选的实施方式中,各个端口对应连接一个电机集群。In an optional implementation manner, each port is correspondingly connected to a motor cluster.
上述串行通信模块14的各个端口可以分别外接一个电机集群,由于电机集群中包含多个电子换相电机,各个电子换相电机之间又可以进行通信,因此,上述串行通信模块14的各个端口可以实现多个电子换相电机的通信,从而可以利用端口获取不同电机集群的电机运行数据。Each port of the above-mentioned serial communication module 14 can be connected to a motor cluster respectively. Since the motor cluster includes a plurality of electronically commutated motors, and each electronically commutated motor can communicate with each other, each The port can realize the communication of multiple electronically commutated motors, so that the motor operation data of different motor clusters can be obtained by using the port.
在一种可选的实施方式中,各端口采用预定的串行总线外接一个电机集群。另外,上述电机可以为电子换相电机,其中,可以采用预定编号表征电子换相电机,采用预定组号表征电子换相电机所在的电机集群。In an optional implementation manner, each port uses a predetermined serial bus to connect a motor cluster. In addition, the above-mentioned motor may be an electronically commutated motor, wherein a predetermined number may be used to represent the electronically commutated motor, and a predetermined group number may be used to represent a motor cluster where the electronically commutated motor is located.
上述预定的串行总线包括但不限于RS-232、RS-422、RS-485等串行总线。另外,可以使用预定组号、预定编号来标识电机集群、电子换相电机;例如,第一电机集群对应的组号为A,第一电机集群对应的组号为B,第一电机集群对应的组号为C等。又例如,电机集群中的第一电子换相电机对应的编号为1,第二电子换相电机对应的编号为2,第三电子换相电机对应的编号为3。需要说明的是,上述预定组号、预定编号可以根据应用场景的需要而灵活设置,其具体实施包括但不限于上述情形。The above-mentioned predetermined serial buses include but are not limited to serial buses such as RS-232, RS-422, and RS-485. In addition, a predetermined group number and a predetermined number can be used to identify motor clusters and electronically commutated motors; for example, the group number corresponding to the first motor cluster is A, the group number corresponding to the first motor cluster is B, and the The group number is C and so on. For another example, the number corresponding to the first electronically commutated motor in the motor cluster is 1, the number corresponding to the second electronically commutated motor is 2, and the number corresponding to the third electronically commutated motor is 3. It should be noted that the above-mentioned predetermined group number and predetermined number can be flexibly set according to the needs of the application scenario, and the specific implementation thereof includes but is not limited to the above-mentioned situations.
在一种可选的实施方式中,上述网络适配器10还包括:存储模块,与中央处理器16连接,用于存储配置数据与电机集群的运行数据。上述存储模块为带电可擦可编程只读存储器。In an optional implementation manner, the above-mentioned network adapter 10 further includes: a storage module connected to the central processing unit 16 for storing configuration data and operation data of the motor cluster. The above-mentioned storage module is a charged erasable programmable read-only memory.
上述带电可擦可编程只读存储器是一种掉电后数据不丢失的存储芯片,便于在网络适配器上擦除已有信息,重新编程。The above-mentioned electrified erasable programmable read-only memory is a storage chip that does not lose data after power failure, which is convenient for erasing existing information and reprogramming on the network adapter.
在一种可选的实施方式中,上述带电可擦可编程只读存储器包括多个寄存器,其中,寄存器用于存储不同品牌型号的电机对应的配置数据以及运行数据。In an optional implementation manner, the above-mentioned electrified erasable programmable read-only memory includes a plurality of registers, wherein the registers are used to store configuration data and operation data corresponding to motors of different brands and models.
上述带电可擦可编程只读存储器的各个寄存器可以用来存储配置数据以及运行数据,在上述实施方式中,可以按照电机的品牌型号将该电机对应的配置数据以及运行数据存储到指定的寄存器中,从而便于后续对存储数据的读写。Each register of the above-mentioned electrified erasable programmable read-only memory can be used to store configuration data and operation data. In the above embodiment, the configuration data and operation data corresponding to the motor can be stored in the designated register according to the brand model of the motor. , so as to facilitate subsequent reading and writing of stored data.
实施例2Example 2
根据本实用新型实施例的另一方面,还提供了一种控制系统,该控制系统包括:交换机、服务器、至少一台PC机以及至少一台适配器,交换机分别与服务器、至少一台PC机以及至少一台适配器连接,其中,该适配器为上述中任意一项的网络适配器10。According to another aspect of the embodiments of the present invention, a control system is also provided, the control system includes: a switch, a server, at least one PC and at least one adapter, the switch is respectively connected with the server, at least one PC and At least one adapter is connected, wherein the adapter is the network adapter 10 of any one of the above.
在具体实施过程中,上述控制系统的PC机、网络适配器的数据不做任何限制,可以根据应用场景的需要而设置。In the specific implementation process, the data of the PC and the network adapter of the above-mentioned control system are not limited, and can be set according to the needs of the application scenario.
下面对本实用新型一种可选的实施方式进行详细说明。An optional embodiment of the present invention will be described in detail below.
图2是根据本实用新型可选实施例的EC电机用一对多的网络适配器可同时实现多台设备的通信控制的示意图,如图2所示,该网络适配器10主要包括中央处理器16、用于与控制端通信的以太网通信模块12以及与电机通信的串行通信模块14;以太网通信模块12和串行通信模块14均与中央处理器16连接。FIG. 2 is a schematic diagram illustrating that the one-to-many network adapter for an EC motor can simultaneously realize the communication control of multiple devices according to an optional embodiment of the present invention. As shown in FIG. 2 , the network adapter 10 mainly includes a central processing unit 16, The Ethernet communication module 12 for communicating with the control terminal and the serial communication module 14 for communicating with the motor; the Ethernet communication module 12 and the serial communication module 14 are both connected to the central processing unit 16 .
图3是根据本实用新型可选实施例的多个适配器通过交换机同时与多台PC或服务器连接的示意图,如图3所示,在大型场景中,多台网络适配器10可以通过交换机30同时与服务器32或多台PC机34连接,从而可以利用多个适配器分别实现电机集群与控制端的双向交互。FIG. 3 is a schematic diagram illustrating that multiple adapters are simultaneously connected to multiple PCs or servers through switches according to an optional embodiment of the present invention. As shown in FIG. 3 , in a large-scale scenario, multiple network adapters 10 can simultaneously connect to multiple PCs or servers through switches 30 . The server 32 or multiple PCs 34 are connected, so that the two-way interaction between the motor cluster and the control terminal can be realized respectively by using multiple adapters.
以太网通信模块12与PC机,服务器等控制端连接;串行通信模块14可通过RS-232、RS-485等串行总线与电机连接;存储模块与中央处理器16连接,存储模块将配置数据、电机运行数据等置于非易失性存储器中。The Ethernet communication module 12 is connected to control terminals such as PCs and servers; the serial communication module 14 can be connected to the motor through serial buses such as RS-232 and RS-485; the storage module is connected to the central processing unit 16, and the storage module will configure Data, motor operation data, etc. are placed in non-volatile memory.
电机通过串行接口连接网络适配器10。控制端使用TCP/IP与网络适配器10通信,配置包括各端口电机的波特率、数据位、停止位、奇偶校验位等数据。配置完成后,适配器开始工作。所连接的电机以各自协议通讯,将电机运行数据发送给网络适配器10,中央处理器16将电机运行数据中的数据拆解存储到对应的寄存器中,实现同一网络中的多种协议通讯。The motor is connected to the network adapter 10 through a serial interface. The control terminal communicates with the network adapter 10 using TCP/IP, and the configuration includes data such as the baud rate, data bits, stop bits, parity bits and the like of each port motor. After the configuration is complete, the adapter starts working. The connected motors communicate with their respective protocols, and send the motor running data to the network adapter 10. The central processing unit 16 disassembles and stores the data in the motor running data into corresponding registers to realize multiple protocol communication in the same network.
多台电机现场以一级总线结构连接安装,电机运行数据按品牌设置在不同端口以电源板起始地址分组储存。控制端通过读取网络适配器10内对应的寄存器,实现对电机的信息监测功能;控制端对适配器内特定的寄存器进行写操作,中央处理器16将需要发送的信息重新编码成需要控制电机所需要的协议传输帧,发送给相应的电机,即可实现电机的控制功能。分组电机可以通过统一的主控组号批量设置。Multiple motors are connected and installed in a first-level bus structure on site, and the motor operation data is set in different ports according to the brand and stored in groups with the starting address of the power board. The control terminal realizes the information monitoring function of the motor by reading the corresponding register in the network adapter 10; the control terminal writes a specific register in the adapter, and the central processing unit 16 re-encodes the information to be sent into the information required to control the motor. The protocol transmission frame is sent to the corresponding motor, and the control function of the motor can be realized. Grouped motors can be set in batches through a unified master control group number.
需要说明的是,上述网络适配器10可以将收到的多种协议响应数据转换封装成为单一协议,并为控制端提供标准的以太网数据接口。因此,该网络适配器10可以实现控制端与同一网络中多种协议并存通讯,且易于拓展覆盖其它协议;控制端对应的通讯程序可实现标准化,提高了程序的普遍适用性,同时也减少了调试时间。上述网络适配器10还可以实现控制端与多个端口通信,每个端口多个电机分组集群布置,实现只需一台PC机、服务器等上位机设备对多台电机进行监测与控制。另外,上述网络适配器10可同时多个端口的通信控制,每个端口串接布线,连接电机数量可达上万,大大提高了工作效率。It should be noted that the above-mentioned network adapter 10 can convert and encapsulate the received response data of multiple protocols into a single protocol, and provide a standard Ethernet data interface for the control end. Therefore, the network adapter 10 can realize the coexistence of communication between the control terminal and multiple protocols in the same network, and is easy to expand to cover other protocols; the communication program corresponding to the control terminal can be standardized, which improves the universal applicability of the program and reduces debugging. time. The above-mentioned network adapter 10 can also realize the communication between the control terminal and multiple ports, and multiple motors are arranged in groups for each port, so that only one PC, server and other host computer equipment is needed to monitor and control multiple motors. In addition, the above-mentioned network adapter 10 can simultaneously control the communication of multiple ports, each port is wired in series, and the number of connected motors can reach tens of thousands, which greatly improves the work efficiency.
在本实用新型的可选实施方式中,控制端可以根据网络适配器10的IP地址和端口号来连接进行TCP/IP通信;网络适配器10按照监控通道所连接的相关电机的品牌型号确定相关电机通信协议的配置,配置包括各端口电机的波特率、数据位、停止位、奇偶校验位等数据。In an optional embodiment of the present invention, the control terminal can connect to perform TCP/IP communication according to the IP address and port number of the network adapter 10; the network adapter 10 determines the relevant motor communication according to the brand model of the relevant motor connected to the monitoring channel. The configuration of the protocol, including the baud rate, data bit, stop bit, parity bit and other data of each port motor.
配置完成后,网络适配器10开始工作,将各通道不同品牌型号的电机运行信息读取回来,网络适配器10的存储模块将它们存储到对应的寄存器中。在具体实施过程中,多台电机现场以一级总线结构连接安装,电机信息数据按品牌型号设置在不同端口以电源板起始地址分组储存。After the configuration is completed, the network adapter 10 starts to work, and reads back the motor running information of different brands and models of each channel, and the storage module of the network adapter 10 stores them in the corresponding registers. In the specific implementation process, multiple motors are connected and installed in a first-level bus structure on site, and motor information data is set in different ports according to the brand and model and stored in groups with the starting address of the power supply board.
对电机监测时,网络适配器10接收到来自控制端的TCP/IP命令后进行解析,解析出需要获取的信息,进而读取存储模块对应寄存器内的数据并将封装成TCP/IP规格,通过以太网通信模块12发送给控制端;对电机控制时,网络适配器10根据控制端对相关寄存器的重写需要控制的电机主控组号、电机编号以及控制端对该电机的设置命令与参数,将数据重新编码成想控制的电机所需要的协议传输帧,通过串行通信模块14发送给该电机。When monitoring the motor, the network adapter 10 parses after receiving the TCP/IP command from the control terminal, parses out the information to be obtained, and then reads the data in the corresponding register of the storage module and encapsulates it into a TCP/IP specification. The communication module 12 sends it to the control terminal; when controlling the motor, the network adapter 10 converts the data according to the motor master control group number, motor number and the setting command and parameters of the motor to be controlled by the control terminal to rewrite the relevant registers. Re-encoded into the protocol transmission frame required by the motor to be controlled, and sent to the motor through the serial communication module 14 .
需要说明的是,在进行电机集群控制时,其具体实施过程与上述实施方式类似,获得需要控制的电机组号后,对同组批量控制。此时,只需一台PC机、服务器之类的上位机设备就能对多台电机进行监测与控制。It should be noted that, when the motor group control is performed, the specific implementation process is similar to the above-mentioned embodiment. After the motor group number to be controlled is obtained, the same group is controlled in batches. At this point, only one PC, server and other host computer equipment can monitor and control multiple motors.
进一步地,在需要修改和拓展电机通信协议时,网络适配器10与控制端连接后经由控制端编程添加或修改电机品牌型号和其对应的通信协议设置,并将配置数据置于网络适配器10相应寄存器中储存,实现同一网络中的多种协议通讯。Further, when it is necessary to revise and expand the motor communication protocol, after the network adapter 10 is connected with the control terminal, add or modify the motor brand model and its corresponding communication protocol setting via the control terminal programming, and place the configuration data in the corresponding register of the network adapter 10 It can be stored in the same network to realize the communication of multiple protocols in the same network.
上述本实用新型实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
在本实用新型的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are only illustrative, for example, the division of the units may be a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本实用新型各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本实用新型的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本实用新型各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or the whole or part of the technical solution, which is stored in a storage medium. , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .
以上所述仅是本实用新型的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本实用新型原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本实用新型的保护范围。The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. These improvements and Retouching should also be regarded as the protection scope of the present invention.
Claims (8)
1.一种网络适配器,其特征在于,包括:1. A network adapter, characterized in that, comprising: 以太网通信模块,用于接收控制端发送的目标指令;The Ethernet communication module is used to receive the target command sent by the control terminal; 串行通信模块,用于基于多个端口分别接收不同电机集群的运行数据;Serial communication module, used to receive the operation data of different motor clusters based on multiple ports; 中央处理器,分别与所述以太网通信模块、所述串行通信模块连接,用于确定所述电机集群对应的串行数据通信协议的配置数据以及根据所述目标指令对按照所述配置数据获取的所述运行数据进行处理,并将处理结果通过所述以太网通信模块发送给所述控制端或者通过所述串行通信模块发送给对应的所述电机集群;The central processing unit is respectively connected with the Ethernet communication module and the serial communication module, and is used for determining the configuration data of the serial data communication protocol corresponding to the motor cluster and for pairing the configuration data according to the target instruction The acquired operating data is processed, and the processing result is sent to the control terminal through the Ethernet communication module or to the corresponding motor cluster through the serial communication module; 其中,各所述端口分别采用预定的串行总线外接一个所述电机集群,各所述端口分别支持不同的所述串行数据通信协议,所述电机集群中的电机采用相同串行数据通信协议。Wherein, each of the ports uses a predetermined serial bus to connect to one of the motor clusters, each of the ports supports different serial data communication protocols, and the motors in the motor cluster use the same serial data communication protocol . 2.根据权利要求1所述的网络适配器,其特征在于,所述以太网通信模块包括至少一个以太网数据接口,所述以太网数据接口支持的通信协议为传输控制协议/网际协议。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 . 3.根据权利要求1所述的网络适配器,其特征在于,所述网络适配器还包括:存储模块,与所述中央处理器连接,用于存储所述配置数据与所述电机集群的运行数据。3 . The network adapter according to claim 1 , wherein the network adapter further comprises: a storage module, connected to the central processing unit, for storing the configuration data and the operation data of the motor cluster. 4 . 4.根据权利要求3所述的网络适配器,其特征在于,所述存储模块为带电可擦可编程只读存储器。4. The network adapter according to claim 3, wherein the storage module is a charged erasable programmable read-only memory. 5.根据权利要求4所述的网络适配器,其特征在于,所述带电可擦可编程只读存储器包括多个寄存器,其中,所述寄存器用于存储不同品牌型号的电机对应的配置数据以及运行数据。5. The network adapter according to claim 4, wherein the electrified erasable programmable read-only memory comprises a plurality of registers, wherein the registers are used to store configuration data and operation corresponding to motors of different brands and models. data. 6.根据权利要求1至5中任意一项所述的网络适配器,其特征在于,所述电机为电子换相电机,其中,采用预定编号表征所述电子换相电机,采用预定组号表征所述电子换相电机所在的所述电机集群。6. The network adapter according to any one of claims 1 to 5, wherein the motor is an electronically commutated motor, wherein the electronically commutated motor is represented by a predetermined number, and the electronically commutated motor is represented by a predetermined group number. the motor cluster where the electronically commutated motor is located. 7.根据权利要求1至5中任意一项所述的网络适配器,其特征在于,所述配置数据包括以下至少之一:波特率、数据位、停止位、奇偶校验位。7. The network adapter according to any one of claims 1 to 5, wherein the configuration data comprises at least one of the following: baud rate, data bits, stop bits, and parity bits. 8.一种控制系统,其特征在于,包括:交换机、服务器、至少一台PC机以及至少一台适配器,所述交换机分别与所述服务器、至少一台所述PC机以及至少一台所述适配器连接,其中,所述适配器为上述权利要求1至7中任意一项所述的网络适配器。8. A control system, comprising: a switch, a server, at least one PC and at least one adapter, the switch being respectively connected to the server, at least one PC and at least one of the An adapter connection, wherein the adapter is the network adapter described in any one of the above claims 1 to 7 .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202220568505.8U CN217656706U (en) | 2022-03-16 | 2022-03-16 | Network adapter and control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202220568505.8U CN217656706U (en) | 2022-03-16 | 2022-03-16 | Network adapter and control system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN217656706U true CN217656706U (en) | 2022-10-25 |
Family
ID=83662237
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202220568505.8U Active CN217656706U (en) | 2022-03-16 | 2022-03-16 | Network adapter and control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN217656706U (en) |
Cited By (1)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114594713A (en) * | 2022-03-16 | 2022-06-07 | 卧龙电气驱动集团股份有限公司 | Network adapter, control system, and motor control method |
-
2022
- 2022-03-16 CN CN202220568505.8U patent/CN217656706U/en active Active
Cited By (1)
* Cited by examiner, † Cited by third partyPublication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114594713A (en) * | 2022-03-16 | 2022-06-07 | 卧龙电气驱动集团股份有限公司 | Network adapter, control system, and motor control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2021057892A5 (en) | 2023-05-22 | |
US9667699B2 (en) | 2017-05-30 | Method for transmitting data via a CANopen bus |
CN105260337B (en) | 2018-03-02 | A kind of automatic addressing method and system of single-chip microcomputer |
WO2019196462A1 (en) | 2019-10-17 | Air conditioning unit, operating method and device for air conditioning unit |
JP5084908B2 (en) | 2012-11-28 | Programming device for network of control nodes and system having the same |
CN101132328A (en) | 2008-02-27 | Real-time industrial Ethernet EtherCAT communication controller |
US11619415B2 (en) | 2023-04-04 | Intelligent plug for controlling an air conditioner system over a PLC network |
WO2019196453A1 (en) | 2019-10-17 | Data sending method and apparatus, and multiple on-line system and storage medium |
WO2019196483A1 (en) | 2019-10-17 | Air conditioning system and communication method between units in air conditioning system |
CN217656706U (en) | 2022-10-25 | Network adapter and control system |
CN103201690A (en) | 2013-07-10 | Local control network processor (LCNP) emulator for multi-generation control systems |
US20180357193A1 (en) | 2018-12-13 | Computing device and operation method |
CN103595591A (en) | 2014-02-19 | Method and system for monitoring board cards of multi-board-card equipment |
CN109600420B (en) | 2020-01-14 | Method and system for realizing online remote control based on raspberry pi technology |
CN101639694A (en) | 2010-02-03 | Control system based on EPA standard and management method thereof |
CN108989388B (en) | 2021-03-05 | Remote valve control system and method based on OneNet platform |
US9755892B2 (en) | 2017-09-05 | Integrated device managment over Ethernet network |
CN109885336A (en) | 2019-06-14 | A kind of off-line arrangement method and device of smart machine |
US6996600B2 (en) | 2006-02-07 | System and method for servicing messages between device controller nodes and via a lon network |
CN102483624A (en) | 2012-05-30 | Providing operating data relating to a device using a diagnostic data server as a further field bus master |
CN114594713A (en) | 2022-06-07 | Network adapter, control system, and motor control method |
CN202066117U (en) | 2011-12-07 | Thermal energy district heating controller |
CN216979623U (en) | 2022-07-15 | ARM core board with EtherCAT protocol interface |
CN214335545U (en) | 2021-10-01 | Production line control system |
CN109150724A (en) | 2019-01-04 | A kind of communication means and network interface card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
2022-10-25 | GR01 | Patent grant | |
2022-10-25 | GR01 | Patent grant |