[go: up one dir, main page]

CN102566512B - Based on automatic bearing cutting production line dedicated control circuit and the system of figure programming - Google Patents

Based on automatic bearing cutting production line dedicated control circuit and the system of figure programming Download PDF

Info

Publication number
CN102566512B
CN102566512B CN201110407532.3A CN201110407532A CN102566512B CN 102566512 B CN102566512 B CN 102566512B CN 201110407532 A CN201110407532 A CN 201110407532A CN 102566512 B CN102566512 B CN 102566512B
Authority
CN
China
Prior art keywords
module
production line
control circuit
control
engine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201110407532.3A
Other languages
Chinese (zh)
Other versions
CN102566512A (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.)
University of Shaoxing
Original Assignee
University of Shaoxing
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 University of Shaoxing filed Critical University of Shaoxing
Priority to CN201110407532.3A priority Critical patent/CN102566512B/en
Publication of CN102566512A publication Critical patent/CN102566512A/en
Application granted granted Critical
Publication of CN102566512B publication Critical patent/CN102566512B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

本发明公开了一种基于图编程的轴承切削自动生产线专用控制电路和系统,控制电路包括自动生产线调度模块、电源模块、图编程接口模块、I/O接口模块和通信模块,应用控制电路的系统包括引擎驱动生成模块、图编辑模块、编译生成模块、下载模块和在线调试诊断模块,所述引擎驱动生成模块根据所述控制电路的体系结构,生成控制电路各个模块对应的系统引擎,包括系统初始化程序、驱动程序、调度程序等,为控制算法提供接口,本发明具有轴承设备制造企业降低控制系统生产成本、开发具有自主知识产权的控制系统提供支持,适应当前轴承加工系统控制更便捷、易修改、易扩展的需要。

The invention discloses a special control circuit and system for a bearing cutting automatic production line based on graph programming. The control circuit includes an automatic production line scheduling module, a power supply module, a graph programming interface module, an I/O interface module and a communication module, and the system using the control circuit It includes an engine driver generation module, a diagram editing module, a compilation generation module, a download module, and an online debugging and diagnosis module. The engine driver generation module generates a system engine corresponding to each module of the control circuit according to the architecture of the control circuit, including system initialization. Programs, drivers, scheduling programs, etc., provide interfaces for control algorithms. The invention provides support for bearing equipment manufacturers to reduce the production cost of control systems and develop control systems with independent intellectual property rights. It is more convenient and easy to modify the control of the current bearing processing system , Easy to expand the needs.

Description

基于图编程的轴承切削自动生产线专用控制电路及系统Special control circuit and system for bearing cutting automatic production line based on graph programming

技术领域 technical field

本发明涉及轴承切削自动生产线的控制电路,尤其涉及轴承切削自动生产线专用控制电路及系统。 The invention relates to a control circuit of an automatic bearing cutting production line, in particular to a special control circuit and system for an automatic bearing cutting production line.

背景技术 Background technique

机床工具行业作为机械装备工业的重要组成部分,在整个国民经济的发展过程中起着举足轻重的作用。从行业总体来看,我国机床工具行业目前正处于自1992年以来最好的发展时期,市场呈现出供不应求的良好局面。尤其是自1999年进入新的增长期以来,我国机床工具行业产值逐年增长,产品结构不断调整,产品质量日益提高。 As an important part of the machinery and equipment industry, the machine tool industry plays a pivotal role in the development of the entire national economy. From the perspective of the industry as a whole, my country's machine tool industry is currently in the best period of development since 1992, and the market is showing a good situation where supply exceeds demand. Especially since entering a new growth period in 1999, the output value of my country's machine tool industry has increased year by year, the product structure has been continuously adjusted, and the product quality has been improving day by day.

尽管近几年我国机床工具行业已经取得了很大进步,但在当前国内外机床市场竞争极其激烈的形势下,我国的机床工具行业则显得竞争力不强,主要表现在我国是机床消费大国还不是机床强国、机床拥有量大但水平低、产品构成依然落后、产品创新能力差、机床可靠性还有待提高等方面。滚动轴承在机床上的使用主要用于下列三个部位:主轴、滚珠丝杠和一般传动轴。 滚动轴承作为机床的基础配套件,其性能直接影响到机床的转速、回转精度、刚性、抗颤振动切削性能、噪声、温升及热变形等,进而影响到加工零件的精度、表面质量等。因此,高性能的机床必须配用高性能的轴承。 Although my country's machine tool industry has made great progress in recent years, under the current situation of extremely fierce competition in the domestic and foreign machine tool markets, my country's machine tool industry appears to be less competitive, mainly because my country is a big machine tool consumer. It is not a machine tool powerhouse, the number of machine tools is large but the level is low, the product composition is still backward, the product innovation ability is poor, and the reliability of machine tools needs to be improved. The use of rolling bearings on machine tools is mainly used in the following three parts: main shaft, ball screw and general transmission shaft. Rolling bearings are the basic accessories of machine tools, and their performance directly affects the speed, rotation accuracy, rigidity, anti-vibration and vibration cutting performance, noise, temperature rise and thermal deformation of the machine tool, which in turn affects the precision and surface quality of machined parts. Therefore, high-performance machine tools must be equipped with high-performance bearings.

.轴承生产设备现状. Status of bearing production equipment

 精密机床轴承技术含量高、附加值高、加工难度大,世界各大轴承公司都投入了极大的精力开展精密机床轴承的开发和研制。目前,国外生产精密机床轴承的生产厂家主要有德国FAG公司、法国SNF公司、日本NSK公司、瑞典SKF公司、日本NTN公司等。 Precision machine tool bearings have high technical content, high added value, and difficult processing. All major bearing companies in the world have invested a lot of energy in the development and development of precision machine tool bearings. At present, foreign manufacturers of precision machine tool bearings mainly include German FAG, French SNF, Japanese NSK, Swedish SKF, and Japanese NTN.

