[go: up one dir, main page]

CN203911823U - Ethernet-based electromotor controller and control system - Google Patents

Ethernet-based electromotor controller and control system Download PDF

Info

Publication number
CN203911823U
CN203911823U CN201320682340.8U CN201320682340U CN203911823U CN 203911823 U CN203911823 U CN 203911823U CN 201320682340 U CN201320682340 U CN 201320682340U CN 203911823 U CN203911823 U CN 203911823U
Authority
CN
China
Prior art keywords
control
controller
motor
interface circuit
circuit
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.)
Expired - Lifetime
Application number
CN201320682340.8U
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.)
Institute of Modern Physics of CAS
Original Assignee
Institute of Modern Physics of CAS
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 Institute of Modern Physics of CAS filed Critical Institute of Modern Physics of CAS
Priority to CN201320682340.8U priority Critical patent/CN203911823U/en
Application granted granted Critical
Publication of CN203911823U publication Critical patent/CN203911823U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Control Of Multiple Motors (AREA)

Abstract

公开了基于以太网的电机控制器和控制系统。电机控制器包括:通讯接口电路,包括以太网接口和现场总线接口;闭环反馈接口电路,接收来自电机负载的反馈信息;电机控制接口电路,传送电机的控制信息;以及控制电路,连接至通讯接口电路、闭环反馈接口电路和电机控制接口电路,控制各接口电路的操作。电机控制系统包括:远端设备,经由以太网与电机控制器连接;电机控制器,发送控制信号到电机驱动器;电机驱动器驱动电机;反馈装置连接至电机控制器以构成闭环反馈。本实用新型能够提供多轴控制、闭环反馈和基于以太网技术的远程控制,同时提供本地或级联控制。

An Ethernet based motor controller and control system is disclosed. The motor controller includes: communication interface circuit, including Ethernet interface and field bus interface; closed-loop feedback interface circuit, receiving feedback information from the motor load; motor control interface circuit, transmitting motor control information; and control circuit, connected to the communication interface The circuit, the closed-loop feedback interface circuit and the motor control interface circuit control the operation of each interface circuit. The motor control system includes: remote equipment, connected to the motor controller via Ethernet; the motor controller, which sends control signals to the motor driver; the motor driver drives the motor; the feedback device is connected to the motor controller to form a closed-loop feedback. The utility model can provide multi-axis control, closed-loop feedback and remote control based on Ethernet technology, and simultaneously provide local or cascade control.

Description

基于以太网的电机控制器和控制系统Ethernet-Based Motor Controllers and Control Systems

技术领域 technical field

本实用新型示例性实施例总体上涉及电机控制,具体涉及一种基于以太网的电机控制器和控制系统。  Exemplary embodiments of the present invention relate generally to motor control, and in particular to an Ethernet-based motor controller and control system. the

背景技术 Background technique

目前研发和销售的电机控制器,例如两相混合式步进电机控制器,一般采用现场总线接口RS-232、RS-485、USB以及CAN等接口方式,提供单轴控制模式,并且无闭环反馈接口。这种电机控制器不能实现直接基于以太网的远程控制,并且无法满足多轴控制应用场合的要求。此外,由于无闭环反馈接口,需要额外增加反馈接口,导致结构复杂,成本增加。  Motor controllers currently developed and sold, such as two-phase hybrid stepper motor controllers, generally use fieldbus interfaces such as RS-232, RS-485, USB, and CAN to provide single-axis control mode and no closed-loop feedback interface. This motor controller cannot implement direct Ethernet-based remote control and cannot meet the requirements of multi-axis control applications. In addition, since there is no closed-loop feedback interface, an additional feedback interface needs to be added, resulting in a complex structure and increased cost. the

需要一种电机控制器,能够提供多轴控制、闭环反馈和基于以太网技术的远程控制,同时也提供本地或级联控制。  There is a need for a motor controller that can provide multi-axis control, closed-loop feedback, and remote control based on Ethernet technology, while also providing local or cascaded control. the

发明内容 Contents of the invention

本实用新型示例性实施例提供了基于以太网的电机控制器和控制系统。  Exemplary embodiments of the present invention provide an Ethernet-based motor controller and control system. the

根据本实用新型实施例,一种电机控制器,包括:通讯接口电路,包括以太网接口和现场总线接口;闭环反馈接口电路,用于接收来自一个或多个电机的负载的反馈信息;电机控制接口电路,用于传送针对一个或多个电机的控制信息;以及控制电路,连接至通讯接口电路、闭环反馈接口电路和电机控制接口电路,控制各接口电路的操作,对经由通讯接口电路和闭环反馈接口电路接收的信息进行处理,并且经由通讯接口电路和电机控制接口电路传送处理结果,以控制一个或多个电机的运行。  According to an embodiment of the utility model, a motor controller includes: a communication interface circuit, including an Ethernet interface and a field bus interface; a closed-loop feedback interface circuit, used to receive feedback information from loads of one or more motors; a motor control an interface circuit for transmitting control information for one or more motors; and a control circuit connected to the communication interface circuit, the closed-loop feedback interface circuit and the motor control interface circuit to control the operation of each interface circuit, and to communicate via the communication interface circuit and the closed-loop The information received by the feedback interface circuit is processed, and the processing result is transmitted via the communication interface circuit and the motor control interface circuit to control the operation of one or more motors. the

控制器还可以包括:状态指示电路,用于指示控制器状态、网络状态、电机状态和负载状态中的一个或多个;以及电源电路,用于提供针对各电路的多种供电电源和参考电源。  The controller may also include: a status indicating circuit, used to indicate one or more of the status of the controller, the status of the network, the status of the motor and the status of the load; and a power supply circuit, used to provide a variety of power supply and reference power for each circuit . the

控制器的各电路可以集成在单板上。  Various circuits of the controller can be integrated on a single board. the

控制器可以分配有IP地址,控制器经由以太网接口接入以太网,远端设备通过以太网与控制器建立TCP/IP连接,以便经由控制器对电机进行远程控制。  The controller can be assigned an IP address, the controller is connected to the Ethernet through the Ethernet interface, and the remote device establishes a TCP/IP connection with the controller through the Ethernet, so as to remotely control the motor through the controller. the

现场总线接口可以包括RS-485现场总线,用于实现对控制器的本地控制或对多个控制器的级联控制。  The fieldbus interface may include RS-485 fieldbus for local control of the controller or cascade control of multiple controllers. the

闭环反馈接口电路可以包括光栅尺接口电路、电阻尺接口电路和限位开关接口电路中的一个或多个。闭环反馈接口电路可以连接至相应的外部反馈装置,从反馈装置接收负载的反馈信息。  The closed-loop feedback interface circuit may include one or more of a grating scale interface circuit, a resistance scale interface circuit and a limit switch interface circuit. The closed-loop feedback interface circuit can be connected to a corresponding external feedback device to receive load feedback information from the feedback device. the

电机控制接口电路可以连接至外部的电机驱动器,向电机驱动器传送来自控制电路的控制信息,以经由电机驱动器控制电机的运行。  The motor control interface circuit can be connected to an external motor driver, and transmits control information from the control circuit to the motor driver, so as to control the operation of the motor through the motor driver. the

控制器可以包括多组闭环反馈接口电路和电机控制接口电路,分别对应多个电机,以同时提供多路电机控制。  The controller may include multiple sets of closed-loop feedback interface circuits and motor control interface circuits, respectively corresponding to multiple motors, so as to simultaneously provide multi-channel motor control. the

