CN102402203B - System and method for controlling numerical control machine - Google Patents

System and method for controlling numerical control machine Download PDF

Info

Publication number
CN102402203B
CN102402203B CN201110357998.7A CN201110357998A CN102402203B CN 102402203 B CN102402203 B CN 102402203B CN 201110357998 A CN201110357998 A CN 201110357998A CN 102402203 B CN102402203 B CN 102402203B
Authority
CN
China
Prior art keywords
module
ethernet
configuration file
communication module
plc
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
CN201110357998.7A
Other languages
Chinese (zh)
Other versions
CN102402203A (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.)
PEITIAN (ANHUI) M&E TECHNOLOGY Co Ltd
Original Assignee
PEITIAN (ANHUI) M&E TECHNOLOGY Co Ltd
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 PEITIAN (ANHUI) M&E TECHNOLOGY Co Ltd filed Critical PEITIAN (ANHUI) M&E TECHNOLOGY Co Ltd
Priority to CN201110357998.7A priority Critical patent/CN102402203B/en
Publication of CN102402203A publication Critical patent/CN102402203A/en
Application granted granted Critical
Publication of CN102402203B publication Critical patent/CN102402203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a system and a method for controlling numerical control machine. The system comprises a CNC control module, an Ethernet communication module connected with the CNC control module and a PLC module connected with the Ethernet communication module; and the CNC control module sends a control command to the PLC module through the Ethernet communication module, and monitors the PLC module to execute the control command in real time through the Ethernet communication module. A high integration single chip is used to design the PLC module which runs independently for the CNC system, and is connected with a real-time Ethernet through a hardware interface; the hardware is simple in structure, and the software is designed independently; stable and reliable PLC module can be developed in a short time; meanwhile, the CNC system host can use very few system resources, the PLC can be managed and controlled in real time to realize the PLC function so as to better assist motion control of the CNC system, and the PLC function modularization design of the CNC system is realized.

Description