我国轴承行业整体水平与发达国家相比存在较大差距,特别是在精密轴承的开发和研制方面,由于受加工设备、制造工艺以及相关技术的限制和制约,目前,国内能批量、配套生产精密机床轴承的生产厂家只有洛阳轴研科技股份有限公司、哈尔滨轴承集团公司等少数几家公司。 There is a big gap between the overall level of my country's bearing industry and developed countries, especially in the development and development of precision bearings. Due to the limitations and constraints of processing equipment, manufacturing processes and related technologies, at present, domestic batches and supporting production of precision bearings The manufacturers of machine tool bearings are only a few companies such as Luoyang Shaft Research Technology Co., Ltd. and Harbin Bearing Group Corporation.

.轴承设备控制器现状. Current status of bearing equipment controller

1)PLC 1) PLC

可编程控制器(PLC)是20世纪60年代末期逐步发展起来的一种以微处理器为基础的新型工业控制装置,是将计算机技术应用于工业控制领域的崭新产品。近几年来,PLC技术在各种工业过程控制、生产自动线控制及各类机电一体化设备控制中得到极为广泛的应用。但作为量大面广的产品,其在控制精度、功能和价格方面存在一定的缺陷;随着技术的进步,越来越多的设备开始采用专用控制器,实现最佳性价比。 Programmable Logic Controller (PLC) is a new microprocessor-based industrial control device developed gradually in the late 1960s. It is a new product that applies computer technology to the field of industrial control. In recent years, PLC technology has been widely used in various industrial process control, production automatic line control and various mechanical and electrical integration equipment control. However, as a product with a large volume and a wide range, it has certain defects in control accuracy, function and price; with the advancement of technology, more and more equipment has begun to use dedicated controllers to achieve the best cost performance.

2)专用控制器 2) Dedicated controller

国内轴承生产加工控制系统的研究,还处于起步阶段,整套控制系统开发、生产的企业寥寥无几,目前市场上控制器的设计和控制机械系统的开发是分离的,由于这种现状导致轴承设备控制系统技术的不协调发展,与国外产品相比较仍存在较大差距。 The research on the domestic bearing production and processing control system is still in its infancy. There are very few companies that develop and produce the entire control system. At present, the design of the controller and the development of the control mechanical system in the market are separated. Due to this situation, the bearing equipment control Due to the uncoordinated development of system technology, there is still a big gap compared with foreign products.

.控制器程序开发方式现状. Current status of controller program development

目前,轴承设备专用控制器程序普遍采用封闭式的开发模式,采用C、VHDL等高级语言编写核心控制算法,在控制器出厂时固化在EEPROM或者Flash等介质中,轴承设备生产企业无法对控制算法进行修改,无法针对终端客户的特殊需求对控制算法进行定制。当新的需求产生时,由轴承设备生产企业将需求信息传递到控制器生产厂家,控制器生产厂家根据需求编写相应的算法程序。在这种模式下,由于没有形成一种标准化的逻辑语言组件,在开发程序过程中,特别是新的控制器、新的应用模式产生时,很难高效、可靠的开发出相应的控制算法,对于迅速响应市场带来不利,市场急需一种高效、可靠的开发模式。另外,在当前这种开发模式下,控制器知识产权掌握在控制器开发商手中,轴承设备企业不具备知识产权,对于轴承加工控制系统自有品牌的构建、与国外同类产品的市场竞争产生不利影响。 At present, the special controller program for bearing equipment generally adopts a closed development mode. The core control algorithm is written in high-level languages such as C and VHDL. When the controller leaves the factory, it is solidified in media such as EEPROM or Flash. The control algorithm cannot be customized according to the special needs of end customers. When a new demand arises, the bearing equipment manufacturer will transmit the demand information to the controller manufacturer, and the controller manufacturer will write the corresponding algorithm program according to the demand. In this mode, since there is no standardized logic language component, it is difficult to efficiently and reliably develop corresponding control algorithms during the development of programs, especially when new controllers and new application modes are generated. For the disadvantages of rapid response to the market, the market urgently needs an efficient and reliable development model. In addition, under the current development mode, the intellectual property rights of the controller are in the hands of the controller developer, and the bearing equipment enterprises do not have intellectual property rights, which is unfavorable for the construction of the bearing processing control system's own brand and market competition with similar foreign products Influence.

发明内容 Contents of the invention

针对当前轴承设备生产企业自有技术含量低,缺少自主知识产权的技术,产品更新周期长,无法适应快速变化的市场需要以及客户的特殊性能需求,以及充分利用嵌入式系统发展过程中的硬件条件,达到少部件、高可靠性的目的,结合当前轴承控制系统发展趋势,提出基于图编程的轴承切削自动生产线专用控制电路及系统。 Aiming at the low technical content of current bearing equipment manufacturers, the lack of technology with independent intellectual property rights, the long product update cycle, the inability to adapt to the rapidly changing market needs and the special performance requirements of customers, and to make full use of the hardware conditions in the development process of embedded systems , to achieve the purpose of less components and high reliability, combined with the current development trend of bearing control system, a special control circuit and system for bearing cutting automatic production line based on graph programming is proposed.

为了解决上述技术问题,本发明的技术方案如下: In order to solve the problems of the technologies described above, the technical solution of the present invention is as follows:

基于图编程的轴承切削自动生产线专用控制电路,包括自动生产线调度模块、电源模块、图编程接口模块、I/O接口模块和通信模块,所述图编程接口模块和I/O接口模块分别与自动生产线调度模块相连,所述通信模块实现各个模块之间的数据传递以及与所述电路与外部RS232串口通信;所述自动生产线调度模块采用嵌入式可编程芯片,执行控制程序控制生产线,完成数据处理、信号处理、任务调度、系统控制工作;所述图编程接口模块提供人机交互功能,并支持在线组态技术,可以根据需要选择显示内容和方式;所述I/O接口模块采用全隔离的输入输出接口方式;所述电源模块为整个电路提供工作电源。 A dedicated control circuit for bearing cutting automatic production line based on graph programming, including an automatic production line scheduling module, a power supply module, a graph programming interface module, an I/O interface module and a communication module, the graph programming interface module and I/O interface module are respectively connected to the automatic The production line scheduling module is connected, and the communication module realizes the data transmission between each module and the communication with the circuit and the external RS232 serial port; the automatic production line scheduling module adopts an embedded programmable chip, executes the control program to control the production line, and completes the data processing , signal processing, task scheduling, and system control work; the graphic programming interface module provides human-computer interaction functions and supports online configuration technology, and the display content and method can be selected according to needs; the I/O interface module adopts a fully isolated The input and output interface mode; the power supply module provides working power for the whole circuit.

进一步的,所述电源模块采用双隔离稳压的方式给电路供电,所述双隔离稳压的方式为稳压模块输入电压为24V+20%,产生稳定的5V,并在其后增加一层隔离稳压模块。 Further, the power supply module supplies power to the circuit in the way of double isolation and voltage stabilization. The method of double isolation and voltage stabilization is that the input voltage of the voltage stabilization module is 24V + 20%, and a stable 5V is generated, and a layer of Isolated regulator module.

应用上述控制电路的系统,包括引擎驱动生成模块、图编辑模块、编译生成模块、下载模块和在线调试诊断模块,所述引擎驱动生成模块根据所述控制电路的体系结构,生成控制电路各个模块对应的系统引擎,包括系统初始化程序、驱动程序、调度程序等,为控制算法提供接口; The system applying the above-mentioned control circuit includes an engine driver generation module, a diagram editing module, a compile generation module, a download module and an online debugging diagnosis module, and the engine driver generation module generates corresponding The system engine of the system, including system initialization program, driver program, scheduler, etc., provides an interface for the control algorithm;

所述图编辑模块采用图形化的程序开发方法,提供自定义构件的生成方式,为后续产品开发、应用调试、维护提供基础;所述编译生成模块将所述图编辑模块编辑的图形程序编译生成对应控制电路模块的专用机器语言,嵌入到引擎驱动生成模块中,构成系统运行程序;所述下载模块将编译生成模块生成的程序代码下载到系统硬件平台中;所述在线调试诊断模块可以对所述系统进行现场在线调试诊断。 The graph editing module adopts a graphical program development method, provides a custom component generation method, and provides a basis for subsequent product development, application debugging, and maintenance; the compilation and generation module compiles and generates the graphics program edited by the graph editing module The special-purpose machine language corresponding to the control circuit module is embedded in the engine driver generation module to form a system operating program; the download module downloads the program code generated by the compilation generation module to the system hardware platform; the online debugging diagnosis module can be used for all On-line debugging and diagnosis of the above-mentioned system.

进一步的,所述系统通过图形化算法设计环境实现控制算法设计,所有图元件以控件的形式提供给设计器使用,使用者在设计器上拖放控件来设计梯形图的编辑。 Further, the system implements control algorithm design through a graphical algorithm design environment, and all graphic components are provided to the designer in the form of controls, and users drag and drop controls on the designer to edit the ladder diagram.

进一步的,所述系统整体程序可采用构件化的设计方式,调试正确的控制算法功能。 Further, the overall program of the system can be designed in a component-based way to debug correct control algorithm functions.

本发明的有益效果在于:利用嵌入式SOC控制器芯片、专用控制器PLC化和智能控制技术等前沿技术,开发出符合当前市场趋势的智能化控制系统、开发开放式的控制系统软硬件平台,同时研究符合轴承加工需求的机械设备设计方法,为轴承设备制造企业降低控制系统生产成本、开发具有自主知识产权的控制系统提供支持,适应当前轴承加工系统控制更便捷、易修改、易扩展的需要。 The beneficial effect of the present invention lies in: using cutting-edge technologies such as embedded SOC controller chip, dedicated controller PLC and intelligent control technology, to develop an intelligent control system in line with the current market trend, and to develop an open control system software and hardware platform, At the same time, study the design method of mechanical equipment that meets the needs of bearing processing, provide support for bearing equipment manufacturers to reduce the production cost of control systems and develop control systems with independent intellectual property rights, and adapt to the current needs of more convenient control, easy modification, and easy expansion of bearing processing systems .

附图说明 Description of drawings

图1为控制电路框图; Fig. 1 is a control circuit block diagram;

图2为系统的框图; Fig. 2 is a block diagram of the system;

图3为传统电源模块的示意图; FIG. 3 is a schematic diagram of a conventional power module;

图4为本发明电源模块的示意图; 4 is a schematic diagram of a power module of the present invention;

图5为本发明图编程技术的示意图; Fig. 5 is a schematic diagram of the graph programming technique of the present invention;

图6为本发明控制程序开发模式演变图。 Fig. 6 is an evolution diagram of the development mode of the control program of the present invention.

具体实施方式 Detailed ways

下面将根据附图和具体实施例对本发明做进一步的说明。 The present invention will be further described according to the drawings and specific embodiments below.