控制器可以提供针对步进电机的转速控制和步进控制,以及针对直线电机的控制。  The controller can provide speed control and step control for stepper motors, as well as control for linear motors. the

控制电路可以使用有限状态机来合成电机控制所需的任意频率。  The control circuit can use a finite state machine to synthesize any frequency required for motor control. the

根据本实用新型另一实施例,提供了一种基于以太网的电机控制系统,包括远端设备、电机控制器、电机驱动器和反馈装置。远端设备经由以太网与电机控制器连接,向电机控制器发送数据,电机控制器接收来自远端设备的数据,利用所述数据产生相应控制信号并发送到电机驱动器,电机驱动器根据控制信号驱动电机运行,从而带动电机的负载运行,反馈装置连接至电机控制器以构成闭环反馈,反馈装置获取关于负载的反馈信息,并将反馈信息传送给电机控制器,并且在产生控制信号时,电机控制器还利用所述反馈信息。  According to another embodiment of the present invention, an Ethernet-based motor control system is provided, including a remote device, a motor controller, a motor driver and a feedback device. The remote device is connected to the motor controller via Ethernet, and sends data to the motor controller. The motor controller receives the data from the remote device, uses the data to generate a corresponding control signal and sends it to the motor driver, and the motor driver drives according to the control signal. The motor runs, thereby driving the load of the motor to run. The feedback device is connected to the motor controller to form a closed-loop feedback. The feedback device obtains feedback information about the load and transmits the feedback information to the motor controller. When the control signal is generated, the motor control The device also utilizes the feedback information. the

根据本实用新型实施例的电机控制器和控制系统,能够灵活有效 地满足加速器控制领域关于步进电机等的运动控制需求,并且性价比高,系统构建灵活。例如,本实用新型控制器应用串口转以太网技术,在远程控制应用中可以直接将控制器接入以太网,相比于通过串口服务器或PC机来接入以太网,本控制器构建的控制系统结构简单,成本大大降低。针对步进电机等开环控制这一问题,本实用新型控制器配备了针对例如光栅尺、电阻尺、限位开关等反馈装置的接口,构成稳定可靠的闭环系统。由此搭建的电机运动控制系统构成了一个闭环控制系统,能够精确控制电机的转速和位移。再者,能够将多轴控制集成在一个控制板上,提高了控制效率,实现了基于以太网的多轴联动一体化步进电机控制器。本实用新型电机控制器能够使用有限状态机来合成任意频率,这为实现运动控制策略提供了保证。此外,本实用新型电机控制器和系统不仅可以控制步进电机,还可以控制直线电机,能够应用于多种场合。  According to the motor controller and control system of the embodiment of the utility model, it can flexibly and effectively meet the motion control requirements of stepper motors in the field of accelerator control, and has high cost performance and flexible system construction. For example, the controller of the utility model applies the serial port to Ethernet technology, and the controller can be directly connected to the Ethernet in remote control applications. Compared with connecting to the Ethernet through a serial server or a PC, the control built by the controller The system structure is simple and the cost is greatly reduced. To solve the problem of open-loop control of stepping motors, the controller of the utility model is equipped with interfaces for feedback devices such as grating scales, resistance scales, limit switches, etc., forming a stable and reliable closed-loop system. The motor motion control system built thus constitutes a closed-loop control system, which can precisely control the speed and displacement of the motor. Furthermore, multi-axis control can be integrated on one control board, which improves control efficiency and realizes an Ethernet-based multi-axis linkage integrated stepping motor controller. The motor controller of the utility model can use the finite state machine to synthesize any frequency, which provides guarantee for realizing the motion control strategy. In addition, the motor controller and system of the present invention can not only control stepping motors, but also control linear motors, and can be applied to various occasions. the

附图说明 Description of drawings

下面结合附图对本实用新型的具体实施方式作进一步详细的说明,其中:  The specific embodiment of the present utility model is described in further detail below in conjunction with accompanying drawing, wherein:

图1是根据本实用新型实施例的基于以太网的电机控制系统的示意图;  Fig. 1 is the schematic diagram of the motor control system based on Ethernet according to the utility model embodiment;

图2是根据本实用新型实施例的电机控制器的示意框图;  Fig. 2 is the schematic block diagram of the motor controller according to the utility model embodiment;

图3是根据本实用新型实施例的电机控制器合成的四路方波信号的屏幕截图;  Fig. 3 is the screenshot of the four-way square wave signal synthesized by the motor controller according to the utility model embodiment;

图4示意性示出了高级运动控制中的步进控制曲线;  Fig. 4 schematically shows the step control curve in advanced motion control;

图5中(a)和(b)示意性示出了高级运动控制中的转速控制曲线;  (a) and (b) in Figure 5 schematically show the speed control curve in advanced motion control;

图6中(a)和(b)示意性示出了基本运动控制中的转速控制曲线;  (a) and (b) in Fig. 6 schematically show the rotational speed control curve in basic motion control;

图7是本实用新型实施例的电机控制器进行运动控制的流程图;以及  Fig. 7 is the flow chart that the motor controller of the utility model embodiment carries out motion control; And

图8是采用CPLD实现本实用新型实施例的电机控制器的相应功 能时的功能模块框图。  Fig. 8 is a functional module block diagram when adopting CPLD to realize the corresponding function of the motor controller of the utility model embodiment. the

具体实施方式 Detailed ways

下面结合附图对本实用新型的示例实施例进行详述。以下描述包括各种具体细节以辅助理解,但这些具体细节应仅被示为示例性的。因此,本领域普通技术人员将认识到,可以在不脱离本公开范围和精神的情况下对这里描述的各个实施例进行各种改变和修改。此外,为了清楚和简明起见,省略了公知功能和结构的描述。  The exemplary embodiments of the present utility model are described in detail below in conjunction with the accompanying drawings. The following description includes various specific details to assist in understanding, but these should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the various embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted for clarity and conciseness. the

以下描述和权利要求中使用的术语和词语不限于其字面含义,而是仅由发明人用于实现本实用新型的清楚一致的理解。因此,本领域技术人员应当清楚,对本实用新型各个示例实施例的以下描述仅被提供用于说明目的,而不意在限制由所附权利要求及其等同物限定的本实用新型。  The terms and words used in the following description and claims are not limited to their bibliographical meanings, but, are merely used by the inventor to carry out a clear and consistent understanding of the invention. Accordingly, it should be apparent to those skilled in the art that the following descriptions of various exemplary embodiments of the present invention are provided for illustration purposes only and are not intended to limit the present invention as defined by the appended claims and their equivalents. the