A kind of Control System of NC Machine and control method
Technical field
The present invention relates to a kind of Control System of NC Machine and control method.
Background technology
In CNC system, its main shaft rotates and feed shaft moves respectively and driven by spindle motor and feeding motor, and synkinesia has all been controlled by PLC controller as select cutter, the tool changing etc. of the degree of tightness of spindle chuck, tool magazine.
In traditional CNC system, its PLC function has two kinds of implementations, and a kind of mode is soft PLC mode, and PLC function is directly realized on CNC main frame, and by the hardware interface design of PLC, on host interface plate, PLC function is carried out by host-processor.Another mode is independent PLC mode, the PLC controller of configuration one platform independent, and what CNC system host was managed PLC controller by communication interface realizes PLC function.
In the CNC system based on real-time ethernet, owing to having adopted real-time ethernet technology, the requirement of the adaptation CNC system that traditional PLC function implementation can not be appropriate.The present inventor finds through research, if adopt soft PLC mode, PLC function is carried out on CNC main frame, just can not well utilize the high real-time energy of real-time ethernet communication, realize the modular design of CNC system, reduce the complexity of CNC host software to improve system stability, reduce the burden of CNC host-processor to improve the performance of CNC system.If adopt the mode of independent general PLC, because the price of PLC is also more expensive, key is that PLC does not have real-time ethernet interface, and existing communication interface efficiency is low, data protocol is not open, has limited the lifting of CNC system control performance.
Summary of the invention
The problem that can not apply real-time ethernet technology in order to solve CNC system in prior art, the embodiment of the present invention provides a kind of Control System of NC Machine and control method.
A kind of Control System of NC Machine, comprise CNC control module, the ethernet communication module being connected with described CNC control module and the PLC module being connected with described ethernet communication module, described CNC control module sends control command by described ethernet communication module to described PLC module, and monitor in real time PLC module by described ethernet communication module and carry out control command
Described ethernet communication module comprises Ethernet protocol controller and profile memory, in described profile memory, deposit Ethernet POWERLINK configuration file and EtherCAT configuration file, described Ethernet protocol controller selects to write Ethernet POWERLINK configuration file or EtherCAT configuration file
Described ethernet communication module also comprises configuration file selection module, described configuration file selects module to comprise configuration file commutation circuit 6, described profile memory comprises Ethernet POWERLINK profile memory and EtherCAT profile memory, and described Ethernet protocol controller selects the configuration file commutation circuit 6 of module to select to write Ethernet POWERLINK configuration file or EtherCAT configuration file by configuration file.
A kind of numerically-controlled machine control method,
CNC control module sends control command by ethernet communication module to PLC module;
PLC module is stored in control command in storer;
CNC control module is monitored in real time PLC module by ethernet communication module and is carried out control command,
Described CNC control module also comprises before PLC module sends control command step by ethernet communication module: the Ethernet protocol controller in ethernet communication module is selected Ethernet POWERLINK configuration file or EtherCAT configuration file,
Ethernet protocol controller in described ethernet communication module selects Ethernet POWERLINK configuration file or EtherCAT configuration file step also to comprise: control configuration file and select module to make Ethernet protocol controller select to connect Ethernet POWERLINK profile memory or EtherCAT profile memory, described Ethernet POWERLINK configuration file or EtherCAT configuration file are written in Ethernet protocol controller.
The embodiment of the present invention proposes a kind of Control System of NC Machine and control method, adopting high integration single-chip microcomputer is the PLC module of CNC system independent operating, and be connected by hardware interface with real-time ethernet, hardware configuration is simple, software independent design, can develop reliable and stable PLC module within a short period of time, make CNC system host can use little system resource simultaneously, management and control PLC realizes PLC function in real time, better assist the motion control of CNC system, and realized the PLC function modoularization design of CNC system.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.Wherein
Fig. 1 has shown Control System of NC Machine structural representation in embodiment mono-;
Fig. 2 has shown Control System of NC Machine structural representation in embodiment mono-;
Fig. 3 has shown Control System of NC Machine structural representation in embodiment bis-;
Fig. 4 has shown numerically-controlled machine control method process flow diagram in embodiment tri-.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment mono-
The invention provides a kind of Control System of NC Machine, it is characterized in that: the ethernet communication module 2 that comprise CNC control module 1, is connected with described CNC control module 1 and the PLC module 4 being connected with described ethernet communication module 3, described CNC control module 1 sends control command by described ethernet communication module 2 to described PLC module 3, and monitors in real time PLC module 3 by described ethernet communication module 2 and carry out control command.
Described CNC control module 1 is connected with ethernet communication module 2 by RJ45 type Ethernet interface.
Described ethernet communication module 2 comprises Ethernet protocol controller 5 and profile memory, described Ethernet protocol controller adopts FPGA, in described profile memory, deposit Ethernet POWERLINK configuration file and EtherCAT configuration file, described Ethernet protocol controller selects to write Ethernet POWERLINK configuration file or EtherCAT configuration file.
Described ethernet communication module also comprises configuration file selection module, described configuration file selects the module can need be by different protocol configuration files by the mode of software or hardware, when mode by software, by different configuration file stores different memory address in storer, configuration file selects module by the different configuration file of the corresponding address acquisition of access.
Described configuration file selects module to comprise configuration file commutation circuit 6, described profile memory comprises Ethernet POWERLINK profile memory 7 and EtherCAT profile memory 8, and described Ethernet protocol controller selects to write Ethernet POWERLINK configuration file or EtherCAT configuration file by configuration file commutation circuit 6.
Real-time performance reaches the open real-time ethernet technology of CNC control application at present two kinds, and one is EtherCAT technology, and another kind is Ethernet POWERLINK technology, and the real-time performance of these two kinds of technology can reach 100us.
It is all very high that real-time ethernet EtherCAT technology and Ethernet POWERLINK technology are carried out performance.But two kinds of technology all do not obtain the advantage of larger widespread use, China does not determine real-time ethernet standard yet.So, select separately a kind of real-time ethernet technical design communication module to have the larger market risk, may in striving, following market be on a sticky wicket.Therefore just need the real-time ethernet communication module of compatible EtherCAT technology and Ethernet POWERLINK technology, to support two kinds of real-time ethernet technical schemes.
Technical solution of the present invention is utilized the flexible configuration characteristic of the semi-custom characteristic of FPGA and the interface of FPGA, the periphery configure device design of two kinds of technical schemes is connected on FPGA, periphery configure of the same type is selected the chip that can support that two kinds of application need, design in addition two FPGA profile memory, deposit respectively the configuration file of Ethernet POWERLINK technical scheme and the configuration file of EtherCAT technical scheme, and design alternative switch is realized the selection of technical scheme.
When elected middle Ethernet POWERLINK profile memory, FPGA is just configured to peripheral hardware the use-pattern of Ethernet POWERLINK scheme, FPGA internal operation Ethernet POWERLINK technical protocol, this time, this module was exactly the ethernet communication module of Ethernet POWERLINK technology.When elected middle EtherCAT profile memory, FPGA is just configured to peripheral hardware the use-pattern of EtherCAT scheme, the technical protocol of FPGA internal operation EtherCAT, and at this moment this module is exactly the real-time ethernet communication module of EtherCAT technology.The implementation method of the real-time ethernet communication module of the compatible EtherCAT technology of the present invention and Ethernet POWERLINK technology, can access the real-time ethernet network of EtherCAT technology and Ethernet POWERLINK technology easily.
Described PLC module comprises PLC controller 4 and storer, described PLC controller 4 has been selected a Cortes-M3 kernel 32BIT single-chip microcomputer STM32F101VD, the FLASH of this single-chip microcomputer internal configurations 384K byte is as Single Chip Microcomputer (SCM) program space, and the SRAM that configures 48K byte is as data space, and dispose multiple SPI interfaces, IIC interface, UART interface and exceed the IO interface of 48, IO interface adopts light-coupled isolation collection signal and output signal.Adopt this single-chip microcomputer to be aided with the EEROM of IIC and corresponding interface circuit to realize the hardware interface of PLC.Real time ethernet protocol controller 5 adopts SPI Slave agreement to be connected with single-chip microcomputer.
Embodiment of the present invention working method is for adopting CNC control module to send control command by ethernet communication module to PLC module, PLC module is stored in control command in storer, and CNC control module is monitored in real time PLC module by ethernet communication module and carried out control command.
The PLC modular design of real-time ethernet interface hardware, adopt high integration single-chip microcomputer be CNC system design the PLC module of independent operating, its hardware configuration is simple, software independent design can be developed reliable and stable PLC module within a short period of time.
The PLC modular design of real-time ethernet interface hardware real-time ethernet interface, make CNC system host can use little system resource, management and control PLC realizes PLC function in real time, better assists the motion control of CNC system, and has realized the PLC function modoularization design of CNC system.
Embodiment bis-
A kind of Control System of NC Machine, comprise CNC control module, the ethernet communication module being connected with described CNC control module and the PLC module being connected with described ethernet communication module, described CNC control module sends control command by described ethernet communication module to described PLC module, and monitors in real time PLC module by described ethernet communication module and carry out control command.
Described ethernet communication module connects spindle motor and feeding motor, and described CNC control module is by spindle motor and feeding motor described in described ethernet communication module controls.
Described ethernet communication module interconnects by Ethernet interface.
The embodiment of the present invention two is in the CNC system based on real-time ethernet, the actuating equipments such as spindle motor, feeding motor and PLC are all accessed to the real-time ethernet network of CNC system, realize CNC system by actuating equipments such as real-time ethernet network control spindle motor, feeding motor, PLC.
Embodiment tri-
The invention provides a kind of numerically-controlled machine control method:
CNC control module sends control command by ethernet communication module to PLC module;
PLC module is stored in control command in storer;
CNC control module is monitored in real time PLC module by ethernet communication module and is carried out control command.
Described CNC control module also comprises before PLC module sends control command step by ethernet communication module: the Ethernet protocol controller in ethernet communication module is selected Ethernet POWERLINK configuration file or EtherCAT configuration file.
Ethernet protocol controller in described ethernet communication module selects Ethernet POWERLINK configuration file or EtherCAT configuration file step also to comprise: control configuration file and select module to make Ethernet protocol controller select to connect Ethernet POWERLINK profile memory or EtherCAT profile memory, described Ethernet POWERLINK configuration file or EtherCAT configuration file are written in Ethernet protocol controller.
Described CNC control module sends control command step by ethernet communication module to PLC module and also comprises: described control command is the PLC run time version that described CNC control module compiles through ladder diagram mode.
A kind of numerically-controlled machine control method that the embodiment of the present invention three proposes, adopting high integration single-chip microcomputer is the PLC module of CNC system independent operating, and be connected by hardware interface with real-time ethernet, hardware configuration is simple, software independent design, can develop reliable and stable PLC module within a short period of time, make CNC system host can use little system resource simultaneously, management and control PLC realizes PLC function in real time, better assist the motion control of CNC system, and realized the PLC function modoularization design of CNC system.
It is worth mentioning that, in above embodiment, different architectural features (example multiple connected mode described above) can be used in combination mutually, are not limited to shown in each accompanying drawing.Applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for those of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (6)

