[go: up one dir, main page]

CN103744405B - Towards two axial plane motion control cards and the two axial plane motion control methods of full-automatic surperficial mounting system - Google Patents

Towards two axial plane motion control cards and the two axial plane motion control methods of full-automatic surperficial mounting system Download PDF

Info

Publication number
CN103744405B
CN103744405B CN201410028594.7A CN201410028594A CN103744405B CN 103744405 B CN103744405 B CN 103744405B CN 201410028594 A CN201410028594 A CN 201410028594A CN 103744405 B CN103744405 B CN 103744405B
Authority
CN
China
Prior art keywords
module
signal
pulse
interface circuit
output
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
CN201410028594.7A
Other languages
Chinese (zh)
Other versions
CN103744405A (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.)
Ningbo Yitang Intelligent Technology Co ltd
Original Assignee
Harbin Institute of Technology Shenzhen
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 Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN201410028594.7A priority Critical patent/CN103744405B/en
Publication of CN103744405A publication Critical patent/CN103744405A/en
Application granted granted Critical
Publication of CN103744405B publication Critical patent/CN103744405B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Control Of Electric Motors In General (AREA)

Abstract

面向全自动表面贴装系统的二轴平面运动控制卡及二轴平面运动控制方法,涉及工业运动控制和平面测绘领域。它是为了解决现有的全自动表面贴装系统的控制卡传输速度慢、可靠性低和精度低的问题,也是为了解决现有的平面运动控制方法不能实时反映被控装置运动状态的问题。它包括总线接口电路、CPLD模块、DSP模块、SRAM缓存模块和下层接口电路。SRAM缓存模块,用于支持大容量的数据存储,在DSP模块内部的软件程序中,采用了同步算法和速度规划算法,同步算法使得同轴的两部电机达到高度同步,使本发明的误差达到微米级。速度规划算法使得电机运动平滑流畅,电机动作速度快,且电机在停止时更加稳定,可靠性高。本发明适用于表面贴装机、贴插机及其类似产品。

The invention relates to a two-axis plane motion control card and a two-axis plane motion control method for a fully automatic surface mounting system, and relates to the fields of industrial motion control and plane surveying and mapping. It is to solve the problems of slow transmission speed, low reliability and low precision of the control card of the existing automatic surface mount system, and also to solve the problem that the existing plane motion control method cannot reflect the motion state of the controlled device in real time. It includes bus interface circuit, CPLD module, DSP module, SRAM cache module and lower layer interface circuit. The SRAM cache module is used to support large-capacity data storage. In the software program inside the DSP module, a synchronization algorithm and a speed planning algorithm are adopted. The synchronization algorithm makes the two coaxial motors reach a high degree of synchronization, so that the error of the present invention reaches Micron. The speed planning algorithm makes the motor movement smooth and smooth, the motor moves fast, and the motor is more stable and reliable when it stops. The invention is suitable for surface mounting machines, placement and insertion machines and similar products.

Description

面向全自动表面贴装系统的二轴平面运动控制卡及二轴平面运动控制方法Two-axis planar motion control card and two-axis planar motion control method for fully automatic surface mount system

技术领域technical field

本发明涉及工业运动控制和平面测绘领域。The invention relates to the fields of industrial motion control and plane surveying and mapping.

背景技术Background technique

全自动表面贴装系统是采用表面贴装技术完成PCB板卡的元器件贴装任务的装置,融合了自动控制、机械设计制造、图像识别、数字信号处理等多个领域的先进技术,是各个部分的有机整体,对运动算法控制、信号处理与传输等的速度、可靠性等性能指标具有较高的要求。因此,全自动贴装系统对其核心运动控制卡尤其有着严格的要求。目前,无法兼顾高速和高可靠性的运动控制卡设计是现有技术存在的主要问题,也是制约国内表面贴装技术发展的重要瓶颈之一。且现有的面向全自动表面贴装系统的平面运动控制方法,不能实时反映被控装置的运动状态,也就是说不能根据被控装置的运动状态,实时调整上位机发送的指令,从而使被控装置完成相应的动作。Fully automatic surface mount system is a device that uses surface mount technology to complete the task of mounting components on PCB boards. It integrates advanced technologies in multiple fields such as automatic control, mechanical design and manufacturing, image recognition, and digital signal processing. Part of the organic whole has high requirements for performance indicators such as speed and reliability of motion algorithm control, signal processing and transmission. Therefore, the fully automatic placement system has strict requirements on its core motion control card. At present, the motion control card design that cannot take into account both high speed and high reliability is the main problem in the existing technology, and it is also one of the important bottlenecks restricting the development of domestic surface mount technology. Moreover, the existing planar motion control methods for fully automatic surface mount systems cannot reflect the motion state of the controlled device in real time, that is to say, the instructions sent by the host computer cannot be adjusted in real time according to the motion state of the controlled device, so that the controlled device The control device completes the corresponding action.

发明内容Contents of the invention

本发明是为了解决现有的全自动表面贴装系统的控制卡传输速度慢、可靠性低和精度低的问题,也是为了解决现有的平面运动控制方法不能实时反映被控装置运动状态的问题。现提供面向全自动表面贴装系统的二轴平面运动控制卡及二轴平面运动控制方法。The present invention aims to solve the problems of slow transmission speed, low reliability and low precision of the control card of the existing fully automatic surface mount system, and also to solve the problem that the existing planar motion control method cannot reflect the motion state of the controlled device in real time . A two-axis planar motion control card and a two-axis planar motion control method for fully automatic surface mount systems are now provided.

面向全自动表面贴装系统的二轴平面运动控制卡,它包括:总线接口电路、CPLD模块、DSP模块、SRAM缓存模块和下层接口电路;Two-axis planar motion control card for fully automatic surface mount system, which includes: bus interface circuit, CPLD module, DSP module, SRAM cache module and lower interface circuit;

总线接口电路的地址信号输入端连接CPLD模块地址输出端;总线接口电路的数据信号输入输出端连接CPLD模块的数据信号输出输入端;The address signal input terminal of the bus interface circuit is connected to the CPLD module address output terminal; the data signal input and output terminals of the bus interface circuit are connected to the data signal output and input terminals of the CPLD module;

SRAM缓存模块的RAM访问控制信号输出端连接CPLD模块的RAM访问控制信号输入端;SRAM缓存模块的RAM数据信号输入输出端连接CPLD模块的RAM数据信号输出输入端;SRAM缓存模块的SRAM地址信号输入端连接CPLD模块的SRAM地址信号输出端;SRAM缓存模块的SRAM数据信号输入端连接CPLD模块的SRAM数据信号输出端;The RAM access control signal output terminal of the SRAM cache module is connected to the RAM access control signal input terminal of the CPLD module; the RAM data signal input and output terminals of the SRAM cache module are connected to the RAM data signal output and input terminals of the CPLD module; the SRAM address signal input of the SRAM cache module Connect the SRAM address signal output end of the CPLD module; the SRAM data signal input end of the SRAM cache module is connected to the SRAM data signal output end of the CPLD module;