图1是根据本实用新型实施例的基于以太网的电机控制系统的示意图。该控制系统包括远端设备、电机控制器、电机驱动器和反馈装置。图1中以个人计算机(PC)作为远端设备的示例,并且附加地利用了交换机进行连接。远端设备经由以太网和交换机与电机控制器连接,向电机控制器发送数据,电机控制器接收来自远端设备的数据,利用数据产生相应控制信号并发送到电机驱动器,电机驱动器根据控制信号驱动步进电机运行,从而带动步进电机的负载运行,反馈装置连接至电机控制器以构成闭环反馈,反馈装置获取关于负载的反馈信息,并将反馈信息传送给电机控制器,由此在产生控制信号时,电机控制器还利用该反馈信息来确定运动控制策略。为清楚起见,图1的电机控制系统中各个装置仅示出了一个,但本领域技术人员可以理解,图1的系统中的远端设备、控制器、驱动器、步进电机、负载和反馈装置均可以具有多个,实现多轴或联动控制。  FIG. 1 is a schematic diagram of an Ethernet-based motor control system according to an embodiment of the present invention. The control system includes a remote device, a motor controller, a motor driver and a feedback device. In FIG. 1, a personal computer (PC) is used as an example of a remote device, and a switch is additionally used for connection. The remote device is connected to the motor controller via Ethernet and a switch, and sends data to the motor controller. The motor controller receives the data from the remote device, uses the data to generate a corresponding control signal and sends it to the motor driver, and the motor driver drives according to the control signal. The stepper motor runs, thereby driving the load of the stepper motor to run. The feedback device is connected to the motor controller to form a closed-loop feedback. The feedback device obtains the feedback information about the load and transmits the feedback information to the motor controller, thereby generating control signal, the motor controller also uses this feedback information to determine the motion control strategy. For the sake of clarity, only one device is shown in the motor control system of FIG. 1 , but those skilled in the art can understand that the remote device, controller, driver, stepper motor, load and feedback device in the system of FIG. 1 There can be more than one to realize multi-axis or linkage control. the

图2是根据本实用新型实施例的电机控制器的示意框图。该控制器的各电路可以集成在单板上,形成一个控制板。该控制器可以用于 控制步进电机和直线电机,并可以提供针对步进电机的转速控制和步进控制。每个控制器可以分配有IP地址,以接入以太网,远端设备通过以太网与控制器建立TCP/IP连接,经由控制器对电机进行远程控制。如图2所示,电机控制器可以包括:通讯接口电路,包括以太网接口和现场总线接口;闭环反馈接口电路,用于接收来自一个或多个电机的负载的反馈信息;电机控制接口电路,用于传送针对一个或多个电机的控制信息;以及控制电路,连接至通讯接口电路、闭环反馈接口电路和电机控制接口电路,控制各接口电路的操作,对经由通讯接口电路和闭环反馈接口电路接收的信息进行处理,并且经由通讯接口电路和电机控制接口电路传送处理结果,以控制一个或多个电机的运行。图2示出了控制器还可以包括:状态指示电路,用于指示控制器状态、网络状态、电机状态和负载状态中的一个或多个;以及电源电路,用于提供针对各电路的多种供电电源和参考电源。  Fig. 2 is a schematic block diagram of a motor controller according to an embodiment of the present invention. Each circuit of the controller can be integrated on a single board to form a control board. The controller can be used to control stepper motors and linear motors, and can provide speed control and step control for stepper motors. Each controller can be assigned an IP address to access the Ethernet, and the remote device establishes a TCP/IP connection with the controller through the Ethernet, and remotely controls the motor through the controller. As shown in Figure 2, the motor controller may include: a communication interface circuit, including an Ethernet interface and a field bus interface; a closed-loop feedback interface circuit, used to receive feedback information from a load of one or more motors; a motor control interface circuit, Used to transmit control information for one or more motors; and a control circuit, connected to the communication interface circuit, the closed-loop feedback interface circuit and the motor control interface circuit, to control the operation of each interface circuit, and to communicate via the communication interface circuit and the closed-loop feedback interface circuit The received information is processed and the processing results are transmitted via the communication interface circuit and the motor control interface circuit to control the operation of one or more motors. Fig. 2 shows that the controller may also include: a status indication circuit, used to indicate one or more of the controller status, network status, motor status and load status; and a power supply circuit, used to provide various power supply and reference supply. the

根据本实用新型实施例,控制器可以包括多组闭环反馈接口电路和电机控制接口电路,分别对应多个电机,以同时提供多路电机控制。图2的控制器包括四组闭环反馈接口电路和电机控制接口电路,可以提供四路电机控制。本领域技术人员可以理解,能够根据设计需求,提供任意数目的多路控制。  According to an embodiment of the present invention, the controller may include multiple sets of closed-loop feedback interface circuits and motor control interface circuits, respectively corresponding to multiple motors, so as to simultaneously provide multi-channel motor control. The controller in Figure 2 includes four groups of closed-loop feedback interface circuits and motor control interface circuits, which can provide four-way motor control. Those skilled in the art can understand that any number of multi-channel controls can be provided according to design requirements. the

下面具体说明控制器的各个电路。  Each circuit of the controller will be described in detail below. the

控制电路可以由单片机或者PC机+控制卡或者ARM/DSP或者CPLD/PFGA实现。在一个示例实施例中,为了满足电机在实时性和灵活性上的要求,减少电路体积,简化电路结构,降低控制器成本,提高电路稳定性,易于高速控制,采用Net+MSP430+CPLD的控制结构,核心芯片选用MSP430和CPLD,如图2所示。在示例实施例中,MSP430负责通讯功能、数据交换、命令解析、电阻尺回读、限位开关回读以及运动控制策略等。CPLD完成频率合成、转速控制、步进控制、光栅尺回读、状态指示以及综合控制等。稍后将进一步具体介绍MSP430和CPID。  The control circuit can be realized by single-chip microcomputer or PC + control card or ARM/DSP or CPLD/PFGA. In an exemplary embodiment, in order to meet the real-time and flexibility requirements of the motor, reduce the circuit volume, simplify the circuit structure, reduce the cost of the controller, improve the circuit stability, and facilitate high-speed control, the control of Net+MSP430+CPLD is adopted Structure, the core chip selects MSP430 and CPLD, as shown in Figure 2. In an example embodiment, the MSP430 is responsible for communication functions, data exchange, command parsing, resistance gauge readback, limit switch readback, and motion control strategies. CPLD completes frequency synthesis, speed control, step control, grating scale readback, status indication and comprehensive control. MSP430 and CPID will be further introduced in detail later. the

通讯接口电路可以包括以太网接口和现场总线接口。以太网接口可以使用RS232到TCP/IP的双向嵌入式协议转换模块来实现。例如,可以采用UA7000B嵌入式协议转换模块,它提供RS232/RS485到TCP/IP网络之间数据的透明传输,传输速率达到10Mb/s,向下提供一个标准的RS232/485串行口,16Kbyte串口缓存(收发各8KByte),串口波特率从15~115200共有29种常用波特率。该转换模块具有大吞吐量(数据最大吞吐量为22.5Kbyte/s)和高可靠性(在115200波特率下,双向同时传输1G大小的文件而不丢失一个Byte)的特点,能够满足实时数据的无差错传输。  The communication interface circuit may include an Ethernet interface and a fieldbus interface. The Ethernet interface can be realized by using a two-way embedded protocol conversion module from RS232 to TCP/IP. For example, UA7000B embedded protocol conversion module can be used, which provides transparent data transmission between RS232/RS485 and TCP/IP network, the transmission rate reaches 10Mb/s, and provides a standard RS232/485 serial port and 16Kbyte serial port Buffer (8KByte each for sending and receiving), serial port baud rate from 15 to 115200, there are 29 commonly used baud rates. The conversion module has the characteristics of large throughput (maximum data throughput of 22.5Kbyte/s) and high reliability (at 115200 baud rate, bidirectional simultaneous transmission of 1G files without losing a Byte), which can meet the requirements of real-time data error-free transmission. the