1. a Control System of NC Machine, it is characterized in that: comprise CNC control module, the the first ethernet communication module being connected with described CNC control module and the PLC module being connected with described the first ethernet communication module, described CNC control module sends control command by described the first ethernet communication module to described PLC module, and monitor in real time PLC module by described the first ethernet communication module and carry out control command
Described the first ethernet communication module comprises Ethernet protocol controller and profile memory, in described profile memory, deposit Ethernet POWERLINK configuration file and EtherCAT configuration file, described Ethernet protocol controller selects to write Ethernet POWERLINK configuration file or EtherCAT configuration file
Described the first ethernet communication module also comprises configuration file selection module, described configuration file selects module to comprise configuration file commutation circuit (6), described profile memory comprises Ethernet POWERLINK profile memory and EtherCAT profile memory, and described Ethernet protocol controller selects the configuration file commutation circuit (6) of module to select to write Ethernet POWERLINK configuration file or EtherCAT configuration file by configuration file.
2. Control System of NC Machine according to claim 1, is characterized in that: described PLC module comprises Cortes-M3 single-chip microcomputer and storer, and is connected with Ethernet protocol controller by SPI interface.
3. Control System of NC Machine according to claim 1, it is characterized in that: also comprise the second ethernet communication module and three-ethernet communication module, described the second ethernet communication module is connected respectively spindle motor and feeding motor with three-ethernet communication module, described CNC control module is by spindle motor described in described the second ethernet communication module controls, and described CNC control module is by feeding motor described in the control of described three-ethernet communication module.
4. Control System of NC Machine according to claim 3, is characterized in that: described ethernet communication module interconnects by Ethernet interface.
5. a numerically-controlled machine control method, is characterized in that:
CNC control module sends control command by ethernet communication module to PLC module;
PLC module is stored in control command in storer;
CNC control module is monitored in real time PLC module by ethernet communication module and is carried out control command;
Described CNC control module also comprises before PLC module sends control command step by ethernet communication module: the Ethernet protocol controller in ethernet communication module is selected Ethernet POWERLINK configuration file or EtherCAT configuration file,
Ethernet protocol controller in described ethernet communication module selects Ethernet POWERLINK configuration file or EtherCAT configuration file step also to comprise: control configuration file and select module to make Ethernet protocol controller select to connect Ethernet POWERLINK profile memory or EtherCAT profile memory, described Ethernet POWERLINK configuration file or EtherCAT configuration file are written in Ethernet protocol controller.
6. numerically-controlled machine control method according to claim 5, is characterized in that: described control command is the PLC run time version that described CNC control module compiles through ladder diagram mode.
CN201110357998.7A 2011-11-14 2011-11-14 System and method for controlling numerical control machine Active CN102402203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110357998.7A CN102402203B (en) 2011-11-14 2011-11-14 System and method for controlling numerical control machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110357998.7A CN102402203B (en) 2011-11-14 2011-11-14 System and method for controlling numerical control machine