CPLD模块的外设使能信号输出端连接DSP模块的外设使能信号输入端;CPLD模块的处理器控制信号输入端连接DSP模块的处理器控制信号输出端;CPLD模块的码盘反馈信号输入端连接下层接口电路的码盘反馈信号输出端;CPLD模块的开关状态信号输入端连接下层接口电路的开关状态信号输出端;CPLD模块的PWM信号输入端连接下层接口电路的PWM信号输入端;CPLD模块的脉冲信号输出端DSP模块的脉冲信号输入端;DSP模块的脉冲信号输出端连接下层接口电路的脉冲信号输入端。The peripheral enable signal output end of the CPLD module is connected to the peripheral enable signal input end of the DSP module; the processor control signal input end of the CPLD module is connected to the processor control signal output end of the DSP module; the code disk feedback signal input of the CPLD module The terminal is connected to the code disc feedback signal output end of the lower layer interface circuit; the switch state signal input end of the CPLD module is connected to the switch state signal output end of the lower layer interface circuit; the PWM signal input end of the CPLD module is connected to the PWM signal input end of the lower layer interface circuit; CPLD The pulse signal output terminal of the module is the pulse signal input terminal of the DSP module; the pulse signal output terminal of the DSP module is connected to the pulse signal input terminal of the lower interface circuit.

CPLD模块包括RAM访问控制模块、地址译码器、数据交换锁存器、脉冲指令生成器、外设访问控制模块、码盘反馈输入模块、开关状态输入模块、PWM输入模块和脉冲输出模块;CPLD module includes RAM access control module, address decoder, data exchange latch, pulse command generator, peripheral access control module, code disc feedback input module, switch state input module, PWM input module and pulse output module;

RAM访问控制模块用于将RAM访问控制信号输出至SRAM缓存模块;The RAM access control module is used to output the RAM access control signal to the SRAM cache module;

所述地址译码器用于对总线接口电路的地址信号进行解析;所述地址译码器还用于将接收的地址信号分别输出至RAM访问控制模块和外设访问控制模块;The address decoder is used to analyze the address signal of the bus interface circuit; the address decoder is also used to output the received address signal to the RAM access control module and the peripheral access control module respectively;

所述数据交换锁存器用于存储总线接口电路的数据信号,还用于存储DSP模块输出的DSP控制信号、码盘反馈输入模块输出的码盘反馈信号、开关状态输入模块输出的开关状态信号、PWM输入模块的PWM信号;还用于输出脉冲指令至脉冲指令生成器;The data exchange latch is used for storing the data signal of the bus interface circuit, and is also used for storing the DSP control signal output by the DSP module, the code disc feedback signal output by the code disc feedback input module, the switch status signal output by the switch status input module, The PWM signal of the PWM input module; it is also used to output the pulse command to the pulse command generator;

所述脉冲指令生成器用于输出脉冲指令至脉冲输出模块;The pulse command generator is used to output the pulse command to the pulse output module;

外设访问控制模块用于将地址译码器输出的外设地址信号输出至DSP模块;The peripheral access control module is used to output the peripheral address signal output by the address decoder to the DSP module;

所述码盘反馈输入模块用于读取下层接口电路输出的码盘反馈信号;The code disc feedback input module is used to read the code disc feedback signal output by the lower layer interface circuit;

所述开关状态输入模块用于读取下层接口电路输出的开关状态信号;The switch state input module is used to read the switch state signal output by the lower layer interface circuit;

所述PWM输入模块用于读取下层接口电路输出的PWM信号;The PWM input module is used to read the PWM signal output by the lower layer interface circuit;

所述脉冲输出模块用于将脉冲指令输出至DSP模块,再由DSP模块将该脉冲指令发送至下层接口电路。The pulse output module is used to output the pulse command to the DSP module, and then the DSP module sends the pulse command to the lower layer interface circuit.

面向全自动表面贴装系统的二轴平面运动控制方法,该方法具体步骤如下:A two-axis planar motion control method for a fully automatic surface mount system, the specific steps of the method are as follows:

步骤一、上位机通过总线接口电路向CPLD模块发送控制信号,所述CPLD模块的数据交换锁存器接收该控制信号,并将该控制信号发送至SRAM缓存模块,SRAM缓存模块将所述控制信号发送至DSP模块;DSP模块启动定时器中断或外部中断,若是定时器中断,则执行步骤二;若是外部中断,则执行步骤三;Step 1, the host computer sends a control signal to the CPLD module through the bus interface circuit, the data exchange latch of the CPLD module receives the control signal, and sends the control signal to the SRAM cache module, and the SRAM cache module transmits the control signal Send to the DSP module; the DSP module starts a timer interrupt or an external interrupt, if it is a timer interrupt, then perform step 2; if it is an external interrupt, then perform step 3;

步骤二、定时器中断启动,DSP模块发送所述控制信号至CPLD模块的数据交换锁存器,数据交换锁存器发送脉冲信号至脉冲指令生成器,所述脉冲指令生成器输出脉冲信号至脉冲输出模块,脉冲输出模块输出脉冲信号至DSP模块,再由DSP模块将该脉冲信号发送至下层接口电路,下层接口电路将所述脉冲信号输出至光电隔离,然后通过电机驱动器驱动电机运动;Step 2, the timer interrupt starts, the DSP module sends the control signal to the data exchange latch of the CPLD module, and the data exchange latch sends the pulse signal to the pulse command generator, and the pulse command generator outputs the pulse signal to the pulse command generator The output module, the pulse output module outputs the pulse signal to the DSP module, and then the DSP module sends the pulse signal to the lower interface circuit, and the lower interface circuit outputs the pulse signal to the photoelectric isolation, and then drives the motor to move through the motor driver;

步骤三、外部中断启动,表明上位机重新通过总线接口电路向CPLD模块发送控制信号,所述CPLD模块的数据交换锁存器接收该控制信号,并将该控制信号发送至SRAM缓存模块,SRAM缓存模块将所述控制信号发送至DSP模块,DSP模块将上位机重新发送的控制信号发送至CPLD模块的数据交换锁存器,数据交换锁存器发送脉冲信号至脉冲指令生成器,所述脉冲指令生成器输出脉冲信号至脉冲输出模块,脉冲输出模块输出脉冲信号至DSP模块,再由DSP模块将该脉冲信号发送至下层接口电路,下层接口电路将所述脉冲信号输出至光电隔离,然后通过电机驱动器驱动电机运动。Step 3, the external interrupt starts, indicating that the host computer sends a control signal to the CPLD module through the bus interface circuit again, and the data exchange latch of the CPLD module receives the control signal, and sends the control signal to the SRAM cache module, and the SRAM cache The module sends the control signal to the DSP module, and the DSP module sends the control signal resent by the host computer to the data exchange latch of the CPLD module, and the data exchange latch sends a pulse signal to the pulse command generator, and the pulse command The generator outputs the pulse signal to the pulse output module, the pulse output module outputs the pulse signal to the DSP module, and then the DSP module sends the pulse signal to the lower interface circuit, and the lower interface circuit outputs the pulse signal to the photoelectric isolation, and then through the motor The driver drives the motor to move.

步骤四、下层接口电路将电机的运动状态发送至CPLD模块,CPLD模块通过码盘反馈输入模块、开关状态输入模块和PWM输入模块分别将码盘反馈信号、开关状态信号和PWM信号发送至数据交换锁存器,数据交换锁存器将所述码盘反馈信号、开关状态信号和PWM信号存入SRAM缓存模块;同时数据交换锁存器通过总线接口电路将码盘反馈信号、开关状态信号和PWM信号发送至上位机,供上位机读取;Step 4. The lower layer interface circuit sends the motion state of the motor to the CPLD module, and the CPLD module sends the code disk feedback signal, switch state signal and PWM signal to the data exchange through the code disk feedback input module, switch state input module and PWM input module respectively. The latch, the data exchange latch stores the code disc feedback signal, the switch state signal and the PWM signal into the SRAM cache module; at the same time, the data exchange latch transfers the code disc feedback signal, the switch state signal and the PWM signal through the bus interface circuit The signal is sent to the host computer for reading by the host computer;