现场总线接口可以包括RS-485现场总线,用于实现对控制器的本地控制或对多个控制器的级联控制。RS-485总线接口是一种标准的总线接口,例如,在根据本实用新型实施例的控制器中,利用一款半双工、具有±15KV ESD保护的RS485/422收发器来实现。该收发器可以将控制电路的MSP430的串口转为RS-485接口。该收发器可以包含驱动器和接收器,支持热捅拔功能,可以消除上电或热插入时总线上的故障瞬态信号,还具有自动方向控制功能,这种结构可以简化设计,使电路更加稳定。  The fieldbus interface may include RS-485 fieldbus for local control of the controller or cascade control of multiple controllers. RS-485 bus interface is a kind of standard bus interface, for example, in the controller according to the utility model embodiment, utilize a half-duplex, have the RS485/422 transceiver of ± 15KV ESD protection to realize. The transceiver can convert the serial port of the MSP430 of the control circuit into an RS-485 interface. The transceiver can contain drivers and receivers, supports hot-plug function, can eliminate fault transient signals on the bus when power-on or hot-plug, and also has automatic direction control function, this structure can simplify the design and make the circuit more stable . the

闭环反馈接口电路可以包括光栅尺接口电路、电阻尺接口电路和限位开关接口电路中的一个或多个。闭环反馈接口电路可以连接至相应的外部反馈装置(如图1所示),从反馈装置接收负载的反馈信息。在图2中,闭环反馈接口电路包括光栅尺接口电路0~3、电阻尺接口电路0~3和限位开关接口电路0~3(包括0左~3左和0右~3右),分别连接至相应的反馈装置,即光栅尺、电阻尺和限位开关。光栅尺是一种精确的位置反馈装置,采用增量式或绝对式光栅尺实现对负载位移的监测,精度可达1um。电阻尺是一种负载绝对位置反馈装置,反馈精度可达50um,性价比非常高。限位开关限定了电机所能走过的最大行程。  The closed-loop feedback interface circuit may include one or more of a grating scale interface circuit, a resistance scale interface circuit and a limit switch interface circuit. The closed-loop feedback interface circuit can be connected to a corresponding external feedback device (as shown in FIG. 1 ) to receive load feedback information from the feedback device. In Fig. 2, the closed-loop feedback interface circuit includes grating ruler interface circuit 0~3, resistance ruler interface circuit 0~3 and limit switch interface circuit 0~3 (including 0 left~3 left and 0 right~3 right), respectively Connect to the appropriate feedback devices, ie scales, scales and limit switches. The grating ruler is a precise position feedback device, and the incremental or absolute grating ruler is used to monitor the displacement of the load, and the accuracy can reach 1um. The resistance scale is a load absolute position feedback device, the feedback accuracy can reach 50um, and the cost performance is very high. Limit switches limit the maximum travel the motor can travel. the

在示例实施例中,光栅尺输出标准信号是相位角相差90°的2路 方波信号。每路方波信号又是标准的RS-422差分信号。因此先要对该差分信号转单端处理。这里使用一款具有三路、±15KV ESD保护、32Mbps数据速率的RS-422/RS-485接收器来实现。该接收器每路均有故障检测和故障输出,能够很好的检测当前光栅尺的运行状态。当差分信号转单端处理后,得到两路相位角相差90°的方波信号。对该方波信号进行细分辩向之后,送到CPLD进行计数。在CPLD内部可以设置一个可逆计数器,通过对细分辨向之后的脉冲进行计数就可以得出光栅尺走过的位移。  In an exemplary embodiment, the output standard signal of the grating scale is 2 channels of square wave signals with a phase angle difference of 90°. Each square wave signal is a standard RS-422 differential signal. Therefore, the differential signal must first be converted to single-ended processing. This is implemented using a RS-422/RS-485 receiver with three channels, ±15KV ESD protection, and a data rate of 32Mbps. Each channel of the receiver has fault detection and fault output, which can well detect the current running state of the grating ruler. After the differential signal is converted to single-ended processing, two square wave signals with a phase angle difference of 90° are obtained. After subdividing the square wave signal, it is sent to CPLD for counting. A reversible counter can be set inside the CPLD, and the displacement of the grating ruler can be obtained by counting the pulses after the fine resolution. the

电阻尺具有绝对线性以及很高的重复精度,在电阻尺的两端加上一个电压,测出电阻尺中间抽头的电压就可以得出电阻尺的位移量。MSP430处理器内部自带4路16位的Sigma-Delta ADC模块,具有高速通用的特点,可以完成对四路电阻尺的回读。  The resistance scale has absolute linearity and high repeatability. A voltage is applied to both ends of the resistance scale, and the displacement of the resistance scale can be obtained by measuring the voltage of the middle tap of the resistance scale. The MSP430 processor has a built-in 4-channel 16-bit Sigma-Delta ADC module, which has the characteristics of high speed and general purpose, and can complete the readback of the four-channel resistance scale. the

限位开关确定了电机运动的最大行程,当电机碰到限位开关之后,必须无条件停车。限位开关是状态量,每路电机需要两个限位开关,因此需要采集8路状态量。对于MSP430来说,普通的I/O口即可满足要求。由于限位开关是5V供电,而MSP430供电为3.3V,因此需要做电平转换。电平转换例如可以使用电阻分压来实现。  The limit switch determines the maximum travel of the motor. When the motor touches the limit switch, it must stop unconditionally. The limit switch is a state quantity, and each motor needs two limit switches, so it is necessary to collect 8 state quantities. For MSP430, common I/O ports can meet the requirements. Since the limit switch is powered by 5V, and the MSP430 is powered by 3.3V, level conversion is required. Level shifting can be realized using, for example, resistive voltage division. the

控制器的电机控制接口可以具有多根信号线,例如四根,分别是+5V、脉冲输出、方向、使能。电机控制接口电路连接至外部的电机驱动器,向电机驱动器传送来自控制电路的控制信息,以经由电机驱动器控制电机的运行。  The motor control interface of the controller may have multiple signal lines, for example four, which are respectively +5V, pulse output, direction, and enable. The motor control interface circuit is connected to an external motor driver, and transmits control information from the control circuit to the motor driver, so as to control the operation of the motor through the motor driver. the

状态指示电路可以采用例如LED指示灯、或者LED或LCD显示屏来实现,指示例如系统状态、网络状态、每路电机状态、光栅尺状态等。  The status indication circuit can be implemented by using, for example, LED indicator lights, or LED or LCD display screens, indicating, for example, system status, network status, motor status of each channel, and grating ruler status. the