Publications (2)

Publication Number Publication Date
CN102402203A CN102402203A (en) 2012-04-04
CN102402203B true CN102402203B (en) 2014-09-17

Family

ID=45884515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110357998.7A Active CN102402203B (en) 2011-11-14 2011-11-14 System and method for controlling numerical control machine

Country Status (1)

Country Link
CN (1) CN102402203B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103149900B (en) * 2013-02-04 2015-10-14 大族激光科技产业集团股份有限公司 Communication means between PA digital control system and external devices and device
CN103433805B (en) * 2013-08-23 2015-11-18 广州数控设备有限公司 Based on the roundness error measurement device and method of EPA bus
CN106271627A (en) * 2016-08-17 2017-01-04 沈阳机床股份有限公司 A kind of vertical turn-milling complex machining center of gantry moving-beam type
CN106181387A (en) * 2016-08-17 2016-12-07 上海优尼斯工业设备销售有限公司 A kind of gantry moving-beam type Horizontal type milling composite machining center
CN106312556A (en) * 2016-08-17 2017-01-11 沈阳机床股份有限公司 Moving beam type inverted turn-milling compound machining center based on gantry
CN111061669A (en) * 2019-10-23 2020-04-24 珠海格力智能装备有限公司 Station monitoring method, computer readable storage medium and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1916578A1 (en) * 2006-10-24 2008-04-30 Triphase NV A system for real-time process control
CN201107641Y (en) * 2007-12-28 2008-08-27 高波 Full digital numerical control system
CN201860344U (en) * 2010-10-21 2011-06-08 广州数控设备有限公司 System supporting various fieldbus protocols
CN102221828A (en) * 2011-05-04 2011-10-19 沈阳机床(集团)设计研究院有限公司 Control program modularization system for numerical control machine
CN202383479U (en) * 2011-11-14 2012-08-15 配天(安徽)电子技术有限公司 Control system for numerical control machine tool

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1916578A1 (en) * 2006-10-24 2008-04-30 Triphase NV A system for real-time process control
CN201107641Y (en) * 2007-12-28 2008-08-27 高波 Full digital numerical control system
CN201860344U (en) * 2010-10-21 2011-06-08 广州数控设备有限公司 System supporting various fieldbus protocols
CN102221828A (en) * 2011-05-04 2011-10-19 沈阳机床(集团)设计研究院有限公司 Control program modularization system for numerical control machine
CN202383479U (en) * 2011-11-14 2012-08-15 配天(安徽)电子技术有限公司 Control system for numerical control machine tool

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
姚军.自动化生产数据采集在MES系统中的运用.《江西化工》.2008,(第04期),
自动化生产数据采集在MES系统中的运用;姚军;《江西化工》;20081215(第04期);69-72 *