基于图编程的轴承切削自动生产线专用控制包括硬件系统和软件系统两个组成部分。硬件系统以智能控制器芯片为核心,结合外围功能部件,构成轴承自动生产线控制器主板,完成轴承生产线控制程序的运行,同时通过生产线机械装置,构成生产线控制系统。本发明在现有的技术上对控制电路及应用控制电路的系统进行改进,软件部分为自动生产线控制器的编程、调试工具,完成控制程序的开发以及程序的调试、监控运行功能。通过该技术,电气工程师可以方便在设计好的生产线上,实现对生产线运行逻辑的编程,完成针对不同轴承元件所需的不同加工工艺流程的控制需求。系统研发内容如下所述: The special control of bearing cutting automatic production line based on graph programming includes two components: hardware system and software system. The hardware system takes the intelligent controller chip as the core, combined with peripheral functional components, constitutes the main board of the bearing automatic production line controller, completes the operation of the control program of the bearing production line, and at the same time forms the production line control system through the production line mechanical device. The present invention improves the control circuit and the application control circuit system based on the existing technology. The software part is the programming and debugging tool of the automatic production line controller, and completes the development of the control program, the debugging of the program, and the monitoring and running functions. Through this technology, electrical engineers can conveniently realize the programming of the operation logic of the production line on the designed production line, and complete the control requirements for different processing processes required by different bearing components. The content of system development is as follows:

1.控制系统硬件1. control system hardware

生产线控制器主板是控制器主要部件,负责自动生产线调度程序的执行,结构框图如图1所示,硬件系统主要包括:自动生产线调度模块、电源模块、图编程接口模块、I/O接口模块和通信模块五大部分。 The main board of the production line controller is the main part of the controller and is responsible for the execution of the automatic production line scheduling program. There are five parts in the communication module.

(1) 自动生产线调度模块 (1) Automatic production line scheduling module

该模块是整个系统的核心模块,采用嵌入式可编程智能芯片为核心,执行控制程序达到控制整个生产线的安全可靠运行的目的,主要完成整个系统的数据处理、信号处理、任务调度、系统控制等工作,具体包括逻辑信号处理、模拟信号处理、通信数据处理、图形显示数据处理、生产线运行管理等。 This module is the core module of the whole system. It adopts the embedded programmable smart chip as the core, executes the control program to achieve the purpose of controlling the safe and reliable operation of the whole production line, and mainly completes the data processing, signal processing, task scheduling and system control of the whole system. Work, specifically including logic signal processing, analog signal processing, communication data processing, graphic display data processing, production line operation management, etc.

(2) 电源模块 (2) Power module

提供整个系统工作电源。不同于普通工业控制系统,轴承机械属于精密加工机械,各个功能部件价格昂贵,操作不当容易损坏,控制系统需要高可靠性电源,因此设计电源模块时,各模块间的供电需要进行隔离处理以提高系统的抗干扰能力,同时还应通过周波跌落,群脉冲等EMC测试从而有效保证整个控制系统有效、可靠、稳定地运行。系统采用单24V电源工作方式、抗反接电路,用以保证现场使用的方便和安全。 Provide the working power of the whole system. Different from ordinary industrial control systems, bearing machinery belongs to precision machining machinery. Each functional part is expensive and easily damaged if improperly operated. The control system requires a high-reliability power supply. Therefore, when designing a power supply module, the power supply between each module needs to be isolated to improve The anti-interference ability of the system should also pass EMC tests such as cycle drop and group pulse to effectively ensure the effective, reliable and stable operation of the entire control system. The system adopts single 24V power supply mode and anti-reverse connection circuit to ensure the convenience and safety of on-site use.

(3) 图编程接口模块 (3) Graphic programming interface module

提供系统人机交互,包括系统工作状态、信号显示、参数设置、报警提示等功能。该模块支持在线组态技术,用户可以根据需要选择显示内容和方式,在不退出系统运行的情况下可以直接进入组态环境并修改组态使修改后的组态直接生效,而且使用者在生成适合自己需要的应用系统时不需要修改软件程序的源代码。 Provide system human-computer interaction, including system working status, signal display, parameter setting, alarm prompt and other functions. This module supports online configuration technology. Users can choose the display content and method according to their needs. They can directly enter the configuration environment and modify the configuration to make the modified configuration take effect directly without exiting the system operation. The source code of the software program does not need to be modified when the application system is suitable for one's own needs.

(4) I/O接口模块 (4) I/O interface module

系统采用全隔离的输入数出接口方式,即使在大冲击、强干扰情况下,IO设备工作异常,也不至于影响核心控制模块工作,确保在外围出现不确定因素下保证不会产生不可预料的工作情况。 The system adopts a fully isolated input and output interface mode. Even if the IO equipment works abnormally in the case of large impact and strong interference, it will not affect the work of the core control module, ensuring that there will be no unpredictable factors when there are uncertain factors in the periphery. working condition.

(5)  通信模块 (5) Communication module

主要实现系统内部间数据传递以及外部RS232串口通信,支持常用通信协议。 It mainly realizes data transmission between the system and external RS232 serial communication, and supports common communication protocols.

以上5个模块构成了轴承自动生产线控制器主板的主体,提供了整个生产线系统的硬件运行平台,通过智能芯片和外围部件的合理搭配设计,有效保证了系统安全可靠运行,同时为现场可编程提供了硬件运行环境。 The above 5 modules constitute the main body of the controller main board of the bearing automatic production line, providing the hardware operation platform of the entire production line system, through the reasonable matching design of smart chips and peripheral components, effectively ensuring the safe and reliable operation of the system, and providing field programmable hardware operating environment.

控制系统软件control system software

系统软件平台结构框图如图2所示: The structural block diagram of the system software platform is shown in Figure 2:

(1)   引擎驱动生成模块 (1) Engine driver generation module

根据系统硬件平台控制器的体系结构,通过该模块生成对应的系统引擎,包括系统初始化程序、驱动程序、调度程序等,为控制算法提供接口。 According to the architecture of the system hardware platform controller, the corresponding system engine is generated through this module, including system initialization program, driver program, scheduler, etc., to provide an interface for the control algorithm.

(2)   图编辑模块 (2) Figure editing module