电源电路可以包括系统供电、电阻尺参考电源以及主芯片供电。根据本实用新型示例实施例,电机控制系统可以具有5种电源,分别是:+5V、+3.3V、+12V、-12V以及+5Vref基准源。+5V为外接主供电,由开关电源产生,输入220VAC的市电,输出5V/3A的直流电。 采用LP3965低压差线性稳压器将+5V转换成+3.3V,通过PUD-0512-3K稳压器将+5V转换为±12V,MAX6350是一款低噪声、线性、高精密的电压基准源,可以提供+5Vref参考源。+3.3V是给MSP430及CPLD供电,±12V给电阻尺信号的前端放大器供电,通过放大器芯片比如AD713,实现电阻尺反馈的前端衰减,获得满足MSP430自带ADC输入范围内的电压值。+5Vref基准源给电阻尺供电。  The power supply circuit may include system power supply, resistance gauge reference power supply and main chip power supply. According to an exemplary embodiment of the present invention, the motor control system may have 5 kinds of power sources, namely: +5V, +3.3V, +12V, -12V and +5Vref reference sources. +5V is the external main power supply, generated by switching power supply, inputting 220VAC mains power, outputting 5V/3A direct current. The LP3965 low-dropout linear regulator is used to convert +5V to +3.3V, and the PUD-0512-3K regulator is used to convert +5V to ±12V. The MAX6350 is a low-noise, linear, and high-precision voltage reference source. +5Vref reference source can be provided. +3.3V is to supply power to MSP430 and CPLD, and ±12V is to supply power to the front-end amplifier of the resistance scale signal. Through the amplifier chip such as AD713, the front-end attenuation of the resistance scale feedback is realized, and the voltage value that meets the input range of the ADC that comes with MSP430 is obtained. The +5Vref reference source supplies power to the resistance scale. the

结合图1和2,说明根据本实用新型示例实施例的控制系统各装置之间的连接。  With reference to FIGS. 1 and 2 , the connections among the various devices of the control system according to the exemplary embodiment of the present utility model are described. the

1.连接控制器和驱动器。例如,两相混合式步进电机驱动器Q2HB34MA、Q2HB44、Q2HB68、DQ278M、DM2722M等。在示例实施例中,控制器的电机控制接口有四根信号线,分别是+5V、脉冲输出、方向、使能。通常驱动器上有三对共六根信号线,分别是脉冲输入正负、方向正负、使能正负。将这三对线的正极都接到控制器的+5V,将脉冲输入的负极接到控制器的脉冲输出端,将方向负极连接到控制器的方向端,将使能负极连接到控制器的使能端。这样控制器和驱动器的连接就完成了。根据驱动器的供电要求,一般采用单独供电,连接供电线路以及设置驱动器的电流档、细分档等等。  1. Connect the controller and driver. For example, two-phase hybrid stepper motor drivers Q2HB34MA, Q2HB44, Q2HB68, DQ278M, DM2722M, etc. In an example embodiment, the motor control interface of the controller has four signal lines, namely +5V, pulse output, direction, and enable. Usually, there are three pairs of six signal lines on the driver, which are positive and negative for pulse input, positive and negative for direction, and positive and negative for enable. Connect the positive poles of these three pairs of wires to the +5V of the controller, connect the negative pole of the pulse input to the pulse output terminal of the controller, connect the negative pole of the direction to the direction terminal of the controller, and connect the negative pole of the enable to the controller's enable terminal. In this way, the connection between the controller and the driver is completed. According to the power supply requirements of the drive, generally use a separate power supply, connect the power supply line and set the current level, subdivision level, etc. of the drive. the

2.连接步进电机和驱动器。例如,对于两相步进电机,该连接通过四根线来完成,分别是A+,A-,B+,B-,它们是两相步进电机的四根接线,任意正负对调电机反转。  2. Connect the stepper motor and driver. For example, for a two-phase stepper motor, the connection is done through four wires, namely A+, A-, B+, B-, which are the four wires of the two-phase stepper motor, and any positive and negative reversed motor is reversed. the

3.连接步进电机和负载。根据实际需要,连接好负载和步进电机。不论在工业、军事、医疗、汽车还是娱乐业中,只要需要把某件物体从一个位置移动到另一个位置,步进电机就一定能派上用场。比如,打印机、绘图仪、机器人等设备都可以以步进电机为动力核心。  3. Connect the stepper motor and load. According to actual needs, connect the load and the stepper motor. Whether in industry, military, medical, automotive, or entertainment, stepper motors are used whenever an object needs to be moved from one location to another. For example, printers, plotters, robots and other equipment can all use stepper motors as the power core. the

4.连接负载和反馈装置。反馈装置有光栅尺、电阻尺、限位开关等。  4. Connect the load and feedback device. Feedback devices include grating scales, resistance scales, limit switches, etc. the

5.连接好反馈装置和控制器。光栅尺接口采用DB9头子,针脚定义分别为:地、0V、+5V、A、/A、B、/B、I、/I。电阻尺接口采用 针距为5mm的三针接口,分别为+5Vref、中间抽头、地。限位开关接口采用针距为5mm的两针接口,分别为+5V、回读线。  5. Connect the feedback device and controller. The grating ruler interface adopts DB9 head, and the pin definitions are: ground, 0V, +5V, A, /A, B, /B, I, /I. The resistance gauge interface adopts a three-pin interface with a pitch of 5mm, which are +5Vref, center tap, and ground. The limit switch interface adopts a two-pin interface with a pitch of 5mm, which are respectively +5V and readback lines. the

6.连接好网络。通过控制器上的以太网接口,采用常见的RJ45接口,将控制器接入到本地交换机,进而接入以太网,进行远程控制。  6. Connect to the network. Through the Ethernet interface on the controller, the common RJ45 interface is used to connect the controller to the local switch, and then to the Ethernet for remote control. the

7.如果需要本地控制或者级联控制,则需要使用RS-485接口进行连接。RS-485接口是一种标准的总线接口,该接口组成的半双工网络,一般是两线制,多采用屏蔽双绞线传输。作为一种现场总线,RS-485通讯网络中一般采用主从通讯方式,即一个主机带多个从机。本地控制步进电机时,经由RS-485接口连接PC机,也可以经由RS-485接口级联控制器,或者级联其它功能模块,完成控制要求。  7. If local control or cascade control is required, RS-485 interface is required for connection. The RS-485 interface is a standard bus interface. The half-duplex network formed by this interface is generally a two-wire system, and shielded twisted-pair wires are mostly used for transmission. As a field bus, the RS-485 communication network generally adopts the master-slave communication mode, that is, one master has multiple slaves. When controlling the stepper motor locally, connect to the PC via the RS-485 interface, or cascade the controller or cascade other functional modules via the RS-485 interface to complete the control requirements. the

连接好各装置之后,进行上电。对控制器进行相关配置,比如IP地址、子网掩码、端口号等等。当整个控制系统搭建好后,远程PC通过以太网发送数据到本地交换机,交换机将数据送到控制器。控制器根据相应的数据产生均匀脉冲再发送到驱动器。驱动器将脉冲信号转化为电流信号驱动步进电机转动,带动负载转动。同时,反馈装置获取负载有关信息并反馈给控制器,由控制器作出相应处理和动作。  After connecting all devices, power on. Configure the controller, such as IP address, subnet mask, port number, etc. When the entire control system is set up, the remote PC sends data to the local switch via Ethernet, and the switch sends the data to the controller. The controller generates uniform pulses according to the corresponding data and then sends them to the driver. The driver converts the pulse signal into a current signal to drive the stepper motor to rotate and drive the load to rotate. At the same time, the feedback device obtains load-related information and feeds it back to the controller, and the controller makes corresponding processing and actions. the

图3是根据本实用新型实施例的电机控制器合成的四路方波信号的屏幕截图。  Fig. 3 is a screen shot of four channels of square wave signals synthesized by the motor controller according to the embodiment of the present invention. the