步骤五、上位机根据读取的码盘反馈信号、开关状态信号和PWM信号判断电机的运动状态,并重新发送电机控制指令,重复步骤一。Step 5. The upper computer judges the motion state of the motor according to the read code disc feedback signal, switch state signal and PWM signal, and resends the motor control command, and repeats step 1.

本发明适用于表面贴装机、贴插机及其类似产品。The invention is suitable for surface mounting machines, placement and insertion machines and similar products.

本发明所述的面向全自动表面贴装系统的二轴平面运动控制卡,包括总线接口电路、CPLD模块、DSP模块、SRAM缓存模块和下层接口电路,SRAM缓存模块,用于支持大容量的数据存储,可实现DMA传输功能,大大提高了大规模数据传输的速度,相比现有的全自动表面贴装系统的控制卡,传输速度提高了50%以上。在DSP模块内部嵌入的软件采用了同步算法和速度规划算法,同步算法能够使得同轴的两部电机达到高度同步,使本发明的误差达到微米级,精度提高了30%以上;速度规划算法能够使得电机运动平滑流畅,电机动作速度快,且电机在停止时更加稳定,可靠性高,相比现有的全自动表面贴装系统的控制卡,可靠性提高了40%以上。本发明所述的二轴平面运动控制方法,实时地反映了被控装置的运动状态,根据被控装置的运动状态,实时调整上位机发送的指令。The two-axis planar motion control card for the automatic surface mount system of the present invention includes a bus interface circuit, a CPLD module, a DSP module, an SRAM cache module and a lower layer interface circuit, and the SRAM cache module is used to support large-capacity data Storage can realize DMA transmission function, which greatly improves the speed of large-scale data transmission. Compared with the control card of the existing automatic surface mount system, the transmission speed has increased by more than 50%. The software embedded in the DSP module adopts a synchronization algorithm and a speed planning algorithm. The synchronization algorithm can make the two coaxial motors reach a high degree of synchronization, so that the error of the present invention can reach the micron level, and the accuracy is improved by more than 30%; the speed planning algorithm can The motor moves smoothly, the motor moves fast, and the motor is more stable when it stops, and the reliability is high. Compared with the control card of the existing automatic surface mount system, the reliability is increased by more than 40%. The two-axis planar motion control method of the present invention reflects the motion state of the controlled device in real time, and adjusts the instructions sent by the upper computer in real time according to the motion state of the controlled device.

附图说明Description of drawings

图1是面向全自动表面贴装系统的二轴平面运动控制卡的电气原理示意图;Figure 1 is a schematic diagram of the electrical principle of a two-axis planar motion control card for a fully automatic surface mount system;

图2是面向全自动表面贴装系统的二轴平面运动控制卡的DSP模块的电气原理示意图;Figure 2 is a schematic diagram of the electrical principle of the DSP module of the two-axis planar motion control card for a fully automatic surface mount system;

图3是DSP模块的工作过程流程图;Fig. 3 is the working process flowchart of DSP module;

图4是DSP模块的工作过程中的中断过程流程图。Fig. 4 is a flow chart of the interruption process during the working process of the DSP module.

具体实施方式detailed description

具体实施方式一:参照图1具体说明本实施方式,本实施方式所述的面向全自动表面贴装系统的二轴平面运动控制卡,它包括:总线接口电路1、CPLD模块2、DSP模块3、SRAM缓存模块4和下层接口电路5;Specific embodiment one: this embodiment is specifically described with reference to Fig. 1, and the two-axis planar motion control card facing the automatic surface mount system described in this embodiment includes: bus interface circuit 1, CPLD module 2, DSP module 3 , SRAM cache module 4 and lower layer interface circuit 5;

总线接口电路1的地址信号输入端连接CPLD模块2地址输出端;总线接口电路1的数据信号输入输出端连接CPLD模块2的数据信号输出输入端;The address signal input terminal of the bus interface circuit 1 is connected to the CPLD module 2 address output terminals; the data signal input and output terminals of the bus interface circuit 1 are connected to the data signal output and input terminals of the CPLD module 2;

SRAM缓存模块4的RAM访问控制信号输出端连接CPLD模块2的RAM访问控制信号输入端;SRAM缓存模块4的RAM数据信号输入输出端连接CPLD模块2的RAM数据信号输出输入端;SRAM缓存模块4的SRAM地址信号输入端连接CPLD模块2的SRAM地址信号输出端;SRAM缓存模块4的SRAM数据信号输入端连接CPLD模块2的SRAM数据信号输出端;The RAM access control signal output end of the SRAM buffer module 4 is connected to the RAM access control signal input end of the CPLD module 2; the RAM data signal input and output ends of the SRAM buffer module 4 are connected to the RAM data signal output and input ends of the CPLD module 2; the SRAM buffer module 4 The SRAM address signal input end of the SRAM address signal is connected to the SRAM address signal output end of the CPLD module 2; the SRAM data signal input end of the SRAM cache module 4 is connected to the SRAM data signal output end of the CPLD module 2;

CPLD模块2的外设使能信号输出端连接DSP模块3的外设使能信号输入端;CPLD模块2的处理器控制信号输入端连接DSP模块3的处理器控制信号输出端;CPLD模块2的码盘反馈信号输入端连接下层接口电路5的码盘反馈信号输出端;CPLD模块2的开关状态信号输入端连接下层接口电路5的开关状态信号输出端;CPLD模块2的PWM信号输入端连接下层接口电路5的PWM信号输入端;CPLD模块2的脉冲信号输出端连接DSP模块3的脉冲信号输入端;DSP模块3的脉冲信号输出端连接下层接口电路5的脉冲信号输入端。The peripheral hardware enable signal output end of CPLD module 2 connects the peripheral hardware enable signal input end of DSP module 3; The processor control signal input end of CPLD module 2 connects the processor control signal output end of DSP module 3; CPLD module 2 The code disc feedback signal input end is connected to the code disc feedback signal output end of the lower layer interface circuit 5; the switch state signal input end of the CPLD module 2 is connected to the switch state signal output end of the lower layer interface circuit 5; the PWM signal input end of the CPLD module 2 is connected to the lower layer The PWM signal input end of the interface circuit 5; the pulse signal output end of the CPLD module 2 is connected to the pulse signal input end of the DSP module 3; the pulse signal output end of the DSP module 3 is connected to the pulse signal input end of the lower layer interface circuit 5.

原理说明:上位机通过总线接口电路与CPLD模块进行数据交换。Principle description: The host computer exchanges data with the CPLD module through the bus interface circuit.

CPLD模块将上位机发送的指令数据送至脉冲指令生成器;脉冲指令生成器生成用于驱动电机运动的脉冲信号,并通过脉冲输出模块将该脉冲信号发送至DSP模块3;DSP模块3再通过下层接口电路完成与电机之间的数据传输,使电机根据上位机的控制指令完成相应的动作。The CPLD module sends the command data sent by the host computer to the pulse command generator; the pulse command generator generates a pulse signal for driving the motor, and sends the pulse signal to the DSP module 3 through the pulse output module; the DSP module 3 then passes The lower layer interface circuit completes the data transmission with the motor, so that the motor completes the corresponding action according to the control command of the upper computer.