平台采用图形化的程序开发方法,使用图编程比使用传统的C语言或汇编语言开发更直观、更便捷,且不容易出错,一般的电气工程师都可以掌握,从而为现场的更改调试带来极大的便捷。提供自定义构件的生成方式,为后续产品开发、应用调试、维护提供基础。 The platform adopts a graphical program development method. Using graph programming is more intuitive and convenient than using traditional C language or assembly language development, and it is not easy to make mistakes. It can be mastered by ordinary electrical engineers, thus bringing great benefits to on-site modification and debugging. Great convenience. Provides the generation method of custom components to provide the basis for subsequent product development, application debugging, and maintenance.

(3) 编译生成模块 (3) Compile and generate modules

将图编辑模块编辑的图形程序编译生成对应硬件平台控制器的专用机器语言,嵌入到引擎模块中,构成系统运行程序。 The graphics program edited by the graphics editing module is compiled to generate a special machine language corresponding to the hardware platform controller, which is embedded into the engine module to form a system running program.

(4)下载模块 (4) Download module

通过专用的协议,该协议可以是现有的,也可以根据自己需要自行进步编程,将编译生成模块生成的程序代码下载到系统硬件平台中。 Through a dedicated protocol, the protocol can be existing, or can be programmed according to one's own needs, and the program code generated by the compilation and generation module can be downloaded to the system hardware platform.

(5) 在线调试诊断模块 (5) Online debugging diagnostic module

工程师可以通过该模块对控制程序进行现场在线调试诊断,从而有效保证程序的正确性及可靠性。 Engineers can use this module to conduct on-site debugging and diagnosis of the control program, so as to effectively ensure the correctness and reliability of the program.

技术关键:1.电源模块设计Technical key: 1. Power Module Design

传统的机械装备控制器,供电方式通常采用的是由开关电源提供24V作为I/O的工作电源,提供5V作为系统CPU及其外围部件的工作电源。其电源工作模式示意如图3所示: For traditional mechanical equipment controllers, the power supply method usually uses a switching power supply to provide 24V as the working power supply for I/O, and 5V as the working power supply for the system CPU and its peripheral components. The working mode of its power supply is shown in Figure 3:

图中,开关电源作为交流转直流的部件,起到了隔离220V和直流24V、5V的作用,但是开关电源的输出稳定性直接影响系统的性能,特别是5V电源信号的波动将引起系统的工作混乱,严重时导致系统损坏。本控制器采用双隔离稳压的方式给系统供电,如图4所示,对于该电路,隔离稳压模块输入电压为24V+20%范围内,均可以产生稳定的5V,足以保证在开关电源供电不良导致输出电压波动时使得系统CPU可以正常工作。另外,多一层隔离稳压模块,可以有效提高系统的抗电源干扰能力。通过该方式可以有效保证芯片工作的可靠性,进而保证通信数据的正确性和稳定性。通过项目组实测表面,使用该电路构成的控制器可保证EMC群脉冲测试四级。 In the figure, the switching power supply, as an AC to DC component, plays the role of isolating 220V and DC 24V and 5V, but the output stability of the switching power supply directly affects the performance of the system, especially the fluctuation of the 5V power supply signal will cause the system to work in confusion , causing system damage in severe cases. The controller adopts double isolation and voltage stabilization to supply power to the system, as shown in Figure 4. For this circuit, the input voltage of the isolation voltage stabilization module is within the range of 24V + 20%, and it can generate a stable 5V, which is enough to ensure that the switching power supply When the output voltage fluctuates due to poor power supply, the system CPU can work normally. In addition, an additional layer of isolation voltage regulator module can effectively improve the system's ability to resist power supply interference. This method can effectively ensure the reliability of the chip operation, thereby ensuring the correctness and stability of the communication data. Through the actual measurement surface of the project team, the controller composed of this circuit can guarantee the EMC group pulse test level 4.

另外,在这种供电模式下,由于采用单电源供电方式,对于开关电源的选择提供了很大的便利。 In addition, in this power supply mode, because of the single power supply mode, it provides great convenience for the selection of switching power supply.

.自动生产线控制器软件引擎设计与生成. Design and generation of software engine for automatic production line controller

由于嵌入式芯片的多样性,使得用户程序移植困难,在更换了嵌入式芯片后,需要重复开发控制程序,使得开发效率低。因此,为了实现对不同应用领域定制控制器,灵活选择所需CPU,同时又要快速完成系统的开发,需要提供一种方法,使得对由不同CPU构成的系统采用相同的开发方法,抽象不同CPU的具体实现细节。在选择具体的CPU后再对抽象CPU模型进行实例化。可以以Cotex-M3芯片系列作为切入点,引擎构造实现通用引擎的描述,包括初始化、定时器、中断、通信等。通用引擎包括了各类CPU共有的属性和框架,为针对特定CPU的引擎构造提供统一的结构,不同CPU的特性通过引擎特性接口实现共性和特性之间的交互。研发成功后,当设备改变而需要其它类型的芯片时,可以采用同样的方法快速实现引擎的生成。 Due to the diversity of embedded chips, it is difficult to transplant user programs. After replacing the embedded chips, the control program needs to be developed repeatedly, which makes the development efficiency low. Therefore, in order to customize the controller for different application fields, flexibly select the required CPU, and quickly complete the system development, it is necessary to provide a method to use the same development method for the system composed of different CPUs, abstracting different CPUs. specific implementation details. The abstract CPU model is instantiated after selecting a specific CPU. The Cotex-M3 chip series can be used as an entry point, and the engine structure can realize the description of the general engine, including initialization, timer, interrupt, communication, etc. The general engine includes the common attributes and frameworks of various CPUs, providing a unified structure for the engine construction of a specific CPU. The characteristics of different CPUs realize the interaction between commonality and characteristics through the engine characteristic interface. After successful research and development, when the equipment changes and other types of chips are required, the same method can be used to quickly realize the generation of the engine.

.图编程技术. Graph programming technology