根据示例实施例,控制电路可以使用有限状态机来合成电机控制所需的任意频率。根据本实用新型实施例的控制器发出的脉冲频率可以在0-60KHZ范围内任意改变,占空比为50%。如附图3所示,控制步进电机转动的信号为方波信号,由高、低电平组成。可以在CPLD器件中采用状态机计数来完成对高、低电平的合成。例如,可以在0-65536HZ频率范围内任意改变。当设定好高低电平值后,在CPLD内部采用10MHZ对高低电平值计数。比如要合成f=50KHZ频率,则先求出其周期t=l/f=0.00002s。假设高电平th、低电平tl,若占空比为50%,则th=tl=0.00001s。由于采用频率F=10MHZ计数,其周期为T=0.1us,那么完成th(或者tl)需要计数N=1000。换句话说,在10MHZ 的计数频率下,每计满1000次,电平作一次翻转,如此反复,就可以得到频率为50KHZ,占空比为50%的方波信号。这为实现运动控制策略提供了保证。  According to an example embodiment, the control circuit may use a finite state machine to synthesize any frequency required for motor control. The pulse frequency sent by the controller according to the embodiment of the utility model can be changed arbitrarily within the range of 0-60KHZ, and the duty cycle is 50%. As shown in Figure 3, the signal to control the rotation of the stepper motor is a square wave signal consisting of high and low levels. State machine counting can be used in CPLD devices to complete the synthesis of high and low levels. For example, it can be changed arbitrarily within the frequency range of 0-65536HZ. When the high and low level values are set, 10MHZ is used inside the CPLD to count the high and low level values. For example, if f=50KHZ frequency is to be synthesized, its period t=l/f=0.00002s should be obtained first. Assuming high level th and low level tl, if the duty cycle is 50%, then th=tl=0.00001s. Since the frequency F=10MHZ is used for counting, and its period is T=0.1us, it needs to count N=1000 to complete th (or t1). In other words, at the counting frequency of 10MHZ, every time the counting is completed 1000 times, the level is reversed once, and so repeated, a square wave signal with a frequency of 50KHZ and a duty cycle of 50% can be obtained. This provides guarantees for implementing motion control strategies. the

根据本实用新型实施例的控制器可同时提供多路(如图2所示,四路)步进电机控制,分转速控制和步进控制。这两种控制方式都具备基本运动控制和高级运动控制。高级运动控制是指具有加减速功能。图4示意性示出了高级运动控制中的步进控制曲,图5中(a)和(b)示意性示出了高级运动控制中的转速控制曲线,图6中(a)和(b)示意性示出了基本运动控制中的转速控制曲线。  The controller according to the embodiment of the utility model can simultaneously provide multi-path (as shown in FIG. 2 , four-way) stepping motor control, sub-rotational speed control and stepping control. Both control methods have basic motion control and advanced motion control. Advanced motion control refers to the function of acceleration and deceleration. Figure 4 schematically shows the step control curve in advanced motion control, (a) and (b) in Figure 5 schematically show the speed control curve in advanced motion control, (a) and (b) in Figure 6 ) schematically shows the speed control curve in basic motion control. the

高级运动控制运用在对运动需求较高的场合。它能有效的解决步进电机由于启动频率太高而发生丢步甚至堵转、以及由于瞬停频率过高而导致步进电机发生过冲现象。对于步进控制,本控制器实现了直线型加减速控制。步进电机先以恒定的加速度加速运动,当速度逼近用户设定的期望速度之后,开始匀速运动,最后又以恒定的减速度减速到指定的位置时停车,如图4所示。对于转速控制,当用户设定新的速度值时,步进电机会有一个匀加速或者匀减速的过程,如图5中(a)和(b)所示。  Advanced motion control is used in occasions that require high motion. It can effectively solve the stepping motor's loss of steps or even stalling due to too high starting frequency, and the stepping motor's overshooting phenomenon caused by too high instantaneous stop frequency. For step control, this controller realizes linear acceleration and deceleration control. The stepper motor first accelerates with a constant acceleration, and when the speed approaches the desired speed set by the user, it starts to move at a constant speed, and finally decelerates to the specified position with a constant deceleration to stop, as shown in Figure 4. For speed control, when the user sets a new speed value, the stepping motor will have a process of uniform acceleration or uniform deceleration, as shown in (a) and (b) in Figure 5. the

基本运动控制主要适应简单的控制系统,不具备加减速过程。基本运动控制又分为转速控制和步进控制。转速控制是指控制电机以一定的速度运动,当用户设定新的速度值时,控制电机以新的速度运动,如图6中(a)和(b)所示。步进控制是指电机以一定转速运动,当达到用户设定的步长之后停车。  Basic motion control is mainly suitable for simple control systems without acceleration and deceleration processes. Basic motion control is divided into speed control and step control. Speed control refers to controlling the motor to move at a certain speed. When the user sets a new speed value, the motor is controlled to move at the new speed, as shown in (a) and (b) in Figure 6. Step control means that the motor moves at a certain speed and stops when it reaches the step length set by the user. the

基本运动控制和高级运动控制依赖于MSP430和CPLD共同完成。MSP430接收用户发送的频率值及步长值,解析之后形成高、低电平值以及步长值,然后发送给CPLD,CPLD完成频率合成、转速控制以及步进控制。高级运动控制加减速是在MSP430的定时器下完成的,定时器的时长可以根据不同的电机特性来决定。步进控制可以满足具体步长条件,使得电机可以准确无误地到达用户设定的位置。 CPLD内部采用有限状态机来生产任意频率的脉冲。  Basic motion control and advanced motion control rely on MSP430 and CPLD to complete together. MSP430 receives the frequency value and step value sent by the user, and after analysis, it forms high and low level values and step value, and then sends it to CPLD, and CPLD completes frequency synthesis, speed control and step control. Advanced motion control acceleration and deceleration is completed under the timer of MSP430, and the duration of the timer can be determined according to different motor characteristics. The step control can meet the specific step conditions, so that the motor can reach the position set by the user without error. The CPLD internally uses a finite state machine to generate pulses of any frequency. the