DSP模块是面向全自动表面贴装系统的二轴平面运动控制卡的控制核心,其核心程序用于控制全自动表面贴装系统平面运动的工作状态,使得贴装头能够按照预定的流程实现相应的功能,并提供了各种出错情况下的提示报警和错误处理机制。The DSP module is the control core of the two-axis planar motion control card for the fully automatic surface mount system. Its core program is used to control the working state of the planar motion of the fully automatic surface mount system, so that the placement head can realize the corresponding according to the predetermined process. functions, and provides prompt alarms and error handling mechanisms in various error situations.

SRAM缓存模块是面向全自动表面贴装系统的二轴平面运动控制卡的重要组成部分,除了完成基本的数据存储功能外,还提供数据传输的缓存功能,平衡上位机和DSP模块之间的数据传输;此外,SRAM缓存模块还可实现DMA数据传输,大大提高数据传输效率。The SRAM cache module is an important part of the two-axis planar motion control card for fully automatic surface mount systems. In addition to completing the basic data storage function, it also provides the cache function of data transmission and balances the data between the host computer and the DSP module. In addition, the SRAM cache module can also realize DMA data transmission, which greatly improves the efficiency of data transmission.

具体实施方式二:参照图1和图2具体说明本实施方式,本实施方式是对具体实施方式一所述的面向全自动表面贴装系统的二轴平面运动控制卡作进一步说明,本实施方式中,Specific Embodiment 2: This embodiment will be described in detail with reference to Fig. 1 and Fig. 2. This embodiment is a further description of the two-axis planar motion control card for fully automatic surface mount system described in Specific Embodiment 1. This embodiment middle,

CPLD模块2包括RAM访问控制模块2-1、地址译码器2-2、数据交换锁存器2-3、脉冲指令生成器2-4、外设访问控制模块2-5、码盘反馈输入模块2-6、开关状态输入模块2-7、PWM输入模块2-8和脉冲输出模块2-9;CPLD module 2 includes RAM access control module 2-1, address decoder 2-2, data exchange latch 2-3, pulse instruction generator 2-4, peripheral access control module 2-5, code disk feedback input Module 2-6, switch state input module 2-7, PWM input module 2-8 and pulse output module 2-9;

RAM访问控制模块2-1用于将RAM访问控制信号输出至SRAM缓存模块4;The RAM access control module 2-1 is used to output the RAM access control signal to the SRAM cache module 4;

所述地址译码器2-2用于对总线接口电路1的地址信号进行解析;所述地址译码器2-2还用于将接收的地址信号分别输出至RAM访问控制模块2-1和外设访问控制模块2-5;The address decoder 2-2 is used to analyze the address signal of the bus interface circuit 1; the address decoder 2-2 is also used to output the received address signal to the RAM access control module 2-1 and the Peripheral access control module 2-5;

所述数据交换锁存器2-3用于存储总线接口电路1的数据信号,还用于存储DSP模块3输出的DSP控制信号、码盘反馈输入模块2-6输出的码盘反馈信号、开关状态输入模块2-7输出的开关状态信号、PWM输入模块2-8的PWM信号;还用于输出脉冲指令至脉冲指令生成器2-4;The data exchange latch 2-3 is used to store the data signal of the bus interface circuit 1, and is also used to store the DSP control signal output by the DSP module 3, the code wheel feedback signal output by the code wheel feedback input module 2-6, and the switch The switch state signal output by the state input module 2-7, the PWM signal of the PWM input module 2-8; it is also used to output the pulse command to the pulse command generator 2-4;

所述脉冲指令生成器2-4用于输出脉冲指令至脉冲输出模块2-9;The pulse command generator 2-4 is used to output the pulse command to the pulse output module 2-9;

外设访问控制模块2-5用于将地址译码器2-2输出的外设地址信号输出至DSP模块3;The peripheral access control module 2-5 is used to output the peripheral address signal output by the address decoder 2-2 to the DSP module 3;

所述码盘反馈输入模块2-6用于读取下层接口电路5输出的码盘反馈信号;The code disc feedback input module 2-6 is used to read the code disc feedback signal output by the lower layer interface circuit 5;

所述开关状态输入模块2-7用于读取下层接口电路5输出的开关状态信号;The switch state input module 2-7 is used to read the switch state signal output by the lower layer interface circuit 5;

所述PWM输入模块2-8用于读取下层接口电路5输出的PWM信号;The PWM input module 2-8 is used to read the PWM signal output by the lower layer interface circuit 5;

所述脉冲输出模块2-9用于将脉冲指令输出至DSP模块3,再由DSP模块3将该脉冲指令发送至下层接口电路5。The pulse output module 2-9 is used to output the pulse command to the DSP module 3, and then the DSP module 3 sends the pulse command to the lower interface circuit 5.

原理:地址译码器将上位机发送的地址信息进行译码处理,使板卡上的相应功能模块和外设处于选中状态。数据交换锁存器用来完成上位机和DSP之间的数据交换,并将反馈信息传送给上位机。数据交换锁存器模块能够调度控制信号的传送方向,完成上位机与总线接口电路DSP模块之间的数据交换。外设访问控制模块用于实现完成外设访问的操作时序。RAM访问控制模块用于完成RAM芯片的操作时序。脉冲生成器根据上位机的命令,通过规划算法做出速度规划,生成控制电机的脉冲信号,输出到电机驱动器。码盘反馈信号、PWM信号和开关状态信号都通过数据交换锁存器被上位机读取。Principle: The address decoder decodes the address information sent by the host computer, so that the corresponding functional modules and peripherals on the board are in the selected state. The data exchange latch is used to complete the data exchange between the host computer and DSP, and transmit the feedback information to the host computer. The data exchange latch module can schedule the transmission direction of the control signal and complete the data exchange between the upper computer and the DSP module of the bus interface circuit. The peripheral hardware access control module is used to realize the operation timing of peripheral hardware access. The RAM access control module is used to complete the operation sequence of the RAM chip. According to the command of the host computer, the pulse generator makes speed planning through the planning algorithm, generates the pulse signal for controlling the motor, and outputs it to the motor driver. The code disc feedback signal, PWM signal and switch state signal are all read by the host computer through the data exchange latch.

具体实施方式三:本实施所述的面向全自动表面贴装系统的二轴平面运动控制方法,该方法具体步骤如下:Specific implementation mode three: the two-axis planar motion control method for the fully automatic surface mount system described in this implementation, the specific steps of the method are as follows:

步骤一、上位机通过总线接口电路1向CPLD模块2发送控制信号,所述CPLD模块2的数据交换锁存器2-3接收该控制信号,并将该控制信号发送至SRAM缓存模块4,SRAM缓存模块4将所述控制信号发送至DSP模块3;DSP模块3启动定时器中断或外部中断,若是定时器中断,则执行步骤二;若是外部中断,则执行步骤三;Step 1, host computer sends control signal to CPLD module 2 through bus interface circuit 1, and the data exchange latch 2-3 of described CPLD module 2 receives this control signal, and this control signal is sent to SRAM cache module 4, SRAM The cache module 4 sends the control signal to the DSP module 3; the DSP module 3 starts a timer interrupt or an external interrupt, if the timer is interrupted, then perform step 2; if it is an external interrupt, then perform step 3;

