[go: up one dir, main page]

CN114977974B - A digital-analog hybrid architecture galvanometer motor system and drive control method - Google Patents

A digital-analog hybrid architecture galvanometer motor system and drive control method Download PDF

Info

Publication number
CN114977974B
CN114977974B CN202210523102.6A CN202210523102A CN114977974B CN 114977974 B CN114977974 B CN 114977974B CN 202210523102 A CN202210523102 A CN 202210523102A CN 114977974 B CN114977974 B CN 114977974B
Authority
CN
China
Prior art keywords
signal
loop
control
current
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210523102.6A
Other languages
Chinese (zh)
Other versions
CN114977974A (en
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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN202210523102.6A priority Critical patent/CN114977974B/en
Publication of CN114977974A publication Critical patent/CN114977974A/en
Application granted granted Critical
Publication of CN114977974B publication Critical patent/CN114977974B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P29/00Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • H02P23/0004Control strategies in general, e.g. linear type, e.g. P, PI, PID, using robust control
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • H02P23/0004Control strategies in general, e.g. linear type, e.g. P, PI, PID, using robust control
    • H02P23/0009Control strategies in general, e.g. linear type, e.g. P, PI, PID, using robust control using sliding mode control
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • H02P23/12Observer control, e.g. using Luenberger observers or Kalman filters
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P29/00Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors
    • H02P29/40Regulating or controlling the amount of current drawn or delivered by the motor for controlling the mechanical load

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Feedback Control In General (AREA)

Abstract

本发明公开了一种数模混合架构振镜电机系统及驱动控制方法,所述系统包括数字控制模块、模拟驱动模块、电源模块、采样检测模块、通信模块以及电机本体,所述驱动控制方法由上位机给出目标指令,通过通信电路传输至DSP处理器,同时,DSP处理器接收由采样检测模块采集的位置信息及电流信息,采用高性能控制算法解算后,将控制信号通过D/A转换电路传输至模拟驱动模块,并将放大后的电流信号输出至振镜电机的电枢绕组,实现对振镜电机系统的控制。采用以电流环为内环,位置环为外环的双闭环控制策略,获得更高的控制性能;在位置控制上达到更高的动态性能及控制精度;能够有效地提高系统的稳态性能、动态性能及鲁棒性,满足激光打标技术要求。

The present invention discloses a digital-analog hybrid architecture galvanometer motor system and a drive control method. The system includes a digital control module, an analog drive module, a power module, a sampling detection module, a communication module and a motor body. The drive control method is given by a host computer, and transmitted to a DSP processor through a communication circuit. At the same time, the DSP processor receives the position information and current information collected by the sampling detection module, and after solving with a high-performance control algorithm, transmits the control signal to the analog drive module through a D/A conversion circuit, and outputs the amplified current signal to the armature winding of the galvanometer motor to achieve control of the galvanometer motor system. A double closed-loop control strategy with a current loop as an inner loop and a position loop as an outer loop is adopted to obtain higher control performance; higher dynamic performance and control accuracy are achieved in position control; the steady-state performance, dynamic performance and robustness of the system can be effectively improved to meet the technical requirements of laser marking.

Description

一种数模混合架构振镜电机系统及驱动控制方法A digital-analog hybrid architecture galvanometer motor system and drive control method

技术领域Technical Field

本申请属于高精度振镜电机控制领域,具体涉及一种数模混合架构振镜电机系统及驱动控制方法。The present application belongs to the field of high-precision galvanometer motor control, and specifically relates to a galvanometer motor system with a digital-analog hybrid architecture and a drive control method.

背景技术Background technique

激光打标是目前标刻加工领域中的一项关键技术,由于该技术相对于传统的标刻方法有着材料消耗低、打标速度快、标刻内容易于调整、无污染等优点,因此激光打标逐渐取代了传统的打标方法并广泛应用于工业生产和生活中。激光打标机利用光的反射原理,通过控制平面镜的偏转角度来控制激光光路的方向,这里的平面镜被称为振镜。一般将振镜安装在电机上,通过电机的转动来改变振镜的偏转角度,从而控制激光的偏转方向,这类系统也常被称为振镜电机系统。Laser marking is a key technology in the current marking processing field. Compared with traditional marking methods, this technology has the advantages of low material consumption, fast marking speed, easy adjustment of marking content, and no pollution. Therefore, laser marking has gradually replaced traditional marking methods and is widely used in industrial production and life. The laser marking machine uses the principle of light reflection to control the direction of the laser light path by controlling the deflection angle of the plane mirror. The plane mirror here is called a galvanometer. The galvanometer is generally installed on a motor, and the deflection angle of the galvanometer is changed by the rotation of the motor, thereby controlling the deflection direction of the laser. This type of system is often called a galvanometer motor system.

振镜电机系统作为一种优良的矢量扫描器件,是控制振镜偏转、实现激光打标技术的基础设备,其线性度、快速性、抗干扰能力等性能均会成为影响激光打标成像质量的关键因素。随着激光产业的不断发展,对高性能振镜电机系统的需求也不断提升,振镜电机系统也从曾经主要应用于激光打标、激光焊接等工业领域到现在能够应用到基于激光的生物医学应用中。由于每种应用对于响应速度、定位精度、尺寸和成本的设计要求均不同,因此随着振镜电机系统的发展,对于系统中的主要元件,均有数种不同的拓扑与技术,可以满足不同领域要求的性能指标。As an excellent vector scanning device, the galvanometer motor system is the basic equipment for controlling the deflection of the galvanometer and realizing laser marking technology. Its linearity, rapidity, anti-interference ability and other performance will become key factors affecting the quality of laser marking imaging. With the continuous development of the laser industry, the demand for high-performance galvanometer motor systems has also continued to increase. The galvanometer motor system has also been mainly used in industrial fields such as laser marking and laser welding, and can now be applied to laser-based biomedical applications. Since each application has different design requirements for response speed, positioning accuracy, size and cost, with the development of the galvanometer motor system, there are several different topologies and technologies for the main components in the system to meet the performance indicators required in different fields.

目前,国外各大公司及研究机构对振镜电机系统的研究处于国际领先水平,最先进的振镜系统带宽能够达到数千赫兹,其单位阶跃响应时间能够达到100us,重复定位精度能够达到2urad。而国内的振镜电机系统发展时间较晚,目前大多数国内振镜公司所设计的系统所能达到的单位阶跃响应时间均大于300us,重复定位精度约为8urad,这些关键性能均与国外有一定差距。At present, the research of galvanometer motor systems by major foreign companies and research institutions is at the international leading level. The bandwidth of the most advanced galvanometer system can reach several thousand Hz, its unit step response time can reach 100us, and the repeatability accuracy can reach 2urad. However, the development of galvanometer motor systems in China is relatively late. At present, the unit step response time of the systems designed by most domestic galvanometer companies is greater than 300us, and the repeatability accuracy is about 8urad. These key performances are somewhat different from those of foreign countries.

因此,针对振镜电机系统设计数字式控制器和模拟式驱动器的拓扑架构,并研究高性能控制方法,能够弥补纯模拟式控制系统无法采用高性能控制算法以及纯数字式控制系统转矩波动较大的不足,能够提高其响应速度及定位精度等性能,对于国内振镜电机控制系统的发展有较大价值。Therefore, designing the topological architecture of digital controller and analog driver for the galvanometer motor system and studying high-performance control methods can make up for the shortcomings of pure analog control system that cannot adopt high-performance control algorithms and the large torque fluctuation of pure digital control system, and can improve its response speed and positioning accuracy and other performance, which is of great value to the development of domestic galvanometer motor control systems.

发明内容Summary of the invention

本发明的主要目的在于提出一种数模混合架构振镜电机系统及驱动控制方法,动态响应快、定位精度高,提高系统的控制性能。The main purpose of the present invention is to propose a digital-analog hybrid architecture galvanometer motor system and a drive control method, which has fast dynamic response and high positioning accuracy, and improves the control performance of the system.

为了实现上述目的,提出一种数模混合架构振镜电机系统,所述系统包括数字控制模块、模拟驱动模块、电源模块、采样检测模块、通信模块以及电机本体,电机本体的输出端与采样检测模块的输入端连接,采样检测模块的输出端与数字控制模块的输入端连接,通信模块的输出端与数字控制模块的输入端连接,数字控制模块的输出端与模拟驱动模块的输入端连接,模拟驱动模块的输出端与电机本体输入端连接,电源模块分别与数字控制模块、模拟驱动模块电连接供电;In order to achieve the above-mentioned purpose, a digital-analog hybrid architecture galvanometer motor system is proposed, the system comprises a digital control module, an analog drive module, a power supply module, a sampling detection module, a communication module and a motor body, the output end of the motor body is connected to the input end of the sampling detection module, the output end of the sampling detection module is connected to the input end of the digital control module, the output end of the communication module is connected to the input end of the digital control module, the output end of the digital control module is connected to the input end of the analog drive module, the output end of the analog drive module is connected to the input end of the motor body, and the power supply module is electrically connected to the digital control module and the analog drive module respectively for power supply;

所述通信模块包括上位机及通信电路,上位机的输出端连接通信电路的输入端,通信电路的输出端连接数字控制模块的输入端;The communication module includes a host computer and a communication circuit, the output end of the host computer is connected to the input end of the communication circuit, and the output end of the communication circuit is connected to the input end of the digital control module;

所述采样检测模块包括电流采样电路及位置采样电路;所述电流采样电路的输入端连接电机本体,电流采样电路的输出端连接第一A/D转换电路的输入端,第一A/D转换电路的输出端连接数字控制模块的输入端;所述位置采样电路的输入端连接电机本体,位置采样电路的输出端连接第二A/D转换电路的输入端,第二A/D转换电路的输出端连接数字控制模块的输入端;The sampling detection module includes a current sampling circuit and a position sampling circuit; the input end of the current sampling circuit is connected to the motor body, the output end of the current sampling circuit is connected to the input end of the first A/D conversion circuit, and the output end of the first A/D conversion circuit is connected to the input end of the digital control module; the input end of the position sampling circuit is connected to the motor body, the output end of the position sampling circuit is connected to the input end of the second A/D conversion circuit, and the output end of the second A/D conversion circuit is connected to the input end of the digital control module;

所述数字控制模块包括DSP处理器,所述数字控制模块通过D/A转换电路连接模拟驱动模块的输入端;The digital control module includes a DSP processor, and the digital control module is connected to the input end of the analog drive module through a D/A conversion circuit;

所述模拟驱动模块包括功率运算放大器,功率运算放大器的输出端连接电机本体;The analog drive module includes a power operational amplifier, and the output end of the power operational amplifier is connected to the motor body;

所述电机本体为振镜电机本体。The motor body is a galvanometer motor body.

作为本发明的较佳实施例,本发明所述电流采样电路包括霍尔电流传感器,霍尔电流传感器采集振镜电机转子电流信息并传输至DSP处理器;所述位置采样电路包括光电位置传感器,光电位置传感器采集振镜电机的镜片位置信息并传输至DSP处理器。As a preferred embodiment of the present invention, the current sampling circuit of the present invention includes a Hall current sensor, which collects the rotor current information of the galvanometer motor and transmits it to the DSP processor; the position sampling circuit includes a photoelectric position sensor, which collects the lens position information of the galvanometer motor and transmits it to the DSP processor.

作为本发明的较佳实施例,本发明所述模拟驱动模块包括功率运算放大器U1、电阻R1、电阻R2和电阻R3,功率运算放大器U1的输出端连接振镜电机,所述D/A转换电路的输出端连接功率运算放大器U1的正极输入端,所述功率运算放大器U1的负极输入端与振镜电机之间设置一电阻R2,电阻R1及电阻R3接地。As a preferred embodiment of the present invention, the analog drive module of the present invention includes a power operational amplifier U1, a resistor R1, a resistor R2 and a resistor R3. The output end of the power operational amplifier U1 is connected to the galvanometer motor. The output end of the D/A conversion circuit is connected to the positive input end of the power operational amplifier U1. A resistor R2 is arranged between the negative input end of the power operational amplifier U1 and the galvanometer motor. The resistor R1 and the resistor R3 are grounded.

作为本发明的较佳实施例,本发明所述D/A转换电路的型号为LTC1668的芯片;所述第一A/D转换电路为电流环A/D转换器,型号为AD9220的芯片,所述第二A/D转换电路为位置环A/D转换器,采用18位A/D转换芯片,型号为AD7641的芯片。As a preferred embodiment of the present invention, the D/A conversion circuit of the present invention is a chip of model LTC1668; the first A/D conversion circuit is a current loop A/D converter, a chip of model AD9220, and the second A/D conversion circuit is a position loop A/D converter, using an 18-bit A/D conversion chip, a chip of model AD7641.

作为本发明的较佳实施例,本发明所述DSP处理器型号为TMS320C28346;所述通信模块采用XY2-100的通讯协议。As a preferred embodiment of the present invention, the DSP processor model of the present invention is TMS320C28346; the communication module adopts the communication protocol of XY2-100.

特别的,本发明还公开了一种基于所述的数模混合架构振镜电机系统的驱动控制方法,所述驱动控制方法由上位机给出目标指令,通过通信电路传输至DSP处理器,同时,DSP处理器接收由采样检测模块采集的位置信息及电流信息,采用高性能控制算法解算后,将控制信号通过D/A转换电路传输至模拟驱动模块,并将放大后的电流信号输出至振镜电机的电枢绕组,实现对振镜电机系统的控制;In particular, the present invention also discloses a drive control method based on the digital-analog hybrid architecture galvanometer motor system, wherein the drive control method is performed by a host computer giving a target instruction, which is transmitted to a DSP processor through a communication circuit. At the same time, the DSP processor receives position information and current information collected by a sampling detection module, and after solving the information using a high-performance control algorithm, transmits the control signal to an analog drive module through a D/A conversion circuit, and outputs the amplified current signal to the armature winding of the galvanometer motor, thereby realizing control of the galvanometer motor system.

所述驱动控制方法采用数字控制模块及模拟驱动模块的拓扑结构,采用内环为电流环、外环为位置环的双闭环控制策略;The drive control method adopts a topological structure of a digital control module and an analog drive module, and adopts a double closed-loop control strategy in which the inner loop is a current loop and the outer loop is a position loop;

所述双闭环控制策略以电流环为内环,所述电流环依次由振镜电机本体、电流采样电路、第一A/D转换电路、DSP处理器、D/A转换电路、模拟驱动模块组成闭环;在振镜电机电流环实现控制时,将电流给定信号与电流采样电路采集的电机电枢绕组电流相比较,得到电流信号的误差,经过DSP处理器的过PI控制器进行调制后得到控制器输出信号,通过D/A转换电路将所得数字信号转换为模拟信号并输入至模拟驱动模块,模拟驱动模块将电压信号放大为电流信号,实现对电枢电流的直接控制;The dual closed-loop control strategy uses the current loop as the inner loop, and the current loop is composed of a galvanometer motor body, a current sampling circuit, a first A/D conversion circuit, a DSP processor, a D/A conversion circuit, and an analog drive module to form a closed loop in sequence; when the galvanometer motor current loop is controlled, the current given signal is compared with the motor armature winding current collected by the current sampling circuit to obtain the error of the current signal, and the controller output signal is obtained after being modulated by the PI controller of the DSP processor, and the obtained digital signal is converted into an analog signal through the D/A conversion circuit and input into the analog drive module, and the analog drive module amplifies the voltage signal into a current signal to realize direct control of the armature current;

所述双闭环控制策略以位置环为外环,所述位置环依次由振镜电机本体、位置采样电路、第二A/D转换电路、DSP处理器、D/A转换电路、模拟驱动模块组成闭环;在振镜电机位置环实现控制时,将上位机发送的位置指令信号与位置采样电路采集的位置信号通过DSP处理器中带扩张状态观测器的滑模控制算法进行解算与调制后,得到电流环的指令信号,输出至DSP处理器的电流环PI控制器。The dual closed-loop control strategy uses the position loop as the outer loop, and the position loop is composed of a galvanometer motor body, a position sampling circuit, a second A/D conversion circuit, a DSP processor, a D/A conversion circuit, and an analog drive module in sequence to form a closed loop; when the galvanometer motor position loop is controlled, the position command signal sent by the host computer and the position signal collected by the position sampling circuit are solved and modulated by the sliding mode control algorithm with an extended state observer in the DSP processor to obtain the command signal of the current loop, which is output to the current loop PI controller of the DSP processor.

作为本发明的较佳实施例,本发明所述位置环的控制方法具体包括:As a preferred embodiment of the present invention, the control method of the position loop of the present invention specifically includes:

步骤一:根据上位机给定的位置指令,采用三阶微分跟踪器得到位置输入与其一阶微分及二阶微分的跟踪信号,为步骤三中滑模控制器所需的微分信号输入做准备;Step 1: According to the position command given by the host computer, a third-order differential tracker is used to obtain the tracking signal of the position input and its first-order differential and second-order differential, in preparation for the differential signal input required by the sliding mode controller in step 3;

步骤二:根据位置采样电路的位置传感器测得的位置信号,采用非线性扩张状态观测器得到滑模控制所需的位置反馈信号的微分值及总扰动信号,实现对系统扰动进行补偿,扩张状态观测器根据电机的机械运动方程得到;Step 2: According to the position signal measured by the position sensor of the position sampling circuit, a nonlinear extended state observer is used to obtain the differential value of the position feedback signal and the total disturbance signal required for sliding mode control, so as to compensate for the system disturbance. The extended state observer is obtained according to the mechanical motion equation of the motor;

步骤三:根据振镜电机位置的给定信号、微分跟踪器获得的位置给定的一阶微分及二阶微分的跟踪信号、扩张状态观测器获得的总扰动信号、实际位置信号及实际位置的微分观测值,采用滑模控制器,得到位置环的输出,即电流环的给定值。Step 3: Based on the given signal of the galvanometer motor position, the tracking signal of the first-order differential and second-order differential of the given position obtained by the differential tracker, the total disturbance signal obtained by the extended state observer, the actual position signal and the differential observation value of the actual position, a sliding mode controller is used to obtain the output of the position loop, that is, the given value of the current loop.

作为本发明的较佳实施例,本发明所述步骤一具体包括:As a preferred embodiment of the present invention, step 1 of the present invention specifically includes:

采用微分跟踪器对信号进行近似微分,三阶微分跟踪器的表达式如下:The differential tracker is used to approximate the differential of the signal. The expression of the third-order differential tracker is as follows:

式中,v1为上位机给定的位置指令,x1为位置跟踪信号,x2为位置微分的跟踪信号,x3为位置二阶微分的跟踪信号,r为三阶微分跟踪器的参数;在实际振镜电机控制系统中,采用三阶微分跟踪器的离散形式进行控制,其表达式如下:In the formula, v1 is the position command given by the host computer, x1 is the position tracking signal, x2 is the tracking signal of the position differential, x3 is the tracking signal of the second-order position differential, and r is the parameter of the third-order differential tracker. In the actual galvanometer motor control system, the discrete form of the third-order differential tracker is used for control, and its expression is as follows:

式中,v(k)为位置指令,x1(k)为位置的跟踪信号,x2(k)为位置微分的跟踪信号,x3(k)为位置二阶微分的跟踪信号,k为采样时刻,h为采样步长。Wherein, v(k) is the position command, x 1 (k) is the tracking signal of the position, x 2 (k) is the tracking signal of the position differential, x 3 (k) is the tracking signal of the second-order differential of the position, k is the sampling time, and h is the sampling step.

作为本发明的较佳实施例,本发明所述步骤二的电机模型表达式如下所示:As a preferred embodiment of the present invention, the motor model expression of step 2 of the present invention is as follows:

式中,θ为电机转子位置,J为电机转动惯量,Bm为阻尼系数,Te为电磁转矩,Td为负载转矩,Kte为力矩系数,ia为绕组电流;Where, θ is the motor rotor position, J is the motor moment of inertia, Bm is the damping coefficient, Te is the electromagnetic torque, Td is the load torque, Kte is the torque coefficient, and ia is the winding current;

将其化为状态方程后如下式所示:It is transformed into the state equation as shown below:

式中,x1与x2分别为电机转子位置与电机转子角速度,y为振镜电机驱动控制系统的输出,即为振镜电机镜片的实际位置;定义为算法中参数,定义为系统内外扰动总和,并将其扩张成为一个新的状态变量x3,定义将原系统扩张成一个新的线性系统,其状态空间表达式如下:Where x1 and x2 are the motor rotor position and motor rotor angular velocity respectively, and y is the output of the galvanometer motor drive control system, that is, the actual position of the galvanometer motor lens; definition is the parameter in the algorithm, and is defined is the sum of the disturbances inside and outside the system, and expands it into a new state variable x 3 , defining Expand the original system into a new linear system, whose state space expression is as follows:

为了补偿系统的扰动,定义为系统的最终控制量,可以将系统变为线性积分控制系统,如下式所示:In order to compensate the disturbance of the system, we define is the final control quantity of the system, and the system can be transformed into a linear integral control system as shown in the following formula:

根据扩张状态观测器原理,对振镜电机系统设计三阶非线性状态扩张观测器来观测系统状态并进行扰动补偿,最终表达式为:According to the principle of extended state observer, a third-order nonlinear state extended observer is designed for the galvanometer motor system to observe the system state and perform disturbance compensation. The final expression is:

式中,e(k)为位置观测值与实际值之间的误差,z1(k)与z2(k)分别为振镜电机位置反馈及其微分的观测值,z3(k)为系统的总扰动观测值,k为采样时刻,h为采样步长,β1、β2、β3分别为扩张状态观测器增益,与观测器带宽相关,fal(e,α,δ)为在原点附近具有线性段的连续幂次函数,其中,α、δ为该函数的参数,采用这类函数能够避免传统扩张状态观测器的高频颤振现象,其表达式为:Where e(k) is the error between the position observation and the actual value, z 1 (k) and z 2 (k) are the observation values of the galvanometer motor position feedback and its differential, respectively, z 3 (k) is the total disturbance observation value of the system, k is the sampling time, h is the sampling step, β 1 , β 2 , β 3 are the gains of the extended state observer, which are related to the observer bandwidth, fal(e,α,δ) is a continuous power function with a linear segment near the origin, where α and δ are the parameters of the function. The use of this type of function can avoid the high-frequency chatter phenomenon of the traditional extended state observer, and its expression is:

作为本发明的较佳实施例,本发明所述步骤三中的滑模控制器的设计方法如下:As a preferred embodiment of the present invention, the design method of the sliding mode controller in step three of the present invention is as follows:

定义滑模面函数为:The sliding surface function is defined as:

其中,c为滑模面的调节参数,e为位置给定与位置反馈之间的误差,为位置给定与位置反馈之间误差的微分;选择指数趋近律,使得控制信号能够尽快地趋近滑模面,即:Among them, c is the adjustment parameter of the sliding surface, e is the error between the position setting and the position feedback, is the differential of the error between the position setting and the position feedback; the exponential approach law is selected so that the control signal can approach the sliding surface as quickly as possible, that is:

其中,ε、k决为指数趋近律的系数,其中k决定了到达滑模面前的趋近速度,ε决定了到达滑模面时的趋近速度;为了减小滑模控制中的抖动问题,采用饱和函数sat(s,δ)取代符号函数,其中δ为饱和函数的线性段参数,饱和函数的表达式如下所示:Among them, ε and k are the coefficients of the exponential reaching law, where k determines the approaching speed before reaching the sliding surface, and ε determines the approaching speed when reaching the sliding surface. In order to reduce the jitter problem in sliding mode control, the saturation function sat(s,δ) is used to replace the sign function, where δ is the linear segment parameter of the saturation function. The expression of the saturation function is as follows:

根据振镜电机的数学模型以及扩张状态观测器的模型,可以得到位置环控制器的控制律:According to the mathematical model of the galvanometer motor and the model of the extended state observer, the control law of the position loop controller can be obtained:

其中,xr为位置信号的给定值,z1、z2、z3为由扩张状态观测器所获得的位置信号、位置微分信号以及总扰动信号的观测值,u为位置环控制器的输出。Wherein, xr is the given value of the position signal, z1 , z2 , z3 are the observed values of the position signal, the position differential signal and the total disturbance signal obtained by the extended state observer, and u is the output of the position loop controller.

本发明的有益效果是:The beneficial effects of the present invention are:

(1)本发明在拓扑结构上,采用数模混合架构,即采用数字式控制器与模拟式驱动器相结合的架构,相比于纯模拟的拓扑架构,数模混合架构能够采用更复杂的控制算法,以获得更好的控制性能;相比于纯数字的拓扑架构,数模混合架构能够减小转矩波动,提高输出至电机信号的质量,对于获得更好的响应速度与控制精度均具有显著作用;(1) The present invention adopts a digital-analog hybrid architecture in terms of topological structure, that is, an architecture combining a digital controller and an analog driver. Compared with a purely analog topological architecture, the digital-analog hybrid architecture can adopt a more complex control algorithm to obtain better control performance; compared with a purely digital topological architecture, the digital-analog hybrid architecture can reduce torque fluctuations and improve the quality of the output signal to the motor, which has a significant effect on obtaining better response speed and control accuracy;

(2)在驱动控制结构上,针对振镜电机需要高动态响应性能的特点,采用内环为电流环,外环为位置环的双闭环控制,相比于传统的位置环、速度环、电流环的三闭环控制,采用双闭环控制能够在保证系统精度的同时,提高系统的动态响应能力;(2) In terms of drive control structure, in view of the fact that the galvanometer motor requires high dynamic response performance, a dual closed-loop control system is adopted, in which the inner loop is a current loop and the outer loop is a position loop. Compared with the traditional three-loop control of position loop, speed loop and current loop, the dual closed-loop control can improve the dynamic response capability of the system while ensuring the system accuracy;

(3)在位置环控制器上,采用带扩张状态观测器的滑模控制,在利用滑模控制快速趋近滑模面的能力提高系统的响应速度的同时,利用扩张状态观测器提高系统的抗干扰能力,弥补了传统PID控制响应速度较慢、抗干扰能力不足的缺点。(3) In the position loop controller, sliding mode control with an extended state observer is adopted. While utilizing the ability of sliding mode control to quickly approach the sliding surface to improve the response speed of the system, the extended state observer is utilized to improve the anti-interference ability of the system, thus making up for the shortcomings of traditional PID control, such as slow response speed and insufficient anti-interference ability.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明的数模混合振镜电机系统的整体结构示意图;FIG1 is a schematic diagram of the overall structure of the digital-analog hybrid galvanometer motor system of the present invention;

图2为本发明的模拟驱动模块的线性功率运算放大器跨导式接法结构示意图;FIG2 is a schematic diagram of a linear power operational amplifier transconductance connection structure of an analog drive module of the present invention;

图3为本发明的带扩张状态观测器的滑模控制策略结构图;FIG3 is a structural diagram of a sliding mode control strategy with an extended state observer according to the present invention;

图4为本发明提出的振镜电机系统总体控制流程图;FIG4 is a flow chart of the overall control of the galvanometer motor system proposed in the present invention;

图5为本发明提出的振镜电机系统位置环控制流程图。FIG5 is a flow chart of the position loop control of the galvanometer motor system proposed in the present invention.

具体实施方式Detailed ways

以下结合说明书附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明,并且在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。The preferred embodiments of the present invention are described below in conjunction with the drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention. In addition, the embodiments of the present invention and the features in the embodiments may be combined with each other if there is no conflict.

实施例一Embodiment 1

本实例,针对数模混合架构振镜电机系统驱动控制的需求,提供一种数模混合架构振镜电机系统及驱动控制方法,在控制部分,采用以电流环为内环,位置环为外环的双闭环控制策略,以获得更高的控制性能;在电流环采用传统PID控制,位置环采用带扩张状态观测器的滑模控制,在位置控制上追求更高的动态性能及控制精度;采用此类数模混合控制方法,能够较为有效地提高系统的稳态性能、动态性能及鲁棒性,能够满足激光打标技术的要求。In this example, a digital-analog hybrid architecture galvanometer motor system and a drive control method are provided to meet the needs of drive control of a digital-analog hybrid architecture galvanometer motor system. In the control part, a dual closed-loop control strategy with a current loop as an inner loop and a position loop as an outer loop is adopted to obtain higher control performance; traditional PID control is adopted in the current loop, and sliding mode control with an expanded state observer is adopted in the position loop, pursuing higher dynamic performance and control accuracy in position control; the use of such a digital-analog hybrid control method can effectively improve the steady-state performance, dynamic performance and robustness of the system, and can meet the requirements of laser marking technology.

本发明为一类数模混合振镜电机驱动控制系统,其驱动控制结构的硬件电路如附图1所示,一种数模混合架构振镜电机系统,系统包括数字控制模块、模拟驱动模块、电源模块、采样检测模块、通信模块以及电机本体,电机本体的输出端与采样检测模块的输入端连接,采样检测模块的输出端与数字控制模块的输入端连接,通信模块的输出端与数字控制模块的输入端连接,数字控制模块的输出端与模拟驱动模块的输入端连接,模拟驱动模块的输出端与电机本体输入端连接,电源模块分别与数字控制模块和模拟驱动模块电连接供电。The present invention is a type of digital-analog hybrid galvanometer motor drive control system, and the hardware circuit of its drive control structure is shown in Figure 1, a digital-analog hybrid architecture galvanometer motor system, the system includes a digital control module, an analog drive module, a power module, a sampling detection module, a communication module and a motor body, the output end of the motor body is connected to the input end of the sampling detection module, the output end of the sampling detection module is connected to the input end of the digital control module, the output end of the communication module is connected to the input end of the digital control module, the output end of the digital control module is connected to the input end of the analog drive module, the output end of the analog drive module is connected to the input end of the motor body, and the power module is electrically connected to the digital control module and the analog drive module respectively for power supply.

如图1所示,电源模块采用隔离供电方式,主电源为30V直流电源,通过URA2405S-6WR3型隔离电源将30V直流电源转换为±5V电源,为A/D转换芯片、D/A转换芯片等数字芯片供电;通过TPS767D318PWP型稳压电源及MIC29302BU型稳压电源将5V直流电压转换为3.3V、1.8V、1.2V直流电源,为DSP处理器及其外围电路供电;通过URA2415S-6WR3型隔离电源,将30V直流电压转换为±15V电源,为系统中的各类运算放大器供电。As shown in Figure 1, the power module adopts an isolated power supply mode. The main power supply is a 30V DC power supply. The 30V DC power supply is converted into a ±5V power supply through the URA2405S-6WR3 isolated power supply to power digital chips such as A/D conversion chips and D/A conversion chips; the 5V DC voltage is converted into 3.3V, 1.8V, and 1.2V DC power supplies through the TPS767D318PWP type regulated power supply and the MIC29302BU type regulated power supply to power the DSP processor and its peripheral circuits; the 30V DC voltage is converted into a ±15V power supply through the URA2415S-6WR3 isolated power supply to power various operational amplifiers in the system.

如图1所示,数字控制模块以DSP处理器为核心,数字控制模块主要由DSP芯片及晶振电路、复位电路、JTAG电路、CAN通信电路等外围电路组成,DSP芯片采用美国TI公司C2000系列的TMS320C28346,其时钟主频可达300MHz,具有高达258K×16的SARAM,88个可复用的GPIO引脚,能够实现高性能的控制算法。As shown in Figure 1, the digital control module is based on the DSP processor. The digital control module is mainly composed of a DSP chip and peripheral circuits such as a crystal oscillator circuit, a reset circuit, a JTAG circuit, and a CAN communication circuit. The DSP chip uses the TMS320C28346 of the C2000 series of TI, USA. Its clock frequency can reach 300MHz, and it has a SARAM of up to 258K×16 and 88 reusable GPIO pins, which can realize high-performance control algorithms.

本发明的模拟驱动模块以线性功率运算放大器为核心,模拟驱动模块包括功率运算放大器U1、电阻R1、电阻R2和电阻R3,功率运算放大器U1的输出端连接振镜电机,D/A转换电路的输出端连接功率运算放大器U1的正极输入端,功率运算放大器U1的负极输入端与振镜电机之间设置一电阻R2,电阻R1及电阻R3接地。线性功率运算放大器采用美国TI公司的OPA549型高电压大电流运算放大器,其供电电压范围可达到60V,最大长时输出电流可达到8A,能够满足振镜电机系统的需求。为了能够直接控制振镜电机的电枢电流的目的,如附图2所示,线性功率运算放大器采用跨导式接法,此时,线性功率运算放大器能够将恒定的输入电压转化为恒定的输出电流,其放大公式为:The analog drive module of the present invention is based on a linear power operational amplifier, and the analog drive module includes a power operational amplifier U1, a resistor R1, a resistor R2 and a resistor R3. The output end of the power operational amplifier U1 is connected to the galvanometer motor, the output end of the D/A conversion circuit is connected to the positive input end of the power operational amplifier U1, a resistor R2 is arranged between the negative input end of the power operational amplifier U1 and the galvanometer motor, and the resistor R1 and the resistor R3 are grounded. The linear power operational amplifier adopts the OPA549 high-voltage and high-current operational amplifier of TI Company of the United States, and its power supply voltage range can reach 60V, and the maximum long-term output current can reach 8A, which can meet the needs of the galvanometer motor system. In order to be able to directly control the armature current of the galvanometer motor, as shown in Figure 2, the linear power operational amplifier adopts a transconductance connection method. At this time, the linear power operational amplifier can convert a constant input voltage into a constant output current, and its amplification formula is:

式中,Ag为OPA549的放大倍数,UIN为输入电压,IOUT为输出电流,R1、R2、R3为外部电路中的电阻元件,外部电路的连接方式如图2所示。Wherein, Ag is the amplification factor of OPA549, U IN is the input voltage, I OUT is the output current, R 1 , R 2 , and R 3 are the resistance elements in the external circuit. The connection method of the external circuit is shown in FIG2 .

采样检测模块包括电流采样电路及位置采样电路,电流采样电路由霍尔电流传感器、A/D转换芯片及其外围电路组成,采集振镜电机转子电流信息并传输至DSP处理器,位置采样电路由光电式位置传感器、A/D转换芯片及其外围电路组成,采集镜片位置信息并传输至DSP处理器。The sampling and detection module includes a current sampling circuit and a position sampling circuit. The current sampling circuit is composed of a Hall current sensor, an A/D conversion chip and its peripheral circuits. It collects the galvanometer motor rotor current information and transmits it to the DSP processor. The position sampling circuit is composed of a photoelectric position sensor, an A/D conversion chip and its peripheral circuits. It collects the lens position information and transmits it to the DSP processor.

对于电流检测模块,霍尔电流传感器采用LEM公司的CASR 6-NP,依据霍尔效应原理检测电机绕组通过的电流,CASR 6-NP最大可测电流范围能够达到12A,并且其测量精度较高;A/D转换芯片采用ADI公司的AD9237,是一类20MSPS、低功耗、12位分辨率、具有片选端口的并行A/D转换芯片,能够满足电流环高频响的要求。For the current detection module, the Hall current sensor uses LEM's CASR 6-NP, which detects the current passing through the motor winding based on the Hall effect principle. The maximum measurable current range of CASR 6-NP can reach 12A, and its measurement accuracy is relatively high; the A/D conversion chip uses ADI's AD9237, which is a 20MSPS, low-power, 12-bit resolution, parallel A/D conversion chip with a chip select port, which can meet the high-frequency response requirements of the current loop.

对于位置检测模块,采用光电式位置传感器检测振镜电机位置信息,其具有体积小、温漂小、线性度高等特点。A/D转换芯片采用ADI公司的AD7641,是一类2MSPS,18位分辨率、具有片选端口的并行A/D转换芯片,能够满足位置环高精度的要求。For the position detection module, a photoelectric position sensor is used to detect the position information of the galvanometer motor, which has the characteristics of small size, small temperature drift, high linearity, etc. The A/D conversion chip uses the AD7641 of ADI, which is a parallel A/D conversion chip with 2MSPS, 18-bit resolution and chip select port, which can meet the high-precision requirements of the position loop.

对于通信模块,通信电路采用MAXIM公司的MAX3095型接收器,通信协议采用振镜行业常用的XY2-100协议,该协议的传输信号包括时钟信号、同步信号以及位置数据信号,使用三线实时通信,并且采用差分信号进行传输,保证了系统传输数据的准确性。For the communication module, the communication circuit uses the MAX3095 receiver from MAXIM, and the communication protocol uses the XY2-100 protocol commonly used in the galvanometer industry. The transmission signals of this protocol include clock signals, synchronization signals, and position data signals. It uses three-wire real-time communication and adopts differential signals for transmission, which ensures the accuracy of the system transmission data.

附图3为本发明提出的带扩张状态观测器的滑模控制策略结构图,本发明提出的数模混合架构振镜电机系统的驱动控制方法采用以电流环为内环,以位置环为外环的双闭环控制策略,相比于传统的位置环、速度环、电流环的三闭环控制,采用双闭环控制能够在保证系统精度的同时,提高系统的动态响应能力。Figure 3 is a structural diagram of the sliding mode control strategy with an extended state observer proposed in the present invention. The driving control method of the digital-analog hybrid architecture galvanometer motor system proposed in the present invention adopts a dual closed-loop control strategy with a current loop as an inner loop and a position loop as an outer loop. Compared with the traditional three-loop control of position loop, speed loop and current loop, the dual closed-loop control can improve the dynamic response capability of the system while ensuring the system accuracy.

附图4为根据控制策略结构图得到的振镜电机系统总体控制流程图,在控制过程中,将上位机发出的指令信号输入三阶微分跟踪器后得到指令跟踪信号及其微分信号;将位置传感器反馈的实际位置信号输入扩张状态观测器得到位置及其微分信号与总扰动信号;将比较后所得误差输入至滑模控制器中,得到位置环的初始输出信号,再经过总扰动观测信号的补偿后,得到位置环的最终输出信号,即电流环的输入指令信号;由电流环控制器比较输入指令信号以及电流传感器反馈的实际电流信号后,将得到的误差输入PI控制器,再经线性功率运算放大器放大后,将最终得到的输出电流输出至振镜电机绕组,完成控制过程。Figure 4 is a general control flow chart of the galvanometer motor system obtained according to the control strategy structure diagram. During the control process, the command signal sent by the host computer is input into the third-order differential tracker to obtain the command tracking signal and its differential signal; the actual position signal fed back by the position sensor is input into the extended state observer to obtain the position and its differential signal and the total disturbance signal; the error obtained after comparison is input into the sliding mode controller to obtain the initial output signal of the position loop, and then after compensation of the total disturbance observation signal, the final output signal of the position loop, that is, the input command signal of the current loop, is obtained; after the current loop controller compares the input command signal and the actual current signal fed back by the current sensor, the obtained error is input into the PI controller, and then after amplification by the linear power operational amplifier, the final output current is output to the galvanometer motor winding to complete the control process.

对于本控制策略的电流环,采用传统的PI控制器对电机的电枢电流进行控制,其主要特点在于线性功率运算放大器采用跨导式接法,将电压信号转换为电流信号,实现对电枢绕组电流的直接控制,以提高电机的控制精度。For the current loop of this control strategy, the traditional PI controller is used to control the armature current of the motor. Its main feature is that the linear power operational amplifier adopts a transconductance connection to convert the voltage signal into a current signal, thereby realizing direct control of the armature winding current to improve the control accuracy of the motor.

对于本控制策略的位置环,采用带扩张状态观测器的滑模控制方法进行控制,其控制流程图如附图5所示。采用带扩张状态观测器的滑模控制作为位置环的控制器,不但能够利用滑模控制的快速趋近能力,提升振镜电机系统的响应速度,还能够利用扩张状态观测器对扰动的补偿能力,提升系统的抗干扰能力,以全面提升振镜系统的动态及稳态性能。For the position loop of this control strategy, a sliding mode control method with an extended state observer is used for control, and its control flow chart is shown in Figure 5. Using sliding mode control with an extended state observer as the controller of the position loop can not only utilize the fast approaching ability of the sliding mode control to improve the response speed of the galvanometer motor system, but also utilize the disturbance compensation ability of the extended state observer to improve the anti-interference ability of the system, so as to comprehensively improve the dynamic and steady-state performance of the galvanometer system.

如图5所示,位置环带扩张状态观测器的滑模控制算法的具体控制流程如下:As shown in Figure 5, the specific control process of the sliding mode control algorithm of the position loop with extended state observer is as follows:

步骤一:根据上位机给定的位置指令,采用三阶微分跟踪器得到位置输入与其一阶微分及二阶微分的跟踪信号,为下一阶段中滑模控制器所需的微分信号输入做准备。Step 1: According to the position command given by the host computer, a third-order differential tracker is used to obtain the tracking signal of the position input and its first-order differential and second-order differential, in preparation for the differential signal input required by the sliding mode controller in the next stage.

由于纯微分环节无法在物理上实现,因此常采用经典微分器或微分跟踪器对信号进行近似微分,采用微分跟踪器能够在消除经典微分器易产生的高频噪声的同时获得较好的逼近效果,三阶微分跟踪器的表达式如下:Since the pure differential link cannot be realized physically, the classical differentiator or differential tracker is often used to approximate the signal differentiation. The differential tracker can eliminate the high-frequency noise easily generated by the classical differentiator while obtaining a better approximation effect. The expression of the third-order differential tracker is as follows:

式中,v1为上位机给定的位置指令,x1为位置跟踪信号,x2为位置微分的跟踪信号,x3为位置二阶微分的跟踪信号,r为三阶微分跟踪器的参数。在实际振镜电机控制系统中,采用三阶微分跟踪器的离散形式进行控制,其表达式如下:In the formula, v1 is the position command given by the host computer, x1 is the position tracking signal, x2 is the tracking signal of the position differential, x3 is the tracking signal of the second-order position differential, and r is the parameter of the third-order differential tracker. In the actual galvanometer motor control system, the discrete form of the third-order differential tracker is used for control, and its expression is as follows:

式中,v(k)为位置指令,x1(k)为位置的跟踪信号,x2(k)为位置微分的跟踪信号,x3(k)为位置二阶微分的跟踪信号,k为采样时刻,h为采样步长。Wherein, v(k) is the position command, x 1 (k) is the tracking signal of the position, x 2 (k) is the tracking signal of the position differential, x 3 (k) is the tracking signal of the second-order differential of the position, k is the sampling time, and h is the sampling step.

步骤二:根据位置传感器测得的位置信号,采用非线性扩张状态观测器得到滑模控制所需的位置反馈信号的微分值及总扰动信号,实现对系统扰动进行补偿,扩张状态观测器需根据电机的机械运动方程得到,电机模型表达式如下所示:Step 2: According to the position signal measured by the position sensor, a nonlinear extended state observer is used to obtain the differential value of the position feedback signal and the total disturbance signal required for sliding mode control to compensate for the system disturbance. The extended state observer needs to be obtained based on the mechanical motion equation of the motor. The motor model expression is as follows:

式中,θ为电机转子位置,J为电机转动惯量,Bm为阻尼系数,Te为电磁转矩,Td为负载转矩,Kte为力矩系数,ia为绕组电流;将其化为状态方程后如下式所示:In the formula, θ is the motor rotor position, J is the motor moment of inertia, Bm is the damping coefficient, Te is the electromagnetic torque, Td is the load torque, Kte is the torque coefficient, and ia is the winding current; after converting it into a state equation, it is shown as follows:

式中,x1与x2分别为电机转子位置与电机转子角速度,y为振镜电机驱动控制系统的输出,即为振镜电机镜片的实际位置;定义为算法中参数,定义为系统内外扰动总和,并将其扩张成为一个新的状态变量x3,定义可将原系统扩张成一个新的线性系统,其状态空间表达式如下:Where x1 and x2 are the motor rotor position and motor rotor angular velocity respectively, and y is the output of the galvanometer motor drive control system, that is, the actual position of the galvanometer motor lens; definition is the parameter in the algorithm, and is defined is the sum of the disturbances inside and outside the system, and expands it into a new state variable x 3 , defining The original system can be expanded into a new linear system, whose state space expression is as follows:

为了补偿系统的扰动,定义为系统的最终控制量,可以将系统变为线性积分控制系统,如下式所示:In order to compensate the disturbance of the system, we define is the final control quantity of the system, and the system can be transformed into a linear integral control system as shown in the following formula:

根据扩张状态观测器原理,对振镜电机系统设计三阶非线性状态扩张观测器来观测系统状态并进行扰动补偿,最终表达式为:According to the principle of extended state observer, a third-order nonlinear state extended observer is designed for the galvanometer motor system to observe the system state and perform disturbance compensation. The final expression is:

式中,e(k)为位置观测值与实际值之间的误差,z1(k)与z2(k)分别为振镜电机位置反馈及其微分的观测值,z3(k)为系统的总扰动观测值,k为采样时刻,h为采样步长,β1、β2、β3分别为扩张状态观测器增益,与观测器带宽相关,fal(e,α,δ)为在原点附近具有线性段的连续幂次函数,其中,α、δ为该函数的参数,采用这类函数能够避免传统扩张状态观测器的高频颤振现象,其表达式为:Where e(k) is the error between the position observation and the actual value, z 1 (k) and z 2 (k) are the observation values of the galvanometer motor position feedback and its differential, respectively, z 3 (k) is the total disturbance observation value of the system, k is the sampling time, h is the sampling step, β 1 , β 2 , β 3 are the gains of the extended state observer, which are related to the observer bandwidth, fal(e,α,δ) is a continuous power function with a linear segment near the origin, where α and δ are the parameters of the function. The use of this type of function can avoid the high-frequency chatter phenomenon of the traditional extended state observer, and its expression is:

步骤三:根据振镜电机位置的给定信号、微分跟踪器获得的位置给定的一阶微分及二阶微分的跟踪信号、扩张状态观测器获得的总扰动信号、实际位置信号及实际位置的微分观测值,采用滑模控制器,得到位置环的输出,即电流环的给定值,滑模控制器的设计方法如下。Step 3: Based on the given signal of the galvanometer motor position, the tracking signal of the first-order differential and second-order differential of the given position obtained by the differential tracker, the total disturbance signal obtained by the extended state observer, the actual position signal and the differential observation value of the actual position, a sliding mode controller is used to obtain the output of the position loop, that is, the given value of the current loop. The design method of the sliding mode controller is as follows.

定义滑模面函数为:The sliding surface function is defined as:

其中,c为滑模面的调节参数,e为位置给定与位置反馈之间的误差,为位置给定与位置反馈之间误差的微分。选择指数趋近律,可以使得控制信号能够尽快地趋近滑模面,即:Among them, c is the adjustment parameter of the sliding surface, e is the error between the position setting and the position feedback, is the differential of the error between the position setting and the position feedback. Selecting the exponential approach law can make the control signal approach the sliding surface as quickly as possible, that is:

其中,ε、k决为指数趋近律的系数,其中k决定了到达滑模面前的趋近速度,ε决定了到达滑模面时的趋近速度;为了减小滑模控制中的抖动问题,采用饱和函数sat(s,δ)取代符号函数,其中δ为饱和函数的线性段参数,饱和函数的表达式如下所示:Among them, ε and k are the coefficients of the exponential reaching law, where k determines the approaching speed before reaching the sliding surface, and ε determines the approaching speed when reaching the sliding surface. In order to reduce the jitter problem in sliding mode control, the saturation function sat(s,δ) is used to replace the sign function, where δ is the linear segment parameter of the saturation function. The expression of the saturation function is as follows:

根据振镜电机的数学模型以及扩张状态观测器的模型,可以得到位置环控制器的控制律:According to the mathematical model of the galvanometer motor and the model of the extended state observer, the control law of the position loop controller can be obtained:

其中,xr为位置信号的给定值,z1、z2、z3为由扩张状态观测器所获得的位置信号、位置微分信号以及总扰动信号的观测值,u为位置环控制器的输出。Wherein, xr is the given value of the position signal, z1 , z2 , z3 are the observed values of the position signal, the position differential signal and the total disturbance signal obtained by the extended state observer, and u is the output of the position loop controller.

上文已对基本概念做了描述,显然,对于本领域技术人员来说,上述详细披露仅仅作为示例,而并不构成对本说明书的限定。虽然此处并没有明确说明,本领域技术人员可能会对本说明书进行各种修改、改进和偏移处理。该类修改、改进和偏移处理在本说明书中被建议,所以该类修改、改进、偏移处理仍属于本说明书示范实施例的精神和范围。The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements and offsets to this specification. Such modifications, improvements and offsets are suggested in this specification, so such modifications, improvements and offsets still belong to the spirit and scope of the exemplary embodiments of this specification.

此外,本领域技术人员可以理解,本说明书的各方面可以通过若干具有可专利性的种类或情况进行说明和描述,包括任何新的和有用的工序、机器、产品或物质的组合,或对它们的任何新的和有用的改进。相应地,本说明书的各个方面可以完全由硬件执行、可以完全由软件(包括固件、常驻软件、微码等)执行、也可以由硬件和软件组合执行。以上硬件或软件均可被称为“数据块”、“模块”、“引擎”、“单元”、“组件”或“系统”。此外,本说明书的各方面可能表现为位于一个或多个计算机可读介质中的计算机产品,该产品包括计算机可读程序编码。In addition, it will be understood by those skilled in the art that various aspects of this specification may be illustrated and described by a number of patentable categories or situations, including any new and useful process, machine, product or combination of substances, or any new and useful improvements thereto. Accordingly, various aspects of this specification may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". In addition, various aspects of this specification may be represented as a computer product located in one or more computer-readable media, which includes computer-readable program code.

需要说明的是,如果本说明书附属材料中的描述、定义、和/或术语的使用与本说明书内容有不一致或冲突的地方,以本说明书的描述、定义和/或术语的使用为准。It should be noted that if the descriptions, definitions, and/or usage of terms in the supplementary materials of this specification are inconsistent or conflicting with the contents of this specification, the descriptions, definitions, and/or usage of terms in this specification shall prevail.

最后,应当理解的是,本说明书中实施例仅用以说明本说明书实施例的原则。其它的变形也可能属于本说明书的范围。因此,作为示例而非限制,本说明书实施例的替代配置可视为与本说明书的教导一致。相应地,本说明书的实施例不仅限于本说明书明确介绍和描述的实施例。Finally, it should be understood that the embodiments in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, the alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.

Claims (9)

1. A digital-analog hybrid architecture galvanometer motor system is characterized in that: the system comprises a digital control module, an analog driving module, a power module, a sampling detection module, a communication module and a motor body, wherein the output end of the motor body is connected with the input end of the sampling detection module, the output end of the sampling detection module is connected with the input end of the digital control module, the output end of the communication module is connected with the input end of the digital control module, the output end of the digital control module is connected with the input end of the analog driving module, the output end of the analog driving module is connected with the input end of the motor body, and the power module is respectively and electrically connected with the digital control module and the analog driving module for supplying power;
The communication module comprises an upper computer and a communication circuit, wherein the output end of the upper computer is connected with the input end of the communication circuit, and the output end of the communication circuit is connected with the input end of the digital control module;
The sampling detection module comprises a current sampling circuit and a position sampling circuit; the input end of the current sampling circuit is connected with the motor body, the output end of the current sampling circuit is connected with the input end of the first A/D conversion circuit, and the output end of the first A/D conversion circuit is connected with the input end of the digital control module; the input end of the position sampling circuit is connected with the motor body, the output end of the position sampling circuit is connected with the input end of the second A/D conversion circuit, and the output end of the second A/D conversion circuit is connected with the input end of the digital control module;
the digital control module comprises a DSP processor and is connected with the input end of the analog driving module through a D/A conversion circuit;
the analog driving module comprises a power operational amplifier U1, a resistor R2 and a resistor R3, wherein the output end of the power operational amplifier U1 is connected with the galvanometer motor, the output end of the D/A conversion circuit is connected with the positive input end of the power operational amplifier U1, a resistor R2 is arranged between the negative input end of the power operational amplifier U1 and the galvanometer motor, and the resistor R1 and the resistor R3 are grounded;
the motor body is a galvanometer motor body.
2. The digital-to-analog hybrid architecture galvanometer motor system of claim 1, wherein: the current sampling circuit comprises a Hall current sensor, and the Hall current sensor collects current information of a rotor of the galvanometer motor and transmits the current information to the DSP; the position sampling circuit comprises a photoelectric position sensor, and the photoelectric position sensor collects lens position information of the galvanometer motor and transmits the lens position information to the DSP.
3. The digital-to-analog hybrid architecture galvanometer motor system of claim 1, wherein: the model of the D/A conversion circuit is a chip of LTC 1668; the first A/D conversion circuit is a current loop A/D converter and is a chip with the model of AD9220, the second A/D conversion circuit is a position loop A/D converter, and an 18-bit A/D conversion chip and a chip with the model of AD7641 are adopted.
4. The digital-to-analog hybrid architecture galvanometer motor system of claim 1, wherein: the model of the DSP processor is TMS320C28346; the communication module adopts an XY2-100 communication protocol.
5. A driving control method based on the digital-analog hybrid architecture galvanometer motor system as set forth in any one of claims 1-4, characterized in that:
The driving control method is characterized in that a target instruction is given by an upper computer and is transmitted to a DSP (digital signal processor) through a communication circuit, meanwhile, the DSP receives position information and current information acquired by a sampling detection module, after the position information and the current information are resolved by a high-performance control algorithm, a control signal is transmitted to an analog driving module through a D/A (digital-to-analog) conversion circuit, and the amplified current signal is output to an armature winding of a galvanometer motor, so that the control of the galvanometer motor system is realized;
the driving control method adopts a topological structure of a digital control module and an analog driving module, and adopts a double closed-loop control strategy with an inner loop as a current loop and an outer loop as a position loop;
The double closed-loop control strategy takes a current loop as an inner loop, and the current loop sequentially comprises a vibrating mirror motor body, a current sampling circuit, a first A/D conversion circuit, a DSP processor, a D/A conversion circuit and an analog driving module to form a closed loop; when the current loop of the galvanometer motor is controlled, comparing a current given signal with the current of the armature winding of the motor acquired by a current sampling circuit to obtain an error of a current signal, modulating the error by a PI controller in a DSP processor to obtain a controller output signal, converting the obtained digital signal into an analog signal by a D/A conversion circuit and inputting the analog signal into an analog driving module, and amplifying a voltage signal into the current signal by the analog driving module to realize direct control of the armature current;
The double closed-loop control strategy takes a position loop as an outer loop, and the position loop sequentially comprises a vibrating mirror motor body, a position sampling circuit, a second A/D conversion circuit, a DSP processor, a D/A conversion circuit and an analog driving module; when the position loop of the vibrating mirror motor is controlled, a position command signal sent by an upper computer and a position signal acquired by a position sampling circuit are resolved and modulated through a sliding mode control algorithm with an extended state observer in a DSP processor, a command signal of a current loop is obtained, and the command signal is output to a current loop PI controller of the DSP processor.
6. The driving control method of the galvanometer motor system of the digital-analog hybrid architecture according to claim 5, wherein the control method of the position ring specifically comprises:
Step one: according to a position instruction given by an upper computer, a third-order differential tracker is adopted to obtain a tracking signal of the position input and the first-order differential and the second-order differential thereof, so as to prepare for differential signal input required by the sliding mode controller in the third step;
Step two: according to the position signal measured by the position sensor of the position sampling circuit, a nonlinear extended state observer is adopted to obtain the differential value and the total disturbance signal of a position feedback signal required by sliding mode control, so that the system disturbance is compensated, and the extended state observer is obtained according to the mechanical motion equation of the motor;
Step three: and obtaining the output of the position loop, namely the given value of the current loop by adopting a sliding mode controller according to the given signal of the position of the vibrating mirror motor, the tracking signals of the first-order differential and the second-order differential, which are obtained by the differential tracker, the total disturbance signal, the actual position signal and the differential observation value of the actual position, which are obtained by the extended state observer.
7. The method of driving and controlling a galvanometer motor system according to claim 6, wherein the first step specifically comprises:
The signal is approximately differentiated by a differential tracker, and the expression of the third-order differential tracker is as follows:
Wherein v 1 is a position instruction given by an upper computer, x 1 is a position tracking signal, x 2 is a position differential tracking signal, x 3 is a position second differential tracking signal, and r is a parameter of a third differential tracker; in an actual galvanometer motor control system, a discrete form of a third-order differential tracker is adopted for control, and the expression is as follows:
Where v (k) is a position command, x 1 (k) is a position tracking signal, x 2 (k) is a position differential tracking signal, x 3 (k) is a position second order differential tracking signal, k is a sampling time, and h is a sampling step.
8. The driving control method of the galvanometer motor system of the digital-analog hybrid architecture according to claim 7, wherein the motor model expression of the second step is as follows:
Wherein θ is the motor rotor position, J is the motor moment of inertia, B m is the damping coefficient, T e is the electromagnetic torque, T d is the load torque, K te is the moment coefficient, and i a is the winding current;
This is expressed as the equation of state as follows:
Wherein x 1 and x 2 are the position and the angular speed of the motor rotor respectively, and y is the output of the vibrating mirror motor drive control system, namely the actual position of the lens of the vibrating mirror motor; definition of the definition For parameters in the algorithm, defineFor the sum of the internal disturbance and the external disturbance of the system, and expanding the sum into a new state variable x 3, the definition is thatExpanding the original system into a new linear system, and the state space expression is as follows:
to compensate for disturbances in the system, a definition is made of For the final control amount of the system, the system is changed into a linear integral control system as shown in the following formula:
According to the principle of an extended state observer, a third-order nonlinear state extended observer is designed for a galvanometer motor system to observe the system state and perform disturbance compensation, and the final expression is as follows:
where e (k) is the error between the position observation value and the actual value, z 1 (k) and z 2 (k) are the observation values of the position feedback and the differentiation of the vibrating mirror motor, z 3 (k) is the total disturbance observation value of the system, k is the sampling time, h is the sampling step length, β 1、β2、β3 is the gain of the extended state observer, and related to the observer bandwidth, fal (e, α, δ) is a continuous power function with a linear section near the origin, where α, δ are parameters of the function, and the use of such function can avoid the high frequency flutter phenomenon of the traditional extended state observer, and the expression is:
9. The driving control method of a digital-analog hybrid architecture galvanometer motor system according to claim 8, wherein the design method of the sliding mode controller in the third step is as follows:
Defining a sliding mode surface function as follows:
Where c is the adjustment parameter of the slide surface, e is the error between position setting and position feedback, Differentiating the error between the position setting and the position feedback; the exponential approach law is chosen so that the control signal can approach the slip plane as soon as possible, namely:
Wherein epsilon and k are coefficients of an exponential approach law, wherein k determines the approach speed before reaching the sliding surface, and epsilon determines the approach speed when reaching the sliding surface; to reduce jitter problems in sliding mode control, the sign function is replaced with a saturation function sat (s, δ), where δ is a linear segment parameter of the saturation function, the expression of which is as follows:
according to the mathematical model of the galvanometer motor and the model of the extended state observer, the control law of the position loop controller can be obtained:
Where x r is the given value of the position signal, z 1、z2、z3 is the observed value of the position signal, the position differential signal, and the total disturbance signal obtained by the extended state observer, and u is the output of the position loop controller.
CN202210523102.6A 2022-05-13 2022-05-13 A digital-analog hybrid architecture galvanometer motor system and drive control method Active CN114977974B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210523102.6A CN114977974B (en) 2022-05-13 2022-05-13 A digital-analog hybrid architecture galvanometer motor system and drive control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210523102.6A CN114977974B (en) 2022-05-13 2022-05-13 A digital-analog hybrid architecture galvanometer motor system and drive control method

Publications (2)

Publication Number Publication Date
CN114977974A CN114977974A (en) 2022-08-30
CN114977974B true CN114977974B (en) 2024-07-02

Family

ID=82983484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210523102.6A Active CN114977974B (en) 2022-05-13 2022-05-13 A digital-analog hybrid architecture galvanometer motor system and drive control method

Country Status (1)

Country Link
CN (1) CN114977974B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116032182B (en) * 2022-12-26 2023-11-14 华中科技大学 A digital-analog hybrid control high-frequency switching power conversion system for three-phase AC motors
CN116604172A (en) * 2023-05-22 2023-08-18 深圳市桓日激光有限公司 Handheld laser welding system, safety protection method thereof and plasma detection method
CN119846993A (en) * 2025-03-19 2025-04-18 中国科学院光电技术研究所 Composite control method of laser galvanometer

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110350841A (en) * 2019-07-31 2019-10-18 沈阳工业大学 A kind of permanent magnet linear synchronous motor control device and method of high-grade, digitally controlled machine tools
CN111327235A (en) * 2020-04-08 2020-06-23 西安热工研究院有限公司 Commutation control device and method for permanent magnet DC motor based on sliding mode observer

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005176445A (en) * 2003-12-09 2005-06-30 Yaskawa Electric Corp Electric motor control device
US7194321B2 (en) * 2004-10-29 2007-03-20 Dynacity Technology (Hk) Limited Modular multi-axis motion control and driving system and method thereof
CN112910365B (en) * 2021-01-25 2022-10-28 北京航空航天大学 Drive control method of digital control galvanometer motor system for laser marking

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110350841A (en) * 2019-07-31 2019-10-18 沈阳工业大学 A kind of permanent magnet linear synchronous motor control device and method of high-grade, digitally controlled machine tools
CN111327235A (en) * 2020-04-08 2020-06-23 西安热工研究院有限公司 Commutation control device and method for permanent magnet DC motor based on sliding mode observer

Also Published As

Publication number Publication date
CN114977974A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN114977974B (en) A digital-analog hybrid architecture galvanometer motor system and drive control method
CN110108299B (en) An online self-calibration system for silicon micromachined gyroscope scale factor
CN104236537B (en) Light source intensity noise based on intensity modulator suppresses digital double closed-loop method
CN110989355B (en) An Improved Active Disturbance Rejection Controller
CN112910365B (en) Drive control method of digital control galvanometer motor system for laser marking
CN101769800A (en) High-precision temperature checking method and instrument based on ARM
CN102009597A (en) Magnetically suspended control moment gyro gimbal and locking control system
CN118936519B (en) A laser gyro correction system based on temperature adaptation
EP3079133B1 (en) Sensor control circuit and electronic apparatus
CN104764559B (en) Closed-loop control circuit of silicon resonant pressure sensor and realization method thereof
CN104950954A (en) Multi-heating point coordinate temperature control method for realizing uniform temperature field of gyroscope
CN110673670B (en) Atomic gas chamber temperature closed-loop control method and device
CN104932251B (en) A kind of synchronisation control means for space optical remote sensor servomechanism
Okada et al. Extending the piezoelectric transducer bandwidth of an optical interferometer by suppressing resonance using a high dimensional IIR filter implemented on an FPGA
CN114253138A (en) Nano positioning platform compensation control method and system based on dynamic time delay PI model
Wang et al. Robust finite-time adaptive control for high performance voice coil motor-actuated fast steering mirror
CN107066016B (en) A kind of temperature control voltage adjusting circuit
CN111342785B (en) A signal conditioning circuit
CN210380707U (en) Motor control system based on known parameters
CN107543537B (en) Method for improving scale factor stability of fiber-optic gyroscope
Li et al. ADRC for a piezoelectric plate with delays and disturbances via frequency response method: Design, analysis and experiments
CN101840064B (en) A control method of a DC motor type force actuator
CN111504176B (en) Large optical path closed-loop measurement system based on two-stage actuator structure
CN203377962U (en) Image constant brightness automatic adjustment circuit
Sheng et al. Design of PZT Micro-displacement acquisition system

Legal Events

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