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

System and method for controlling numerical control machine Download PDF

Info

Publication number
CN102402203A
CN102402203A CN2011103579987A CN201110357998A CN102402203A CN 102402203 A CN102402203 A CN 102402203A CN 2011103579987 A CN2011103579987 A CN 2011103579987A CN 201110357998 A CN201110357998 A CN 201110357998A CN 102402203 A CN102402203 A CN 102402203A
Authority
CN
China
Prior art keywords
module
ethernet
plc
communication module
configuration file
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.)
Granted
Application number
CN2011103579987A
Other languages
Chinese (zh)
Other versions
CN102402203B (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

Images

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 numerically-controlled machine control system and control method
Technical field
The present invention relates to a kind of numerically-controlled machine control system and control method.
Background technology
In the CNC system, its main shaft rotation and feed shaft move respectively and are driven by spindle motor and feeding motor, and select cutter, the tool changing etc. of the degree of tightness of synkinesia such as spindle chuck, tool magazine are all controlled completion by the PLC controller.
In the traditional CNC system, its PLC function has two kinds of implementations, and a kind of mode is soft PLC mode, and the PLC function is directly realized on the CNC main frame, and on the HPI plate, the PLC function is carried out by host-processor with the design of the hardware interface of PLC.A kind of in addition mode is independent PLC mode, disposes the PLC controller of a platform independent, and the CNC system host is realized the PLC function through communication interface management PLC controller.
In CNC system, owing to adopted real-time ethernet technology, the requirement of the adaptation CNC system that traditional PLC function implementation can not be appropriate based on real-time ethernet.Inventor of the present invention is through discovering; If adopt soft PLC mode; The PLC function executing on the CNC main frame, high real-time that just can not the communication of good use real-time ethernet can, realize the modular design of CNC system; The complexity that reduces the CNC host software is to improve system stability, and the burden that reduces the CNC host-processor is to improve the performance of CNC system.If adopt the mode of independent general PLC, because the price of PLC is also relatively more expensive, key is that PLC does not have the real-time ethernet interface, and existing communication interface efficient is low, data protocol is open not enough, has limited the lifting of CNC system control performance.
Summary of the invention
The CNC system can not use the technological problem of real-time ethernet in the prior art in order to solve, and the embodiment of the invention provides a kind of numerically-controlled machine control system and control method.
A kind of numerically-controlled machine control system; Comprise the CNC control module; Ethernet communication module that is connected with said CNC control module and the PLC module that is connected with said ethernet communication module; Said CNC control module, and is monitored the PLC module in real time through said ethernet communication module and is carried out control command to said PLC module transmitting control commands through said ethernet communication module.
A kind of numerically-controlled machine control method,
The CNC control module is passed through the ethernet communication module to PLC module transmitting control commands;
The PLC module is stored in control command in the storer;
The CNC control module is monitored the PLC module in real time through the ethernet communication module and is carried out control command.
The embodiment of the invention proposes a kind of numerically-controlled machine control system and control method; Adopting the high integration single-chip microcomputer is the PLC module of CNC system design independent operating, and is connected through hardware interface with real-time ethernet, and hardware configuration is simple; The software independent design; Can develop reliable and stable PLC module within a short period of time, make the CNC system host can use system resource seldom simultaneously, management and control PLC realizes the PLC function in real time; The motion control of better auxiliary CNC system, and realized that the PLC function modoularization of CNC system designs.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention; The accompanying drawing of required use is done to introduce simply in will describing embodiment below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.Wherein
Fig. 1 has shown numerically-controlled machine control system structural representation among the embodiment one;
Fig. 2 has shown numerically-controlled machine control system structural representation among the embodiment one;
Fig. 3 has shown numerically-controlled machine control system structural representation among the embodiment two;
Fig. 4 has shown numerically-controlled machine control method process flow diagram among the embodiment three.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is a part of embodiment of the present invention, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Embodiment one
The present invention provides a kind of numerically-controlled machine control system; It is characterized in that: comprise CNC control module 1, the ethernet communication module 2 that is connected with said CNC control module 1 and the PLC module 4 that is connected with said ethernet communication module 3; Said CNC control module 1 through said ethernet communication module 2 to said PLC module 3 transmitting control commands, and through said ethernet communication module 2 in real time monitoring PLC modules 3 carry out control commands.
Said CNC control module 1 is connected with ethernet communication module 2 through RJ45 type Ethernet interface.
Said ethernet communication module 2 comprises Ethernet protocol controller 5 and profile memory; Said Ethernet protocol controller adopts FPGA; Deposit Ethernet POWERLINK configuration file and EtherCAT configuration file in the said profile memory, said Ethernet protocol controller selects to write Ethernet POWERLINK configuration file or EtherCAT configuration file.
Said ethernet communication module also comprises configuration file selection module; Said configuration file selects the module can need be by different protocol configuration file then through software or hardware mode; During mode through software; With different configuration file stores different memory address in storer, configuration file selects module to obtain different configuration files through visiting corresponding address.
Said configuration file selects module to comprise configuration file commutation circuit 6; Said profile memory comprises Ethernet POWERLINK profile memory 7 and EtherCAT profile memory 8, and said Ethernet protocol controller selects to write Ethernet POWERLINK configuration file or EtherCAT configuration file through configuration file commutation circuit 6.
Real-time performance reaches digital control system application real-time and opening ethernet technology at present has two kinds, and a kind of is the EtherCAT technology, and another kind is an Ethernet POWERLINK technology, and the real-time performance of these two kinds of technology can both 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 bigger widespread use, and China does not confirm the real-time ethernet standard yet.So, select for use a kind of real-time ethernet technical design communication module that the bigger market risk is all arranged separately, possibly, the market in future be on a sticky wicket in striving.Therefore the real-time ethernet communication module that just needs compatible EtherCAT technology and Ethernet POWERLINK technology is to support two kinds of real-time ethernet technical schemes.
Technical scheme of the present invention is utilized the flexible configuration characteristic of interface of semi-custom characteristic and the FPGA of FPGA; The peripheral configuration device design of two kinds of technical schemes is connected on the FPGA; Peripheral configuration selection of the same type can be supported the chip of two kinds of application needs; Design two FPGA profile memory in addition, deposit the configuration file of Ethernet POWERLINK technical scheme and the configuration file of EtherCAT technical scheme respectively, and the design alternative switch is realized the selection of technical scheme.
In elected during Ethernet POWERLINK profile memory; FPGA just is 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.During the EtherCAT profile memory, FPGA just is configured to peripheral hardware the use-pattern of EtherCAT scheme in elected, the technical protocol of FPGA internal operation EtherCAT, and at this moment this module is exactly the technological real-time ethernet communication module of EtherCAT.The implementation method of the real-time ethernet communication module of compatible EtherCAT technology of the present invention and EthernetPOWERLINK technology can insert EtherCAT technology and the technological real-time ethernet network of Ethernet POWERLINK easily.
Said PLC module comprises PLC controller 4 and storer; Said PLC controller 4 has been selected a Cortes-M3 kernel 32BIT single-chip microcomputer STM32F101VD for use; The FLASH of this single-chip microcomputer internal configurations 384K byte is as the SCM program space; And the SRAM of configuration 48K byte is as data space, and disposes a plurality of SPI interfaces, IIC interface, UART interface and surpass 48 IO interface, and the IO interface adopts light-coupled isolation acquired signal and output signal.Adopt this single-chip microcomputer to be aided with the EEROM of IIC and the hardware interface that corresponding interface circuits realizes PLC.Real time ethernet protocol controller 5 adopts SPI Slave agreement to be connected with single-chip microcomputer.
Embodiment of the invention working method is passed through the ethernet communication module to PLC module transmitting control commands for adopting the CNC control module; The PLC module is stored in control command in the storer, and the CNC control module is monitored the PLC module in real time through the ethernet communication module and carried out control command.
The PLC modular design of real-time ethernet interface hardware, adopt the high integration single-chip microcomputer be the CNC system design the PLC module of independent operating, its hardware configuration is simple, the 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 the real-time ethernet interface; Make the CNC system host can use system resource seldom; Management and control PLC realizes the PLC function in real time, the better motion control of auxiliary CNC system, and realized that the PLC function modoularization of CNC system designs.
Embodiment two
A kind of numerically-controlled machine control system; Comprise the CNC control module; Ethernet communication module that is connected with said CNC control module and the PLC module that is connected with said ethernet communication module; Said CNC control module, and is monitored the PLC module in real time through said ethernet communication module and is carried out control command to said PLC module transmitting control commands through said ethernet communication module.
Said ethernet communication module connects spindle motor and feeding motor, and said CNC control module is through said spindle motor of said ethernet communication module controls and feeding motor.
Said ethernet communication module interconnects through Ethernet interface.
The embodiment of the invention two is in the CNC system based on real-time ethernet; Actuating equipments such as spindle motor, feeding motor and PLC are all inserted the real-time ethernet network of CNC system, realize that the CNC system is through actuating equipments such as real-time ethernet network control spindle motor, feeding motor, PLC.
Embodiment three
The present invention provides a kind of numerically-controlled machine control method:
The CNC control module is passed through the ethernet communication module to PLC module transmitting control commands;
The PLC module is stored in control command in the storer;
The CNC control module is monitored the PLC module in real time through the ethernet communication module and is carried out control command.
Said CNC control module also comprises before PLC module transmitting control commands step through the ethernet communication module: the Ethernet protocol controller in the ethernet communication module is selected Ethernet POWERLINK configuration file or EtherCAT configuration file.
Ethernet protocol controller in the said ethernet communication module selects Ethernet POWERLINK configuration file or EtherCAT configuration file step also to comprise: the control configuration file selects module to make the Ethernet protocol controller select to connect Ethernet POWERLINK profile memory or EtherCAT profile memory, and said Ethernet POWERLINK configuration file or EtherCAT configuration file are written in the Ethernet protocol controller.
Said CNC control module also comprises to PLC module transmitting control commands step through the ethernet communication module: said control command is the PLC run time version that said CNC control module compiles through the ladder diagram mode.
A kind of numerically-controlled machine control method that the embodiment of the invention three proposes; Adopting the high integration single-chip microcomputer is the PLC module of CNC system design independent operating, and is connected through hardware interface with real-time ethernet, and hardware configuration is simple; The software independent design; Can develop reliable and stable PLC module within a short period of time, make the CNC system host can use system resource seldom simultaneously, management and control PLC realizes the PLC function in real time; The motion control of better auxiliary CNC system, and realized that the PLC function modoularization of CNC system designs.
What deserves to be mentioned is that among the above embodiment, various structure characteristic (for example above-mentioned multiple connected mode) can make up use each other, is not limited to shown in each accompanying drawing.Used concrete example among this paper principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for those of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. numerically-controlled machine control system; It is characterized in that: comprise the CNC control module; Ethernet communication module that is connected with said CNC control module and the PLC module that is connected with said ethernet communication module; Said CNC control module, and is monitored the PLC module in real time through said ethernet communication module and is carried out control command to said PLC module transmitting control commands through said ethernet communication module.
2. numerically-controlled machine control system according to claim 1; It is characterized in that: said ethernet communication module comprises Ethernet protocol controller and profile memory; Deposit Ethernet POWERLINK configuration file and EtherCAT configuration file in the said profile memory, said Ethernet protocol controller selects to write Ethernet POWERLINK configuration file or EtherCAT configuration file.
3. numerically-controlled machine control system according to claim 2; It is characterized in that: said ethernet communication module also comprises configuration file selection module; Said profile memory comprises EthernetPOWERLINK profile memory and EtherCAT profile memory, and said Ethernet protocol controller selects module to select to write Ethernet POWERLINK configuration file or EtherCAT configuration file through configuration file.
4. numerically-controlled machine control system according to claim 2 is characterized in that: said PLC module comprises Cortes-M3 single-chip microcomputer and storer, and is connected with the Ethernet protocol controller through the SPI interface.
5. numerically-controlled machine control system according to claim 1 is characterized in that: said ethernet communication module connects spindle motor and feeding motor, and said CNC control module is through said spindle motor of said ethernet communication module controls and feeding motor.
6. numerically-controlled machine control system according to claim 5 is characterized in that: said ethernet communication module interconnects through Ethernet interface.
7. numerically-controlled machine control method is characterized in that:
The CNC control module is passed through the ethernet communication module to PLC module transmitting control commands;
The PLC module is stored in control command in the storer;
The CNC control module is monitored the PLC module in real time through the ethernet communication module and is carried out control command.
8. numerically-controlled machine control method according to claim 7 is characterized in that: said CNC control module also comprises before PLC module transmitting control commands step through the ethernet communication module: the Ethernet protocol controller in the ethernet communication module is selected Ethernet POWERLINK configuration file or EtherCAT configuration file.
9. numerically-controlled machine control method according to claim 8; It is characterized in that: the Ethernet protocol controller in the said ethernet communication module selects Ethernet POWERLINK configuration file or EtherCAT configuration file step also to comprise: the control configuration file selects module to make the Ethernet protocol controller select to connect Ethernet POWERLINK profile memory or EtherCAT profile memory, and said Ethernet POWERLINK configuration file or E therCAT configuration file are written in the Ethernet protocol controller.
10. numerically-controlled machine control method according to claim 7 is characterized in that: said control command is the PLC run time version that said CNC control module compiles through the 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 true CN102402203A (en) 2012-04-04
CN102402203B 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)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103149900A (en) * 2013-02-04 2013-06-12 深圳市大族激光科技股份有限公司 Communication method and communication device between power amplifier (PA) numerical control system and external device
CN103433805A (en) * 2013-08-23 2013-12-11 广州数控设备有限公司 Circular degree error measurement device and method based on industrial Ethernet bus
CN106181387A (en) * 2016-08-17 2016-12-07 上海优尼斯工业设备销售有限公司 A kind of gantry moving-beam type Horizontal type milling composite machining center
CN106271627A (en) * 2016-08-17 2017-01-04 沈阳机床股份有限公司 A kind of vertical turn-milling complex machining center of gantry moving-beam type
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
CN114531347A (en) * 2020-11-23 2022-05-24 沈阳新松机器人自动化股份有限公司 Real-time communication method based on controller

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 (1)