对于传统的轴承生产线专用控制器,由于程序是由专用控制器厂家出厂时固化,而且处于封闭式的程序开发模式,轴承设备厂家无法针对不同的加工工艺修改程序,从而限制了新产品的开发。本发明开发的轴承专用控制器,采用开放式设计理念,以满足轴承设备生产企业二次开发控制算法为目标,通过软硬件结合的设计方式,利用系统软件平台,可以便捷地进行现场程序更改、下载、扩展、调试等功能,从而可满足客户个性化要求及特殊场合的特殊需求。另外,通过项目开发的软件平台或操作器,实现了现场控制程序程序的在线诊断。为满足维护不当或长时间工作后某些I/O点损坏的可能,可以在现场更改异常逻辑输入或输出点到备用点而不用重新修改程序的功能,从而极大提高维护效率缩短维修时间。系统软件平台通过图形化算法设计环境实现控制算法设计。所有图元件以控件的形式提供给设计器使用,使用者在设计器上拖放控件来设计梯形图。系统应用模式如下图5所示: For traditional special controllers for bearing production lines, because the program is solidified by the special controller manufacturer when it leaves the factory, and it is in a closed program development mode, bearing equipment manufacturers cannot modify the program for different processing techniques, thus limiting the development of new products. The bearing-specific controller developed by the present invention adopts an open design concept to meet the secondary development control algorithm of bearing equipment manufacturers. Through the design method of combining software and hardware, the system software platform can be used to conveniently carry out on-site program changes, Download, expansion, debugging and other functions, so as to meet the individual requirements of customers and the special needs of special occasions. In addition, through the software platform or operator developed by the project, the on-line diagnosis of the on-site control program is realized. In order to meet the possibility of damage to some I/O points after improper maintenance or long-term work, it is possible to change the function of abnormal logic input or output points to backup points on site without re-modifying the program, thereby greatly improving maintenance efficiency and shortening maintenance time. The system software platform realizes the control algorithm design through the graphical algorithm design environment. All diagram components are provided to the designer in the form of controls, and users can drag and drop controls on the designer to design ladder diagrams. The system application mode is shown in Figure 5 below:

4.构件化图形程序开发模式4. Component Graphical Program Development Model

传统的专用控制器基本采用C、VHDL等语言开发控制程序,存在着调试麻烦、很难查清程序中隐含的BUG等问题,特别是引入指针操作后,问题更加严重。本发明采用图作为基本的逻辑组件,实现基本逻辑控制。图逻辑组件在平台设计时经过反复测试,确保正确。编程时,用户通过拖拉控件的方式实现梯形图的编辑,只需要关心控制算法的逻辑,无需担心程序是否存在BUG问题。另外,系统整体程序可采用构件化的设计方式,调试正确的控制算法功能,用户可以方便的通过平台提供的构件化设计方法,形成一个功能构件,为后续产品开发、调试、维护带来方便如图6所示。目前本项目已实现了梯形图的设计与il指令的生成,通过控件拖拉方式实现梯形图设计,设计结果可以用断点调试运行,并对寄存器进行监视。 Traditional special-purpose controllers basically use C, VHDL and other languages to develop control programs. There are problems such as troublesome debugging and difficulty in finding hidden bugs in the programs. Especially after the introduction of pointer operations, the problems are even more serious. The invention adopts graph as the basic logic component to realize the basic logic control. Graph logic components are tested repeatedly during platform design to ensure correctness. When programming, the user realizes the editing of the ladder diagram by dragging and dropping the control, only needs to care about the logic of the control algorithm, and does not need to worry about whether there is a BUG problem in the program. In addition, the overall program of the system can adopt the component-based design method to debug the correct control algorithm function. Users can easily form a functional component through the component-based design method provided by the platform, which brings convenience to subsequent product development, debugging and maintenance. Figure 6 shows. At present, this project has realized the design of the ladder diagram and the generation of the il instruction. The ladder diagram design is realized by dragging and dropping the control. The design result can be debugged and run with breakpoints, and the registers can be monitored.

.现场可编程诊断技术. Field Programmable Diagnostic Technology

通过系统软件平台,可以便捷地进行现场程序下载、更改、扩展、调试等功能,从而真正实现了现场程序的在线诊断,比如当某个输入或输出点出现异常,可以在现场调试并更改异常逻辑输入或输出点达到维修目的,从而极大提高维护效率缩短维修时间。 Through the system software platform, on-site program download, change, expansion, debugging and other functions can be conveniently performed, thus realizing the on-line diagnosis of on-site program. For example, when an input or output point is abnormal, the abnormal logic can be debugged and changed on site. The input or output point achieves the purpose of maintenance, thereby greatly improving maintenance efficiency and shortening maintenance time.

采用创新架构和技术的专用控制,使得产品的结构更为紧凑,减少中间环节。将目前的控制器成本降低20%~30%。以每年应用500条生产线,每条生产线需4台控制器,平均每台控制器节约成本500元计算,每年可为企业节约生产成本约100万元。 The dedicated control with innovative architecture and technology makes the structure of the product more compact and reduces intermediate links. Reduce the cost of the current controller by 20% to 30%. Assuming that 500 production lines are used every year, each production line needs 4 controllers, and the average cost of each controller is 500 yuan, it can save the production cost of about 1 million yuan for the enterprise every year.