步骤二、定时器中断启动,DSP模块3发送所述控制信号至CPLD模块2的数据交换锁存器2-3,数据交换锁存器2-3发送脉冲信号至脉冲指令生成器2-4,所述脉冲指令生成器2-4输出脉冲信号至脉冲输出模块2-9,脉冲输出模块2-9输出脉冲信号至DSP模块3,再由DSP模块3将该脉冲信号发送至下层接口电路5,下层接口电路5将所述脉冲信号输出至光电隔离,然后通过电机驱动器驱动电机运动;Step 2, timer interrupt start, DSP module 3 sends described control signal to the data exchange latch 2-3 of CPLD module 2, and data exchange latch 2-3 sends pulse signal to pulse instruction generator 2-4, The pulse command generator 2-4 output pulse signal to the pulse output module 2-9, the pulse output module 2-9 output pulse signal to the DSP module 3, then the pulse signal is sent to the lower layer interface circuit 5 by the DSP module 3, The lower layer interface circuit 5 outputs the pulse signal to the photoelectric isolation, and then drives the motor to move through the motor driver;

步骤三、外部中断启动,表明上位机重新通过总线接口电路1向CPLD模块2发送控制信号,所述CPLD模块2的数据交换锁存器2-3接收该控制信号,并将该控制信号发送至SRAM缓存模块4,SRAM缓存模块4将所述控制信号发送至DSP模块3,DSP模块3将上位机重新发送的控制信号发送至CPLD模块2的数据交换锁存器2-3,数据交换锁存器2-3发送脉冲信号至脉冲指令生成器2-4,所述脉冲指令生成器2-4输出脉冲信号至脉冲输出模块2-9,脉冲输出模块2-9输出脉冲信号至DSP模块3,再由DSP模块3将该脉冲信号发送至下层接口电路5,下层接口电路5将所述脉冲信号输出至光电隔离,然后通过电机驱动器驱动电机运动。Step 3, external interrupt starts, shows that host computer sends control signal to CPLD module 2 again by bus interface circuit 1, and the data exchange latch 2-3 of described CPLD module 2 receives this control signal, and this control signal is sent to SRAM cache module 4, SRAM cache module 4 sends the control signal to DSP module 3, and DSP module 3 sends the control signal resent by the host computer to the data exchange latch 2-3 of CPLD module 2, and the data exchange latch The device 2-3 sends the pulse signal to the pulse command generator 2-4, and the pulse command generator 2-4 outputs the pulse signal to the pulse output module 2-9, and the pulse output module 2-9 outputs the pulse signal to the DSP module 3, Then the DSP module 3 sends the pulse signal to the lower layer interface circuit 5, and the lower layer interface circuit 5 outputs the pulse signal to the photoelectric isolation, and then drives the motor to move through the motor driver.

步骤四、下层接口电路5将电机的运动状态发送至CPLD模块2,CPLD模块2通过码盘反馈输入模块2-6、开关状态输入模块2-7和PWM输入模块2-8分别将码盘反馈信号、开关状态信号和PWM信号发送至数据交换锁存器2-3,数据交换锁存器2-3将所述码盘反馈信号、开关状态信号和PWM信号存入SRAM缓存模块;同时数据交换锁存器2-3通过总线接口电路将码盘反馈信号、开关状态信号和PWM信号发送至上位机,供上位机读取;Step 4, the lower layer interface circuit 5 sends the motion state of the motor to the CPLD module 2, and the CPLD module 2 feeds back the code disk through the code disk feedback input module 2-6, the switch state input module 2-7 and the PWM input module 2-8 respectively. signal, switch state signal and PWM signal are sent to the data exchange latch 2-3, and the data exchange latch 2-3 stores the code disc feedback signal, switch state signal and PWM signal into the SRAM buffer module; data exchange The latch 2-3 sends the code disc feedback signal, switch status signal and PWM signal to the host computer through the bus interface circuit for the host computer to read;

步骤五、上位机根据读取的码盘反馈信号、开关状态信号和PWM信号判断电机的运动状态,并重新发送电机控制指令,重复步骤一。Step 5. The upper computer judges the motion state of the motor according to the read code disc feedback signal, switch state signal and PWM signal, and resends the motor control command, and repeats step 1.

具体实施方式四:参照图3具体说明本实施方式,本实施方式是为了说明DSP模块的工作过程,其工作过程的步骤如下;Specific embodiment four: this embodiment is specifically described with reference to Fig. 3, and this embodiment is in order to explain the work process of DSP module, and the step of its work process is as follows;

步骤一、初始化系统资源,执行步骤三;Step 1. Initialize system resources and execute Step 3;

步骤二、初始化GPIO、事件管理器和看门狗;Step 2. Initialize GPIO, event manager and watchdog;

步骤三、清空RAM,然后执行步骤五;Step 3. Clear the RAM, and then perform step 5;

步骤四、首次读取驱动器状态;Step 4. Read the drive status for the first time;

步骤五、设置中断;Step 5, set interrupt;

步骤六、设置看门狗;Step 6. Set the watchdog;

步骤七、等待触发外部中断。Step 7. Wait for an external interrupt to be triggered.

具体实施方式五:参照图4具体说明本实施方式,本实施方式是为了说明DSP模块的工作过程中的中断过程,所述中断过程步骤如下:Specific embodiment five: the present embodiment is specifically described with reference to Fig. 4, and present embodiment is in order to illustrate the interruption process in the work process of DSP module, and described interruption process step is as follows:

步骤A1、进入中断过程,判断是否是定时器中断,若是,则执行步骤A2,若否,则执行步骤A10;Step A1, enter the interrupt process, judge whether it is a timer interrupt, if so, then execute step A2, if not, then execute step A10;

步骤A2、读取磁栅尺状态;Step A2, read the state of the magnetic scale;

步骤A3、DSP自检是否出现故障信息,且DSP判断上位机对电机的控制指令是否执行完毕,若DSP自检出现故障信息,无论上位机对电机的控制指令是否执行完毕,都执行步骤A4;Step A3, whether there is a fault message in the DSP self-test, and the DSP judges whether the execution of the control command to the motor by the host computer is completed. If a fault message appears in the DSP self-test, no matter whether the execution of the control command to the motor by the host computer is completed, step A4 is executed;

若DSP自检未出现故障信息,且上位机对电机的控制指令执行完毕,则执行步骤A5;若DSP自检未出现故障信息,上位机对电机的控制指令未执行完毕,则继续等待,直至上位机对电机的控制指令执行完毕,执行步骤A5;If there is no fault information in the DSP self-test, and the host computer has completed the execution of the motor control command, then perform step A5; After the host computer completes the execution of the motor control command, execute step A5;

步骤A4、故障状态置位,然后执行步骤A6;Step A4, set the fault state, and then execute step A6;

步骤A5、电机完成上位机对电机的控制指令的相关动作;Step A5, the motor completes the relevant actions of the control command of the host computer to the motor;

步骤A6、DSP中电机标志位置故障状态,然后执行步骤A7;Step A6, motor mark position fault state in DSP, then execute step A7;

步骤A7、停止电机,然后执行步骤A8;Step A7, stop the motor, and then perform step A8;

步骤A8、检测并报告故障信息,然后执行步骤A9;Step A8, detecting and reporting fault information, and then performing step A9;

步骤A9、清看门狗,结束;Step A9, clear watchdog, end;

步骤A10、判断是否是外部中断,若是,则执行步骤A11,若否,则执行步骤A20;Step A10, judging whether it is an external interrupt, if yes, execute step A11, if not, execute step A20;

步骤A11、读取指令;Step A11, reading instructions;

步骤A12、判断是否是位置指令,若是,则执行位置指令,若否,则执行步骤13;Step A12, judging whether it is a position command, if yes, then execute the position command, if not, then perform step 13;

步骤A13、判断是否是位置复位指令,若是,则电机回至原点,若否,则执行步骤A14;Step A13, judging whether it is a position reset command, if yes, then the motor returns to the origin, if not, then execute step A14;