* Cited by examiner, † Cited by third party
Title
姚军: "自动化生产数据采集在MES系统中的运用", 《江西化工》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103149900A (en) * 2013-02-04 2013-06-12 深圳市大族激光科技股份有限公司 Communication method and communication device between power amplifier (PA) numerical control system and external device
CN103433805A (en) * 2013-08-23 2013-12-11 广州数控设备有限公司 Circular degree error measurement device and method based on industrial Ethernet bus
CN103433805B (en) * 2013-08-23 2015-11-18 广州数控设备有限公司 Based on the roundness error measurement device and method of EPA bus
CN106181387A (en) * 2016-08-17 2016-12-07 上海优尼斯工业设备销售有限公司 A kind of gantry moving-beam type Horizontal type milling composite machining center
CN106271627A (en) * 2016-08-17 2017-01-04 沈阳机床股份有限公司 A kind of vertical turn-milling complex machining center of gantry moving-beam type
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
CN114531347A (en) * 2020-11-23 2022-05-24 沈阳新松机器人自动化股份有限公司 Real-time communication method based on controller

Also Published As

Publication number Publication date
CN102402203B (en) 2014-09-17

Similar Documents

Publication Publication Date Title
CN102402203A (en) System and method for controlling numerical control machine
CN104765321A (en) Motion controller being compatible with various field bus protocols
CN103095537B (en) Numerical control device capable of concurrently controlling two-class industrial Ethernet bus slave station equipment
CN101673101B (en) On-line programming FPGA reconfigurable device
CN201583944U (en) PCI bus based real-time acquisition card realized by adopting FPGA
US20110238188A1 (en) Engineering tool
CN103559053A (en) Board system and FPGA (Field Programmable Logic Array) online update method of communication interface cards
CN210573744U (en) BMC online upgrading device for multiple FPGA chips
CN105681086B (en) Communication manager and data acquisition method of programmable logic control equipment
CN102231718A (en) Gateway of communication between Ethernet for control and automation technology (EtherCAT) and CAN, and communication method thereof
US20230140769A1 (en) REMOTE RECONFIGURATION SYSTEM FOR INTERNET OF THINGS (IoT) INTELLIGENT SENSING TERMINAL
CN115442202A (en) 5G network cloud-end cooperative virtual PLC control method and system
CN106302071A (en) A kind of adapter, the network equipment and the method for port configuration
JP2007034398A (en) Control system and communication method
CN102291337B (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
CN202383479U (en) Control system for numerical control machine tool
CN101666855B (en) Universal test system and method of integrated circuit
CN103580975A (en) On-line reconfigurable generalized bus data conversion method
KR101648144B1 (en) Control system for programmable gateway and control method for programmable gateway using the same
KR101308038B1 (en) Integrated module device for industrial network protocol and method for controlling thereof
CN102215230B (en) Bus protocol-independent communication method for scalable processor architecture version 8 (SPARC V8) monitoring software
CN101320263B (en) Voltage reference initialization system and method for electric car controller
CN218217403U (en) Communication protocol interface control system and electronic equipment
CN220603881U (en) Controller based on TSN and EtherCAT communication and application structure thereof
CN103838191A (en) Distributed control system access method and distributed control system access device

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