图7所示的是MSP430运动控制部分的程序流程图。MSP430混合信号处理器具有强大的运算处理能力,能够很好的满足系统提出的要求。如图7所示,MSP430进行轮询,当有控制命令时,MSP430进行逐步判断。首先判断是步进控制还是转速控制,然后分别判断是高级运动控制还是基本运动控制。在步进控制情况下,如果是高级运动控制,则发送初始速度、步长值到CPLD,并打开定时器,进行加速,并把当前速度值发送给CPLD,判断是否加速完毕。如果未完毕,继续加速,否则维持期望速度。接着,判断是否开始减速,如果不是,继续维持期望速度,否则在定时器下开始减速,接着判断减速是否完毕,如果是,则速度达到零,否则继续减速。此外,如果判断是基本运动控制,则将速度、步长值发送到CPLD,此后的步骤与高级运动控制中从维持期望速度这一步骤开始的后续步骤相同。在转速控制的情况下,判断是否是高级运动控制。如果不是,则发送期望速度到CPLD,并维持期望速度。如果是高级运动控制,则检测当前速度,并比较期望速度和当前速度。如果期望速度大于当前速度,则在定时器下加速,并把当前速度值发送给CPLD,判断是否加速完毕。如果未完毕,继续加速,否则维持期望速度。如果期望速度不大于当前速度,则在定时器下减速,并把当前速度值发送给CPLD,判断是否减速完毕。如果未完毕,继续减速,否则维持期望速度。  What Fig. 7 shows is the program flow chart of MSP430 motion control part. The MSP430 mixed-signal processor has powerful computing and processing capabilities, which can well meet the requirements of the system. As shown in Figure 7, MSP430 polls, and when there is a control command, MSP430 judges step by step. First judge whether it is step control or speed control, and then judge whether it is advanced motion control or basic motion control. In the case of step control, if it is advanced motion control, send the initial speed and step value to the CPLD, and turn on the timer to accelerate, and send the current speed value to the CPLD to judge whether the acceleration is complete. If not, continue to accelerate, otherwise maintain the desired speed. Then, judge whether to start deceleration, if not, continue to maintain the desired speed, otherwise start deceleration under the timer, then judge whether the deceleration is complete, if yes, then the speed reaches zero, otherwise continue to decelerate. In addition, if it is judged to be basic motion control, the speed and step value are sent to the CPLD, and the subsequent steps are the same as the subsequent steps starting from the step of maintaining the desired speed in advanced motion control. In the case of speed control, it is judged whether it is advanced motion control. If not, send the desired speed to the CPLD, and maintain the desired speed. In the case of advanced motion control, the current velocity is detected and the desired velocity is compared with the current velocity. If the expected speed is greater than the current speed, it will accelerate under the timer, and send the current speed value to the CPLD to judge whether the acceleration is completed. If not, continue to accelerate, otherwise maintain the desired speed. If the expected speed is not greater than the current speed, it will decelerate under the timer, and send the current speed value to the CPLD to judge whether the deceleration is completed. If not, continue to slow down, otherwise maintain the desired speed. the

CPLD的程序可以使用任意适合的硬件描述语言(例如Verilog HDL语言等)来编写,采用模块化的设计思想。图8是采用CPLD实现本实用新型实施例的电机控制器的相应功能时的功能模块框图。  The CPLD program can be written in any suitable hardware description language (such as Verilog HDL language, etc.), and adopts a modular design idea. Fig. 8 is a block diagram of functional modules when CPLD is used to realize the corresponding functions of the motor controller of the embodiment of the present invention. the

CPLD内部采用有限状态机来生产任意频率的脉冲,采用模块化的设计思想,其运动控制部分的模块有分频模块、初始化速度模块、初始化步长模块、速度控制模块、步进控制模块、指示灯模块以及综合模块。此外,CPLD还包括光栅尺回读模块(Grating),对作为反馈装置的光栅尺的输出信号进行回读。  The CPLD internally uses a finite state machine to produce pulses of any frequency, and adopts a modular design idea. The modules of its motion control part include a frequency division module, an initialization speed module, an initialization step size module, a speed control module, a step control module, and an instruction Lamp modules as well as integrated modules. In addition, the CPLD also includes a grating ruler readback module (Grating), which reads back the output signal of the grating ruler as a feedback device. the

分频模块(Clk_Div):CPLD的系统时钟为50MHZ,计数频率为10MHZ、指示灯频率为1HZ,分频模块可以将50MHZ频率分频为10MHZ和1HZ。  Frequency division module (Clk_Div): The system clock of CPLD is 50MHZ, the counting frequency is 10MHZ, and the indicator light frequency is 1HZ. The frequency division module can divide the 50MHZ frequency into 10MHZ and 1HZ. the

初始化速度模块(Init_Speed):MSP430通过仿SPI接口把高低电平计数值发送给CPLD,CPLD使用16位移位寄存器接收这些计数值。当使能为高时接收高电平计数值,当使能位低时接收低电平计数值,从而实现速度初始化。  Initialize the speed module (Init_Speed): MSP430 sends high and low level count values to CPLD through the imitation SPI interface, and CPLD uses 16-bit shift register to receive these count values. When the enable bit is high, it receives a high-level count value, and when the enable bit is low, it receives a low-level count value, thereby realizing speed initialization. the

初始化步长模块(Init_Step):MSP430通过仿SPI接口把步长计数值发送给CPLD,CPLD使用16位移位寄存器接收这个计数值。可以将总步长分为了两个部分,一部分是加速步长,一部分是减速步长。这样CPLD就知道加速多少以及什么时候该减速。  Initialization step module (Init_Step): MSP430 sends the step count value to CPLD through the SPI interface, and CPLD uses 16-bit shift register to receive the count value. The total step length can be divided into two parts, one is the acceleration step and the other is the deceleration step. This way the CPLD knows how much to speed up and when to slow down. the

速度控制模块(Speed_Ctl):实现上文所述的有限状态机合成任意频率这一功能。速度控制模块从初化速度模块中得到高低电平计数值,然后内部状态机依据这些初值进行翻转,输出用户设定的脉冲频率。  Speed control module (Speed_Ctl): realize the function of synthesizing arbitrary frequency by the finite state machine mentioned above. The speed control module obtains high and low level count values from the initialized speed module, and then the internal state machine flips according to these initial values, and outputs the pulse frequency set by the user. the

步进控制模块(Step_Ctl):在步进控制中,该模块对速度控制模块输出的脉冲频率进行计数,当计数达到初始化步长模块中的步长计数值时,停止计数。这样就以用户设定的速度控制电机移动了用户设定的步长值,实现了步进控制。当步进控制结束后,CPLD会自动清零速度控制模块,使其输出为低电平。  Step control module (Step_Ctl): In step control, this module counts the pulse frequency output by the speed control module, and stops counting when the count reaches the step count value in the initialization step module. In this way, the motor is controlled to move the step value set by the user at the speed set by the user, realizing step control. When the step control is over, the CPLD will automatically clear the speed control module to make its output low. the

指示灯模块(Indicator):除了系统指示灯之外,每个电机都可以配有一个指示灯来指示电机的状态。指示灯可以以电机的实时速度闪烁的。因为通常速度都在100HZ以上,所以肉眼无法看出灯的闪烁,当电机停止时,指示灯是不亮的,因此,当指示灯亮时表明电机在运动。  Indicator Module (Indicator): In addition to the system indicator, each motor can be equipped with an indicator to indicate the status of the motor. The lights can blink at the real-time speed of the motor. Because the speed is usually above 100HZ, the naked eye cannot see the light flickering. When the motor stops, the indicator light is not on. Therefore, when the indicator light is on, it indicates that the motor is moving. the

综合模块(SMC400):该模块对其他模块的操作进行综合。系统的输入、输出以及元件例化都在这个模块内进行。对于该模块,例如当选择信号sel为低时,表示转速控制,那么综合模块直接将速度控 制模块的频率输出;当选择信号sel为高时,表示步进控制,综合模块将步进控制模块的频率输出。  Synthesis module (SMC400): This module synthesizes the operations of other modules. The input, output and component instantiation of the system are carried out in this module. For this module, for example, when the selection signal sel is low, it means speed control, then the integrated module directly outputs the frequency of the speed control module; when the selection signal sel is high, it means step control, and the integrated module outputs the frequency of the step control module frequency output. the

图8示出的功能模块框图仅仅是一个示例。本领域技术人员可以根据应用需求,进行任何适合的模块化设计。  The functional block diagram shown in FIG. 8 is just an example. Those skilled in the art can make any suitable modular design according to application requirements. the