步骤A14、判断是否是寄存器复位指令,若是,则清空并复位所有的寄存器,若否,则执行步骤A15;Step A14, judging whether it is a register reset command, if yes, clear and reset all registers, if not, then execute step A15;

步骤A15、判断是否是传感器清零指令,若是,则清空传感器数值,若否,则执行步骤A16;Step A15, judging whether it is a sensor clearing instruction, if yes, then clear the sensor value, if not, then execute step A16;

步骤A16、判断是否是紧急停止指令,若是,则停止电机运行,若否,则执行步骤A17;Step A16, judging whether it is an emergency stop command, if yes, stop the motor, if not, then execute step A17;

步骤A17、判断是否是RAM读写指令,若是,则打开RAM都系使能,若否,则执行步骤A18、Step A17, judge whether it is a RAM read and write command, if so, open the RAM and enable it, if not, then perform step A18,

步骤A18、判断是否时读写寄存器参数指令,若是,则读写寄存器参数,若否,则结束。Step A18, judging whether it is an instruction to read and write register parameters, if yes, read and write register parameters, and if not, end.

原理:DSP模块的工作过程中,首先进行初始化操作并打开系统中断,然后中断服务程序工作。通过中断服务程序完成上位机对电机的控制。Principle: During the working process of the DSP module, the initialization operation is first performed and the system interrupt is turned on, and then the interrupt service routine works. The control of the host computer to the motor is completed through the interrupt service program.

DSP模块的中断过程包括外部中断和定时器中断。进入中断服务程序后,通过中断标志判断进入定时器中断服务程序还是进入外部中断服务程序。The interrupt process of DSP module includes external interrupt and timer interrupt. After entering the interrupt service routine, judge whether to enter the timer interrupt service routine or enter the external interrupt service routine through the interrupt flag.

若中断标志标明进入的是定时器中断服务程序,表明此时上位机没有送入新的程序指令,DSP模块根据当前命令,决定DSP模块继续要执行的动作。If the interrupt flag indicates that the timer interrupt service program is entered, it means that the host computer has not sent new program instructions at this time, and the DSP module determines the actions to be performed by the DSP module according to the current command.

若中断标志标明进入的是外部中断服务程序,表明上位机已经下发了新的程序指令。根据不同的指令,DSP模块设置相应的寄存器,并启动相应的外设,执行相应的操作。If the interrupt flag indicates that it is an external interrupt service program, it indicates that the host computer has issued a new program instruction. According to different instructions, the DSP module sets the corresponding registers, and starts the corresponding peripherals to perform corresponding operations.

本发明所述的面向全自动表面贴装系统的二轴平面运动控制卡及二轴平面运动控制方法能完成RAM缓存的读写、生成电机控制脉冲指令和获取外设的状态反馈。表面贴装系统的平面运动的所有指令都是在这些基本指令的基础上完成的。The two-axis planar motion control card and the two-axis planar motion control method for the automatic surface mounting system of the present invention can complete the reading and writing of RAM cache, generate motor control pulse commands and obtain state feedback of peripherals. All the instructions of the planar motion of the surface mount system are completed on the basis of these basic instructions.

RAM缓存的读写。RAM缓存用于临时存储有关的控制数据,为上位机和设备端口之间的通信提供了高速可靠的传输方式。RAM cache read and write. The RAM cache is used to temporarily store relevant control data, and provides a high-speed and reliable transmission method for the communication between the host computer and the device port.

生成电机控制脉冲指令。运动控制板卡的主要功能就是电机控制,能够根据上位机指令生成相应的控制脉冲序列,并通过速度规划算法对脉冲的频率和相位进行控制,实现电机的平滑控制,在高速、高精度运动的基础上,减少对机械结构的冲击。Generate motor control pulse commands. The main function of the motion control board is motor control, which can generate corresponding control pulse sequences according to the instructions of the host computer, and control the frequency and phase of the pulses through the speed planning algorithm to achieve smooth control of the motor. Basically, reduce the impact on the mechanical structure.

获取外设的状态反馈。运动控制卡通过外设信号接口可获得码盘信号、PWM信号、开关状态信号的反馈输入,使得上位机能够实时地获得贴片装置的运行状态。Get status feedback from peripherals. The motion control card can obtain the feedback input of the code disc signal, PWM signal, and switch state signal through the peripheral signal interface, so that the host computer can obtain the running state of the placement device in real time.

Claims (3)