Also Published As

Publication number Publication date
CN102402203A (en) 2012-04-04

Similar Documents

Publication Publication Date Title
CN102402203B (en) System and method for controlling numerical control machine
US10078323B2 (en) Dynamically configurable intelligent controller and control method for machine tools based on DSP/FPGA
CN103095537B (en) Numerical control device capable of concurrently controlling two-class industrial Ethernet bus slave station equipment
CN104765321A (en) Motion controller being compatible with various field bus protocols
US20140121785A1 (en) System and method for parameterizing field devices of an automation or control system
CN105785958A (en) Smart factory-based multi-function data acquisition device, acquisition system and method
CN102710478B (en) Integration slave node device of Profibus-DP (profibus-data processing) and Modbus
CN100504688C (en) Private chip for implementing bus controller function in ring bus numerical control system
CN102722126A (en) Four-roll plate bending machine control system based on advanced RISC machine (ARM) and Wince
CN103064368A (en) Redundant controller of Profibus-decentralized periphery (DP)
CN103580975A (en) On-line reconfigurable generalized bus data conversion method
CN202383479U (en) Control system for numerical control machine tool
CN102291337A (en) Gateway for switching communication based on EtherCAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol and communication method thereof
CN101718985B (en) EPA bus and Profibus-DP bus conversion adapter
CN202183779U (en) Ethernet access device of serial bus
CN103984290A (en) CANopen-based CNC mechanical arm control system and method thereof
CN202918326U (en) Intelligent multi-serial switch
CN111443630A (en) Servo driver with built-in programmable control function
CN104319819B (en) The grid-connected active tuning controller of embedded draught fan group
CN103812311B (en) Switch power parallel fast acting control system based on duplex mouth
CN201926904U (en) Multi-interface data acquisition unit based on OPC technology
CN101320263B (en) Voltage reference initialization system and method for electric car controller
CN105743927A (en) CANopen and DP protocol data converter and conversion method
CN220603881U (en) Controller based on TSN and EtherCAT communication and application structure thereof
CN105376560A (en) Universal adapter board applied between camera and acquisition computer

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