尽管具体参照各个示例性实施例的特定示例性方面详细描述了各个示例性实施例,但是应当理解,能够在各个明显方面修改本实用新型的其他实施例及其细节。如本领域技术人员显而易见的,可以进行各种变型和修改在保持在本实用新型的精神和范围内的同时可以有所偏差。相应地,上述公开、描述和附图仅出于示意目的,并不限于仅由权利要求限定的本实用新型。  Although the exemplary embodiments have been described in detail with specific reference to certain exemplary aspects thereof, it should be understood that other embodiments of the invention and their details can be modified in various obvious respects. Various changes and modifications may be made while remaining within the spirit and scope of the invention, as will be apparent to those skilled in the art. Accordingly, the above disclosure, description and drawings are for illustrative purposes only, and are not intended to limit the invention, which is defined only by the claims. the

Claims (10)

1. an electric machine controller, comprising:
Communication interface circuit, comprises Ethernet interface and field-bus interface;
Closed loop feedback interface circuit, for receiving the feedback information from the load of one or more motors;
Electric Machine Control interface circuit, for transmitting the control information for one or more motors; And
Control circuit, be connected to communication interface circuit, closed loop feedback interface circuit and Electric Machine Control interface circuit, control the operation of each interface circuit, the information receiving via communication interface circuit and closed loop feedback interface circuit is processed, and transmit result via communication interface circuit and Electric Machine Control interface circuit, to control the operation of one or more motors.
2. controller according to claim 1, also comprises:
Condition indication circuit, is used to indicate one or more in controller state, network state, motor status and load condition; And
Power circuit, for providing multiple power supply and the reference power source for each circuit.
3. controller according to claim 1, wherein, each circuit of controller is integrated on veneer,
Controller is assigned IP address, and controller is via Ethernet interface access network based on ethernet, and remote equipment is set up TCP/IP by Ethernet and controller and is connected, to motor is carried out to Long-distance Control via controller.
4. controller according to claim 1, wherein, field-bus interface comprises RS-485 fieldbus, for realizing this locality control or the cascade control to multiple controllers to controller.
5. controller according to claim 1, wherein, closed loop feedback interface circuit comprises one or more in grating scale interface circuit, resistance scale interface circuit and limit switch interface circuit,
Closed loop feedback interface circuit is connected to corresponding external feedback device, receives the feedback information of load from feedback device.
6. controller according to claim 1, wherein, Electric Machine Control interface circuit is connected to outside motor driver, sends the control information from control circuit to motor driver, with the operation via motor driver control motor.
7. controller according to claim 1, wherein, controller comprises many group closed loop feedback interface circuits and Electric Machine Control interface circuit, corresponding multiple motors respectively, to provide multi-motor control simultaneously.
8. controller according to claim 1, wherein, controller provides for the rotating speed control of stepping motor and stepping control, and for the control of linear electric motors.
9. controller according to claim 1, wherein, control circuit carrys out the required optional frequency of Synthetic motor control with finite state machine.
10. the electric machine control system based on Ethernet, comprises remote equipment, electric machine controller, motor driver and feedback device,
Remote equipment is connected with electric machine controller via Ethernet, sends data to electric machine controller,
Electric machine controller receives the data from remote equipment, utilizes described data produce corresponding control signal and send to motor driver,
Motor driver is according to the operation of control signal drive motors, thus the load running of drive motor,
Feedback device is connected to electric machine controller to form closed loop feedback,
Feedback device obtains the feedback information about load, and sends feedback information to electric machine controller, and in the time producing control signal, electric machine controller also utilizes described feedback information.
CN201320682340.8U 2013-10-30 2013-10-30 Ethernet-based electromotor controller and control system Expired - Lifetime CN203911823U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201320682340.8U CN203911823U (en) 2013-10-30 2013-10-30 Ethernet-based electromotor controller and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201320682340.8U CN203911823U (en) 2013-10-30 2013-10-30 Ethernet-based electromotor controller and control system

Publications (1)

Publication Number Publication Date
CN203911823U true CN203911823U (en) 2014-10-29

Family

ID=51786066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201320682340.8U Expired - Lifetime CN203911823U (en) 2013-10-30 2013-10-30 Ethernet-based electromotor controller and control system

Country Status (1)

Country Link
CN (1) CN203911823U (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360617A (en) * 2014-11-11 2015-02-18 杭州宇扬科技股份有限公司 Motor control method
CN104601061A (en) * 2013-10-30 2015-05-06 中国科学院近代物理研究所 Ethernet-based motor controller and control system
CN107783468A (en) * 2017-10-31 2018-03-09 嘉兴复尔机器人有限公司 A kind of six degree of freedom management platform remote operating control system
CN111146989A (en) * 2019-12-26 2020-05-12 兰州空间技术物理研究所 A method for collecting the rotation angle of the main motor in the main and standby dual stepper motors

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601061A (en) * 2013-10-30 2015-05-06 中国科学院近代物理研究所 Ethernet-based motor controller and control system
CN104360617A (en) * 2014-11-11 2015-02-18 杭州宇扬科技股份有限公司 Motor control method
CN104360617B (en) * 2014-11-11 2015-12-30 杭州宇扬科技股份有限公司 A kind of motor control method
CN107783468A (en) * 2017-10-31 2018-03-09 嘉兴复尔机器人有限公司 A kind of six degree of freedom management platform remote operating control system
CN111146989A (en) * 2019-12-26 2020-05-12 兰州空间技术物理研究所 A method for collecting the rotation angle of the main motor in the main and standby dual stepper motors
CN111146989B (en) * 2019-12-26 2021-11-05 兰州空间技术物理研究所 A method for collecting the rotation angle of the main motor in the main and standby dual stepper motors

Similar Documents

Publication Publication Date Title
CN201174041Y (en) Full-digital general AC servo positioning control driver
CN104589367B (en) Modularization robot driver based on EtherCAT and control method
CN109324541A (en) Motion Control System
CN107505882A (en) A kind of multi-axis motion controller and control method
CN203911823U (en) Ethernet-based electromotor controller and control system
CN203434899U (en) High-precision servo controller used for multiple motors
CN204203725U (en) A kind of for servomotor position control system with high accuracy
CN105700465A (en) Robot compliance control system and method based on EtherCAT bus
CN109541994A (en) A kind of real-time acquisition system and its acquisition method of high anti-interference ability
CN201435003Y (en) Two-phase hybrid stepping motor control system
CN204832853U (en) Many interfaces motion control ware
CN102445924B (en) Integrated numerical control system and integrated numerical control machine
CN104601061A (en) Ethernet-based motor controller and control system
CN102291075A (en) Integrated circuit for driving and control three groups of stepper motors
CN107192361A (en) The kinetic control system and its control method of a kind of three coordinate measuring machine
CN203092570U (en) Measurement and control circuit of robot teleoperation hand controller with seven-degree of freedom force feedback
CN201113878Y (en) Driver
CN206710827U (en) A kind of modular motion controller
CN105958883A (en) DSP control chip based stepping motor driving system
CN115826505A (en) A Multi-axis Electro-hydraulic Servo Slave Control System Based on Synchronous Real-time Ethernet
CN103135488B (en) Based on the vehicle-mounted comprehensive exploitation platform of FlexRay
CN111384876A (en) Dual-axis motor driving system and method based on dual-core processing
CN104972287A (en) Three-degree-of-freedom mechanical arm movement control device
CN104730274A (en) Programmed multifunctional rotation speed signal conversion device
CN103624965A (en) Meter-weight control system of plastic-pipe extruding equipment

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20141029