1.面向全自动表面贴装系统的二轴平面运动控制卡,其特征在于,它包括:总线接口电路(1)、CPLD模块(2)、DSP模块(3)、SRAM缓存模块(4)和下层接口电路(5);1. The two-axis planar motion control card facing the full-automatic surface mount system is characterized in that it includes: bus interface circuit (1), CPLD module (2), DSP module (3), SRAM cache module (4) and Lower layer interface circuit (5); 总线接口电路(1)的地址信号输入端连接CPLD模块(2)地址输出端;总线接口电路(1)的数据信号输入输出端连接CPLD模块(2)的数据信号输出输入端;The address signal input end of the bus interface circuit (1) is connected to the CPLD module (2) address output end; the data signal input and output end of the bus interface circuit (1) is connected to the data signal output and input end of the CPLD module (2); SRAM缓存模块(4)的RAM访问控制信号输出端连接CPLD模块(2)的RAM访问控制信号输入端;SRAM缓存模块(4)的RAM数据信号输入输出端连接CPLD模块(2)的RAM数据信号输出输入端;SRAM缓存模块(4)的SRAM地址信号输入端连接CPLD模块(2)的SRAM地址信号输出端;SRAM缓存模块(4)的SRAM数据信号输入端连接CPLD模块(2)的SRAM数据信号输出端;The RAM access control signal output end of the SRAM buffer module (4) is connected to the RAM access control signal input end of the CPLD module (2); the RAM data signal input and output ends of the SRAM buffer module (4) are connected to the RAM data signal of the CPLD module (2). Output and input terminals; the SRAM address signal input terminal of the SRAM cache module (4) is connected to the SRAM address signal output terminal of the CPLD module (2); the SRAM data signal input terminal of the SRAM cache module (4) is connected to the SRAM data of the CPLD module (2) signal output; CPLD模块(2)的外设使能信号输出端连接DSP模块(3)的外设使能信号输入端;CPLD模块(2)的处理器控制信号输入端连接DSP模块(3)的处理器控制信号输出端;CPLD模块(2)的码盘反馈信号输入端连接下层接口电路(5)的码盘反馈信号输出端;CPLD模块(2)的开关状态信号输入端连接下层接口电路(5)的开关状态信号输出端;CPLD模块(2)的PWM信号输入端连接下层接口电路(5)的PWM信号输入端;CPLD模块(2)的脉冲信号输出端连接DSP模块(3)的脉冲信号输入端;DSP模块(3)的脉冲信号输出端连接下层接口电路(5)的脉冲信号输入端。The peripheral hardware enable signal output end of the CPLD module (2) is connected to the peripheral hardware enable signal input end of the DSP module (3); the processor control signal input end of the CPLD module (2) is connected to the processor control of the DSP module (3) Signal output end; The code disc feedback signal input end of CPLD module (2) connects the code disc feedback signal output end of lower layer interface circuit (5); The switch state signal input end of CPLD module (2) connects lower layer interface circuit (5) The switch state signal output terminal; the PWM signal input terminal of the CPLD module (2) is connected to the PWM signal input terminal of the lower layer interface circuit (5); the pulse signal output terminal of the CPLD module (2) is connected to the pulse signal input terminal of the DSP module (3) ; The pulse signal output end of the DSP module (3) is connected to the pulse signal input end of the lower layer interface circuit (5). 2.根据权利要求1所述的面向全自动表面贴装系统的二轴平面运动控制卡,其特征在于,CPLD模块(2)包括RAM访问控制模块(2-1)、地址译码器(2-2)、数据交换锁存器(2-3)、脉冲指令生成器(2-4)、外设访问控制模块(2-5)、码盘反馈输入模块(2-6)、开关状态输入模块(2-7)、PWM输入模块(2-8)和脉冲输出模块(2-9);2. the two-axis planar motion control card facing full-automatic surface mount system according to claim 1, is characterized in that, CPLD module (2) comprises RAM access control module (2-1), address decoder (2 -2), data exchange latch (2-3), pulse command generator (2-4), peripheral access control module (2-5), code disc feedback input module (2-6), switch status input Module (2-7), PWM input module (2-8) and pulse output module (2-9); RAM访问控制模块(2-1)用于将RAM访问控制信号输出至SRAM缓存模块(4);The RAM access control module (2-1) is used to output the RAM access control signal to the SRAM cache module (4); 所述地址译码器(2-2)用于对总线接口电路(1)的地址信号进行解析;所述地址译码器(2-2)还用于将接收的地址信号分别输出至RAM访问控制模块(2-1)和外设访问控制模块(2-5);The address decoder (2-2) is used to analyze the address signal of the bus interface circuit (1); the address decoder (2-2) is also used to output the received address signal to the RAM access A control module (2-1) and a peripheral access control module (2-5); 所述数据交换锁存器(2-3)用于存储总线接口电路(1)的数据信号,还用于存储DSP模块(3)输出的DSP控制信号、码盘反馈输入模块(2-6)输出的码盘反馈信号、开关状态输入模块(2-7)输出的开关状态信号、PWM输入模块(2-8)的PWM信号;还用于输出脉冲指令至脉冲指令生成器(2-4);The data exchange latch (2-3) is used for storing the data signal of the bus interface circuit (1), and is also used for storing the DSP control signal output by the DSP module (3), the code disc feedback input module (2-6) The output code disk feedback signal, the switch state signal output by the switch state input module (2-7), the PWM signal of the PWM input module (2-8); it is also used to output the pulse command to the pulse command generator (2-4) ; 所述脉冲指令生成器(2-4)用于输出脉冲指令至脉冲输出模块(2-9);The pulse command generator (2-4) is used to output the pulse command to the pulse output module (2-9); 外设访问控制模块(2-5)用于将地址译码器(2-2)输出的外设地址信号输出至DSP模块(3);The peripheral access control module (2-5) is used to output the peripheral address signal output by the address decoder (2-2) to the DSP module (3); 所述码盘反馈输入模块(2-6)用于读取下层接口电路(5)输出的码盘反馈信号;The code disc feedback input module (2-6) is used to read the code disc feedback signal output by the lower layer interface circuit (5); 所述开关状态输入模块(2-7)用于读取下层接口电路(5)输出的开关状态信号;The switch state input module (2-7) is used to read the switch state signal output by the lower layer interface circuit (5); 所述PWM输入模块(2-8)用于读取下层接口电路(5)输出的PWM信号;The PWM input module (2-8) is used to read the PWM signal output by the lower layer interface circuit (5); 所述脉冲输出模块(2-9)用于将脉冲指令输出至DSP模块(3),再由DSP模块(3)将脉冲指令发送至下层接口电路(5)。The pulse output module (2-9) is used to output the pulse command to the DSP module (3), and then the DSP module (3) sends the pulse command to the lower layer interface circuit (5). 3.面向全自动表面贴装系统的二轴平面运动控制方法,其特征在于,该方法具体步骤如下:3. A two-axis planar motion control method for fully automatic surface mount systems, characterized in that the specific steps of the method are as follows: 步骤一、上位机通过总线接口电路(1)向CPLD模块(2)发送控制信号,所述CPLD模块(2)的数据交换锁存器(2-3)接收该控制信号,并将该控制信号发送至SRAM缓存模块(4),SRAM缓存模块(4)将所述控制信号发送至DSP模块(3);DSP模块(3)启动定时器中断或外部中断,若是定时器中断,则执行步骤二;若是外部中断,则执行步骤三;Step 1, host computer sends control signal to CPLD module (2) by bus interface circuit (1), and the data exchange latch (2-3) of described CPLD module (2) receives this control signal, and this control signal Sent to the SRAM cache module (4), the SRAM cache module (4) sends the control signal to the DSP module (3); the DSP module (3) starts a timer interrupt or an external interrupt, if the timer is interrupted, then perform step 2 ; If it is an external interrupt, execute step 3; 步骤二、定时器中断启动,DSP模块(3)发送所述控制信号至CPLD模块(2)的数据交换锁存器(2-3),数据交换锁存器(2-3)发送脉冲信号至脉冲指令生成器(2-4),所述脉冲指令生成器(2-4)输出脉冲信号至脉冲输出模块(2-9),脉冲输出模块(2-9)输出脉冲信号至DSP模块(3),再由DSP模块(3)将该脉冲信号发送至下层接口电路(5),下层接口电路(5)将所述脉冲信号输出至光电隔离,然后通过电机驱动器驱动电机运动;Step 2, timer interrupt start, DSP module (3) sends described control signal to the data exchange latch (2-3) of CPLD module (2), and data exchange latch (2-3) sends pulse signal to A pulse command generator (2-4), the pulse command generator (2-4) outputs a pulse signal to a pulse output module (2-9), and the pulse output module (2-9) outputs a pulse signal to a DSP module (3 ), then the pulse signal is sent to the lower layer interface circuit (5) by the DSP module (3), and the lower layer interface circuit (5) outputs the pulse signal to the photoelectric isolation, and then drives the motor to move by the motor driver; 步骤三、外部中断启动,表明上位机重新通过总线接口电路(1)向CPLD模块(2)发送控制信号,所述CPLD模块(2)的数据交换锁存器(2-3)接收该控制信号,并将该控制信号发送至SRAM缓存模块(4),SRAM缓存模块(4)将所述控制信号发送至DSP模块(3),DSP模块(3)将上位机重新发送的控制信号发送至CPLD模块(2)的数据交换锁存器(2-3),数据交换锁存器(2-3)发送脉冲信号至脉冲指令生成器(2-4),所述脉冲指令生成器(2-4)输出脉冲信号至脉冲输出模块(2-9),脉冲输出模块(2-9)输出脉冲信号至DSP模块(3),再由DSP模块(3)将该脉冲信号发送至下层接口电路(5),下层接口电路(5)将所述脉冲信号输出至光电隔离,然后通过电机驱动器驱动电机运动;Step 3, external interrupt starts, shows that host computer sends control signal to CPLD module (2) again by bus interface circuit (1), and the data exchange latch (2-3) of described CPLD module (2) receives this control signal , and send the control signal to the SRAM cache module (4), the SRAM cache module (4) sends the control signal to the DSP module (3), and the DSP module (3) sends the control signal resent by the host computer to the CPLD The data exchange latch (2-3) of module (2), the data exchange latch (2-3) sends pulse signal to pulse instruction generator (2-4), and described pulse instruction generator (2-4 ) output pulse signal to the pulse output module (2-9), the pulse output module (2-9) outputs the pulse signal to the DSP module (3), then the pulse signal is sent to the lower layer interface circuit (5) by the DSP module (3) ), the lower layer interface circuit (5) outputs the pulse signal to the photoelectric isolation, and then drives the motor to move through the motor driver; 步骤四、下层接口电路(5)将电机的运动状态发送至CPLD模块(2),CPLD模块(2)通过码盘反馈输入模块(2-6)、开关状态输入模块(2-7)和PWM输入模块(2-8)分别将码盘反馈信号、开关状态信号和PWM信号发送至数据交换锁存器(2-3),数据交换锁存器(2-3)将所述码盘反馈信号、开关状态信号和PWM信号存入SRAM缓存模块;同时数据交换锁存器(2-3)通过总线接口电路将码盘反馈信号、开关状态信号和PWM信号发送至上位机,供上位机读取;Step 4, the lower layer interface circuit (5) sends the motion state of the motor to the CPLD module (2), and the CPLD module (2) feeds back the input module (2-6), the switch state input module (2-7) and the PWM through the code disc The input module (2-8) sends the code disc feedback signal, the switch state signal and the PWM signal to the data exchange latch (2-3) respectively, and the data exchange latch (2-3) transmits the code disc feedback signal , switch state signal and PWM signal are stored in the SRAM cache module; at the same time, the data exchange latch (2-3) sends the code disc feedback signal, switch state signal and PWM signal to the host computer through the bus interface circuit for the host computer to read ; 步骤五、上位机根据读取的码盘反馈信号、开关状态信号和PWM信号判断电机的运动状态,并重新发送电机控制指令,重复步骤一。Step 5. The upper computer judges the motion state of the motor according to the read code disc feedback signal, switch state signal and PWM signal, and resends the motor control command, and repeats step 1.
CN201410028594.7A 2014-01-22 2014-01-22 Towards two axial plane motion control cards and the two axial plane motion control methods of full-automatic surperficial mounting system Active CN103744405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410028594.7A CN103744405B (en) 2014-01-22 2014-01-22 Towards two axial plane motion control cards and the two axial plane motion control methods of full-automatic surperficial mounting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410028594.7A CN103744405B (en) 2014-01-22 2014-01-22 Towards two axial plane motion control cards and the two axial plane motion control methods of full-automatic surperficial mounting system