系统具有现场可编程调试诊断功能,维护工程师可以在现场通过调试解决绝大部分故障,从而可以快速解决问题,提高维护效率,每台控制器一年的维护费用可降低40%~50%。以每年需维护500台,每台控制器维护节约成本500元计算,每年可为企业节约维护成本约25万元;如果项目能够推广,则可带来巨大的经济效益的同时也为我国轴承生产线的现场可编程诊断技术带来全新的理念。 The system has on-site programmable debugging and diagnosis functions. Maintenance engineers can solve most of the faults through debugging on site, so as to solve problems quickly and improve maintenance efficiency. The annual maintenance cost of each controller can be reduced by 40% to 50%. Based on the calculation that 500 units need to be maintained each year and the maintenance cost of each controller is 500 yuan, it can save about 250,000 yuan in maintenance costs for the enterprise every year; The field programmable diagnostic technology brings a new concept.

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员,在不脱离本发明构思的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明保护范围内。 The above is only a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present invention, some improvements and modifications can also be made, and these improvements and modifications should also be considered Within the protection scope of the present invention.

Claims (4)

1.基于图编程的轴承切削自动生产线专用控制电路,其特征在于,包括硬件系统和软件系统两个组成部分;硬件系统以智能控制器芯片为核心,结合外围功能部件,构成轴承自动生产线控制器主板,完成轴承生产线控制程序的运行,同时通过生产线机械装置,构成生产线控制系统,硬件系统包括自动生产线调度模块、电源模块、图编程接口模块、I/O 接口模块和通信模块,所述图编程接口模块和I/O接口模块分别与自动生产线调度模块相连,所述通信模块实现各个模块之间的数据传递以及所述电路与外部RS232 串口通信;所述自动生产线调度模块采用嵌入式可编程芯片,执行控制程序控制生产线,完成数据处理、信号处理、任务调度、系统控制工作;所述图编程接口模块提供人机交互功能,并支持在线组态技术,可以根据需要选择显示内容和方式;所述I/O 接口模块采用全隔离的输入输出接口方式;所述电源模块为整个电路提供工作电源;所述专用控制电路包括引擎驱动生成模块、图编辑模块、编译生成模块、下载模块和在线调试诊断模块,所述引擎驱动生成模块根据所述控制电路的体系结构,生成控制电路各个模块对应的系统引擎,包括系统初始化程序、驱动程序、调度程序,为控制算法提供接口; 1. The special control circuit for bearing cutting automatic production line based on graph programming is characterized in that it includes two components: hardware system and software system; the hardware system takes the intelligent controller chip as the core, combined with peripheral functional components to form the bearing automatic production line controller The main board completes the operation of the control program of the bearing production line, and at the same time forms the production line control system through the production line mechanical device. The hardware system includes an automatic production line scheduling module, a power supply module, a graphic programming interface module, an I/O interface module and a communication module. The interface module and the I/O interface module are connected with the automatic production line scheduling module respectively, and the communication module realizes the data transmission between each module and the communication between the circuit and the external RS232 serial port; the automatic production line scheduling module adopts an embedded programmable chip , execute the control program to control the production line, complete data processing, signal processing, task scheduling, and system control; the programming interface module of the diagram provides human-computer interaction functions, and supports online configuration technology, and can select display content and methods according to needs; The I/O interface module adopts a fully isolated input and output interface mode; the power supply module provides working power for the entire circuit; the dedicated control circuit includes an engine driver generation module, a diagram editing module, a compilation generation module, a download module and online debugging Diagnosis module, the engine driver generation module generates a system engine corresponding to each module of the control circuit according to the architecture of the control circuit, including a system initialization program, a driver program, and a scheduler, and provides an interface for the control algorithm; 所述图编辑模块采用图形化的程序开发方法,提供自定义构件的生成方式,为后续产品开发、应用调试、维护提供基础;所述编译生成模块将所述图编辑模块编辑的图形程序编译生成对应控制电路模块的专用机器语言,嵌入到引擎驱动生成模块中,构成系统运行程序;所述下载模块将编译生成模块生成的程序代码下载到系统硬件平台中;所述在线调试诊断模块可以对系统进行现场在线调试诊断; The graph editing module adopts a graphical program development method, provides a custom component generation method, and provides a basis for subsequent product development, application debugging, and maintenance; the compilation and generation module compiles and generates the graphics program edited by the graph editing module The special-purpose machine language corresponding to the control circuit module is embedded in the engine driver generation module to form a system operating program; the download module downloads the program code generated by the compilation generation module into the system hardware platform; Conduct on-site online debugging and diagnosis; 所述专用控制电路还包括自动生产线控制器软件引擎,在选择具体的CPU 后再对抽象CPU模型进行实例化;引擎构造实现通用引擎的描述,包括初始化、定时器、中断、通信;通用引擎包括了各类CPU 共有的属性和框架,为针对特定CPU 的引擎构造提供统一的结构,不同CPU 的特性通过引擎特性接口实现共性和特性之间的交互;当设备改变而需要其它类型的芯片时,可以采用同样的方法快速实现引擎的生成。 The dedicated control circuit also includes an automatic production line controller software engine, which instantiates the abstract CPU model after selecting a specific CPU; the engine structure realizes the description of the general engine, including initialization, timer, interruption, communication; the general engine includes The common attributes and frameworks of various CPUs are provided to provide a unified structure for the engine construction of a specific CPU. The characteristics of different CPUs realize the interaction between commonality and characteristics through the engine characteristic interface; when the device changes and other types of chips are required, The same method can be used to quickly realize the generation of the engine. 2. 根据权利要求1所述的基于图编程的轴承切削自动生产线专用控制电路,其特征在于,所述电源模块采用双隔离稳压的方式给电路供电,所述双隔离稳压的方式为稳压模块输入电压为24V+20%,产生稳定的5V,并在其后增加一层隔离稳压模块。 2. The special control circuit for bearing cutting automatic production line based on graph programming according to claim 1, characterized in that, the power supply module supplies power to the circuit by means of double isolation and voltage stabilization, and the method of double isolation and voltage stabilization is stable The input voltage of the voltage module is 24V + 20%, which generates a stable 5V, and a layer of isolation voltage regulator module is added after it. 3. 根据权利要求1所述的基于图编程的轴承切削自动生产线专用控制电路,其特征在于,通过图形化算法设计环境实现控制算法设计,所有图元件以控件的形式提供给设计器使用,使用者在设计器上拖放控件来设计梯形图的编辑。 3. The special control circuit for bearing cutting automatic production line based on graph programming according to claim 1, characterized in that the control algorithm design is realized through a graphical algorithm design environment, and all graph components are provided to the designer in the form of controls. The user can drag and drop controls on the designer to edit the ladder diagram. 4. 根据权利要求1所述的基于图编程的轴承切削自动生产线专用控制电路,其特征在于,整体程序采用构件化的设计方式,调试正确的控制算法功能。 4. The special control circuit for bearing cutting automatic production line based on graph programming according to claim 1, characterized in that the overall program adopts a component-based design method to debug correct control algorithm functions.
CN201110407532.3A 2011-12-09 2011-12-09 Based on automatic bearing cutting production line dedicated control circuit and the system of figure programming Expired - Fee Related CN102566512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110407532.3A CN102566512B (en) 2011-12-09 2011-12-09 Based on automatic bearing cutting production line dedicated control circuit and the system of figure programming

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110407532.3A CN102566512B (en) 2011-12-09 2011-12-09 Based on automatic bearing cutting production line dedicated control circuit and the system of figure programming