Publications (2)

Publication Number Publication Date
CN103744405A CN103744405A (en) 2014-04-23
CN103744405B true CN103744405B (en) 2016-02-17

Family

ID=50501433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410028594.7A Active CN103744405B (en) 2014-01-22 2014-01-22 Towards two axial plane motion control cards and the two axial plane motion control methods of full-automatic surperficial mounting system

Country Status (1)

Country Link
CN (1) CN103744405B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01183705A (en) * 1988-01-18 1989-07-21 Yamagata Kashio Kk Electronic component mounting control method for electronic component mounting machine
CN202904319U (en) * 2012-11-21 2013-04-24 福州昌晖自动化系统有限公司 PCI bus multi-shaft motor control card developed based on CPLD
CN202995320U (en) * 2012-09-24 2013-06-12 江苏南极星科技有限公司 Control system of LED chip mounter
CN203012444U (en) * 2012-11-04 2013-06-19 西安科技大学 Mounting head motion control system for miniature chip mounter
CN203275955U (en) * 2013-04-11 2013-11-06 江苏南极星科技有限公司 Motion control system of chip mounter

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7194321B2 (en) * 2004-10-29 2007-03-20 Dynacity Technology (Hk) Limited Modular multi-axis motion control and driving system and method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01183705A (en) * 1988-01-18 1989-07-21 Yamagata Kashio Kk Electronic component mounting control method for electronic component mounting machine
CN202995320U (en) * 2012-09-24 2013-06-12 江苏南极星科技有限公司 Control system of LED chip mounter
CN203012444U (en) * 2012-11-04 2013-06-19 西安科技大学 Mounting head motion control system for miniature chip mounter
CN202904319U (en) * 2012-11-21 2013-04-24 福州昌晖自动化系统有限公司 PCI bus multi-shaft motor control card developed based on CPLD
CN203275955U (en) * 2013-04-11 2013-11-06 江苏南极星科技有限公司 Motion control system of chip mounter

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
基于DSP的贴片机的非线性自适应逆控制的研究;胡勇;《中国优秀硕士学位论文全文数据库 信息科技辑》;20071115(第5期);I135-190 *
嵌入式贴片机运动控制系统;杨鑫;《中国优秀硕士学位论文全文数据库 信息科技辑》;20081015(第10期);I140-276 *
贴片机运动控制系统的硬件设计;张识超 等;《机械工程师》;20131231(第11期);第112-115页 *

Also Published As

Publication number Publication date
CN103744405A (en) 2014-04-23

Similar Documents

Publication Publication Date Title
JP6032510B2 (en) Recovering after an I/O error containment event
US8166349B2 (en) Communicating with USB devices after a computer system crash
US20140068350A1 (en) Self-checking system and method using same
EP3985512A1 (en) Robust hardware/software error recovery system
CN114691578B (en) A high performance serial communication method, system, medium, device and terminal
CN103077140A (en) Communication method and communication device for motion control card of robot and host
JP4429331B2 (en) Mode setting method in hot plug of PCI device and system having PCI bus
US9377966B2 (en) Method and apparatus for efficiently processing storage commands
US20110173503A1 (en) Hardware enabled performance counters with support for operating system context switching
KR101764657B1 (en) Computing subsystem hardware recovery via automated selective power cycling
CN103744405B (en) Towards two axial plane motion control cards and the two axial plane motion control methods of full-automatic surperficial mounting system
CN106155689B (en) The method shown under a linux operating system based on 86 platform of non-x
CN102866755A (en) Power-on reset device for integrated test system
US10962593B2 (en) System on chip and operating method thereof
CN109542198B (en) Method and equipment for controlling power-on of PCIE card
CN102568539A (en) Hard disk
CN101741600B (en) Server system and its recording device
JPH02186424A (en) Disk control circuit
CN118093031A (en) A wiring inspection method, device, equipment and machine-readable storage medium
CN116701285A (en) Remote access control apparatus, remote access control method, remote access control device, and computer readable medium
CN116401120A (en) Cable connection verification method, device, equipment and machine-readable storage medium
CN111143145B (en) Method for manufacturing errors in SATA error processing debugging and electronic equipment
CN103885427B (en) A kind of embedded computer guard method based on RTEMS operating system
US7568121B2 (en) Recovery from failure in data storage systems
CN100371916C (en) SCSI magnetic disc recording device and mehtod

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190918

Address after: 150001 No. 434, postal street, Nangang District, Heilongjiang, Harbin

Co-patentee after: Gao Huijun

Patentee after: Harbin Institute of Technology Asset Investment Management Co.,Ltd.

Address before: 150001 Harbin, Nangang, West District, large straight street, No. 92

Patentee before: Harbin Institute of Technology

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191017

Address after: 315200 No.189, Guangming Road, Zhuangshi street, Zhenhai District, Ningbo City, Zhejiang Province

Patentee after: Ningbo Intelligent Equipment Research Institute Co.,Ltd.

Address before: 150001 No. 434, postal street, Nangang District, Heilongjiang, Harbin

Co-patentee before: Gao Huijun

Patentee before: Harbin Institute of Technology Asset Investment Management Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250306

Address after: No. 289 Dongsheng Road, Jiaochuan Street, Zhenhai District, Ningbo City, Zhejiang Province 315200

Patentee after: Ningbo Yitang Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: 315200 No.189 Guangming Road, Zhuangshi street, Zhenhai District, Ningbo City, Zhejiang Province

Patentee before: Ningbo Intelligent Equipment Research Institute Co.,Ltd.

Country or region before: China