Publications (2)

Publication Number Publication Date
CN102566512A CN102566512A (en) 2012-07-11
CN102566512B true CN102566512B (en) 2015-08-12

Family

ID=46412157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110407532.3A Expired - Fee Related CN102566512B (en) 2011-12-09 2011-12-09 Based on automatic bearing cutting production line dedicated control circuit and the system of figure programming

Country Status (1)

Country Link
CN (1) CN102566512B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594113A (en) * 2012-03-21 2012-07-18 绍兴文理学院 Bearing cutting hardware power supply based on chart programming
CN103376798B (en) * 2012-04-24 2016-02-17 绍兴文理学院 Based on the system of automatic bearing production line nonshared control unit able to programme
CN103984291A (en) * 2014-05-13 2014-08-13 浙江东盛精密机械有限公司 Control system special for bearing operation drawing programming
CN108563161A (en) * 2018-01-22 2018-09-21 深圳市牧激科技有限公司 Open type intelligent control method, system and computer readable storage medium
CN112084669B (en) * 2020-09-15 2024-01-26 任新志 Electromechanical system electromechanical integrated design method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4449180A (en) * 1979-04-11 1984-05-15 Hitachi, Ltd. Sequence program inputting device
CN86103701A (en) * 1986-05-30 1987-01-24 机械工业部大连组合机床研究所 The ladder-shaped map programming device of Programmable Logic Controller
CN102419571A (en) * 2011-10-11 2012-04-18 绍兴文理学院 Automatic diagram programming-based bearing cutting production line control system
CN202351658U (en) * 2011-12-09 2012-07-25 绍兴文理学院 Graphics programming based special control circuit for bearing cutting automatic production line

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4449180A (en) * 1979-04-11 1984-05-15 Hitachi, Ltd. Sequence program inputting device
CN86103701A (en) * 1986-05-30 1987-01-24 机械工业部大连组合机床研究所 The ladder-shaped map programming device of Programmable Logic Controller
CN102419571A (en) * 2011-10-11 2012-04-18 绍兴文理学院 Automatic diagram programming-based bearing cutting production line control system
CN202351658U (en) * 2011-12-09 2012-07-25 绍兴文理学院 Graphics programming based special control circuit for bearing cutting automatic production line

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于ATMEGA169的嵌入式PLC的设计与实现;李松博;《中国优秀硕士学位论文全文数据库》;20110318;第9页最后1段-第46页最后1段 *

Also Published As

Publication number Publication date
CN102566512A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN102566512B (en) Based on automatic bearing cutting production line dedicated control circuit and the system of figure programming
CN104898546B (en) A kind of PLC on-line debugging system and method based on SOC
CN102722142A (en) Special control system of bearing cutting automation production line based on graphic programming
CN103592880B (en) For the smart controller system of heavy construction kind equipment
CN202351658U (en) Graphics programming based special control circuit for bearing cutting automatic production line
CN103529743A (en) Method for amending logic algorithm routine of control system in online mode
CN103376798B (en) Based on the system of automatic bearing production line nonshared control unit able to programme
CN112558541B (en) PLC programming extension system and method and electronic equipment
CN102621960A (en) Advanced RISC machine-Linux (ARM-Linux)-based compiled programmable automation control (PAC)
CN103376774B (en) Automatic bearing production line nonshared control unit able to programme
CN101082819A (en) Visual programmable logic controller
Zhang et al. The design and implementation of virtual machine system in embedded softplc system
CN101907872A (en) Programmable logic application controller
CN203133571U (en) Dual-core processing control circuit of numerical control system
CN202854558U (en) Numerical control device used for door and window handle fatigue life testing machine
CN202257190U (en) Automatic bearing cutting production line control system based on picture programming
CN201084005Y (en) Embedded machine tool numerical control system based on ARM technology
Wang The key technology research for embedded soft PLC control
CN2805217Y (en) Synchronous motor microprocessor field regulator based-on CPLD and 80 C196 monolithic processor
CN102837310A (en) Single-axis medium-low speed full-automatic dispensing robot servo controller
CN204790504U (en) Based on embedded AC servo controlling means of CPCI bus
CN202849489U (en) Numerical control system of quench machining tool
Shen Application of STM32 Microcontroller Control System in Automation of Computer Laboratory Equipment
CN202837913U (en) Single-axis medium-low speed full-automatic adhesive dispensing robot servo controller
CN102591262A (en) System hardware of bearing cutting automatic production line based on graphic programming

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150812

Termination date: 20171209

CF01 Termination of patent right due to non-payment of annual fee